Frequency Sweep using IR: How does it work?
Domanik
Posts: 233
I was stepping through some IR distance detection tutorials and found something that puzzles me. How does increasing the frequency from 38.5KHz to 41KHz enable the IR detector be used for distance detection? Range is limited to a few cm but how?
The link is here: http://learn.parallax.com/node/335
I suspect it has something to do with the bandpass characteristic of the filter used in the detector PNA4602M, shown in the link. 38KHz has a period of 26us, which I think eliminates round trip delay. Other IR detectors triangulate for distance but that is not the case here. I read through the datasheet without seeing anything.
Does anyone have some insight into this?
Thanks,
Dom...
The link is here: http://learn.parallax.com/node/335
I suspect it has something to do with the bandpass characteristic of the filter used in the detector PNA4602M, shown in the link. 38KHz has a period of 26us, which I think eliminates round trip delay. Other IR detectors triangulate for distance but that is not the case here. I read through the datasheet without seeing anything.
Does anyone have some insight into this?
Thanks,
Dom...
Comments
Somehow, in a close proximity, it will switch on the measure distance capability as the frequency goes off from 38KHz. The different frequencies picked up by the sensor are 940nm, 38KHz and 1ms.
Does anyone have a link to a good description of this? Dom...
Beau,
I completely understand and agree with what you're saying about stars and flashlights. The reflected light from the LED does not decrease with frequency as it enters the detector.
However other factors can enter into the intensity of the reflected IR signal, like color or texture. To counter-act this the internal AGC should prop up the signal to a fixed level inside the detector regardless of why it's attenuated. The AGC makes sure the rest of the circuit has enough signal to work with, but this happens before the BPF.
I'm sure the reflected signal is NOT attenuated in the least by changing the frequency. It will decrease as distance increases because the LED light spreads out over a larger area. Perhaps the AGC is out of the circuit when the reflected light is bright (due to small distance) and the Amp output is larger than normal. Therefore the bandpass passes a larger signal than normal but attenuates it when it's off frequency. As the combination of the DC signal due to the distance/bandpass product crosses the comparator threshold it provides something corresponding to distance. When a normal signal level from a normal distance comes into the detector it will amplify it (due to the AGC) as needed before feeding it to the bandpass filter puts out a fixed AC level and the demodulator puts out a fixed DC to the comparator. What think?
Dom..
Edit:
Second Thoughts: I think I understand what's going on now. Thank you for helping me with this.