EL-96IntermediatePremiumOp-amp circuits
Infrared Obstacle Detector
Bring your hand a few centimeters above the sensor: the red LED lights and the buzzer sounds. The TCRT5000 sends out invisible infrared light and measures what is reflected back; the LM358 compares this with a threshold you set on the potentiometer. A BC547 drives the buzzer and the LED, and a 470 kΩ resistor stops flickering at the threshold. You learn about the comparator, sensing distance by reflected light and hysteresis. The range is only a few centimeters.
0.0(0)

It is built with 5 V (MB102), one LM358, one TCRT5000, one BC547, one potentiometer, six resistors, one capacitor, a red LED and an active buzzer. The infrared LED of the TCRT5000 sends light upward; a hand in front of it reflects the light back, the current through the phototransistor rises and the voltage across the 22 kΩ resistor goes up. The LM358 compares this voltage with the threshold set by the potentiometer; when the threshold is crossed, the LED lights and the buzzer sounds. The range is about 1 to 4 cm. What you learn: comparator, threshold setting, hysteresis, driving with a transistor.
Premium Content
This circuit's build steps, how-it-works guide and FAQ are open to Premium members.
- Build Steps
- How It Works
- Frequently Asked Questions
