FREE SHIPPING for all orders over $40
The KeyeStudio EASY PLUG Infrared Obstacle Avoidance Sensor Module is designed for wheeled robots, line counters, obstacle avoidance cars, and proximity-triggered projects. It uses an infrared transmitter and receiver pair, then a comparator circuit to produce a TTL output when reflected IR light indicates an obstacle.
The current listing specifies 3.3V-5V operation, detection distance of 2cm to 40cm, effective angle of 35 degrees, and adjustable distance through a potentiometer. Use it with KeyeStudio EASY PLUG boards, robot motor drivers, or visual indicators such as the RGB Full Color LED Module.
Infrared reflection depends heavily on target color, surface finish, angle, and ambient light. Calibrate the potentiometer in the actual robot environment before relying on the threshold.
| Parameter | Value |
|---|---|
| SKU | KY-KS0120 |
| Brand | KeyeStudio |
| Product Type | EASY PLUG infrared obstacle avoidance sensor |
| Working Voltage | DC 3.3V-5V |
| Working Current | At least 20mA per listing |
| Working Temperature | -10C to +50C |
| Detection Distance | 2cm-40cm adjustable |
| Output Signal | TTL voltage |
| Effective Angle | 35 degrees |
| Dimensions | 52 x 17 x 18mm |
| Weight | 6.2g |
Read the obstacle output output and print its state.
const int sensorPin = 2;void setup() { Serial.begin(115200); pinMode(sensorPin, INPUT);}void loop() { Serial.println(digitalRead(sensorPin)); delay(100);}
Turn on an LED when the module output is obstacle detected.
const int sensorPin = 2;const int ledPin = 13;void setup() { pinMode(sensorPin, INPUT); pinMode(ledPin, OUTPUT);}void loop() { digitalWrite(ledPin, digitalRead(sensorPin));}
Monitor the digital signal from a Pico-style board.
from machine import Pinimport timesensor = Pin(15, Pin.IN)while True: print(sensor.value()) time.sleep(0.1)
Q: What distance can it detect?
A: The listing specifies 2cm to 40cm.
Q: What voltage does it use?
A: DC 3.3V to 5V.
Q: Does color matter?
A: Yes, dark or non-reflective surfaces can be harder to detect.
Q: Can I adjust range?
A: Yes, use the onboard potentiometer.
Q: Is it analog?
A: The listing describes TTL output.
Q: Can it detect transparent objects?
A: Often poorly, depending on reflection.
Q: Can it be used for line tracking?
A: It can support simple black/white detection experiments.
Q: Why does sunlight affect it?
A: Ambient IR can interfere with reflection sensing.
Only logged in customers who have purchased this product may leave a review.