Skip to product information
1 of 1

Blue PCB Electronics

2C30003 KY-022 Infrared receiver module

2C30003 KY-022 Infrared receiver module

Regular price Dhs. 10.00
Regular price Sale price Dhs. 10.00
Sale Sold out
View full details

DESCRIPTION

The KY-022 module is ideally suited to infrared light detection within the range of 700nm – 1mm, typically seen in project robots and remote control receivers.

The data pin outputs HIGH when the sensor is triggered.

Working at a low 3.3 – 5V input the module will output HIGH values on detecting a signal and LOW values while not detecting

A data LED is mounted onto the board that lights when the sensor is triggered.

Datasheet

Specifications 

  • Voltage : 3.3v to 5v
  • Characteristics : 700nm – 1mm
  • Chipset : TSOP1838 37.9kHz
  • Daylight rejection : up to 500LUX
  • Receiving distance : up to 18 m
  • Size : 19mm x 15mm x 14mm

Pin Connections:

Untitled

Pin Description
Signal Signal
VCC Power supply
GND Ground

 

PROJECT:

ARDUINO IR DECODER:

After learning about the KY-022 module and the DS18B20 IC, it is now time to build a project using the module. Our project will use the KY-022 module to receiver IR pulses, decode the information and display it on the serial monitor.

COMPONENTS:

For this project, we need the following components:

  • Arduino Uno board (1 pc.)
  • KY-022 Infrared Receiver Sensor (1 pc.)
  • Jumper wires

WIRING DIAGRAM:The KY-022 module pins are connected to the Arduino Uno board as follows:

COMPONENT PIN ARDUINO UNO BOARD PIN
(-) GND
middle +5V
S 2

IRREMOTE LIBRARY:

We will simplify our code by using the IRremote library. To install it to your Arduino IDE, open your Library Manager and search & install “IRremote” by shirriff.

CODE:

Below is the Arduino sketch for our project. I have added comments to explain important parts of the code. Save the code as KY-022.ino and upload it to your Arduino board.

// Arduino and KY-022 module
#include <IRremote.h> 
IRrecv irrecv(2);      // IR module is connected to pin 2
decode_results results; // create a variable of type decode_results
void setup() {
  Serial.begin(9600);
  irrecv.enableIRIn(); // initialize irrecv
}
void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);   // get and decode IR pulses received by the module
    irrecv.resume();                      // get the next value
  }
  delay (100);    // wait 100 milliSeconds
}

PROJECT TEST:

Apply power to your Arduino Uno board and open the Serial Monitor in the Arduino IDE. Arduino will decode the IR signals received from the IR module and display it on the serial monitor.