Arduino Obstacle Avoiding Robot

15,451

65

20

Introduction: Arduino Obstacle Avoiding Robot

About: I like to build random stuff when I'm bored.

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

Share

    Recommendations

    • Creative Misuse Contest

      Creative Misuse Contest
    • Tiny Home Contest

      Tiny Home Contest
    • Water Contest

      Water Contest

    20 Discussions

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

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

    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.

    3 replies

    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

    you there i need help from u brother.

    you there i need help from u brother.

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

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

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

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

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

    looks great