Tuesday, October 20, 2020
Home Arduino Strarter Kit KY-032 | OBSTACLE AVOIDANCE SENSOR

KY-032 | OBSTACLE AVOIDANCE SENSOR

The KY-032 obstacle avoidance sensor is an infrared obstacle avoidance sensor. It comes with the 37 in 1 starter kit for Arduino. It helps the user detects if there is an obstacle, but it can’t measure the distance from the obstacle. If you are planning to measure distance check the HC-SR04
USA purchase link
UK purchase link
Germany purchase link

ky-032
KY-032 | Obstacle avoidance sensor

Specifications :

  • Working voltage: DC 3.3V-5V
  • Working current: ≥ 20mA
  • Operating temperature: -10 ℃ – +50 ℃
  • detection distance :2-40cm
  • IO Interface: 4-wire interfaces (- / + / S / EN)
  • Output signal: TTL level (low level there is an obstacle, no obstacle high)
  • Adjustment: adjust multi-turn resistance
  • Effective angle: 35 °

How does the KY-032 Work :

The infrared led keeps on sending a signal, as a result, this on hitting an obstacle reflects backs. The photoreceiver receives the reflected signal and then sends a HIGH signal to the microcontroller. The detection range can be configured by the 2 Potentiometer.

KY-032
Working Principle of KY-032

Pin Configuration :

Ky-032 pin diagram
Pin Configuration of KY-032

This module has four pins:

  • Vcc+
  • Signal
  • Ground
  • Enable pin

Arduino Wiring :

First, connect Vcc to 5v of the Arduino.

Second, connect  GND to the GND of the Arduino.

Third, connect the signal pin to pin 3 of the Arduino.

The enable pin allows you to activate and deactivate the obstacle detection by manipulating the enable-pin.

Arduino Code :

int Led = 13 ;// define LED Interface
int buttonpin = 3; // define the obstacle avoidance sensor interface
int val ;// define numeric variables val
void setup ()
{
  pinMode (Led, OUTPUT) ;// define LED as output interface
  pinMode (buttonpin, INPUT) ;// define the obstacle avoidance sensor output interface
}
void loop ()
{
  val = digitalRead (buttonpin) ;// digital interface will be assigned a value of 3 to read val
  if (val == HIGH) // When the obstacle avoidance sensor detects a signal, LED flashes
  {
    digitalWrite (Led, HIGH);
  }
  else
  {
    digitalWrite (Led, LOW);
  }
}

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

KY-032 | OBSTACLE AVOIDANCE SENSOR

The KY-032 obstacle avoidance sensor is an infrared obstacle avoidance sensor. It comes with the 37 in 1 starter kit for Arduino. It helps...

HIH-4000 | Humidity Sensors

The HIH-4000  sensors are one of the highly efficient humidity sensors you can buy. The HIH-4000 is an analog humidity sensor. It is useful...

KY-026 | ARDUINO FLAME IR SENSOR

The KY-026 Arduino Flame Sensor is a low-cost starter sensor. It normally comes in the starter kit of Arduino like the ky-039. It can...

KY-039 | ARDUINO HEARTBEAT SENSOR

The KY-039 Heartbeat sensor is one of the cheapest sensors to get a start on Arduino like the Sound sensor. It cost less than...

Recent Comments