The keyestudio Infrared Obstacle Avoidance Sensor is an essential component for robotic applications, designed specifically for wheeled robots. This sensor features advanced distance adjustment capabilities and high precision. It employs infrared technology to detect obstacles, ensuring that robots can navigate their environment safely and efficiently. The sensor’s adaptability to varying ambient light conditions makes it suitable for various applications
Key Features
- Distance Adjustment: Easily adjustable detection distance (2 to 40 cm) using a built-in potentiometer for customized performance.
- High Precision: Utilizes infrared technology to detect obstacles with remarkable accuracy.
- Wide Voltage Range: Operates reliably within a voltage range of 3.3V to 5V, suitable for various microcontrollers.
- Robust Design: Capable of functioning effectively in different environmental conditions, with an operational temperature range of -10°C to +50°C.
- Effective Angle: Features a 35° detection angle for comprehensive obstacle sensing.
Technical Specifications
- Working Voltage: DC 3.3V to 5V
- Working Current: ≥ 20 mA
- Working Temperature Range: -10°C to +50°C
- Detection Distance: 2 to 40 cm
- IO Interface: 4 PIN (including +/-/S/EN)
- Output Signal: TTL voltage
- Accommodation Mode: Multi-circle resistance regulation
- Effective Angle: 35°
Applications
- Robotics: Ideal for wheeled robots that require reliable obstacle avoidance during navigation.
- Automated Vehicles: Essential for robotics in sectors requiring autonomous navigation, such as warehouse automation.
- Educational Projects: Valuable tool for teaching robotics and sensor interaction in educational settings.
- Prototyping: Useful in developing prototypes that involve navigating through real-world environments.
Connection Diagram
Sample Code
const int sensorPin = 3; // the number of the sensor pin const int ledPin = 13; // the number of the LED pin int sensorState = 0; // variable for reading the sensor status void setup() { pinMode(ledPin, OUTPUT); pinMode(sensorPin, INPUT); } void loop(){ // read the state of the sensor value: sensorState = digitalRead(sensorPin); // if it is, the sensorState is HIGH: if (sensorState == HIGH) { digitalWrite(ledPin, HIGH); } else { digitalWrite(ledPin, LOW); } } |
Result
Done uploading the code to board, you can see the led on both UNO board and obstacle detector sensor is turned on.
If we put a foam block in front of the sensor, this time when sensor detects the obstacle, sled on the sensor will be turned on.
Conclusion
The keyestudio Infrared Obstacle Avoidance Sensor is a versatile and reliable tool for any robotics enthusiast or developer. With its precise functionality and adjustable parameters, it enables robots to navigate effectively while avoiding obstacles. Investing in this sensor enhances your robotic projects, ensuring safe and effective operation in various environments.