img of my keyboard
congrats if you got catfished by the keyboard photo lol. it's lowk chopped cheese but it's cool... right?

keyboard

2025 – 2026
fusion 360kicadkb2040kmk / circuitpythonpcb designresin printingwaterjetcnc machining

a fully custom 60% mechanical keyboard built from scratch: a hand-designed double-sided pcb, resin-printed cherry-profile keycaps, a waterjet-cut polycarbonate plate, and a screwless case modeled in fusion 360. the design is inspired by the tofu60 and the wooting 60he — minimal, low-profile, and built around a kb2040 running kmk.

i started with a 2x4 macropad first to learn the whole workflow — schematic, pcb routing, milling, soldering, firmware, and macros — before committing to the full 60% board. that turned out to be a very good idea.

start of a story

so mr. christy during the start of my junior year, mr. christy notified me that he had a bunch of kb2040 microcontrollers which he gets when he orders from adafruit. he wasn't too sure what it was, but he told me that it could be used for keyboards or something like that, and as a keyboard fanatic, that's something i wanted to do.

the process

so, after a lot of research about how keyboards worked, i finally grapsed it.

you can target a specific key with a digital pin on any microcontroller, but obviously microcontrollers don't have 61 different pins to support each key

to counteract this, many keyboards use a 5x14 matrix (for standard 60% keyboards) where clicking a specific key would be mapped through the specific index on the column and row.

the problem, however, is that the kb2040 doesn't have enough pins so i opted for a 5x13 matrix where the = and ] keys lie on r1. although this doesn't matter when it comes to the keyboard itself, it make wiring those two keys slightly harder

furthermore, diodes are also used to prevent ghosting in matricies (ghosting is when a electricity flows backwards and presses a key that i didn't actually press).

in the end, the bom was 61 switches (htx latte linear switches), 61 sod-123 diodes, 6 keyboard stabilizers, and a kb2040.

this is what the schematic and pcb looked like:

keyboard schematic keyboard pcb

after converting to a 3d model, i realized i had most of the keys backwards, so i went back to clean up the wiring and fix most of the keys for the model. in the end, it looked like this:

soldered front side of keyboard pcb soldered back side of keyboard pcb

as you can tell, there are a lot of other issues that i never fixed. more on that when the pcbs came in the mail and i realized my error

pcb + soldering

now that i have my experience, i know there's quite a few issues with the pcb

however, i didn't realize this when i was sending it out (also forgot screwholes) so therefore, it caused a lot of problems when it came to mounting it on the case but also soldering that one diode (as it is needed)

so i soldered everything like normal, and this was the final product

fixed smd sod123 issue

for some reason decided to put smd diodes at the same location as an smd controller. while this could be fixed by using 90degree pin headers, it just felt weird, so i actually had to solder the diode elsewhere and wiring it to it's pads

fixed smd sod123 issue

with this done, i tested the software i made prior and made sure everything worked

software stuff

the kb2040 is unique as it supports kmk and qmk (qmk is based in c, and kmk is based in circuitpython). since i trusted my python knowledge more than my c knowledge, i decided to code the entire thing using circuitpython

after flashing the kb2040 with circuitpython and looking at example code, i started working on the code for the keyboard, mapping each key out in a matrix and creating the fn layer as well

print("Starting")

import board

from kmk.kmk_keyboard import KMKKeyboard
from kmk.keys import KC
from kmk.scanners import DiodeOrientation
from kmk.modules.layers import Layers
from kmk.extensions.media_keys import MediaKeys

keyboard = KMKKeyboard()

keyboard.modules.append(Layers())
keyboard.extensions.append(MediaKeys())

keyboard.col_pins = (
    board.D5, board.D6, board.D7, board.D8, board.D9, board.D10, board.MOSI,
    board.MISO, board.SCK, board.A0, board.A1, board.A2, board.A3)

    keyboard.row_pins = (board.D0, board.D1, board.D2, board.D3, board.D4)
    keyboard.diode_orientation = DiodeOrientation.COL2ROW

    keyboard.keymap = [
        # base layer
        [
            KC.ESC, KC.N1, KC.N2, KC.N3, KC.N4, KC.N5, KC.N6, KC.N7, KC.N8, KC.N9, KC.N0, KC.MINS, KC.BSPC,
            KC.TAB, KC.Q, KC.W, KC.E, KC.R, KC.T, KC.Y, KC.U, KC.I, KC.O, KC.P, KC.LBRC, KC.BSLS,
            KC.CAPS, KC.A, KC.S, KC.D, KC.F, KC.G, KC.H, KC.J, KC.K, KC.L, KC.SCLN, KC.QUOT, KC.ENT,
            KC.LSFT, KC.Z, KC.X, KC.C, KC.V, KC.B, KC.N, KC.M, KC.COMM, KC.DOT, KC.SLSH, KC.NO, KC.RSFT,
            KC.LCTL, KC.LCMD, KC.LALT, KC.NO, KC.NO, KC.SPC, KC.EQL, KC.RBRC, KC.NO, KC.RALT, KC.RCMD, KC.MO(1), KC.RCTL

        ],

        # fn layer
            [
                KC.GRV, KC.F1, KC.F2, KC.F3, KC.F4, KC.F5, KC.F6, KC.F7, KC.F8, KC.F9, KC.F10, KC.F11, KC.DEL,
                KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.UP, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS,
                KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.LEFT, KC.DOWN, KC.RGHT, KC.TRNS, KC.TRNS, KC.TRNS,
                KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.MUTE, KC.VOLD, KC.VOLU, KC.TRNS, KC.TRNS, KC.TRNS,
                KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.F12, KC.TRNS, KC.TRNS, KC.PGDN, KC.PGUP, KC.TRNS, KC.HOME
            ]
        ]

if __name__ == "__main__":
    keyboard.go() 

that was the entire code, and with the pcb done, i was able to test all the keys, which ended up working.

keycaps

i was uncertain if i wanted to make keycaps or just buy them. however, i never realized that i oriented the "shift" key incorrectly. so although i intended to make it with standard keycaps, i had to end up making my own

because of this, a normal "shift" key wouldn't work so i would have to make my own keycaps

made a bunch of keycaps out of pla and eventually out of resin, but the resin printer had other ideas

i didn't want to orient the keycaps so it prints with the supports on the surface of the keycaps, but for some reason the resin printer would mess up something if it wasn't printed like that, so sadly they remained imperfect. even after lots of sanding and repainting over them, some imperfection / white spots remained on the keycaps

keycaps i resin printed more keycaps top of keycaps after sanding

case design / mounting:

so i got inspired by a lot of different cases. optimum wooting and also the tofu60 v3 and tried implementing their mounting methods as well

optimum wooting tofu60 v3
first image is the optimum wooting, second image is the tofu60

my first case design was legit a rectangle with a hole for the usb-cable. nothing special as i tried implementing the gasket mounting that the tofu60 has. (i didn't want to use screws, and also forgot screw holes in the pcb)

so the goal was tho use silicone bowls that the tofu60 has to hold up the pcb. while we didn't have silicone, i was planning on printing them with tpu (or potentially buying them)

silicone bowls on the tofu60
gasket mounting on the tofu60 v2, as the v3 uses an improved method but also didn't come out when i was working on this at this time.

evetnaully, i pivoted to a design with leaf springs and a top plate to hold the pcb together (an idea from tim hunt thought of)

screw case design screw case design img 2

i figured this design was correct, but then i realized one day that my charging port was slanted (never occured to me that was abnormal for some reason) and i realized it was because i slanted the keyboard wrong. it shouldn't be slanted upwards, but rather downwards

correct slant that i didn't have incorrect keyboard caes slant that i had
the first image demostraits the proper slant of a keyboard. the second image shows what i previously had

because of this, i had to redesign my case. however, i started looking at using a silicone friction fit pad to hold the pcb in place of the keyboard (what the opimum wooting uses)

silicone molding + pcb pad

one of the old seniors matt helped me by teaching me how to make the mold and also helped me make it.

even though we made the mold properly and everything, the design was too thin, so creating a silicone friction fit pad wouldn't work. i also tried printing it with tpu, but found similar results to the silicone

failed silicone mold

in addition, i made a pcb pad to help dampen the sound.

i bought polycarbonate and created a simple sketch on fusion and exported it to inkscape to eventually waterjet it out. this was one of my first experiences using the waterjet, but it was fun

polycarbonate plate with dings.

they had these little strings hanging out, so i deburred all of it and that was the end of the plate

cam + end of the project

i spent quite a bit of time tinkering around in cam because i wanted to make it out of aluminum. i spent a lot of time cutting a piece of stock, facing it, and right when i had the stock prepared and all the cam setup, i was told to stop because it was too much waste of material.

while i am sad that i wasn't able to finish the keyboard and had to abandon the project when i was almost done, i am glad i got a working keyboard in the end. resin printer gave me so many issuse and it could've looked better, but i'm glad with the results.

the full build in 3d

orbit the complete final assembly below. drag to rotate, scroll or pinch to zoom.

← back to projects source