KY-022 IR Infrared Receiver Module – 38kHz Remote Control Sensor for Arduino & ESP32
The KY-022 IR Infrared Receiver Module is a compact infrared sensor designed to receive and decode infrared signals transmitted by compatible remote controls and IR transmitters.
Featuring a 38kHz infrared receiver, commonly based on the VS1838B or an equivalent component, the module detects modulated infrared signals and converts them into digital pulses that can be processed by a microcontroller.
The KY-022 is ideal for Arduino, ESP32, Raspberry Pi, robotics, home automation, remote-controlled devices, and DIY electronics projects.
Key Features
-
Model: KY-022
-
Sensor Type: Infrared Remote Control Receiver
-
Typical Receiver IC: VS1838B or Equivalent
-
Carrier Frequency: 38kHz
-
Operating Voltage: Typically 2.7V–5.5V DC (Receiver Dependent)
-
Output Type: Digital
-
Detection Method: Modulated Infrared Light
-
3-Pin Interface: Signal (S), VCC (+), GND (-)
- Compatible with Common IR Remote Control Protocols
- Compact and Lightweight PCB Design
- Suitable for Arduino, ESP32, and Raspberry Pi Projects
Technical Specifications
| Parameter |
Specification |
| Model |
KY-022 |
| Product Type |
Infrared Receiver Module |
| Sensor Technology |
Infrared Photodetector with Demodulation Circuit |
| Typical Receiver Component |
VS1838B or Compatible |
| Center Carrier Frequency |
38kHz |
| Operating Voltage |
Typically 2.7V–5.5V DC |
| Output Type |
Demodulated Digital Signal |
| Output Logic |
Typically Active LOW |
| Typical Detection Distance |
Up to Approximately 10–18m Under Suitable Conditions |
| Typical Reception Angle |
Approximately ±45° (Receiver Dependent) |
| Number of Pins |
3 |
| Pin Configuration |
S / + / - |
| Board Dimensions |
Approximately 18.5 × 15mm |
| Communication Interface |
Digital GPIO |
| Compatible Protocols |
NEC, Sony SIRC, RC5, RC6 and Others, Subject to Software Support |
Pin Configuration
| Pin |
Function |
| S |
Digital Infrared Signal Output |
| + |
Power Supply |
| - |
Ground |
Arduino Connection Example
| KY-022 |
Arduino Uno |
| S |
D2 |
| + |
5V |
| - |
GND |
The Arduino reads the demodulated infrared signal and uses an infrared decoding library to identify commands transmitted by a compatible remote control.
Arduino Example Code
The following example uses the Arduino-IRremote library (version 4.x).
#include <IRremote.hpp>
const int IR_RECEIVE_PIN = 2;
void setup() {
Serial.begin(9600);
IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK);
}
void loop() {
if (IrReceiver.decode()) {
IrReceiver.printIRResultShort(&Serial);
IrReceiver.resume();
}
}
How It Works
- Connect the KY-022 module to the Arduino.
- Install the Arduino-IRremote library through the Arduino IDE Library Manager.
- Upload the example code.
- Open the Serial Monitor at 9600 baud.
- Point a compatible infrared remote control toward the receiver and press a button.
- The Arduino displays the received infrared protocol and command information.
Applications
- Infrared Remote Control Projects
- Arduino and ESP32 Projects
- Raspberry Pi Remote Control Input
- Home Automation Systems
- Robotics and Automation
- Wireless Device Control
- TV Remote Signal Decoding
- Infrared Communication Experiments
- Educational STEM Projects
- DIY Electronics and Prototyping
Important Notes
-
The KY-022 is an infrared receiver, not an infrared transmitter.
- It is designed primarily for receiving modulated infrared remote-control signals around 38kHz.
- The module is not intended for measuring distance or detecting ordinary obstacles.
- Reception distance depends on transmitter power, alignment, ambient light, and environmental conditions.
- Strong sunlight and certain artificial light sources may interfere with reception.
- The output is typically active LOW when receiving infrared pulses.
- The receiver demodulates the infrared carrier; the microcontroller must decode the transmitted command protocol.
-
For ESP32 and Raspberry Pi, power the module at 3.3V if supported by the installed receiver component to maintain safe GPIO logic levels.
- Verify the pin arrangement and operating voltage of the supplied module before wiring.
-
A compatible infrared transmitter, such as the KY-005 IR Transmitter Module, can be used to create a complete infrared communication system.
Package Includes
1 × KY-022 IR Infrared Receiver Module