Skip to the content
2 layers29.2 × 57.2 mm24 wires away, the printed circuit board in 3D

direct grid wire up

Size
29.2 × 57.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
6
Nets
49
Pads
130
Tracks, vias
332, 45
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
27 Apr 2026
Updated
5 Oct 2026

Overview

24 wires away is an open-source printed circuit board by ddolga, from the ddolga/24_wires_away repository on GitHub. It is a 2-layer board of 29.2 × 57.2 mm with 6 parts on 49 nets, routed with 332 tracks and 45 vias.

It is built around the 74HCT138D and TXS0108EPW. Its parts include 4 ICs and 2 connectors. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

README.md

24 Wires Away

A small keyboard controller board (2 layers, ~29 × 57 mm) that drives a full-size keyboard matrix over a single 24-wire connector: 16 rows + 8 columns = up to 128 keys.

A Pro Micro–sized controller does not have enough free GPIO for a matrix that size on its own, so the board expands its pins: 4 MCU pins are decoded into 16 row lines, and 8 MCU pins read the 8 columns through a buffer.

The board is designed to work with both 5 V controllers (Elite-C / ATmega32U4) and 3.3 V controllers with the same pinout (e.g. RP2040-based boards like the Elite-Pi or SparkFun Pro Micro RP2040).

Voltage compatibility

The matrix itself always runs at 5 V (VBUS). Each side of it is designed to tolerate either MCU voltage:

  • Rows (MCU → matrix): the 74HCT138 decoders run from VBUS. HCT inputs read anything above 2.0 V as high, so they accept both 3.3 V and 5 V logic. Their 5 V outputs only go to the matrix, never back to the MCU.
  • Columns (matrix → MCU): the 74LVC245 runs from the MCU's own VCC, so its outputs follow the controller's voltage. Its inputs tolerate 5 V at either supply voltage.

Requirement: the controller's pin 24 must provide 5 V from USB (VBUS), because that pin powers the decoders and pull-ups. This is true for the Elite-C and RP2040 Pro Micro–style boards. On a nice!nano, pin 24 is the battery input, so the board would get no 5 V there.

Main ICs

U1 — Pro Micro–compatible controller (Elite-C in the schematic)

Keebio's Elite-C: a Pro Micro–compatible module with USB-C, built around the Microchip ATmega32U4, an 8-bit AVR running at 5 V / 16 MHz with native USB. It runs the keyboard firmware (e.g. QMK) and shows up on the host as a USB HID keyboard. It also powers the rest of the board from USB (VBUS). 3.3 V boards with the same pinout fit the same footprint.

U3, U4 — 74HCT138 (3-to-8 line decoder/demultiplexer)

Each '138 takes a 3-bit address and pulls exactly one of its 8 outputs low (outputs are active-low). The two chips are cascaded into a 4-to-16 decoder that drives the 16 matrix rows:

  • PD1, PD0, PD4 → address inputs A0–A2 on both chips
  • PC6 → acts as the 4th address bit: it goes to U3's active-low enable (E0) and U4's active-high enable (E2), so PC6 = 0 selects U3 (rows 1–8) and PC6 = 1 selects U4 (rows 9–16)

The firmware scans the matrix by selecting one row at a time (driving it low) and reading the columns: a column reading low means the key at that row/column is pressed.

U2 — 74LVC245APW (octal bus transceiver, used as a one-way buffer)

Sits between the 8 matrix columns (B side) and 8 MCU pins (A side). DIR is tied low (data flows B → A, matrix → MCU), and OE is tied low (always enabled). It is powered from the MCU's VCC, which is what makes the column side work at 3.3 V or 5 V. In the schematic it uses KiCad's 74HC245 symbol, which has the same pinout.

NetJ1 pin74LVC245MCU pin
COL124B0 → A0PF4 (A3)
COL223B1 → A1PF5 (A2)
COL322B2 → A2PF6 (A1)
COL421B3 → A3PF7 (A0)
COL520B4 → A4PB1 (15)
COL619B5 → A5PB3 (14)
COL718B6 → A6PB2 (16)
COL817B7 → A7PB6 (10)

Passives

  • RN1, RN2 — 2 × 4-resistor 10 kΩ arrays (R_Array_Convex_4x0603) that pull COL1–COL8 up to VBUS. They're required because the 74LVC245's inputs must not float, and the MCU's internal pull-ups can't reach the matrix through the buffer.
  • C1–C3 — 100 nF 0603 decoupling capacitors: C1 for U2 (VCC), C2 for U3 and C3 for U4 (VBUS). On the PCB, place each one next to its chip's supply pin.

Connectors

  • J1 — JST PHD 2×12 (2.00 mm), the 24-wire keyboard matrix connector. Pins 1–16 are the rows (decoder outputs, U3 Y0–Y7 then U4 Y0–Y7), and pins 17–24 are the columns (COL8–COL1, through U2).
  • J3 — 6 solder-wire pads: VBUS, GND, and 4 spare MCU pins (PD7, PE6, PB4, PB5). Their purpose isn't labeled in the schematic. They might be meant for lock LEDs or other extras.

Unused controller pins: TX0/PD3, RX1/PD2, RST, and the extra Elite-C pads B7, D5, C7, F0, F1.

Status / to-do

  • PCB is out of date. The schematic was changed (TXS0108E → 74LVC245, plus RN1, RN2 and C1–C3), but the board hasn't been updated yet. Run Update PCB from Schematic, reroute U2 (same TSSOP-20 footprint, different pinout), and place the new parts.
  • Firmware: columns are active-low with external pull-ups, so don't enable the MCU's internal pull-ups on the column pins. They're harmless, but they do nothing here.
  • Ghosting: with 16 × 8 lines and no diodes on this board, pressing several keys at once can cause ghosting unless the keyboard matrix itself has diodes.

History

  • Oct 2026: replaced the TXS0108E level translator with a 74LVC245. The TXS0108E's A side is limited to 3.6 V, so it couldn't run from a 5 V controller, and its OE pin was tied to GND, which disabled it. Added column pull-ups and decoupling capacitors.

Parts

6
QtyValueFootprintReferences
274HCT138Package_SO:TSSOP-16_4.4x5mm_P0.65mmU3, U4
1Conn_01x06_PinLibrary:SolderWire-SMD-0.127sqmm_1x06_P3.7mm_D0.48mm_OD1mmJ3
1Conn_01x24_PinConnector_JST:JST_PHD_S24B-PHDSS_2x12_P2.00mm_HorizontalJ1
1Elite-CKeebio:Elite-C-castellated-24pin-holesU1
1TXS0108EPWPackage_SO:TSSOP-20_4.4x6.5mm_P0.65mmU2

Similar boards

  • 2 layers297.2 × 180.3 mm8bit computer, the printed circuit board in 3D

    8bit computer

    vascofazza/8bit-cpu

    Schematics & code for my 74LS-based 8-bit MK1 CPU

    377 parts317MIT
  • 2 layers138 × 96.9 mmISA Card, the printed circuit board in 3D

    ISA Card

    AkBKukU/CM153-Repro

    A reproduction of the Philips CM-153 LMSI controller

    161 parts145
  • 2 layersLM80C R6, the printed circuit board in 3D

    LM80C R6

    leomil72/LM80C

    A Z80-based homebrew computer withTMS9918, AY-3-8910, Z80 CTC, Z80 PIO, and Z80 SIO

    153 parts123GPL-3.0
  • 2 layers249.9 × 89.4 mmCSCvon8, the printed circuit board in 3D

    CSCvon8

    DoctorWkt/CSCvon8

    A crazy small 8-bit CPU built with only seventeen 7400-series chips.

    55 parts112GPL-3.0
  • 2 layers100 × 50 mmRc2014-ym2149, the printed circuit board in 3D

    Rc2014-ym2149

    electrified/rc2014-ym2149

    KiCad schematics and gerbers for a YM sound card for the RC2014. See it in action here: https://www.youtube.com/watch?v=-iLwi9FagFE

    37 parts78
  • 2 layers237.7 × 146.1 mmTipi peb, the printed circuit board in 3D

    Tipi peb

    jedimatt42/tipi

    TI-99/4A to Raspberry PI messaging through console sideport

    51 parts77
  • 4 layers184.2 × 169.5 mmSB mini II, the printed circuit board in 3D

    SB mini II

    simonboak/SB-mini-II

    A homebrewed Apple II clone

    97 parts76MIT
  • 2 layers100 × 50 mmSN76489, the printed circuit board in 3D

    SN76489

    jblang/SN76489

    SN76489 Sound Card for RC2014

    23 parts52

Questions

How big is the 24 wires away PCB?

It measures 29.2 × 57.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the 24 wires away use?

6 parts, built around the 74HCT138D and TXS0108EPW. 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 24 wires away KiCad files?

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

Can I use the 24 wires away design in my own project?

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