Hi, I need a code for my project. Basically I just need to make a object following robot. Where if it sees an object like say 30 inch away, it will start to follow that object and maintain a distance of approximately 10 inch.
Im using arduino duemilanove Here is my setup:
-servos connected to PIN 9 and Pin 10
-Sharp ir sensor gp2d12 is connected to analog pin 2
-servo to move sensor back and fort connected to pin 11
please help