Arduino Controlled Car With Colission Avoidance

by onenonlysammyb in Circuits > Sensors

5234 Views, 107 Favorites, 0 Comments

Arduino Controlled Car With Colission Avoidance

SSPX0160.jpg
SSPX0159.jpg
SSPX0158.jpg

Given the proper time and love, this car will avoid things in front of it. come and follow along as we go through the steps to build this awesome project...

Gather Materials

SSPX0134.jpg
SSPX0156.jpg

Grab an old car from your local thrift store, and gather all the necessary parts..

1 Arduino Uno microcontroller

1 SR04 sonic sensor

1-2 9V battery packs (I used one to control motors and one for the arduino) or rechargable batteries of your choice

1 l298 motor driver

2 LEDS

1 servo motor

2 100 ohm resistors for LEDS

2 four hole female heads

multiple jumper wires.

Step 2: Gut the Car

car skeleton.jpe

1. strip the car of all the remote control parts because you will need that space for the Arduino UNO.

2. take out the front DC motor for the steering so we can replace it with the Servo motor.

Step 3: Begin Construction

SSPX0157.jpg
SSPX0156.jpg
SSPX0159.jpg

Get creative with the placement of the componants.

the Arduino Uno should sit easily where the RC unit was.

Use some hard wire to use with the servo to get the steering correct (this will take trial and error)

I placed the motor driver on the back, and the battery packs under the car using velcro.

Connect the sonic sensor to the grill of the car using your favorite glue or epoxy (mine is Hot Glue)

Connect the LEDs with Resistors to the Grill of the car as well.

use the negative and positive bar from a bread board for a power strip and grounding bar.

Step 4: Program the Arduino

coding.png
arduinouno.jpe

Use what you know about programing to try and figure out a good code for colission avoidance.

if you can't figure one out you can use mine.

Step 5: Enjoy Your New Toy As It Avoids Things in Front of It!!

Arduino controlled car with colission avoidance

Enjoy knowing that you made something that you didn't know you could before.

HAVE FUN!!!!