Arduino Obstacle Avoiding Robot

15,496

65

20

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

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

Share

    Recommendations

    • Tiny Home Contest

      Tiny Home Contest
    • Metalworking Contest

      Metalworking Contest
    • Audio Contest 2018

      Audio Contest 2018

    20 Discussions

    0
    None
    TheRandom_ king

    2 years ago

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

    0
    None
    TheRandom_ king

    2 years ago

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

    0
    None
    FelixD3

    3 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.

    3 replies
    0
    None
    DjnixFelixD3

    Reply 2 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

    0
    None
    HamzaN13FelixD3

    Reply 2 years ago

    you there i need help from u brother.

    0
    None
    HamzaN13FelixD3

    Reply 2 years ago

    you there i need help from u brother.

    0
    None
    DjnixPikuS

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

    0
    None
    minnow1Djnix

    Reply 3 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

    0
    None
    nik raikar

    3 years ago on Introduction

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

    0
    None
    Nayemuzzaman

    3 years ago on Introduction

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

    0
    None
    zhqhhhh

    4 years ago

    looks great