Introduction
Hello World! I made another example project, I am using the KY-032 to show you how obstacle avoidance Sensors work. The code is basic but works fine for simple things. From the code you can build bigger projects.
The obstacle avoidance sensor is being used in multiple things, for example Unmanned military vehicles, cars, and a lot of robotics.
Check the next step for code and schematic.
Step 1: Schematic Code & Parts List.
PARTS LIST:
- Arduino Uno, I used the RobotDyn UNO, a chinese copy with 7 Analog pins.
- 3 Color RGB KY-016
- Obstacle Avoidance Sensor KY-032
- Buzzer
- Set of Jumper wires MM/FF/MF
- 9 Volt battery + Battery Plug.(optional)
EXPANDED TECHNICAL DETAILS
Low-Latency Non-Contact Navigation
This project builds a simple, effective autonomous rover that uses optical reflection to navigate around objects.
- IR Reflectance Calibration: Uses a pair of IR emitter/receiver (TCRT5000) sensors. The Arduino monitors the analog reflection intensity; when a surface is close, the reflected IR light increases the sensor's voltage, signaling an obstacle.
- Differential Steering Logic: When an obstacle is detected on the "Left" sensor, the Arduino reverses the left wheel and drives the right wheel forward, performing a sharp "Z-turn" until the path is clear.
Hardware
- L9110S Compact Driver: Manages two DC hobby motors using a high-density H-bridge, providing sufficient current for the rover while maintaining a small physical footprint.