Infrared receiving module adopts 1838 infrared receiving head
Light resistance, strong electromagnetic interference, built-in infrared dedicated IC, can work under 500 lux light intensity
Application:
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
- 6.4 x 7.4 x 5.1mm
- Receiving angle: 90 °
- Working voltage: 2.7 ~ 5.5V
- Frequency: 37.9KHz
- Receiving range: 18m
Package Included : 1 X KY-022 IR Infrared Sensor Receiver Module
Diagram
Sample Code
#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
}
There are no reviews yet.