Obstacle Avoiding Robot

21,928

45

66

In this tutorial I will work with you in a step by step process explaining through visuals and written instructions on how to create an Obstacle Avoiding Robot Car. This is a simple start up project with the arduino microcontroller and the arduino motor shield.

Bill of materials:
Arduino
Arduino motor shield
Custom built/bought (ebay) car with motors on each wheel
batteries 
bread board
ping sensor (ultrasonic distance sensor)
wires
servo motor





 

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Step 1

For the first step I bought a simple 4 motorized car and assembled it.  Before placing the top plastic platform i wired the right hand side motors to a single wire and the same process was done to the left hand side. After connecting the wires, the battery compartments were placed for this example i used a 9V battery to power the arduino and 4 AA batteries to power the motors (however if you want more power input to the motors i suggest adding more AA batteries). Finally the top platform is placed to cover the wiring and batteries.
 


Step 2: Step 2

For this second step the Arduino, motor shield and distance sensor are all connected and placed on the top platform. The image below is a top view of the final wiring stage. Make sure to connect the external power and the motor wires to the appropriate slot on the motor shield.

Step 3: Step 3

Add the code supplied and watch the robot avoid obstacles!
Message me for the code through instructables and i will email the file. (I cannot figure out how to add text files or copy paste the code to the instructable)
(If car moves too fast or slow change speed values to adjust with the power supplied to the motor shield)




Microcontroller Contest

Participated in the
Microcontroller Contest

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    66 Discussions

    0
    None
    Sheshu babu

    2 years ago

    Please email the code to sheshubabu 71415@gmail.com

    0
    None
    AC300kv

    2 years ago

    Could you please send the code.

    terje.flatnes@icloud.com

    thanks

    0
    None
    Farmerbry

    2 years ago

    Please email code to brydavies71@gmail.com

    0
    None
    GiridharB2

    2 years ago

    Send the code to giridharvb71@gmail.com

    0
    None
    AlifM4

    3 years ago

    Could you please send the code.

    alif.munanggar@gmail.com

    thanks

    0
    None
    amira91

    3 years ago

    Could you please send the code.

    amiralmu@gmail.com

    thanks

    0
    None
    robroy060

    3 years ago

    Could you please send the code.

    prairietank@gmail.com

    0
    None
    Agent shah

    3 years ago

    Pls send me code

    jimilnshah.ji@gmail.com

    0
    None
    NC7

    3 years ago

    hey could you send me the code?

    Nathan.cameron@rcsd.ca

    0
    None
    JohnnyL16

    3 years ago

    Can you please send me the code? johnnyleon55@gmail.com Thanks

    0
    None
    MuhammadJ24

    3 years ago

    Which arduino board did you use?

    0
    None
    misbakhulm

    3 years ago

    hye there..can you please send me full code..i really need it for my final year project..here is my email miyss3@gmail.com

    0
    None
    samforrest93

    3 years ago

    Hi nice project. Can you please send the code to samforrest1@hotmail.co.uk. Thanks

    0
    None
    Robokid2301

    4 years ago

    Awesome project man! please send me the code at aaryagreen@gmail.com

    0
    None
    BobJ19

    4 years ago on Introduction

    Please send me the code as well: bob@rhj4.com

    0
    None
    Deccal

    4 years ago on Introduction

    Could you send me your code : ertaserman87@gmail.com

    thanks

    0
    None
    MosesB1

    4 years ago on Introduction

    Hi Mr Leband,

    Really like your project. One of the best I have ever seen. I really need the code for it, so if you can email it to me, that would be great.

    nathanmarcus00@gmail.com

    P.S. If you can try to send it to me by tommorow, that would be great because I really need it