In this tutorial I will explain how to build this Arduino Cardboard Pick Up Truck with obstacle avoidance and a cool red light. It’s low cost and has more than just robot movement.
Another advantage is the power usage: only 4 AA batteries for DC motors + Arduino juice.
Step 1: Materials
- Arduino UNO http://amzn.to/1SR4qSE
- Motor Shield L293 V1 for Arduino ($5.50) with free shipping http://amzn.to/1WKRwdT
- Robot Car Chasis with DC motors ($18) with free shipping http://amzn.to/21A11gO
- HC-SR04 Ultrasonic distance sensor ($3.96) http://amzn.to/1rwohQm
- 1 red led (cents)
- 1 220k resistor (cents)
- 1 switch (cents)
- Some cables, glue and cardboard cents4 AA bateries
Step 2: Mounting
- Mount the car chassis with the motors and wheels (instructions included with the chasis)
- Connect motor cables (one red and one black cable to each motor)
- Connect 4 cables to the HC SR04 sensor
Step 3: Motor Shield Preparation
Motor shield V1 comes ready for Arduino stacking, but since we need extra pins for the sensor and led, we will have to add those pins to the Shield Board with a little soldering.
Basically we will have to add a pin for 5v, a pin for Ground connection, a pin for Digital 2, a pin for Analog5 and a pin for Analog2. By default all those are holes.
Step 4: Wiring and Circuit
Now we connect all the wires: motors to M1 and M2, led to Digital Pin2 and ground, Sensor to 5v, ground, trigger to A2 and Signal to A5. Finally, power ground from the battery pack to ground in the Motor Shield, power red to the switch and the other side of the switch to Motor Shield Power.
Step 5: Software
Now we upload the software piece to Arduino.
Step 6: Cardboard Truck Design
Using scissors, cardboard and some glue you can create this Pickup Truck structure. Don't forget to put the Led in the top.
Step 7: Testing
Put the batteries, open the switch and have fun!