Arduino Obstacle Avoiding Robot

by Djnix in Circuits > Arduino

16257 Views, 67 Favorites, 0 Comments

Arduino Obstacle Avoiding Robot

temp_-1462321822.jpg
temp_-1358874436.jpg
temp_1458542960.jpg

This is a robot that isn't hard to build and is awesome to show friends.

Parts

temp_1025996655.jpg
temp_690469481.jpg
temp_-1246838242.jpg
temp_-2041226921.jpg

you will need:
l293d motor drive shield
arduino uno
hc-sr04 ultrasonic sensor
two 1:120 gear ratio motors
a platform of some kind
different types of dupoint wires
a battery (9v preferred)
a servo
 

Start Assembling

temp_426129802.jpg
temp_-882118797.jpg
temp_-2094032137.jpg
temp_1165715628.jpg

Attach the wheels to the bottom of my he platform.
attach servo
mount the sensor on the servo
mount l293 on the arduino
attach wires for the motors
attach servo to the servo port
solder wires into 5+, gnd, a4 and a5
connect 5+ wire to vcc on the sensor
connect a4 to trig
connect a5 to echo
connect gnd to gnd

 

Add Code

you can make your own code for this or download it here
http://apcmag.com/arduino.htm#project4

 


its project 4 mini robot
be sure to install the libraries :-)