Difference between revisions of "Infrared Receiver Module"

From LinkSprite Playgound
Jump to: navigation, search
(Application Ideas)
Line 42: Line 42:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
[[File:Infrared link.jpg]]
+
[[File:Infrared Receiver link.jpg]]
  
 
==Resouces==
 
==Resouces==
 
*[http://learn.linksprite.com/pcduino/arduino-ish-program/gpio/get-ir-source-code-by-linker-infrared-receive-on-pcduino/ Tutorial]
 
*[http://learn.linksprite.com/pcduino/arduino-ish-program/gpio/get-ir-source-code-by-linker-infrared-receive-on-pcduino/ Tutorial]

Revision as of 09:33, 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.

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