Sensors
Arduino Infrared Sensor Infrared Remote Receiver Module IR Sensor Module
Condition: New
Availability:
In Stock
Advance Payment Only
SKU: SB19,MFR100,Th20,KRT
Rs.50
Rs. 63
Infrared IR Sensor Receiver Module for
Arduino
adopts 1838 infrared receiving head. Light resistance, strong electromagnetic interference, built-in infrared dedicated IC, can work under 500 lux light intensity. Widely used in stereo, TV, video machine, disc machine, set-top boxes, digital photo frame; car stereo, remote control toys, satellite receivers, hard disk player, air conditioner, heater; electric fan, lighting and other home appliances.Specifications:
- Dimension: 6.4 x 7.4 x 5.1mm
- Receiving angle: 90 °
- Working voltage: 2.7 ~ 5.5V
- Frequency: 37.9KHz
- Receiving range: 5m
Package includes:
- 1 x Infrared sensor receiver module
Specifications:
This module consists of a 1838 IR receiver, a 1kΩ resistor and a LED. It works together with the KY-005 IR transmitter module. Compatible with popular electronic platforms likeArduino
, Raspberry Pi and ESP8266. 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 500LUXKY-022 Connection Diagram
Connect the Power line (middle) and ground (-) to +5 and GND respectively. Connect signal (S) to pin 11 on the
Arduino
. Line un IR receiver and transmitter.KY-012
Arduino
S Pin 11 middle +5V – GND click to enlargeKY-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 to serially send data to this module.Links to the required libraries for KY-022
Arduino
example sketch can be found in theDownloads
section below. #include int RECV_PIN = 11; // define input pin onArduino
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
- Fritzing Part: KY-022 Infrared Receiver Module.
- IRremote library by z3t0.
- 1838 IR receiver Datasheet.
- Fritzing Official Site.