IR obstacle avoidance sensor module
IR LED and receiver that output LOW when something is close. Range set by a trimmer.
What is the IR obstacle avoidance sensor module and what is it used for?
IR LED and receiver that output LOW when something is close. Range set by a trimmer. Makers use it for line-following and obstacle robots.
An IR LED shines forward and a photodiode measures the reflection; a comparator turns the level into a digital output.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | Reflected infrared (object present or not) |
| Range | About 2 to 30 cm, depends on the surface |
| Interface | Digital output, LOW when an object is detected |
| Supply voltage | 3.3 to 5 V |
Pinout
How to use it
Turn the trimmer until the indicator LED just switches on at the distance you want. Black and shiny surfaces reflect less and are detected at shorter range; sunlight can trigger it falsely.
Applications
Builds that use it
Bidirectional visitor counter with room light
20-second hand wash timer
Table air hockey scoreboard
Carrom pocket score counter
Slot car or toy car lap timer
Marble run with motor lift
Musical stairs
Touchless soap and sanitiser dispenser
Alternatives
- TCRT5000 IR reflective sensor moduleShort range, better for line following
- VL53L0X time-of-flight distance sensorReal distance, not just near or far
Common questions
What is the IR obstacle avoidance sensor module used for?
In maker projects: line-following and obstacle robots.
How does the IR obstacle avoidance sensor module work?
An IR LED shines forward and a photodiode measures the reflection; a comparator turns the level into a digital output.
What voltage does the IR obstacle avoidance sensor module need?
3.3 to 5 V.
How do I connect the IR obstacle avoidance sensor module to an Arduino or ESP32?
Digital output, LOW when an object is detected. Pins: VCC (3.3 to 5 V), GND (Ground), OUT (Digital, LOW when an object is detected).
What can I use instead of the IR obstacle avoidance sensor module?
TCRT5000 IR reflective sensor module and VL53L0X time-of-flight distance sensor.
