The KY-032 sensor is a sensor known as an infrared barrier detection sensor. The KY-032 obstacle detection sensor is generally not used for distance measurement, unlike the HC-SR04 ultrasonic distance sensor. The threshold set by the potentiometers on it sends two different signals, either high or low, depending on the proximity level. The KY-032 sensor has both an infrared receiver and a transmitter. It sends the signal according to the distance and proximity to the distance of the infrared rays detected by the KY-032 sensor. Here, if the value sent by the sensor is high, HIGH means no obstacle. The sensor sends a low, meaning LOW. With this sensor, robot projects can be used to avoid obstacles and can be used as switch-on switches. So you can see the KY-032 button function. The following example shows the use of the KY-032 sensor and the dc motor, led and buzzer together. According to this example, projects such as robot avoiding obstacles, cars standing in front of obstacles, lights that can be lit or turned off by hand, or KY-032 sensor can be included in more complex projects.

Project Video





The point to be considered when using the KY-032 obstacle detection sensor is to make the correct adjustment of the potentiometers on the ground. When this is not done, the sensor may not send the correct values ​​because the distance is not detected, and you may call the sensor which is actually intact. Therefore, if the sensor does not work correctly in the first stage, you should adjust the potentiometers on it. Another issue that should be considered is that the sensor signaling HIGH signaling indicates no obstruction is detected, and the signal is detected when the LOW signal is detected. This can cause confusion.

Project Scheme

Necessary Materials

Ardunio UNO

Dc-Motor

330 Ohm Resistor

Led

Piezo Buzzer

Jumper Cables

Ardunio Source Code