

24 wires away
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
274HCT138D
SO-16-40℃~+125℃ 160uA 20ns@4.5V,50pF 3/8 4.5V~5.5V 4mA 4mA 74HCT Decoder Single Supply SOIC-16 Signal Switches, Multiplexers, Decoders ROHSNexperiaSignal Switches / Encoders & Decoders / MultiplexersTXS0108EPW
TSSOP-20-40℃~+85℃ 1 1.4V~3.6V 1.65V~5.5V 60Mbps 8 Automatic direction detection、Output enable high-impedance、Integrated pull-up resistor Bidirectional Level translator Push-Pull、Open-drain TSSOP-20 Translators, Level Shifters ROHSTexas InstrumentsTranslators, Level Shifters
README
README.md24 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 inputsA0–A2on both chipsPC6→ acts as the 4th address bit: it goes to U3's active-low enable (E0) and U4's active-high enable (E2), soPC6 = 0selects U3 (rows 1–8) andPC6 = 1selects 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.
| Net | J1 pin | 74LVC245 | MCU pin |
|---|---|---|---|
| COL1 | 24 | B0 → A0 | PF4 (A3) |
| COL2 | 23 | B1 → A1 | PF5 (A2) |
| COL3 | 22 | B2 → A2 | PF6 (A1) |
| COL4 | 21 | B3 → A3 | PF7 (A0) |
| COL5 | 20 | B4 → A4 | PB1 (15) |
| COL6 | 19 | B5 → A5 | PB3 (14) |
| COL7 | 18 | B6 → A6 | PB2 (16) |
| COL8 | 17 | B7 → A7 | PB6 (10) |
Passives
- RN1, RN2 — 2 × 4-resistor 10 kΩ arrays (
R_Array_Convex_4x0603) that pullCOL1–COL8up toVBUS. 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–Y7then U4Y0–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
OEpin was tied to GND, which disabled it. Added column pull-ups and decoupling capacitors.
Parts
6| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 74HCT138 | Package_SO:TSSOP-16_4.4x5mm_P0.65mm | U3, U4 |
| 1 | Conn_01x06_Pin | Library:SolderWire-SMD-0.127sqmm_1x06_P3.7mm_D0.48mm_OD1mm | J3 |
| 1 | Conn_01x24_Pin | Connector_JST:JST_PHD_S24B-PHDSS_2x12_P2.00mm_Horizontal | J1 |
| 1 | Elite-C | Keebio:Elite-C-castellated-24pin-holes | U1 |
| 1 | TXS0108EPW | Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm | U2 |
Similar boards
- 2 layers297.2 × 180.3 mm

- 2 layers138 × 96.9 mm

- 2 layers

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 mm

CSCvon8
DoctorWkt/CSCvon8
A crazy small 8-bit CPU built with only seventeen 7400-series chips.
55 parts112GPL-3.0 - 2 layers100 × 50 mm

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 mm

- 4 layers184.2 × 169.5 mm

- 2 layers100 × 50 mm

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.