Whilst playing around with IR beam techniques I come up with the following demonstration of a robot homing beacon.
Two narrow angle (20 deg) IR diodes are used to produce parallel beams. The transmission pattern from each diode is of the normal lobe shape but there is a much narrower overlapping corridor at the centre. One beam called ‘left’ transmits pulses of about 1mS and the other beam (right) transmits pulses of about 2mS. Where the left and right beams overlap the transmission appears continues.
The inverted output from an IR receiver is fed to the input of a standard RC servo that could be used to steer a robot in the following way. If the receiver is in the left beam the servo steers to the right and if the receiver enters the right beam the servo steers to the left. When in the narrow centre corridor, no corrective steering action is taken.
For a short-range demonstration I connected each IR diode between the pwmout pin and output 1 of a PICAXE-08M, via 150-Ohm series resistors, to produce two 38KHz modulated beams. The following code gave useable pulse lengths.
setfreqm8
start:
pwm 2, 52, 105
high 1
pause 2
low 1
pause 3
goto start
Two narrow angle (20 deg) IR diodes are used to produce parallel beams. The transmission pattern from each diode is of the normal lobe shape but there is a much narrower overlapping corridor at the centre. One beam called ‘left’ transmits pulses of about 1mS and the other beam (right) transmits pulses of about 2mS. Where the left and right beams overlap the transmission appears continues.
The inverted output from an IR receiver is fed to the input of a standard RC servo that could be used to steer a robot in the following way. If the receiver is in the left beam the servo steers to the right and if the receiver enters the right beam the servo steers to the left. When in the narrow centre corridor, no corrective steering action is taken.
For a short-range demonstration I connected each IR diode between the pwmout pin and output 1 of a PICAXE-08M, via 150-Ohm series resistors, to produce two 38KHz modulated beams. The following code gave useable pulse lengths.
setfreqm8
start:
pwm 2, 52, 105
high 1
pause 2
low 1
pause 3
goto start