Button PCB Eagle

If you have access to a CNC mill and you'd like to make your own custom PCB, you can download my button PCB eagle cad file. I was able to machine this PCB onto a FR-1 single-sized copper board using a 1/32" flat endmill on the Bantam Tools desktop CNC.

Button Wires

Next up we'll secure 4x buttons to a mounting plate and wire them up. I CNC milled a PCB to make this easier, but you can use a 3D Printed "PCB" to do similar. You'll need five new pieces of wire to connect the buttons to the Pi. These wires can be 30AWG size and about 16cm in length. 

Tin Wires

You'll want to use wire strippers to remove a bit of insulation and tin the tips with a bit of solder. I used different colored wires to help tell apart the various button connections. Some pieces of heat shrink tubing a great for keeping them wires bundled together.

Install Buttons

Seat the buttons onto the PCB (the 3D printed mounting plate) by inserting the legs of the buttons into the little holes and press them down to fully seat the buttons flush with the PCB. Try to avoid bending any of the legs on the buttons.

Connect Wires to Buttons

Now we can connect the wires to the buttons. Each button has four legs – two for signal and two for ground. You'll have to tie all of the grounds together so that all of the buttons connect to ground. Then, connect the rest of the wires to the signal leads, which are on the other side of the ground connections. This might get a little hairy, hence why I CNC milled myself a PCB =]

Connect Button Assembly

And with our buttons wired up, we can now connect them to the Pi. We'll solder into the available GPIO pins on top of the Speaker Bonnet. 

Solder Wires

Connect the wires from the buttons to the following GPIO labeled pins on top of the Adafruit Speaker Bonnet. Note, these are not the actual pin numbers, these are the GPIO numbers, which are totally different. They're conveniently labeled on the Speaker Bonnet.

  • #17
  • #27
  • #22
  • #23
  • GND

Final Circuit

And with that, we now have our final circuit wired up and ready to install into the 3D printed case! Now is a great time to do any last wire adjustments. Double check your wiring!

This guide was first published on Nov 08, 2017. It was last updated on Mar 08, 2024.

This page (Buttons) was last updated on Nov 06, 2017.

Text editor powered by tinymce.