Introduction: Arduino Pickup Truck With Light and Distance Sensor

Picture of Arduino Pickup Truck With Light and Distance Sensor

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.

Let's start!

Step 1: Materials

Picture of Materials
  1. Arduino UNO http://amzn.to/1SR4qSE
  2. Motor Shield L293 V1 for Arduino ($5.50) with free shipping http://amzn.to/1WKRwdT
  3. Robot Car Chasis with DC motors ($18) with free shipping http://amzn.to/21A11gO
  4. HC-SR04 Ultrasonic distance sensor ($3.96) http://amzn.to/1rwohQm
  5. 1 red led (cents)
  6. 1 220k resistor (cents)
  7. 1 switch (cents)
  8. Some cables, glue and cardboard cents4 AA bateries

Step 2: Mounting

Picture of Mounting

  1. Mount the car chassis with the motors and wheels (instructions included with the chasis)
  2. Connect motor cables (one red and one black cable to each motor)
  3. Connect 4 cables to the HC SR04 sensor

Step 3: Motor Shield Preparation

Picture of 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

Picture of 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

Picture of 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!

Comments

Georges Creations (author)2016-05-07

Smart idea and impressive result!

*For better looking paint the cardboard ! ;)

Thanks! I will paint it soon.

About This Instructable

660views

9favorites

License:

Bio: Writer - former programmer. Author of Macadam, La Gran Monterrey, El Sueño Colbert, Crónicas de Motos
More by RoniBandini:Humidity Spy Book Wordpress Animatronics Alert with Raspberry PiArduino Pickup Truck With Light and Distance Sensor
Add instructable to: