Introduction: Arduino Obstacle Avoiding Robot

Picture of Arduino Obstacle Avoiding Robot

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

Step 1: Parts

Picture of Parts

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
 

Step 2: Start Assembling

Picture of Start Assembling

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

 

Step 3: 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 :-)
 

Comments

TheRandom_ king (author)2016-05-13

and should i use dupont male - female,female to female wires????

TheRandom_ king (author)2016-05-13

plshelp me na

TheRandom_ king (author)2016-05-13

from which site do i get 1:120 gear ratio motors in india

FelixD3 (author)2015-08-30

How can we add #include <AFMotor.h>

===============================

I tried to add from sketch> add zip file and failed.

I got this error

=============================

.Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Uno"

APC_4_ROBOT.ino:1:21: fatal error: AFMotor.h: No such file or directory

compilation terminated.

Error compiling.

This report would have more information with

"Show verbose output during compilation"

enabled in File > Preferences.

Djnix (author)FelixD32016-01-18

hi it might be because they changed the software since I made the robot. arduino has updated thier software recently but I haven't been using arduino lately

HamzaN13 (author)FelixD32016-01-18

you there i need help from u brother.

HamzaN13 (author)FelixD32016-01-18

you there i need help from u brother.

HamzaN13 (author)2016-01-18

need help please asap.

Djnix (author)HamzaN132016-01-18

hi, what's up?

WyattSeilhan (author)2015-10-23

Where is 5+ at?

PikuS (author)2015-02-28

code error please help

Djnix (author)PikuS2015-02-28

Hi, you need to set up your libraries in the code. They define specific parts of the code. If you need more help please notify me :)

minnow1 (author)Djnix2015-05-15

I made the robot but i am confused on how you wired it.

How did you do it?? Like where did you put everything

nik raikar (author)2015-04-01

thx a lot dude ur the best ,i modified my code but overall u rock!!!!!

Nayemuzzaman (author)2014-12-14

good but last three picture are more details please because i am new..jumber setup i want to more clear.

erragubi (author)2014-03-14

can you please send the code of arduino

murphadonut (author)2014-03-01

cool david

eva_maree_dixon (author)2014-03-01

We'll done mate

zhqhhhh (author)2014-02-28

looks great

About This Instructable

15,219views

65favorites

License:

Bio: I like to build random stuff when I'm bored.
More by Djnix:Diy solar phone chargerReuse your old hard drive disksDIY batteries
Add instructable to: