|
Re: How does the IR setup work?
Well, you just keep track of the servo position. Because the pwm value you output to a servo actually corresponds to its position, you can easily convert the position at which the sensor (located on the servo) saw the beacon into degrees and calculate the distance to the beacon.
If you are not using servos, you can accomplish the same thing with a motor and a potentiometer.
|