Society of Robots - Robot Forum

Software => Software => Topic started by: amadord on April 02, 2010, 05:03:51 PM

Title: Please help! Need code for Shapr Ir gp2d12 robot object following
Post by: amadord on April 02, 2010, 05:03:51 PM
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
Title: Re: Please help! Need code for Shapr Ir gp2d12 robot object following
Post by: waltr on April 02, 2010, 05:09:34 PM
Did you go through the SoR tutorials and articles?
Also search for Sumo bot code.