The objective is to construct a programmable hobby bot that is affordable and simple to make. The parts will be purchased from places such as Wal-Mart, Radio-Shack, any Hobby Store, or online store that is accessible to the public. The price range is 50 dollars or lower for the entirety of the robot.
Step 1: Gather Your Materials
Here is a list of all materials needed to complete the bot and their prices.
–4xAA to barrel jack holder (Power for the Brain)
–9V Snap Connector (Power for the motors)
–Dual Motor Gearbox
–Motor Driver (Logic Controller between Arduino and Motors)
–Resistor 10k Ohm
Two minute maid juice lids were used
with rubber bands wrapped around them
Any good sized cardboard box
(Go buy a towel with the change in case panic ensues)
Some additional notes about the parts list:
Batteries not included.
There are multiple colors of hook up wire that can be used. For the sake of being able to see how I wired everything shown in later steps I used multiple colors.
I did use jumper wires for the leads on the motors again for the sake of having a different color. The hook up wire should suffice.
Step 2: Gather Your Tools
[box color=”#985D00″ bg=”#FFF8CB” font=”verdana” fontsize=”14 ” radius=”20 ” border=”#985D12″ float=”right” head=”Major Components in Project” headbg=”#FFEB70″ headcolor=”#985D00″]
Tools you will need:
-Sharpies (Red, Green, Black, Blue)[/box]
Step 3: Assemble The Gearbox & Attach The Wheels
I chose this step to be first for two reasons
1. If you are using gorrila glue it takes about 2 hours to dry and harden completely.
2. The gearbox assembly is the most complicated portion of the construction.
If you are using gorilla glue remember that both surfaces need to be wet in order for the glue to activate.
Use of a hot glue gun reduces the time by quite a bit and reduces the amount of mess created.
Sparkfun provides a wonderful tutorial on assembling the gearbox linked below.
Step 4: Soldering the leads on the motors
After the leads have been soldered on you can place the motors in the gearbox.
Now to move on to the wiring of the breadboard and Arduino.
Step 5: Prep the 9V snap connector
The 9V is what is going to power the motors and this will be done through the breadboard the picture above shows what the leads need to look like after stripping them.
I found a piece of heat wrap to put around the loose wires so they would not catch on anything and provide them with a bit of protection.
Step 6: Preparing the Bread Board
Place the H-driver in the breadboard positioned so that pin 1 is in slot 10 E.
The Top left pin is pin one. The Top of the H-Bridge Can be determined by looking for the indent in the chip.
Color the bread board with the sharpie markers accordingly.
All GND/Ground slots will be black.
All 5V/Power slots will be red
All of the motor ports will be green
All of the ports going to the logic pins on the Arduino board will be blue.
I put a black or red line above and below each column on the left and right of the board as a visual reference that the entire column is charged or grounded.
Instructables provides a great description of how breadboards work in the link below.
Step 7: Wiring The Breadboard and Arduino
When wiring the breadboard to the Arduino keep the following in mind:
On the H Bridge pins 1 and 9 (1,2EN, 3,4EN respectively) need to be connected to a pin on the arduino that has a “~” so that it can receive speed signals.
Cut the wire longer than you need it. You can always shorten a wire, making one longer is difficult.
The Positive and Ground leads seen attached to the far right of the breadboard belong to the 9V snap connector.
I ran out of black wire and though green is commonly used as a color for ground/negative lines I used a sharpie to color them black for visual purposes.
You do not need to bend the wire or even cut them as exactly as I did, again this was for visual purposes only and is a bit more difficult than necessary.
Step 8: Adding a photoresistor
The leads on the photoresistor and resistor can be left at the length they are at or cut shorter.
Step 9: Prepare the Box
Place everything in the box before you begin cutting to be sure everything fits comfortably.
Cut slots for the wheels.
Read more: Fifty Dollar Box Bot