Instructables

Step 3: Electronic

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.

Step 1:
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

Step 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

Step 3:
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.

Step 4:
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.
Picture 7

Step 5:
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.

Step 6:
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.
Picture 10

Step 7:
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 

Step 8:
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

Step 9:
Tape the buttons in a comfortable position on your handlebar. Twist the wires to get them out of the way.
Picture 13 and 14

Step 10:
Attach Molex pin terminals to each wire for each button. Attach one wire from each button to a Molex connector.
Picture 15

Step 11:
Route the wires on your handlebars using hockey tape.
Picture 16

Step 12:
Test the circuit so far pressing the buttons.

 
Remove these adsRemove these ads by Signing Up
Grinhill2 years ago
Great work!!!
Referring to the schematic, could you please explain futher the use of the transistor to switch the servo power? I've only seen this done with the base being used to control the load. Thanks.
nabilt (author)  Grinhill2 years ago
This is a mistake in the diagram. The transistor I'm using has a different pinout than the one in the Fritzing. I wired it so the breadboard view was correct, but this meant the schematic was incorrect. Thanks for the heads up. I'll get on that.