To detect the interruption of a light beam or a reflective surface, a LED sends light detected by a phototransistor. If only the static level is used, stray light may falsely indicate a reflecting surface or not detect an interruption. This circuit uses modulated light that is detected by a PLL, so any light of a differnent frequency or phase is ignored.
Transistor Q1 drives the LED with the correct phase; R4 determines its current.
If there is strong stray light, R2 might be reduced to avoid saturation of the photo transistor.
Output on pin 8 is on if the light of the correct phase and freqency is stable. It can drive 100mA (on) and withstand 15V (off).
Didn't measure it. By the datasheet, the operation fequency is about 1kHz, and at least 10 cycles are required if C2 is minimal, which would be 0.1µF. As C2 is 1µF, switching time might be about 0.1s. Used the circuit with a reflective surface; to avoid spurious switching, it is rather slow. But 100kHz frequency and thus 1ms switching time should be possible.
Used it for a telescope drive many years ago, sensing a white area as within limits. Too much ambient light as well as a broken or not connected wire would stop the drive.
Very nice idea. PLL's have gone somewhat out of fashion. I guess the performance depends on the LED, photo transistor, and thePLL-frequency. Do you have any practical data on the performance in terms of how fast it detects with the components you've used?
Didn't measure it. By the datasheet, the operation fequency is about 1kHz, and at least 10 cycles are required if C2 is minimal, which would be 0.1µF. As C2 is 1µF, switching time might be about 0.1s. Used the circuit with a reflective surface; to avoid spurious switching, it is rather slow. But 100kHz frequency and thus 1ms switching time should be possible.