hack club hackpad

Media
pad.

I got tired of reaching for my keyboard every time I wanted to change the volume, so I designed my own. custom PCB, mechanical keys, rotary encoder for volume, and a case I'm building in Onshape. still a work in progress but coming together.

KiCad Seeed XIAO RP2040 KMK Firmware Onshape CircuitPython Hack Club
project progress
✓
PCB design
~
case design
the pcb

Designed in KiCad

This was my first real PCB. I did the schematic first, then placed everything and routed all the traces by hand. It's small enough to sit next to a keyboard without being in the way. The design is done and ready to fab.

🧠
Seeed XIAO RP2040
Tiny microcontroller with USB-C built in. Runs CircuitPython which makes the firmware super easy to write and change.
U1 — XIAO RP2040
🎛
Rotary Encoder
Turn it to change volume, click it to mute. EC11-compatible so it's easy to source and swap out.
SW1 — RotaryEncoder_Switch
⌨️
3 Mechanical Switches
Play/pause, previous, next. MX-compatible so any MX switch fits, whatever feel you want.
SW2 · SW3 · SW4
📟
128x32 OLED
I left the footprint on the board already. Going to wire it up after the core build is working and show track name + volume.
coming soon
how it works
Encoder (A/B/SW)
→
XIAO RP2040
→
USB HID
→
your computer
SW2 · SW3 · SW4
→
XIAO RP2040
the case

Designed in Onshape

Currently a work in progress. I have a first version modeled but honestly it's just a rectangular brick right now. I'm going to redo it to actually look good before the final build.

v1 — current

the rectangular brick

Gets the job done functionally, all the cutouts are in the right place. but it looks exactly as boring as it sounds. not shipping this one.

v2 — goal
designing something cooler...

the redesign

Going to redo it with better proportions, angled edges, and something that actually looks intentional. probably some chamfers or a wedge profile. TBD.

firmware

Running KMK

KMK is keyboard firmware written in CircuitPython. The Mediapad shows up as a regular USB keyboard to your computer, no drivers needed. Changing keybindings is just editing a python file and saving, no reflashing.

code.py
# Mediapad KMK config from kmk.kmk_keyboard import KMKKeyboard from kmk.keys import KC from kmk.modules.encoder import EncoderHandler keyboard = KMKKeyboard() encoder_handler = EncoderHandler() # 3 keys: play/pause, prev, next keyboard.keymap = [[ KC.MPLY, KC.MPRV, KC.MNXT, ]] # encoder: vol up, vol down, mute on click encoder_handler.map = [[(KC.VOLU, KC.VOLD, KC.MUTE)]]
🔌
just plug it inshows up as a standard keyboard. works on mac, windows, and linux with zero setup.
🐍
CircuitPythonthe XIAO mounts as a USB drive. edit code.py and save. no compile step, no flashing tools.
🎛
encoder supportKMK handles rotary encoders natively. clockwise and counterclockwise each map to their own key.
🔁
easy to remapwant scroll or zoom instead of volume? just change two lines. no touching hardware.
parts list

What's in it

All the components for the build. Parts marked "in kit" are included in the Hackpad component kit from Hack Club.

PartDetails
Microcontroller in kit Seeed Studio XIAO RP2040, USB-C, 264KB SRAM, 2MB Flash
Rotary Encoder in kit EC11-compatible, 20 detents, built-in click switch
Switches in kit 3x MX-compatible mechanical switches
Keycaps in kit 1U MX-compatible keycaps
OLED in kit SSD1306 128x32 over I2C, footprint already on the PCB, adding it next
PCB 2-layer KiCad design, ordering from JLCPCB
Case 3D printed, designed in Onshape, v2 redesign in progress
Firmware KMK on CircuitPython, open source
what's next

Still working on it

PCB design is done. Case is in progress. Here's what's left before this thing is fully built.

01

redesign the case

The current v1 case in Onshape is basically just a box with holes in it. Going to redo it with better proportions and something that actually looks like it was designed on purpose.

in progress
02

add the OLED to the PCB

I left the footprint for the SSD1306 on the board already. Next revision of the PCB will have it wired up over I2C. Going to show track name and volume level.

next
03

solder and test the full build

Once the PCB is back from fab and the case is printed, actually solder everything together and make sure it works. Debug whatever inevitably goes wrong.

next
04

song metadata on the OLED

Eventually want to write a small companion app that sends the current track name over USB serial so it shows on screen. no idea how hard that'll be yet.

someday
open source

follow along

KiCad files and firmware config are all on GitHub. I'll keep pushing updates as the build progresses.

this project is part of Hack Club's Hackpad program. teens can design their own PCB and get the parts, PCB manufacturing, and 3D printing all covered for free.
learn more ↗