Infrared Receiver Module

From LinkSprite Playgound
Revision as of 09:33, 25 April 2014 by Qian.zhang (talk | contribs) (Application Ideas)
Jump to: navigation, search

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.

Infrared Receiver Module.jpg

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
*/
  1. 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>

Infrared Receiver link.jpg

Resouces