loading
Picture of How to Make an Obstacles Avoiding Robot- Arduino Style
You've always wanted to make one of those cool robots that can basically avoid any object. Yet you didn't have enough money to buy one of those really expensive ones, with already cut parts where all the materials where there for you. If you're like me you like to use some parts you already have around, like scrap metal and plastic. This is the project for you.

Check out my new project on sending a balloon into space!!
http://www.instructables.com/id/My-Space-Balloon-Project-Stratohab-Success-High/

Step 1: Get the Materials

Picture of Get the Materials
Arduino- which you can get at the maker shed
http://www.makershed.com/ProductDetails.asp?ProductCode=MKSP4

Then you'll need a Ping UltraSonic Sensor which you'll find at most radioshack stores...
http://www.radioshack.com/product/index.jsp?productId=2909789

A base and scrap metal or plastic that you have lying around.

Some extra wires.

Some cheap mounting tape from Walgreens or the dollar store.

Two Futaba S3003 servos.

Some lego wheels -4 of them ......or other small wheels.

Also a rechargeable battery. (The only reason is that the servos use a lot of energy.

Now your all set to go!

 
admin6 years ago
This is a great Instructable, but you need to add a main image of the final project to the intro step. Please do that and leave me a message when you have so that we can publish your work. Thanks!
hey, the link to the code doesn't work anymore. could you post it here?
wilb1 year ago
Could someone please post the code. The link provided does not work.
good simple project if I had the code
Or you could buy continuous rotation servos at radio shack for $12 apiece. These puppies have an H-Bridge inside them so that you don't need a motor shield.
Cello623 years ago
Hello
Post the code pls!!! The link doesn't works.
Thanks
kamid993 years ago
Would this be a good science project for a 7th grader??
hey the code on the site is also with other components so can you post yours
Can you plz show the wiring of your robot . I havea competition in two days. can you wire dc motors and write the same programe and logic for that,?
robotkid249 (author) 4 years ago
http://www.instructables.com/answers/Would-You-Guys-Like-a-Wireless-Power-Kit/
I am still having problems with the code. I changed everything I could and uploaded the libraries. If you could upload working code that would be greatly appreciated!
robotkid249 (author) 6 years ago
Replace #include with #include
robotkid249 (author) 6 years ago
afw11, on the top of the code where it says #include put the full library "phrase" for the servo. That should fix your problem.
robotkid249 (author) 6 years ago
Wow these are easy questions any engineer should know. Red is positive. Black is negative. The only wires on the ping sensor besides signal are positive and negative. The battery goes to the arduino power input.
robotkid249 (author) 6 years ago
The left servo goes to digital pin 6, and the right servo goes to 5. It is in the code, i think..
kheks6 years ago
dude i have a optical mouse which i no longer use . can i by any means use it to detect weather there is a obstacle in front .???
fynflood kheks6 years ago
You can do this with an old ball mouse for sure.. It seems like I've seen someone hack an optical mouse to do this, but I can't dig it up.

That being said, here's the link to get you started using a ball mouse:
http://hackaday.com/2008/05/16/how-to-scavenge-a-mouse-for-parts/#more-1838
fynflood6 years ago
Hey, nice work... thanks for shout out too ;)
robotkid249 (author) 6 years ago
That picture got messed up
R = reciever P = paper E = emiter

/// //////// ///
R--P---E
robotkid249 (author) 6 years ago
YA theres prolly a ir receiver emitter where the scroll wheel is. Pull that out. When the infrared light reflects off a wall and goes to a receiver the arduino will know a wall is there.

Like this ////// ******
RE paper EM
To arduino pins