Infrared Receiver Module
Introduction
The Linker Infrared Receiver Module is used to receive infrared signals and also used for remote control detection. There is an IR detector on the Infrared Receiver which is used to get the infrared light emitted by the Infrared Emitter.
Features
Dimensions: 20.9×24.8×11.5mm
Net weight: 2.4g
Dimension
Schematic
Application Ideas
test <syntaxhighlight lang="c"> /*
* IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv * An IR detector/demodulator must be connected to the input RECV_PIN. * Version 0.1 July, 2009 * Copyright 2009 Ken Shirriff * http://arcfn.com */
- include <IRremote.h>
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
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 }
} </syntaxhighlight>