Skip to the content
2 layers273.1 × 144.8 mmKeyboard, the printed circuit board in 3D

Pat80 Home Computer is an attempt to develop the simplest possible Zilog Z80 based computer in 2021

Size
273.1 × 144.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
123
Nets
73
Pads
327
Tracks, vias
696, 66
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
11 Jul 2021
Updated
11 Jun 2026

Overview

Keyboard is an open-source printed circuit board by penguin86, from the penguin86/pat80 repository on GitHub. It is a 2-layer board of 273.1 × 144.8 mm with 123 parts on 73 nets, routed with 696 tracks and 66 vias.

Its parts include 53 switches, 52 diodes, 9 resistors, 1 capacitor and 1 connector. It belongs with the keyboards and input and retro computing and games boards of this library.

README

README.md

Pat80

Pat80 Home Computer Logo

Pat80 Home Computer is an attempt to develop the simplest possible Zilog Z80 based computer in 2021.

This project was moved to my private git server . This repository may not be up to date.

Hardware

Instead of being another single board computer, Pat80 focuses on modularity:

  • The Core board contains Z80 CPU, 32k ram, 32k rom, memory and I/O decoding logic
  • The Backplane is a stupid I/O bus board with no active components, 1 socket for the Core board and 8 sockets for I/O boards
  • Each I/O board must implement tri-state and go to high impedance according to its EN pin to avoid bus contention
  • The Power Supply module contains a 7805-based linear power supply capable of delivering 1A @5v for the core and I/O boards

Here is a picture of the early stages of development:

Pat80 Breadboard prototype

I/O Boards

Parallel terminal interface

A parallel terminal based on Arduino is used for development purposes and will be replaced by an UART card.

Keyboard controller

Pat80 features a blue-switches mechanical matrix keyboard, seen by the system as a memory area in I/O space. The keyboard doesn't use interrupts and is polled by the OS.

Video controller

The monochrome 368x248 pixels video output is software-generated by an ATMega 1284 MCU. The timings are generated by the MCU's 16 bit internal timer and the vertical sync time is used to update the framebuffer.

Software

The OS is a simple Memory Monitor. It can show memory content in hex and ascii with the typical hex editor tabular view. Programs can be loaded from the keyboard, writing Z80 opcodes and data in hex. The program can be executed from any ram position and the Memory Monitor can be brought to screen in any moment issuing an INT signal (the Z80 INT pin should be connected to a button with pull-up resistor). There is an experimental and unfinished quick load function using a python terminal to load a binary file directly to memory and execute it.

Pat80 Memory Monitor

Emulator

The pat80 memory monitor (the os) can be run in a z80 emulator. This repository contains an emulator as submodule, already set up to run the os. To try it, head to pat80-computer/software/z80-assembly/os/Makefile and run make run to build the rom from assembly and start the emulator. You will see some windows showing the emulated computer's memory and register status and the pat80 memory monitor prompt.

Emulator running Memory Monitor

Status

The project is heavily work in progress.

Working

  • Core board
  • Sound board
  • Arduino parallel terminal with its own Python companion script (or any UART terminal)

The only fully working configuration as now is the Core board with two devices hooked to its I/O bus: the Arduino Parallel Terminal (see pat80-io-devices/parallel-terminal and pat80-computer/software/z80-assembly/os/drivers/arduino_terminal.asm) and the SN76489 sound chip (see pat80-computer/software/z80-assembly/os/drivers/hd44780.asm)

Partially working

The keyboard is only partially tested, as it's not completed.

Pat80 keyboard pcb

Pat80 keyboard layout

The composite video card is partially working, but has some nasty bugs on text cursor positioning and the graphics mode is not yet implemented (the only way to output graphics ATM is to place the bitmap in the MCU flash and load it to VRAM manually).

Pat80 composite monitor text mode

Pat80 composite monitor graphics mode

For the moment, better to stick with the Arduino Parallel Terminal.

Not working

All the rest

License

All the project is under GPL v3 license

How to contribute

The project is open to contribution, but with some limits:

  • I'm sorry I can't accept AI-generated contributions. Reviewing a contribution requires time and effort from my side, while generating code with AI requires very little time and produces non reliable code that must be reviewed in detail. This is effectively shifting the work on my side, and in a forced way. If you feel you need a feature but you're not able to implement it by yourself, I prefer you to create an issue in the repository so I can implement it when I can, in a more mantainable way.
  • Before implementing a big change, please contact me to ensure it goes in the project's direction.
  • If working on an existing ticket, please name the branch accordingly (feature/ticketNumber, bugfix/ticketNumber...).
  • Only issue pull requests to the develop branch, never on the main/master one.

Please see the main repository README file on how to obtain an account to my git instance.

Parts

123
QtyValueFootprintReferences
511N4148Diode_THT:D_DO-41_SOD81_P7.62mm_HorizontalD1, D2, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23 +35
410kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2, R3, R4, R5
310kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR6, R7, R8
1'Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW30
1,Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW44
1.Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW45
1/Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW47
10Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW40
11Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW1
110kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P15.24mm_HorizontalR9
12Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW8
13Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW10
14Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW17
1470Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
15Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW18
156pFCapacitor_THT:CP_Radial_Tantal_D6.0mm_P5.00mmC5
16Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW25
17Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW26
18Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW33
19Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW34
1;Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW48
1AButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW3
1BButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW21
1BACKSPACEButton_Switch_Keyboard:SW_Cherry_MX1A_2.00u_PlateSW41
1CButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW13
1CAPSLKfootprints:SW_TH_DPDT_Pushbutton_LatchedSW54
1CAPSLOCK_LEDLED_THT:LED_D5.0mmD9
1CTRLButton_Switch_Keyboard:SW_Cherry_MX1A_1.50u_PlateSW50
1DButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW12
1EButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW11
1FButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW15
1GButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW20
1HButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW23
1IButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW32
1JButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW28
1KButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW31
1Keyboard connectorConnector_PinHeader_2.54mm:PinHeader_2x17_P2.54mm_VerticalJ3
1LButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW36
1LSHIFTButton_Switch_Keyboard:SW_Cherry_MX1A_1.25u_PlateSW49
1MButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW29
1NButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW22
1OButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW35
1PButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW37
1PATOButton_Switch_Keyboard:SW_Cherry_MX1A_1.50u_PlateSW53
1QButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW2
1RButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW16
1RETURNButton_Switch_Keyboard:SW_Cherry_MX1A_2.25u_PlateSW52
1RSHIFTButton_Switch_Keyboard:SW_Cherry_MX1A_1.75u_PlateSW51
1SButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW6
1SPACEButton_Switch_Keyboard:SW_Cherry_MX1A_2.25u_PlateSW46
1TButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW19
1TABButton_Switch_Keyboard:SW_Cherry_MX1A_1.50u_PlateSW43
1TILDEButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW42
1UButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW27
1VButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW14
1WButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW7
1XButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW5
1YButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW24
1ZButton_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW4
1[Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW38
1]Button_Switch_Keyboard:SW_Cherry_MX1A_1.00u_PlateSW39

The 116 most common of 123 parts.

More from penguin86/pat80

1
  • 2 layersPat80, the printed circuit board in 3D

    Pat80

    penguin86/pat80

    Pat80 Home Computer is an attempt to develop the simplest possible Zilog Z80 based computer in 2021

    44 parts3

Similar boards

  • 2 layers30 × 30 mmReCamera Gimbal, the printed circuit board in 3D

    ReCamera Gimbal

    Seeed-Studio/OSHW-reCamera-Series

    reCamera is a series of open-source AI cameras.

    123 parts495Apache-2.0
  • 2 layers231.8 × 158.1 mm8-Bit CPU 32k, the printed circuit board in 3D

    8-Bit CPU 32k

    slu4coder/Minimal-64x4-Home-Computer

    My DIY TTL home computer with VGA and PS/2 and 4x the processing power of a Commodore C64 or Apple II.

    123 parts326
  • 2 layers100 × 100 mmCcpu, the printed circuit board in 3D

    Ccpu

    imihajlow/ccpu

    A 8-bit computer made of 74xx series logic gates and memory ICs.

    123 parts145
  • 2 layers89 × 55.5 mmMintypcb, the printed circuit board in 3D

    Mintypcb

    jackw01/pi-tin

    Open source raspberry pi handheld retro gaming console

    123 parts75CERN-OHL-W-2.0
  • 2 layers97.5 × 97.5 mmUd29, the printed circuit board in 3D

    Ud29

    profdc9/DRSSTC-PCB-Pack

    A pack of PCBs for a dual resonant solid state tesla coil setup. Pretty much everything you need.

    123 parts59
  • 2 layers100 × 100 mmTunerSection, the printed circuit board in 3D

    TunerSection

    profdc9/ModularTuner

    A Modular Antenna Tuner for a Phased Array Antenna System

    123 parts59
  • 2 layers321.5 × 116.7 mmIMACS Keyboard, the printed circuit board in 3D

    IMACS Keyboard

    UWARG/hardware

    PCB designs for the Waterloo Aerial Robotics Group

    123 parts59
  • 2 layers232.6 × 118.3 mmKrtkus, the printed circuit board in 3D

    Krtkus

    swift502/Krtkus

    Low profile 5x12 ortholinear keyboard design for choc/ks-33 switches

    123 parts45CC0-1.0

Questions

How big is the Keyboard PCB?

It measures 273.1 × 144.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Keyboard use?

123 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Keyboard KiCad files?

From the penguin86/pat80 repository on GitHub, at the commit this page was made from: the board is pat80-io-devices/keyboard/hardware/keyboard/keyboard.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Keyboard design in my own project?

Its repository states no licence, so its author keeps all rights: ask penguin86 before reusing the design.