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

Participated in the
Microcontroller Contest
67 Comments
3 years ago
please send the code to the email istofun9598@gmail.com
6 years ago
Please email the code to sheshubabu 71415@gmail.com
6 years ago
Could you please send the code.
terje.flatnes@icloud.com
thanks
6 years ago
Please email code to brydavies71@gmail.com
6 years ago
Send the code to giridharvb71@gmail.com
7 years ago
Could you please send the code.
alif.munanggar@gmail.com
thanks
7 years ago
Could you please send the code.
amiralmu@gmail.com
thanks
7 years ago
Could you please send the code.
prairietank@gmail.com
7 years ago
Pls send me code
jimilnshah.ji@gmail.com
7 years ago
hey could you send me the code?
Nathan.cameron@rcsd.ca
7 years ago
Can you please send me the code? johnnyleon55@gmail.com Thanks
7 years ago
Which arduino board did you use?
7 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
7 years ago
Hi nice project. Can you please send the code to samforrest1@hotmail.co.uk. Thanks
7 years ago
Awesome project man! please send me the code at aaryagreen@gmail.com
8 years ago on Introduction
Please send me the code as well: bob@rhj4.com
8 years ago on Introduction
Could you send me your code : ertaserman87@gmail.com
thanks
8 years ago on Introduction
8 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
8 years ago on Introduction