In this workshop, we will be making a 4-button macro keypad that you can program yourself.
- Raspberry Pi Pico
- 4x surface mount tactile switch
- GIX PicoPad PCB
- Solder paste stencil
- Credit card (or other plastic straight edge)
- Lead-free solder paste
Download bundle library here
Before continuing make sure your board's lib folder has the following libraries:
- adafruit_hid
- adafruit_debouncer
- adafruit_ticks
- 3D print a stencil holder (in the cad folder) for each stencil.
- Many stencils come as one large sheet. We recommend carefully cutting the stencil down to a more manageable size using a pair of sheet metal shears.
- Since the cut edges can be quite sharp, wrap the sharp edges in tape.
- We recommend baking many of the Raspberry Pi Picos to the main board ahead of the event as this adds a particularly long step.
- Either hot plate or reflow oven will work.
- Place the board in the stencil holder and lower the stencil over it. The pads on the board should match the holes in the stencil.
- Squeeze a thick line of solder paste across one side of the stencil.
- Using a credit card or similar piece of plastic, swipe the solder paste across the stencil.
- Lift the stencil to reveal a board with solder paste on its pads.
- Using tweezers, drop the tactile switch on the solder paste. Positioning does not have to be perfect as surface tension will pull the part into place.
- Using a hot air gun set to 450 F, heat the solder paste at each switch until it shimmers and turns silver. Don't worry about the solder paste spreading out as it gets hot.
- If the keypad does not call itself CIRCUITPY when you plug it in, you will need to copy and paste the UF2 file found here to the drive.
- Install the libraries by dragging them into the
libfolder on the CIRCUITPY drive. - Download the code from here and put it in the CIRCUITPY drive. Make sure to name it
code.py.