10/07/2012

How to build a robot #3 - Wiring up the robot



Now that we've got the main systems of Affordabot in place, it's time to wire the components up so they can work together.

The video goes into good detail, but a good source of info is an earlier post I made about the TB6612FNG motor driver - http://www.meanpc.com/2012/01/how-to-use-tb6612fng-motor-driver-with.html.

Between the Meduino Nano and the TB6612FNG motor driver, these are the connections I made:

PWMA - Digital Pin 10
PWMB - Digital Pin 11
AIN1 - Digital Pin 6
AIN2 - Digital Pin 7
BIN1 - Digital Pin 8
BIN2 - Digital Pin 9

It is starting to look like this robot is going to take a lot of pins!  I'm using 6 pins just for motor control.  I'm planning on using 3 ultrasonic sensors, each of which will use 2 i/o.  A speaker will use one more.  There will be enough IO pins, but I am starting to think I will use a serial LCD instead of a standard parallel one.

Don't sweat these messy jumper wires - I'll clean them up soon.  Going to custom cut short jumpers that fit flush on the breadboard.