Difference between revisions of "Infrared Receiver Module"
Qian.zhang (talk | contribs) (→Application Ideas) |
Qian.zhang (talk | contribs) (→Resouces) |
||
Line 45: | Line 45: | ||
==Resouces== | ==Resouces== | ||
− | *[http://learn.linksprite.com | + | *[http://learn.linksprite.com/arduino/shields/use-linker-infrared-receiver-on-arduino/ Tutorial] |
Revision as of 10:06, 25 April 2014
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.
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>