Instructables

Arduino Object Avoidance Robot

Picture of Arduino Object Avoidance Robot
In this instructable i will describe to you how i built my Object Avoidance Robot. I hope this information will help you to create your own OAR or (maybe) better your own designs.


The materials i used were:
----------------------------------------------------------------------------------------------------------------------------------------------
1 x - Arduino
1 x - Arduino Motor Shield (http://www.adafruit.com/products/81)
    male header pins (for breakout's in the motor shield)
    female header wires (so i can recycle my parts if i decide to break this project apart)

1 x - Parallax Servo Motor (http://www.radioshack.com/product/index.jsp?productId=12296088)
1 x - Ping))) sensor or HC-SR04 Ultrasonic sensor

1 x - Parallax 5-Position Switch (http://www.radioshack.com/product/index.jsp?productId=12296089)

1 x - RC car with separate back-wheel dc motors
6 x - rechargeable AA batteries (conveniently stored in the RC cars battery housing)

1 x - plastic project box from RadioShack

super glue
double sided tape

and of course

soldering iron
solder
wires
----------------------------------------------------------------------------------------------------------------------------------------------
 
Remove these adsRemove these ads by Signing Up

Step 1: Testing

First section/step is getting all of the parts together and getting them working.

I am not going to write out how to set up the motor shield, the ultrasonic sensor, or the servo. Others have already done so, and did a much nicer job than I could do. So here are a few links I found very useful when unsure of what I was doing.

The Ultrasonic Sensor:
Lets Make Robots

The Motor Shield
Ladyada


At this point I was only concerned with the bare minimum. I wanted to know the ultrasonic sensor was working, the motors in the RC car would spin when i told them to, and the servo would go to the position I set it to go.

M3RCIL3SS6 months ago
Hey, what was the code you used, my robot messes up, I will be using arduino (UNO)
If you could give the code, that would be awesome
Thanks
cgmalantonio (author) 1 year ago
All updates regarding this OAR will just be updates to the code. I ran out of available pins on my Arduino and I don't want to scrap the tail. I do plan on creating another OAR in the near future with a few more sensors, I'll be sure to post it on instructables first.
wow this looks great! I love the way it turns its "head" to scan its environment. are the updates you referred to in your last step just code updates, or are you thinking of adding additional hardware?