DIYables Obstacle Avoidance Sensor
Click to zoom









Quick Overview
This 2-piece IR infrared obstacle avoidance sensor set provides object detection for Arduino, ESP32, ESP8266, and Raspberry Pi robotics projects. With adjustable detection range from 2cm to 30cm and a 35° detection angle, these sensors are perfect for collision avoidance, line tracking, and edge detection.
Ideal for obstacle avoidance cars/robots, automated vehicles, and line-following applications. The sensors operate on 3.3V-5V, making them compatible with most microcontrollers. Each sensor includes adjustable sensitivity via onboard potentiometer.
Key Features
- 2-Piece Set: Complete pack for robot projects
- IR Infrared Detection: Optical obstacle sensing
- Adjustable Range: 2cm to 30cm detection distance
- 35° Detection Angle: Wide sensing area
- Dual Voltage: 3.3V-5V operation
- Adjustable Sensitivity: Onboard potentiometer
- Wide Compatibility: Arduino, ESP32, ESP8266, Raspberry Pi
- Versatile Use: Obstacle avoidance, line tracking, edge detection
- ...NOTE
- During the shipment, this sensor may become deformed, which can cause malfunctioning. If the sensor is not working properly, adjust the IR transmitter and receiver to ensure they are parallel to each other.
- ...NOTE
SPECIFICATION
| Specification | Value |
|---|---|
| Product Type | IR Infrared Obstacle Avoidance Sensor |
| Quantity | 2 pieces |
| Input Voltage | 3.3V-5V DC |
| Detection Range | 2cm to 30cm (adjustable) |
| Detection Angle | 35° |
| Sensor Type | IR transmitter and receiver |
| Output | Digital signal |
| Adjustment | Onboard potentiometer |
Tutorials
- Arduino - Obstacle Avoidance Sensor tutorial
- Arduino Nano - Obstacle Avoidance Sensor
- Arduino Nano ESP32 - Obstacle Avoidance Sensor
- ESP32 - Obstacle Avoidance Sensor tutorial
- ESP32 MicroPython - Obstacle Avoidance Sensor
- ESP8266 - Obstacle Avoidance Sensor
- Raspberry Pi - Obstacle Avoidance Sensor
- Raspberry Pi Pico - Obstacle Avoidance Sensor
COMPATIBLE HARDWARE
- Arduino boards (UNO, Mega, Nano, etc.)
- ESP32 development boards
- ESP8266 (NodeMCU, Wemos D1, etc.)
- Raspberry Pi (all models)
- Raspberry Pi Pico
- Any 5V or 3.3V microcontroller with digital input pins
- Ideal for: Robot cars, obstacle avoidance vehicles, line tracking, edge detection









