Wish List 0

Ky-032 Infrared Obstacle Avoidance Sensor Module

Rs. 59.00 Rs. 71.00

-This Infrared Obstacle Avoidance Sensor Module is an less expensive method to avoidance detection for robotics and different electronics uses.

-It comes as an assembled module, as shown above, there are best 4 pins: +5-volts, GND, output, and EN.
-Output is an energetic LOW and has an onboard reputation LED.
-It’s very smooth to interface without delay with Arduino or other micro-controllers.
-It additionally works with the Raspberry Pi with a voltage variety of 3-6 volts.
-Connect Vcc to 3-volts!

-The allow pin “EN” will disable the tool when HI (Vcc) and enable while LO (GND).
-The onboard jumper can be left open to allow external manipulate of enable/disable of the module.
-I see little need for this characteristic and would leave the jumper on and the pin disconnected.
-There are  potentiometers on the module one controlling working frequency (concentrated at 38 kHz) the alternative controlling intensity.
-The detector became designed for 38 kHz and the onboard oscillator circuit is based on a 555 timer.
-Tweaking gives a touch better range however I’d advise leaving it alone because the beneficial range is slender.
-It worked properly as is. The maximum dependable variety in my take a look at become round 30-40 cm and depended on the form of fabric.
-A clean white surface labored far higher than a black or tough floor

SPECIFICATIONS:
Working voltage DC        3.3V – 5V
Working current           More than 20mA
Working temperature       -10 to 50 centigrade degree
Detection distance        2 – 40cm
IO interface              4 line (- / + / S / EN)
Output signal             TTL Level
Adjusting mode            Multi-resistance regulation
Effective angle           35 degree
OVERVIEW:
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 °

PACKAGE INCLUDES:

1 PCS x Ky-032 Infrared Obstacle Avoidance Sensor Module


//SOURCE CODE TAKEN FROM BELOW LINK

//https://arduinomodules.info/ky-032-infrared-obstacle-avoidance-sensor-module/

int ledPin = 13;      // LED pin on arduino

int detectorPin = 3;  // obstacle avoidance sensor interface

int val;              // variable to store result

//int enablePin = 2;  // sensor enable interface (EN)


void setup()

{

  pinMode(ledPin, OUTPUT);  // Define LED as output interface

  pinMode(detectorPin, INPUT);  // Define obstacle avoidance sensor as input interface

  

  // [uncomment and remove jumper on module to use enable pin (EN)]

  //pinMode(enablePin, OUTPUT);

  //digitalWrite(enablePin, HIGH);  // Enable sensor

}


void loop()

{

  val = digitalRead(detectorPin); // Read value from sensor

  if(val == LOW) // When the sensor detects an obstacle, the LED on the Arduino lights up

  {

    digitalWrite(ledPin, HIGH);

  }

  else

  {

    digitalWrite(ledPin, LOW);

  }

}


15 days

Write a review

Please login or register to review