ESP32 KY-022 Infrared Receiver Module

KY-022 Infrared Receiver Module image

KY-022

Protocol: Infrared

Overview

The KY-022 is an infrared receiver module capable of detecting 38kHz IR signals. It's commonly used in projects requiring remote control signal reception, such as home automation and robotics.

About KY-022 Infrared Receiver Module

The KY-022 Infrared Receiver Module is designed to receive 38kHz modulated infrared signals, commonly used in remote control applications. It can decode signals from various IR remotes, making it ideal for projects involving wireless control. The module operates at voltages between 3.3V and 5V, ensuring compatibility with microcontrollers like Arduino and ESP32. An onboard LED provides visual feedback when an IR signal is detected.

Where to Buy

KY-022 Infrared Receiver Module

Starting from

1$ per unit

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

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

Technical Specifications

Operating Voltage 3.3V - 5V
Operating Current 0.4 - 1.5 mA
Reception Range Up to 18 meters
Reception Angle ±45°
Carrier Frequency 38 kHz

Pinout Configuration

The VCC pin is used to supply power to the sensor, and it typically requires 3.3V or 5V (refer to the datasheet for specific voltage requirements). The GND pin is the ground connection and must be connected to the ground of your ESP32.

  • Pin (-): Connects to ground (GND).
  • Pin (middle): Connects to VCC (3.3V to 5V).
  • Pin (S): Outputs the demodulated digital signal; connect to a digital input on your microcontroller.

Wiring with ESP32

  • KY-022 Pin (-): Connect to ESP32 GND.
  • KY-022 Pin (middle): Connect to ESP32 3.3V.
  • KY-022 Pin (S): Connect to a digital GPIO pin on ESP32 (e.g., GPIO4).

Troubleshooting Guide

Common Issues

❌ No Response from Sensor

⚠️ Interference or False Signals

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🔧

ESP-IDF Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 KY-022 Infrared Receiver 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.

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

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