Obstacle Avoiding Robot




Introduction: Obstacle Avoiding Robot

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 motor shield
Custom built/bought (ebay) car with motors on each wheel
bread board
ping sensor (ultrasonic distance sensor)
servo motor


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)



    • Water Contest

      Water Contest
    • Fix It! Contest

      Fix It! Contest
    • Tiny Home Contest

      Tiny Home Contest

    66 Discussions

    Please email the code to sheshubabu 71415@gmail.com

    Could you please send the code.



    Please email code to brydavies71@gmail.com

    Send the code to giridharvb71@gmail.com


    2 years ago

    Could you please send the code.



    Could you please send the code.



    Could you please send the code.


    Pls send me code



    2 years ago

    hey could you send me the code?


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

    Which arduino board did you use?

    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

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

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

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

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


    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.


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