PROJECTS: MAKEY ROBOT
makezine.com/19/makey
8. BUTTON IT UP
8a. Now that all your electronics are working, carefully put everything back into the body without knocking loose any wires. Install
the batteries and prop the robot up on something so it doesn’t
run off the table. The USB programming jack should line up with
the cutout in the body.
8b. Reload and run the test program 01_Test_Motor_Rotation, noting that the front of the robot is where the
USB jack and skidder are. If the motors rotate the wrong way, check your wiring to pins AOut1, AOut2,
BOut1, BOut2, AIn1, AIn2, BIn1, and BIn2. You may also need to reverse the motor connections.
8c. Rerun the other test programs to make sure all the wiring is
still OK. When satisfied, fold up the servo and sensor wires and
tuck them into the base. Slide the top cover on, and install 4
sheet metal screws to hold it on. You’re done!
FINISH X
NOW GO USE IT »
5V
5V
5V
SCHEMATIC
DIAGRAM
5V
D11
10kΩ
D6 D7 D5 D4
10kΩ
D3
D10
D9
5V
5V
VMOT PWMB
PWMA
GND
GND GND
VCC
B In 2
B In 1
STBY
A In 1
A In 2
A Out 1
BLACK
A Out 2
B Out 2
BLACK
B Out 1
RED
TB6612FNG
GND
RED
GND
RED
WHITE
BLACK
SERVOMOTOR
GND GND
RED
WHITE
BLACK
ULTRASONIC
SENSOR
ON/OFF SWI TCH
RIGHT
+9V
battery
GND
+–
Motor
VIN
(RAW)
LEFT
GND +9V
battery
+–
Arduino
86 Make: Volume 19