In this guide, we'll build a USB foot switch controller. This can be used as an addition to your keyboard or as a way to free up your hands. I'm using it to do overhead photography so I can trigger the camera and use my hands at the same time.
It’s powered by Adafruit’s Trinket M0 which is a tiny microcontroller that can run Circuit Python. Just connect over USB and load it as a flash drive. All of the code and libraries are accessible on the drive so you can make small edits and iterate quickly. The Adafruit HID library simulates USB devices so it can send keypress just like a mouse and keyboard.
If your new to electronics and soldering, I suggest walking through the following guides to get the basics. The Adafruit Excellent guide to soldering will walk you through process of learning how to use a soldering iron to make solid electrical connections.
The Trinket M0 and Foot Switch are the main electronic components used in this project.
These help make the project a smooth building experience. You don't need them all of them, but I recommend them.