๐Ÿ› ๏ธ HandsOnCoach
howto.support / tech.howto.support / How to Build a Handwired Mechanical Keyboard
Tech & Gaming โšก Advanced โฑ๏ธ 10 - 14 hours

How to Build a Handwired Mechanical Keyboard

Construct a monolithic 546% custom mechanical mega-keyboard by handwiring chained switch matrices across linked chassis zones using QMK firmware.

How to use this page
  1. Read the tools, materials, safety notes, and steps below for free.
  2. Tap Start Camera Coach when you want hands-free voice help.
  3. Allow camera and microphone. Point your phone at the work; the coach watches your progress and tells you the next step.
Real-Time AI Vision & Voice Coaching Ready
Point your phone at your work. The coach watches, checks each step, and warns you before a mistake costs you.
Start Camera Coach โ†’
Your first guide is free โ€” this one can be it.
Start the camera coach on this guide and it becomes your free one: 30 minutes of live coaching, no signup, no card. One free guide per person โ€” starting the coach here claims yours.
Coach this guide free โ†’
The guide is free. Live coaching is the paid part.
Reading, pausing and idle time never count โ€” only time the coach is actively watching.
$1.99
This guide only
3 hours of coaching, good for a year. Top up another 3 hours any time for $1.99.
Unlock this guide
$4.99 best for one project
All-Access, 30 days
Every guide, up to 15 hours โ€” 5ร— the coaching time of a single unlock for 2.5ร— the price, and you are not locked to one guide.
Get 30 days โ€” $4.99
$39.99
All-Access, 1 year
Every guide, up to 50 hours โ€” about 80ยข an hour, the cheapest way to coach if you build often.
Get a year โ€” $39.99
One-time PayPal payments โ€” nothing auto-renews. Want to try it first? Change a Flat Tire and Fix an Unsolvable Rubik's Cube are free to coach on, for everyone, forever.
Already bought? Restore your purchase.

๐Ÿงฐ Required Tools & Equipment

  • โœ“ Temperature-controlled soldering station
  • โœ“ Precision wire strippers (28-30 AWG)
  • โœ“ Digital multimeter with continuity beeper
  • โœ“ Flush cutters
  • โœ“ Hex driver set (M2/M3)
  • โœ“ Anti-static tweezers

๐Ÿ“ฆ Materials & Supplies

  • โœ“ 300+ MX-style mechanical switches
  • โœ“ 1N4148 switching diodes (300+ pcs)
  • โœ“ 3x RP2040-Zero or Pro Micro controllers
  • โœ“ Laser-cut acrylic switch plates and baseplates
  • โœ“ Solid core 24 AWG and 28 AWG hookup wire
  • โœ“ M3 brass standoffs and countersunk screws
  • โœ“ TRRS jacks and 4-pole interconnect cables

โš ๏ธ Safety Checkpoints & Warnings

๐Ÿ“‹ Step-by-Step Guide (7 Steps)

1

Plate Preparation and Switch Installation

Align the multi-segment laser-cut acrylic top plates over your workbench and secure plate joining brackets with M3 hardware. Snap MX-style switches firmly into every mounting cutout until both side clips engage with an audible click. Orient every switch uniformly with the LED/contact pins facing the top edge to standardize your wiring rows.

๐Ÿ‘๏ธ Camera AI Checkpoint
  • โ€ข All switch bodies sit flush against the acrylic plate with no tilted housings
  • โ€ข Switch contact pins are uniformly aligned horizontally across all extended sections
๐Ÿ›‘ Watch Out For
  • โ€ข Installing switches backwards in specific zones, which reverses diode polarity during soldering
  • โ€ข Cracking brittle acrylic plates by over-torquing structural M3 joiner screws
โš ๏ธ Safety Note: Handle laser-cut acrylic sheets carefully; fresh edges can have sharp corners that cut fingers during handling.
2

Bending and Soldering the Diode Matrix Rows

Bend the black-banded cathode leg of a 1N4148 diode at a 90-degree angle right at the diode body. Solder the non-banded anode leg directly to the top-left pin of each mechanical switch. Daisy-chain the cathode legs across each horizontal row, snipping excess leads with flush cutters to maintain a low vertical profile.

๐Ÿ‘๏ธ Camera AI Checkpoint
  • โ€ข Every switch has a diode soldered to its left pin with the black band facing downstream
  • โ€ข A continuous, insulated horizontal bus connects every diode along each individual matrix row
๐Ÿ›‘ Watch Out For
  • โ€ข Inverting diode polarity on random switches, resulting in unregisterable or ghosting keys
  • โ€ข Overheating switch pins, which melts internal plastic leaves and ruins switch actuation
โš ๏ธ Safety Note: Set your soldering iron between 330ยฐC and 350ยฐC to minimize thermal dwell time on delicate component leads.
3

Routing and Soldering the Matrix Columns

Strip small 2mm windows into 28 AWG insulated hookup wire corresponding to each vertical switch pin interval. Solder the exposed copper directly to the open right-hand contact pin of each switch down the entire column. Keep column wires elevated slightly above row lines or use fully insulated cross-overs to prevent unintended shorts.

๐Ÿ‘๏ธ Camera AI Checkpoint
  • โ€ข Vertical column wires run cleanly perpendicular to horizontal diode rows without contact
  • โ€ข Solder joints form shiny, concave fillets over the right switch contact pins
๐Ÿ›‘ Watch Out For
  • โ€ข Melting wire insulation during cross-overs, creating hidden row-to-column short circuits
  • โ€ข Using excessively thick wire gauges that prevent bottom case plates from closing flush
โš ๏ธ Safety Note: Snip wire cutoffs away from your face and wear eye protection against flying copper fragments.
4

Controller Pinout Wiring and Master-Slave Links

Mount your primary RP2040 controller in the central bay and secondary controllers in peripheral wings. Solder dedicated row and column bus lines to assigned GPIO pins on each board. Connect TX, RX, VCC, and GND pins between controllers using TRRS breakout jacks to enable high-speed serial communication across the ultra-wide layout.

๐Ÿ‘๏ธ Camera AI Checkpoint
  • โ€ข Every row and column bus terminates neatly at its designated GPIO pad
  • โ€ข Interconnect TRRS breakout pins show zero ohms continuity across linked controller zones
๐Ÿ›‘ Watch Out For
  • โ€ข Crossing TX and RX serial lines between controllers, preventing secondary zones from enumerating
  • โ€ข Soldering to non-GPIO or boot-strap pins that lock the microcontrollers during startup
โš ๏ธ Safety Note: Never hot-plug TRRS interconnect cables while the master controller is powered via USB, as 5V can short to data pins.
5

Electrical Continuity and Matrix Validation

Set your digital multimeter to continuity mode and ground the negative probe on a column line. Touch the positive probe to corresponding row outputs while manually depressing each switch to confirm the circuit closes. Repeat this process systematically across all zones to verify no dead switches or crossed traces exist before sealing the frame.

๐Ÿ‘๏ธ Camera AI Checkpoint
  • โ€ข Multimeter emits a solid tone only when a switch is fully actuated
  • โ€ข Zero electrical continuity is measured between adjacent rows and columns when keys are unpressed
๐Ÿ›‘ Watch Out For
  • โ€ข Skipping continuity testing before flashing, making hardware debugging significantly harder later
  • โ€ข Ignoring intermittent beep signals caused by cold solder joints on matrix junctions
โš ๏ธ Safety Note: Ensure no power supply or USB cable is connected while performing static multimeter resistance and continuity checks.
6

Firmware Compilation, Flashing, and Key Testing

Define your custom pin matrix array and split-transport settings in QMK or Vial firmware source files. Compile the `.uf2` binaries and flash each controller by holding the boot button while inserting the USB cable. Launch an interactive keyboard testing utility to press every single key, ensuring all 500%+ inputs register uniquely with zero debounce chatter.

๐Ÿ‘๏ธ Camera AI Checkpoint
  • โ€ข Microcontroller mounts successfully as a HID keyboard device on your PC
  • โ€ข Graphical key tester lights up green for all matrix locations across the primary and extended zones
๐Ÿ›‘ Watch Out For
  • โ€ข Mismatched row/column matrix sizes in the header configuration file causing shifted keymaps
  • โ€ข Forgetting to assign unique EE_HANDS or master/slave definitions to secondary controllers
โš ๏ธ Safety Note: Safely unmount controller flash drives before unplugging to prevent firmware binary corruption.
7

Final Chassis Enclosure and Keycap Assembly

Install non-conductive insulating foam along the bottom acrylic baseplate to shield exposed solder joints. Fasten the bottom plate to the upper switch assembly using M3 brass standoffs and nylon-threaded nuts. Mount your preferred keycap sets across all alphas, macro clusters, and auxiliary functional decks to complete the mega-board.

๐Ÿ‘๏ธ Camera AI Checkpoint
  • โ€ข Baseplate is completely rigid with no bulging over thick internal wiring bundles
  • โ€ข Keycaps sit level across all clusters without rubbing against adjacent switch stems or frame borders
๐Ÿ›‘ Watch Out For
  • โ€ข Omitting bottom insulation, allowing solder tails to pierce chassis foil and short the matrix
  • โ€ข Overtightening peripheral screws, causing the long mega-keyboard assembly to bow upwards in the center
โš ๏ธ Safety Note: Ensure rubber bumper feet are adhered beneath the chassis to prevent the heavy assembly from sliding during use.

Credit: inspired by an original tutorial by Glebo โ€” watch the original on YouTube.

Don’t have everything?

More in Tech & Gaming