Ky-032 Infrared Obstacle Avoidance Sensor Module
Rs. 54.00 Rs. 65.00
- Brand: https://www.everlight.com/SeriationProduct.aspx?Seq=38f8d00b-260
- Product Code: SEN-IR
- SKU -
- Availability: In Stock
- Price in reward points: 1
- For Bulk Order 9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
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