Quote:
|
Originally Posted by Dave Flowerday
Except that brightness would also vary by the distance your robot is from the beacon. So, if you read a value of 120 from your analog light sensor, does that mean you're pointed right at it but 20 feet away, or does it mean you're right next to it, but pointed 45 degress away from it?
|
You would need two sensors (just like Kevin's tracker setup). The ratio of the difference to the sum (left-right)/(left+right) would indicate the off-angle-ness: if they have equal outputs, it's pointed straight; if the left is larger, it's pointed right; right larger means pointed left.
Or something like that.
Dunno. I imagine that the internal processing of the sensors in the kit generates the signal I want. And then they run it through some threshold to throw away most of the information(!) and output a 1 or 0.
