View Single Post
  #2   Spotlight this post!  
Unread 07-01-2003, 21:36
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
One thing you could do would be mount three optical sensors next to each other, spaced a few inches apart, with all three rotating together.

Then, once you get a "lock-on" from moving the servo, start turning in the direction that the servo is pointing. As you turn, move the servo so that only the center optical sensor sees the target (ie if the left sees it, move the servo left). Doing this, the servo will eventually line itself up with the robot.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php