This module consists of a 1838 IR receiver, a 1kΩ resistor and a LED. It works together with the IR transmitter. Compatible with popular electronic platforms like Arduino, Raspberry Pi and ESP8266.
FEATURES
Operating Voltage | 2.7 to 5.5V |
Operating Current | 0.4 to 1.5mA |
Reception Distance | 18m |
Reception Angle | ±45º |
Carrier Frequency | 38KHz |
Low Level Voltage | 0.4V |
High Level Voltage | 4.5V |
Ambient Light Filter | up to 500LUX |
Arduino Code
The following Arduino sketch uses the IRremote library to receive and process infra-red signals. Links to the required libraries for KY-022 Arduino example sketch can be found in the Downloads section below.
Arduino
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
#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 } |
Reviews
There are no reviews yet.