We recommend prototyping on a breadboard before making modifications to your bike. Copy the Fritzing diagram to a breadboard and see if you can make the the servo move then start soldering using the protoboard.
Tip: Adafruit sells a protoboard that looks like a breadboard called the Perma-Proto
. When you are done testing your circuit on a breadboard just transfer the design without any modifications. They also sell one that fits in a Altoids mints size tin.
Take the Protoboard and create the circuit using the Fritzing diagram and schematic.Note:
Always wear googles while soldering or doing machine work.
Picture 1 and 2
Connect the wires through the back and put jumpers on the connections that attach to the servo and buttons
Cut the wires from the back and make the connection according to schematic.
Picture 3 and 4
Solder wires to the center pin and one other pin of the switch. Make sure to put heat shrink on the wire first. Attach the Molex pin terminal to one pin. Drill a hole in the top of the project box and mount the switch.
Picture 5 and 6.
Route the wires through holes in the side of the project box then attach the other to the positive output of the Lipo Boost converter.
Attach the negative output of the boost converter to another Molex terminal. Attached the wires with Molex pin terminals to the Molex connector as showin in Picture 8. Make sure the orientation matches the connector on the protoboard.
The end result should look like Picture 9. Connect the Lipo battery to the boost convert and the Molex connector from the switch to the protoboard. After checking for shorts with a multimeter turn on the power.
Program your board by installing arduino on your computer and loading this sketch
Turn on the your board and make sure your servo functions to your button presses
Using heat shrink solder two wires to you buttons after flattening the pins. Use a heat gun or the barrel of a soldering iron to shrink the heat shrink. Do this for each button
Picture 11 and 12
Tape the buttons in a comfortable position on your handlebar. Twist the wires to get them out of the way.
Picture 13 and 14
Attach Molex pin terminals to each wire for each button. Attach one wire from each button to a Molex connector.
Route the wires on your handlebars using hockey tape.
Test the circuit so far pressing the buttons.