LEGO-Compatible Macropad
A three-key macropad combining a custom PCB, 3D-printed prototypes, and LEGO-compatible construction.
As an experiment in PCB design I built a small macropad built around an off the shelf MCU (Xiao from Seeedstudio) and Lego bricks. The three-key device is designed to fit into a case built from bricks, so it's easy for anyone to personalize their macropad.

Prototyping the hardware
After designing the PCB shape I 3D printed a mockup to test the switch positions, controller placement, and fit with the LEGO studs. The printed plate held the components in place while I hand-soldered the connections. Iterating on this physical model let me refine the dimensions before making the custom PCB. Once I had the PCB geometry nailed finished the traces and sent it off to PCBWay for manufacturing.
Programming the controls
The prototype uses an Xiao and CircuitPython to turn three physical switches into USB keyboard and media controls. A settings file maps the keys to actions. the default config uses volume down, play/pause, and volume up.
An early prototype was featured on Hackaday, and the original project post shows the 3D-printed assembly.