|
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.
|