Skip to content

Hand-Wired Keyboard

You'll build a keyboard from forty to sixty switches, a diode for each one and a single controller with no circuit board at all, flash a keymap you wrote, and type on it for a month.

About

A hand-wired keyboard is the most hands-on piece of hardware you'll use every day. It's forty to sixty switches, a diode for each one, a grid of wire and a microcontroller running QMK or ZMK, with no PCB needed. A small layout like a 40 percent keeps the wiring to two evenings, and a plate from a laser cutter or a 3D printer (a makerspace or a friend with a printer is the cheap route) holds it all together. The parts come to 40 to 70 dollars, less if the switches are used. It's a lot of identical soldering, which is exactly how you get good at soldering. Open a window for the flux smoke, park the iron in its stand every time you let go of it, and wash your hands after, since hobby solder often has lead in it.

At a glance

Per requirement
35 XP
Completion bonus
300 XP
Requirements
6
Takes
Two weekends, then a month
Skill level
Intermediate (months of practice)
Cost
Moderate (under $100)
Supplies
You need some
Where
At home
Other people
On your own
Locked for now
Earn two more Uncommon badges in Mechanical Keyboards to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Choose a layout and gather switches, caps, diodes, a plate and a controller. A 40 to 60 key layout, a laser-cut or 3D-printed plate, 1N4148 diodes and a Pro Micro or an RP2040 board are the usual pieces. Used switches are fine. Take a photo of the parts laid out with the layout drawing. Photo
  2. 2
    Mount the switches and solder the diode matrix, one diode per switch in rows and columns. The diodes all point the same way, with the band on the same side, so check twice before you solder the first row. Bend the leg of each diode to reach the next switch so the diode legs become the row wire. Take a photo of the finished matrix from behind, close enough to see the bands. Photo
  3. 3
    Wire the rows and columns to the controller and record which pin is which. Strip and solder a wire from each row and column to a numbered pin, and draw the pin map on paper, because you'll need it for the firmware and again in a year when you've forgotten. Take a photo of the pin map next to the wired controller. Photo
  4. 4
    Write a keyboard definition and build QMK or ZMK with your matrix and layout. This board isn't in anyone's repository, so you'll define the matrix pins and the layout yourself. The hand-wiring guides in both projects walk through the first file. Film the board being recognized and typing a full sentence. Video
  5. 5
    Find a dead key with a multimeter and fix it, or show how you'd look. There's nearly always at least one on a first build. Use continuity mode across the diode and along the row wire to find the open joint, then reflow it. Take a photo of the meter probes on the bad joint with the reading showing, and tell us which key it was and what the fix turned out to be. If every key worked first time, show the probes on one diode in continuity mode and tell us which joint you'd check first if a key died. Photo
  6. 6
    Use it as your only keyboard for a month. Take a photo of it on your desk with the date, and tell us in a sentence what you changed in the layout after week one and whether that change survived week four. Photo