Close
0%
0%

Photointerrupter with modulated light

To detect a reflecting surface or the interruption of a light beam, a LED and a phototransistor are driven by a PLL.

Public Chat
Similar projects worth following
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).

Enjoy this project?

Share

Discussions

Rainer Glaschick wrote 04/26/2026 at 12:20 point

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.

  Are you sure? yes | no

Anders Dinsen wrote 04/27/2026 at 19:08 point

Interesting! For most applications that is probably plenty enough. I'm now looking for a problem which can be solved by your circuit :D

  Are you sure? yes | no

Rainer Glaschick wrote 04/27/2026 at 20:25 point

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.  

  Are you sure? yes | no

Anders Dinsen wrote 04/26/2026 at 10:18 point

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?

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates