Perfect costumer support
TV
Solar Energy
Home & Office
Gaming
Electronics & Projects
Network
Cameras
KY-032 | IR Obstacle Avoidance Sensor Module
| BRAND: ACEBOTT |
KY-032 Obstacle Avoidance Sensor module
The KY-032 Obstacle Avoidance Sensor module is a distance-adjustable, infrared proximity sensor designed for wheeled robots. Also known as AD-032.
The sensor detection distance ranges from 2cm to 40cm, it can be adjusted by turning the potentiometer knob. Its operating voltage is 3.3V – 5V so it is suitable for a variety of micro-controllers like Arduino, ESP32, Teensy, ESP8266, Raspberry Pi, and others.
It has strong adaptability to ambient light and it is fairly accurate to sense changes in the surrounding environment.
KY-032 Specifications
The module has a pair of infrared LEDs, an emitter, and a receiver. The emitting LED sends infrared light pulses at a certain frequency. When the light hits an obstacle is reflected back to the receiver LED.
The KY-032 has 4 pins: GND, +, S (out), and EN. The jumper makes the module permanently enabled so it’s always detecting for obstacles. To control the state of the sensor remove the jumper and use the EN pin, a HIGH signal will enable the sensor and a LOW signal will disable it.
You can adjust the detection distance by turning the left knob, turn it to the middle for maximum distance. The right knob controls the frequency of the emitting IR pulse, turn it clockwise all the way to set the emitter to the right frequency required to work with the receiver.
| Working voltage | 3.3V – 5V DC |
|---|---|
| Working current | ≥ 20mA |
| Working temperature | -10°C – 50°C [14°F – 122°F] |
| Detection distance | 2cm – 40cm [0.79in – 15.75in] |
| IO interface | 4-wire interface (-/+/S/EN) |
| Output signal | TTL level (low level if obstacle detected, high if no obstacle) |
| Adjustment method | multi-turn resistance adjustment |
| IR pulse frequency | 38kHz according to HS0038DB datasheet |
| Effective angle | 35° |
| Board Size | 1.6cm x 4cm [0.62in x 1.57in] |
| Weight | 9g |
KY-032 Connection Diagram
Connect the module’s GND line (the leftmost pin) to GND on the Arduino and + (the second pin) to 5V.
Connect signal (out) to pin 3 on the Arduino.
[*]Remove the jumper to use the EN pin.
| KY-032 | Arduino |
|---|---|
| GND | GND |
| + | +5V |
| out | Pin 3 |
| EN [*] | Pin 2 [*] |
KY-032 Arduino Code
When the sensor detects an obstacle, it sends a LOW signal on its output pin. A HIGH signal is sent when the obstacle is not detected or out of range. In the following example, we’ll turn on the LED on the Arduino’s pin 13 when the sensor detects an obstacle.
The code is designed to run with the jumper in place so the sensor is always on. To programmatically enable/disable the sensor remove the jumper, connect the sensor’s EN pin to pin 2 on the Arduino, and uncomment lines 4, 12, and 13.
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);
}
}
Downloads
What our customers say
David and Aman were amazing. We had trouble with our Auxiliary cord. They were patient knowledgeable and friendly
Excellent service i really appreciate Highly recommend
Excellent customer service!
Very nice place! They helped me with my gadget for my scooter! 💛recommended
Very helpful staff. Found what I was looking for😎
Very helpful and did solve the issues about my husband’s phone. Thank you
David was super friendly and knowledgeable and also patient with my parents
went to buy a mobile microphone, they have different options and gave me very helpful advices to decide which one i should get :)
Excellent Service Im very happy with the service I recieved . They were incrediblly helpful and always went out of their way to explain everything clearly and patiently. All of the electronics were excellent quality and I really apreciated the time and effort they put into helpong me! Highly Recommended!!
Increible atención
Everything you need you can find, kindness and professionality
They are advertising the new Z Fold 8 ultra. We have the Z Fold 7, so we went there to check it out ans to buy a new mobile. I asked to see the phone because, in stores, they usually let you see and touch the phone before buying it. The guy replied in a really sarcastic way: “As I am the professional here, I can confirm that it is a good phone.” I was like: “What?” Then I showed him that I already had a Z Fold 7 in my hands. He replied: “So, you already know that it is a good phone.” Again, I was like: “What?” So I explained that I simply like to see and touch the phone before buying it. He just told me: “OK, go to a big store. We don’t have the phone here.” Well… not recommended. Even though I’m a big Samsung fan, I still want to check the phone for myself before buying it. It’s up to me. Expertise on something? ChatGPT also has expertise and will probably tell me much more than a sales guy.
Very helpful and friendly service. Thanks so much.
Amazing service and staff always ready to help and a vast selection of items to choose from.
Good service, David very knowledgeable and helpful
Very pleasant experience, staff is happy to help and provide information
Friendly, helpful team who are attentive and take their time to advise you with what product best meets your needs. Really appreciate the service!
Хороший ассортимент, профессиональные и приветливые сотрудники, помогли и подсказали с выбором
David es un genio. Atencion 10 puntos. Gran variedad! 🤝👏
Great service. Fast reliable and very professional people. Keep it guys u re great all of you.
Good sarvic
Impressing staff!!!thank you
Good staff, perfect service, will recommend this shop over other
Fantastic store!
Top service, my experience was very nice, they helped me with all the questions i asked very knowledgeable 100% recommend
The best staff in QAWRA very helpful and friendly 👏🏻👏🏻👏🏻👏🏻 definitely highly recommend place 😊
Zero stars if I could. I purchased a fitness tracker from this store that failed to perform its most basic advertised functions. It would not reliably track steps, sleep, or heart-rate data, and the battery life was nowhere near what was claimed. When I returned to the store for assistance, I was told the device had been checked and was supposedly working correctly. However, the problems continued exactly as before. Despite the tracker clearly not functioning as expected, the store refused to offer a replacement or further assistance and instead told me to deal directly with the manufacturer. This is extremely disappointing customer service. When a product sold by a retailer appears to be defective, customers reasonably expect the retailer to help resolve the issue rather than simply pass responsibility elsewhere. The most frustrating part was not the faulty device itself, but the complete lack of support once the sale had been made. Based on my experience, I would strongly recommend that others think carefully before purchasing electronics from this business, especially if after-sales support and customer service are important to them.
The staff were really helpful and they knew a lot about their products. 10/10 I'd definitely recommend this store. Also, it is the only place in St. Paul's Bay selling Kodak, Polaroid cameras and digital cameras.
Fastest repair
Malta's one-stop electronics store. From gadgets to gaming, we deliver same-day across the island.
(+356) 2744 3236 VAT MT16528323 · 3D Secure payments by Viva Wallet
Malta's one-stop electronics store. From gadgets to gaming, we deliver same-day across the island.




