Author Topic: Please help! Need code for Shapr Ir gp2d12 robot object following  (Read 2160 times)

0 Members and 1 Guest are viewing this topic.

Offline amadordTopic starter

  • Jr. Member
  • **
  • Posts: 21
  • Helpful? 0
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

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Re: Please help! Need code for Shapr Ir gp2d12 robot object following
« Reply #1 on: April 02, 2010, 05:09:34 PM »
Did you go through the SoR tutorials and articles?
Also search for Sumo bot code.

 


Get Your Ad Here

data_list