Custom Mechanical Keyboard
Sometimes what you want doesn't exist, so you have to make it.

In 2015, I spent a huge amount of my time away from my workstation working on my ultra book. While it was wonderfully portable, it wasn't the most ergonomic to use for hours on end. In particular, I missed having a real keyboard. The solution? Make my own keyboard that would slot nicely onto the body of the laptop over the built in keyboard, and bring back the missing -clak- of a proper mechanical switch.

The original plan was to be two aluminum plates (matching the laptop body) machined with bolts in the four corners, with sandwiched rings of natural wood between to form a box. The top plate was to have switch holes for mounting, and the bottom was to be plain, with rubber feet attached to the nuts of each of the four bolts. I sized it carefully to sit neatly over the built in keyboard, without blocking the trackpad, and only overhanging the sides enough for the rubber feet to key it in place.
I was in need of an elective, and we had a new maker space with an associated class that would fill the need, and let me get credit while I worked on my project! Part of the design process that lead me to the aluminum top plate was an available CNC machine, with a TA who assured me it would be able to process my specified aluminum sheet so long as I modeled the tool path and provided the cutting bit.
The first router bit broke almost instantly.

Try two didn’t get much further, time to come up with a new plan.
V 2.0 Wood body! In hind sight I think I was likely better off with the wood body anyway, It sat nicely against the aluminum laptop without scratching it, and going with the wood box sides rather than a sandwich construction allowed me to design it so the top and bottom keyed in with the upper and lower indent in the laptop body for the built in keypad.

I went to Michael’s and got several pieces of balsa wood, thin enough to carefully cut with an xacto knife. After making all the cuts in the first layer, I created my own plywood by reinforcing each sheet with wood glue, bonding each layer 1 at a time with the wood grain perpendicular to the adjacent layers gain more rigidity.
First test cuts all the way through plywood!

And the first switch in place to test fit.

perfect!

And a key cap for a real test.

Looks good, only 71 more to go.

Getting there.

Still going.

Side view of the plywood.

All the switch holes are cut and sanded! Time to find key caps for all of them, and make any final changes to the layout.

This is a test of the full layout with cherry mx brown switches.

These cherry mx brown switches aren’t staying though.
One of the important customization’s for this project other than the layout is the switch type. I am using a custom switch as well which is composed of the spring from a cherry mx blue switch, and the stem from a chery mx clear. This involves opening up 72 blue switches to harvest the springs, and then opening up 72 more clear switches to replace those springs. This is the recipe for what was at the time called an "ergo clear". These unfortunately couldn't be purchased at that time, and were only possible by custom modification. (pics below!) In years since they gained enough popularity that several brands made a version of them, with cherry themselves finally selling the recipe first party!
Whole (opened) switch (blue).

Left to right…
Switch body with gold leaf spring contacts.
Spring
Stem
Top of body

The custom switches, clear stem is marked blue with marker to signify that it has been modified to a blue spring with the clear stem.

Full layout before putting all the custom switches in.

Now that all the custom switches are in, time for wiring up the matrix!

Each switch also contains a diode to prevent key ghosting. This means every switch has 2 solder points to connect the diode to one of the switch contacts. The third solder point is to connect the diode’s other end to the rows of the switch matrix.

And now for the columns. The wiring is all color coded, and has to be perfect, as the bottom of this keyboard is left open! Each column is wired beneath the rows so everything stays in place.

A picture during the process with a few of the columns done. You can also see the space switch stabilizer. This is needed for wide keys so that no matter where you strike the key, the entire key depresses evenly.

Hours later, finally done. 288 total solder joints so far, and the switch matrix is done.

Time to finish the wood case. The front and back sides are glued on, and a mountain of hard drives are providing pressure!
Close up so you can also see the wiring, and how much space it takes up in the body.

Waiting for glue to dry. Might as well weigh down the keyboard in interesting ways! This is now with the sides added, which is why the weight is focused on those ends.
All glued! I’ve added the teensy 2.0 micro controller, and the mini usb extension. 42 more solder joints with 21 new leads. It’s all wired up now!

Top view, the body is now all sanded smooth and a notch is filed where the usb cable plugs in so that you can see where to plug in without being able to actually see the back of the body.
Normal view, finished product!

And here it is working!

The logic to get everything working is accomplished with a little c code and a teensy2.0. I was able to provide full NKRO (n key roll over) over usb, which means that every key can be actuated at once with this keyboard without error. I also was able to shape the wood body to sit nicely on my laptop. The back side of the case fits between the 2nd and 3rd rows of keys that are build in, which stops the keyboard from sliding in use. The keyboard is composed in software of 3 “layers” the first layer being normal functionality, and 2nd being F keys for each of the number keys, a power button as the backspace key, and numerous other text navigation (end, home, pgup, pgdown, etc.) and media keys. The final layer can be activated by either a toggle or a momentary switch, and allows the keyboard to function as a mouse. The arrow keys move the cursor, right shift and pause are left and right click, and the WASD keys function as scroll wheels.
Bill of materials:
Part qty price source
cherry brown ~150 * Cherry mx8100 @ $35 150+ switches
cherry mx clear 72 $26 ebay
cherry mx blue 104 $0 Found a discarded keyboard
Doubleshot keycaps ~60 $0 Found a discarded keyboard
keycaps ~150 * Cherry mx8100 @ $35 150+ keycaps
Teensy 2.0 1 $16 Microcenter
wood 3 + 2 $15 Michaels
Wire – – Taken from old scrap ethernet
total = $57









