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

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

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.

<p>Can someone please help me with coding on Arduino</p><p>Im new to coding and robotics and I built a biped robot with 4 servos and a HC-SRO4 servo for object avoidance. Im using Arduino uno and I only know how to make the servos move with write.microseconds. I want to make it avoid objects and be autonomous.</p>
<p>Hi, I made the chassi but i don`t know how to code.so can you send me the codes?</p><p>wijesingha.kusal@gmail.com</p><p>please send to this email.i`m gladly request you.i`m a junior with the Arduino.please send the codes.</p><p>Thank you</p>
Hey, what was the code you used, my robot messes up, I will be using arduino (UNO) <br>If you could give the code, that would be awesome <br>Thanks
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?

About This Instructable




Bio: I am a recent graduate from the University of Pittsburgh. While i was there i got a Bachelors degree in Computer Science and explored a ... More »
More by cgmalantonio:Personal Black Box - Arduino Mega + Ultimate GPS Shield + LSM303 Ambient Computer Lights - using an Arduino with NeoPixel strip Arduino Motorized Window Blinds 
Add instructable to: