KY-022 Infrared Receiver Module

The KY-022 Infrared Receiver module reacts to 38kHz IR light. It can be used to receive commands from IR remote controllers from TVs, stereos and other devices.

It can also be used together with the KY-005 IR Transmitter module.

Compatible with popular microcontrollers like Arduino, Raspberry Pi, ESP32 and others.

KY-022 Fritzing part image
KY-022 infrared receiver module

KY-022 Specifications

This module consists of a 1838 IR receiver, a 1kΩ resistor, an LED and 3 male header pins.

Operating Voltage2.7V to 5.5V
Operating Current0.4mA to 1.5mA
Reception Distance18m
Reception Angle±45º
Carrier Frequency38KHz
Low Level Voltage0.4V
High Level Voltage4.5V
Ambient Light Filterup to 500LUX

Connection Diagram

Connect the module power line (middle) and ground (-) to +5 and GND on the Arduino respectively. Also connect the signal pin (S) to pin 11.

Line up the IR receiver and transmitter, place them facing each other.

KY-012Arduino
SPin 11
middle+5V
GND
Infrared receiver KY-022 Arduino connection diagram

KY-022 Arduino Code

The following Arduino sketch uses the IRremote library to receive and process infra-red signals. Use the KY-005 IR transmitter module or a IR remote control to send data to this module.

Links to the required libraries can be found in the Downloads section below.

#include <IRremote.h>

int RECV_PIN = 11; // define input pin on Arduino 
IRrecv irrecv(RECV_PIN); 
decode_results results; // decode_results class is defined in IRremote.h

void setup() { 
	Serial.begin(9600); 
	irrecv.enableIRIn(); // Start the receiver 
} 

void loop() { 
	if (irrecv.decode(&results)) {
		Serial.println(results.value, HEX); 
		irrecv.resume(); // Receive the next value 
	}
	delay (100); // small delay to prevent reading errors
}

Downloads

Leave a Comment


3 thoughts on “KY-022 Infrared Receiver Module”