Difference between revisions of "IR Transmitter and Receiver Kit"

From Geeetech Wiki
Jump to: navigation, search
(Usage)
(IR Receiver)
Line 9: Line 9:
 
[[File:IR 2.jpg]]
 
[[File:IR 2.jpg]]
  
IR Receiver Module is an Arduino compatible 38Khz IR detector which can
 
detect modulated 38Khz around IR signal. Though programming Arduino ,IR
 
receiver can achieve the fuction of decoding the remote control signal.
 
  
 +
IR receiver is a breakout board with IR detector mounting on it.IR detector is little microchips with a photocell that are tuned to listen to infrared light at 38KHz. They are almost always used for remote control detection - every TV and DVD player has one of these in the front to listen for the IR signal from the clicker
  
 
==Specification==
 
==Specification==

Revision as of 08:17, 30 May 2012

Introduction

IR Transmitter

IR 1.jpg

IR trnsmitter module can emit modulated 38KHz signal via Arduino programming to achieve simulate common remote control.

IR Receiver

IR 2.jpg


IR receiver is a breakout board with IR detector mounting on it.IR detector is little microchips with a photocell that are tuned to listen to infrared light at 38KHz. They are almost always used for remote control detection - every TV and DVD player has one of these in the front to listen for the IR signal from the clicker

Specification

  • Power Supply:5V
  • Interface:Digital
  • Modulate Frequency:38Khz

Applications

  • Remote control
  • TV control
  • Air conditioning control

Document

IR Remote library

Usage

IR 3.jpg


The IR LED on the transmitter module keep on sending hexadecimal code A90 as the modulated IR signal at 38KHz. (More information about how IR LED and detector works ,please vsit Ladyada.com) The detector and Infrared Led on the IR transmitter module should be directed at IR detector on the receiving board for better result.

IR COM1.jpg

If the infrared LED is not directed well at the IR detector, the IR detector on the receiving board cann't detect the modulated IR signals well and it will cause the decoded signal incorrect.

IR COM2.jpg

Example code

Transmitter

#include <IRremote.h>
IRsend irsend;
void setup()
{
 Serial.begin(9600);
}
void loop() {
   for (int i = 0; i < 50; i++) {
     irsend.sendSony(0xa90, 12); // Sony TV power code
     delay(40);
   }
 }

Receiver

#include <IRremote.h>
int RECV_PIN = 11; //define input pin on Arduino
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
 }
}

How to buy

Click here to buy IR Transmitter Module and IR Receiving Module