KY-032 Infrared Obstacle Avoidance Sensor Module

KY-032 Infrared Obstacle Avoidance Sensor Module image

View on Amazon

Overview

The KY-032 is an infrared obstacle avoidance sensor module that detects objects by emitting and receiving infrared light. It provides a digital output signal upon detecting an obstacle, making it suitable for applications like robotic navigation and object detection.

About KY-032 Infrared Obstacle Avoidance Sensor Module

The KY-032 Infrared Obstacle Avoidance Sensor Module is designed to detect obstacles using infrared light. It emits infrared light, which, when reflected by an obstacle, is detected by a photodiode. The module outputs a digital signal indicating the presence or absence of an obstacle. This sensor is commonly used in robotics for obstacle detection and avoidance.

Where to Buy

Get Your KY-032

KY-032 Infrared Obstacle Avoidance Sensor Module

Starting from

$2 per unit

Amazon com
Amazon.com Ships worldwide
Amazon de
Amazon.de Ships to EU
Aliexpress
AliExpress Best value option

💡 Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specs

KY-032 Specifications

Complete technical specification details for KY-032 Infrared Obstacle Avoidance Sensor Module

📊 Technical Parameters

Operating Voltage 3.3V to 5V
Detection Distance 2 cm to 20 cm
Detection Angle 35°
Current Consumption 6 mA at 5V; 10 mA at 3V
Operating Temperature -10°C to 50°C
Dimensions 41 x 17 x 11 mm
Pin Configuration

KY-032 Pinout

The **KY-032** is a 4-pin infrared obstacle avoidance sensor module:

Visual Pinout Diagram

Pinout Diagram Primary
KY-032 Infrared Obstacle Avoidance Sensor Module pinout
4
Total Pins

Pin Types

Power
2
Communication
2

Quick Tips

🔌

**Interface**: Digital obstacle detection,🔦 **Sensor**: IR LED emitter + photodiode receiver pair,🚨 **Signal**: Active low - S pin goes LOW when obstacle detected

**Power**: 3.3V to 5V operation,📏 **Range**: 2-30cm adjustable (depends on potentiometer and object reflectivity),🎚️ **Adjustment**: Two potentiometers - one for distance, one for sensitivity

🔋

**Enable Pin**: Pull EN LOW to disable sensor, HIGH (or leave open) to enable,🎯 **Applications**: Robot obstacle avoidance, line following, proximity detection, object counting

Pin Descriptions

Pin NameTypeDescriptionNotes
1 GND
Power

Ground connection

2 VCC
Power

Power supply

3.3V or 5V

3 S
Communication

Signal output

LOW when obstacle detected

4 EN
Communication

Enable pin

Optional - controls sensor on/off

Connection Guide

Wiring KY-032 to ESP32

To interface the **KY-032** with an **ESP32** for obstacle detection:

Visual Wiring Diagram

Wiring Diagram Recommended
KY-032 Infrared Obstacle Avoidance Sensor Module wiring with ESP32
4
Connections

Connection Status

Required
3
Optional
1

Protocol

Digital

Pin Connections

KY-032 PinConnectionESP32 PinDescription
1 GND Required
GND

Ground

2 VCC Required
3.3V or 5V

Power supply

3 S Required
GPIO16

Digital input (any GPIO)

4 EN Optional
GPIO17 or VCC

Enable control (optional)

💡

**Detection Logic**: S pin reads LOW when obstacle present, HIGH when clear

📏

**Distance Tuning**: Adjust onboard potentiometer to set detection range (2-30cm)

🎚️

**Sensitivity Tuning**: Second potentiometer adjusts response to different surface colors/materials

**Enable Control**: Connect EN to GPIO for software on/off, or tie to VCC for always-on

🔋

**LED Indicators**: Power LED and detection status LED onboard

⚠️

**Ambient Light**: Works best indoors - sunlight can cause false readings

📊

**Pull-up**: Internal pull-up on S pin recommended for stable HIGH state

🤖

**Robot Use**: Mount at appropriate height for target obstacles (usually 5-15cm above ground)

Help & Support

KY-032 Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

KY-032 Programming Examples

Ready-to-use code examples for different platforms and frameworks

Summary

Wrapping Up KY-032

The ESP32 KY-032 Infrared Obstacle Avoidance Sensor Module is a powerful KY-0xx module sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

Best Practices

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Safety First

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.

Ready to Start Building?

Now that you have all the information you need, it's time to integrate the KY-032 into your ESP32 project and bring your ideas to life!