Difference between revisions of "IR Transmitter and Receiver Kit"
(→Example code) |
(→How to buy) |
||
(16 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
[[File:IR 1.jpg]] | [[File:IR 1.jpg]] | ||
− | IR | + | IR Transmitter is a Arduino breakout for a simple and clear infrared LED on it. These Infrared lED operates around 940nm and work well for generic IR systems including remote control and touch-less object sensing. Pair them with any of our IR receivers. |
===IR Receiver=== | ===IR Receiver=== | ||
[[File:IR 2.jpg]] | [[File:IR 2.jpg]] | ||
− | IR | + | 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== | ||
Line 27: | Line 24: | ||
;[http://www.geeetech.com/Documents/IRremote%20library.zip IR Remote library] | ;[http://www.geeetech.com/Documents/IRremote%20library.zip IR Remote library] | ||
− | == | + | ==Usage== |
[[File:IR 3.jpg|700px]] | [[File:IR 3.jpg|700px]] | ||
+ | |||
+ | 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 [http://www.ladyada.net/learn/sensors/ir.html Ladyada.com]) The IR detector on the breakout detect the IR signal at 38KHz and demodulate it. You can read what the transmitter send on the serial monitor. | ||
+ | |||
+ | ; Note:Infrared Led on the IR transmitter module should be directed at IR detector on the receiving board for signal reception. | ||
+ | |||
+ | [[File: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. | ||
+ | |||
+ | [[File:IR COM2.jpg]] | ||
==Example code== | ==Example code== | ||
Line 61: | Line 68: | ||
} | } | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
==How to buy== | ==How to buy== | ||
− | Click here to buy [http://www.geeetech.com/ir-transmitter-module-p-339.html IR Transmitter Module] and [ | + | Click here to buy [http://www.geeetech.com/ir-transmitter-module-p-339.html IR Transmitter Module] and [http://www.geeetech.com/ir-receiver-module-p-918.html IR Receiving Module] |
Latest revision as of 03:02, 17 February 2015
Contents
Introduction
IR Transmitter
IR Transmitter is a Arduino breakout for a simple and clear infrared LED on it. These Infrared lED operates around 940nm and work well for generic IR systems including remote control and touch-less object sensing. Pair them with any of our IR receivers.
IR Receiver
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
Usage
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 IR detector on the breakout detect the IR signal at 38KHz and demodulate it. You can read what the transmitter send on the serial monitor.
- Note
- Infrared Led on the IR transmitter module should be directed at IR detector on the receiving board for signal reception.
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.
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