Introduction: Arduino Obstacle Avoiding Robot
This is a robot that isn't hard to build and is awesome to show friends.
Step 1: 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
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 :-)
19 Comments
Question 5 years ago on Introduction
What are the outcomes of this project
7 years ago
and should i use dupont male - female,female to female wires????
7 years ago
plshelp me na
7 years ago
from which site do i get 1:120 gear ratio motors in india
8 years ago on Introduction
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.
Reply 7 years ago
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
Reply 7 years ago
you there i need help from u brother.
Reply 7 years ago
you there i need help from u brother.
7 years ago
need help please asap.
Reply 7 years ago
hi, what's up?
8 years ago
Where is 5+ at?
8 years ago on Introduction
code error please help
Reply 8 years ago on Introduction
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 :)
Reply 8 years ago on Introduction
I made the robot but i am confused on how you wired it.
How did you do it?? Like where did you put everything
8 years ago on Introduction
thx a lot dude ur the best ,i modified my code but overall u rock!!!!!
8 years ago on Introduction
good but last three picture are more details please because i am new..jumber setup i want to more clear.
9 years ago on Introduction
can you please send the code of arduino
9 years ago
cool david
9 years ago
We'll done mate