November 25, 2025
Description
This simple foot switch simulates a USB input device via a Raspberry Pico 2. Depending on the programming, it can be used to send a single letter, an entire text, or change the volume, for example. The possibilities here are almost limitless.
For this project, I was satisfied with simulating a keystroke as on a keyboard (otherwise it would be cheating, unfortunately😅).
Assembly is relatively simple:
Insert the M3 threaded inserts on the side.
Solder the Raspberry Pico to a Cherry switch. Please lay the wires beforehand!
Secure the Raspberry with the four M2 screws in the lower part, then insert the Cherry switches and springs. Please note that 3D printing has its limitations!
Use the cutting template (printing plate 3) to cut the griptape and stick it onto the upper part. Whether you need one at the bottom depends on the surface on which you will later use the switch.
Next, the Raspberry must be programmed:
➡️Open the official CircuitPython download page and download the UF2 file:
Transfer the contents of the ZIP file to the Pico drive and overwrite the existing files.
Now, if everything has worked, the “t” key is triggered when the foot switch is pressed. If you don't want to go deeper into programming, you can easily change this key:
Change the T in the following two lines to your desired letter:
keyboard.press(Keycode.T)
keyboard.release(Keycode.T)
📃Part list:
- Raspberry Pico 2
- 1x Cherry MX Switch
- 2x M3 threaded inserts (M3x4.8x5.0 or M3Sx4.0)
- 2x M3 Socket Head Screws (M3x10)
- 4x M2 Srews (M2x4)
- 2x Spings (Max outer diameter 10mm, Min inner diameter 4mm, Lenght 20-25mm). You can use the springs from an old Ender, for example.
- Griptape
- AWG 24 Wire
License:
MakerWorld Exclusive License