IR Infrared Obstacle Avoidance Sensor Module KY-032 4 pin
- Detection distance: 2-40cm
- IO Interface: 4-wire interfaces (- / + / S / EN)
- Output signal: TTL level
- Adjustment: adjust multi-turn resistance
- Effective angle: 35 °
- Description
- Additional information
Description
This Infrared Obstacle Avoidance Sensor Module is an inexpensive solution to avoidance detection for robotics and other electronics uses.
It comes as an assembled module, as shown above, there are only four pins: +5-volts, GND, output, and EN. Output is an active LOW and has an onboard status LED. It’s very easy to interface directly with Arduino or other micro-controllers. It also works with the Raspberry Pi with a voltage range of 3-6 volts. Connect Vcc to 3-volts!
The enable pin “EN” will disable the device when HI (Vcc) and enable when LO (GND). The onboard jumper can be left open to allow external control of enable/disable of the module. I see no use for this function and would leave the jumper on and the pin disconnected. There are two potentiometers on the module one controlling operating frequency (centred at 38 kHz) the other controlling intensity. The detector was designed for 38 kHz and the onboard oscillator circuit is based on a 555 timer. Tweaking gives a little better range but I’d suggest leaving it alone because the useful range is narrow. It worked well as is. The maximum reliable range in my test was around 30-40 cm and depended on the type of material. A smooth white surface worked far better than a black or rough surface.
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) // When the obstacle avoidance sensor detects a signal, LED flashes
{
digitalWrite (13, HIGH);
delay(100);
}
else
{
digitalWrite (13, LOW);
delay(100);
}
}
Package Includes:
1 x Infrared Obstacle Avoidance Sensor Module
| 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 degree |
| Weight (gm) | 5 |
| Dimensions in mm (LxWxH) | 40 x 16 x 11 |
| Shipping Weight | 0.01 kg |
| Shipping Dimensions | 5 × 2 × 2 cm |
Additional information
| Size | |
|---|---|
| Type |
Related Products
TCRT5000 Single Channel Line Tracking Sensor Module 3 pin
12mm GL12528 Light Sensitive Photoresistor LDR 1PCS
IR Encoder Photoelectric Sensor 4-pin
IR Receiving Head VS1838B Remote Control Receiver 3pin
BFD-1000 Five Channel Infrared Tracking Module Tracing Sensor
QTR-8RC 8 Channel Line Tracker Reflectance Sensor Array
36W 3A Short Distance IR Hand Sweep ON-OFF Sensor Module
Products With Similar Tags
QTR-8RC 8 Channel Line Tracker Reflectance Sensor Array
12mm GL12528 Light Sensitive Photoresistor LDR 1PCS
TCRT5000 Line Tracking sensor 4 pin HW-870
TSOP JS-1838B Infrared Remote Receiver | 38kHz | High Noise Immunity
IR Receiving Head VS1838B Remote Control Receiver 3pin
Photo Resistor Sensor LDR 5mm 5537
GY-53 VL53L0X Laser ToF Flight Time Ranging Sensor Module – High Precision Time-of-Flight Distance Measurement with PWM & Serial Output
TCRT5000 Reflective IR sensor photoelectric switch
TCRT5000 Single Channel Line Tracking Sensor Module 3 pin
HC-SR505 Mini Infrared PIR Motion Sensor Infrared Detector Module
