Skip to the content
2 layers305.1 × 161.5 mmBeanBoard, the printed circuit board in 3D

QWERTY Keyboard, simple LCD display and GPIO for BeanZee

Size
305.1 × 161.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
167
Nets
154
Pads
725
Tracks, vias
1,056, 88
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
1 Feb 2025
Updated
21 Feb 2026

Overview

BeanBoard is an open-source printed circuit board by PainfulDiodes, from the PainfulDiodes/BeanBoard repository on GitHub, published under the MIT licence. It is a 2-layer board of 305.1 × 161.5 mm with 167 parts on 154 nets, routed with 1,056 tracks and 88 vias.

It is built around the SN74LS373N, 74LS04PC and 74LS32SC. Its parts include 64 diodes, 64 switches, 13 connectors, 9 resistors and 8 capacitors. It belongs with the lEDs and displays and keyboards and input boards of this library.

Main components

3

README

README.md

BeanBoard

QWERTY Keyboard, simple LCD display and GPIO for BeanZee

Design

Keyboard

Aiming for the simplest possible design, using a simple matrix of switches.

Diodes are used with each switch to prevent ghosting.

The circuit expects the CPU to send a "strobe" to a keyboard output port. A latch is used to capture the strobe - so that the state persists after the CPU has stopped outputting to the port. This strobe should have only one bit set high. This is the "live" row.

Then the CPU will read from a keyboard input port to sense which columns are high - columns will be activated by switches being pressed. A buffer is used to gate the columns onto the data bus.

The CPU will loop back and successively set each strobe bit high. Having gone through each bit and then read back the columns, we will have 64 bits of data (8x8) representing which keys are being pressed.

The 8 electronic rows are arranged as 4 physical rows, pairing electronic rows consecutively: 0+1, 2+3, 4+5, 6+7

LCD

The Hitachi HD44780 LCD controller has been around since the 1980's and is still popular to control character-based LCD displays:

A parallel interface makes it CPU bus friendly - with 8 data bits, enable, R/W and register select inputs.

GPIO

Repeating the keyboard logic allows for 8 general purpose binary outputs and inputs which can be used for experimentation.

Port address decoding

A 3 to 8 decoder has been used to select pairs of ports. A0 is then used to chose between ports in a pair. The BeanZee board has the logic to separate ports based on A0, and there's a similar arrangement here for LCD. The keyboard ignores A0.

KBD_PORT equ 2 ; or 3
LCD_CTRL equ 4 ; LCD control port
LCD_DATA equ 5 ; LCD data port
GPIO equ 6 ; or 7

Z80 bus

The BeanZee Z80 bus is extended on a BeanBoard connector to allow for expansion. Note that the MREQ_enable jumper is also extended to allow the memory select logic to be changed.

Schematic

BeanBoard Schematic

Parts

167
QtyValueFootprintReferences
641N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD00, D01, D02, D03, D04, D05, D06, D07, D10, D11, D12, D13, D14, D15, D16, D17 +48
64SW_Push_45degButton_Switch_Keyboard_alt:SW_Cherry_MX_1.00u_PCB_altSW00, SW01, SW02, SW03, SW04, SW05, SW06, SW07, SW10, SW11, SW12, SW13, SW14, SW15, SW16, SW17 +48
810kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR1, R2, R3, R4, R5, R6, R7, R8
70.1uFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mmC1, C2, C3, C4, C5, C6, C7
274LS244Package_DIP:DIP-20_W7.62mm_SocketU3, U5
2PowerConnector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_VerticalJ12, J13
2SN74LS373Package_DIP:DIP-20_W7.62mm_SocketU2, U4
1100uFCapacitor_THT:CP_Radial_D5.0mm_P2.00mmC8
1220RResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR9
150kPotentiometer_THD_vertical:Pot_THD_vertical_1x03_P2.54mmRV1
174LS04Package_DIP:DIP-14_W7.62mm_SocketU7
174LS138Package_DIP:DIP-16_W7.62mm_SocketU1
174LS32Package_DIP:DIP-14_W7.62mm_SocketU6
1AddressConnector_PinSocket_2.54mm:PinSocket_1x16_P2.54mm_VerticalJ10
1BZ_AddressConnector_PinSocket_2.54mm:PinSocket_1x16_P2.54mm_VerticalJ1
1BZ_ControlConnector_PinSocket_2.54mm:PinSocket_1x07_P2.54mm_VerticalJ3
1BZ_DataConnector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalJ2
1BZ_IORQ_enableConnector_PinSocket_2.54mm_alt:PinSocket_1x03_P2.54mm_Vertical_altJ5
1BZ_MREQ_enableConnector_PinSocket_2.54mm_alt:PinSocket_1x03_P2.54mm_Vertical_altJ6
1BZ_PowerConnector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_VerticalJ4
1Control/DataConnector_PinSocket_2.54mm:PinSocket_1x16_P2.54mm_VerticalJ11
1GPIConnector_PinSocket_2.54mm_alt:PinSocket_1x10_P2.54mm_Vertical_altJ9
1GPOConnector_PinSocket_2.54mm_alt:PinSocket_1x10_P2.54mm_Vertical_alt2J8
1LCDConnector_PinSocket_2.54mm:PinSocket_1x16_P2.54mm_VerticalJ7
1MREQ_enableConnector_PinSocket_2.54mm_alt:PinSocket_1x03_P2.54mm_Vertical_altJP1

Similar boards

  • 4 layers101.6 × 76.2 mm8051dumper, the printed circuit board in 3D

    8051dumper

    JohnDMcMaster/8051dumper

    by NF6X. Forked from: https://gitlab.com/NF6X_Retrocomputing/8051dumper

    41 parts27
  • 2 layers237.5 × 102.9 mmInstruction, the printed circuit board in 3D

    Instruction

    jes/scamp-cpu

    A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system.

    112 parts301Unlicense
  • 2 layers370.8 × 298.5 mm8 Bit Computer, the printed circuit board in 3D

    8 Bit Computer

    The-Invent0r/8-bit-Computer-PCB

    These are the KiCAD files for my 8-Bit Computer.

    323 parts142
  • 2 layers134.6 × 208.3 mmTs2, the printed circuit board in 3D

    Ts2

    jefftranter/68000

    Code related to the Motorola 68000 microprocessor.

    110 parts133
  • 2 layers114.3 × 106.7 mmXt ide, the printed circuit board in 3D

    Xt ide

    glitchwrks/xt_ide

    XT-IDE 8-Bit IDE Controller

    46 parts126GPL-3.0
  • 2 layers407 × 184 mmTRS-80-Model I G E1, the printed circuit board in 3D

    TRS-80-Model I G E1

    RetroStack/TRS-80-Model-I-G-E1

    Hardware Replica of the TRS-80 Model I Revision G

    230 parts57MIT
  • 4 layers337.6 × 105.7 mmISA CGA, the printed circuit board in 3D

    ISA CGA

    hkzlab/CGA_Redux

    The Color Graphics Adapter Redux board is a more or less faithful clone of the original IBM CGA, based on the original schematics

    170 parts56
  • 2 layers350 × 224.3 mmConsole, the printed circuit board in 3D

    Console

    danwerner21/TI99_22

    a 2022 replica of the classic TI/994a, using obtainable parts

    251 parts50

Questions

How big is the BeanBoard PCB?

It measures 305.1 × 161.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the BeanBoard use?

167 parts, built around the SN74LS373N, 74LS04PC and 74LS32SC. 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 BeanBoard KiCad files?

From the PainfulDiodes/BeanBoard repository on GitHub, at the commit this page was made from: the board is kicad/BeanBoard.kicad_pcb and its schematic kicad/BeanBoard.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the BeanBoard design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).