The IR Obstacle Avoidance Sensor Module is an essential electronic component for robotics and automation projects. Using infrared reflection technology, it can detect objects within a range of 2cm to 30cm. It features an onboard potentiometer to adjust the detection distance and a dual-indicator system (Power and Signal LEDs). This module is highly compatible with Arduino, Raspberry Pi, and other microcontrollers, making it perfect for line-following robots, smart cars, and automated security systems. Read more
The IR Obstacle Avoidance Sensor Module is a versatile and easy-to-use electronic "eye" for your projects. At Electrapac, we recommend this sensor for hobbyists and students building smart robots, automated dispensers, or security alarms that need to detect the presence of an object without physical contact.
The module consists of an infrared transmitter (the clear LED) and an infrared receiver (the black LED). The transmitter emits a beam of infrared light; when an object comes within range, the light reflects back to the receiver. The onboard LM393 comparator then processes this signal and toggles the digital output pin. It is highly adaptive to ambient light and features a sensing range that can be manually tuned.
Adjustable Sensitivity: Features an onboard multi-turn potentiometer.
Simple Digital Interface: The sensor outputs a LOW (0V) signal when an obstacle is detected and a HIGH (5V/3.3V) signal when the path is clear. This makes it compatible with almost any microcontroller.
Ambient Light Resistance: The module is designed to filter out standard indoor lighting, ensuring the receiver only responds to the reflected infrared beam from its own transmitter.
Dual LED Indicators: Includes a power light to show the module is active and a status light that glows only when an object is in range, making debugging and setup a breeze.
Easy Mounting: Features a pre-drilled M3 screw hole, perfect for securing the sensor to the chassis of a robot or a fixed assembly line.
Connecting the Electrapac IR sensor to your Arduino or Raspberry Pi is simple, requiring only three pins:
VCC: Connect to 3.3V or 5V DC.
GND: Connect to the common ground.
OUT: Connect to a Digital Input pin on your MCU.
Pro-Tip: Infrared light is absorbed by dark surfaces and reflected by light surfaces.
A black object may need to be much closer to the sensor to be detected compared to a white object. Always calibrate your potentiometer using the specific materials your project will encounter.
Obstacle Avoidance Robots: The primary sensor for DIY rovers to help them "see" walls and avoid collisions.
Automatic Hand Sanitizer Dispensers: Detecting a hand underneath the nozzle to trigger a pump.
Line Following Robots: When pointed downward, it can distinguish between a white floor and a black line.
Touchless Switches: Creating a "wave-to-activate" switch for lights or doors to improve hygiene.
Production Line Counters: Counting items as they pass by on a conveyor belt.
We source our IR Obstacle Avoidance Sensors with precision LM393 comparators to ensure sharp, reliable switching and long-term durability. Visit us at
| Specifications | Descriptions |
|---|---|
| Operating Voltage | DC 3.3V – 5.0V |
| Detection Distance | 2cm – 30cm (Adjustable) |
| Detection Angle | 35° |
| Output Type | Digital (0 or 1) |
| Comparator Chip | LM393 (Stable performance) |
| Output Current | ~15mA |
| Dimensions | 31mm x 15mm |
| Package | 1 x IR Sensor |
Subscribe to our newsletter and get early access to new arrivals, tech trends, and exclusive unboxing reviews from Electrapac.?