
Infrared Obstacle Avoidance Sensor Module
An inexpensive solution for robotics and electronics projects
- Working voltage: DC 3.3V 5V
- Working current: More than 20mA
- Working temperature: -10 to 50 centigrade degree
- Detection distance: 2-40cm
- IO interface: 4 line (- / + / S / EN)
- Output signal: TTL Level
- Adjusting mode: Multi-resistance regulation
- Effective angle: 35 degrees
- Weight (gm): 5
- Dimensions (LxWxH) in mm: 40 x 16 x 11
- Shipment Weight: 0.01 kg
- Shipment Dimensions: 5 x 2 x 2 cm
Top Features:
- Easy to interface with Arduino or other micro-controllers
- Works with Raspberry Pi (3-6 volts)
- Active LOW output with onboard LED
- Enable/disable functionality with onboard jumper
This Infrared Obstacle Avoidance Sensor Module is an assembled module with four pins: +5-volts, GND, output, and EN. It is designed for easy interfacing with Arduino and Raspberry Pi within a voltage range of 3-6 volts. The enable pin EN can disable or enable the device based on the voltage input. The module features two potentiometers for adjusting operating frequency and intensity, with the operating frequency centered at 38 kHz.
The detector has a maximum reliable range of around 30-40 cm, depending on the material. The onboard oscillator circuit is based on a 555 timer, providing stable performance. The module's narrow useful range makes tweaking unnecessary for most applications.
Sample Code:
int detector = 8; // define the obstacle avoidance sensor interface
int val;
void setup (){
pinMode(13, OUTPUT); // Built-in Arduino LED
digitalWrite (13, LOW);
pinMode (detector, INPUT); // define the obstacle avoidance sensor output interface
}
void loop (){
val = digitalRead (detector);
if (val == HIGH) {
digitalWrite (13, HIGH); // LED flashes when obstacle detected
delay(100);
} else {
digitalWrite (13, LOW);
delay(100);
}
}
Package Includes: 1 x Infrared Obstacle Avoidance Sensor Module
* Images are for illustration only; actual product may vary.