Difference between revisions of "Arduino IR Remote Control"

From Geeetech Wiki
Jump to: navigation, search
(Created page with "==Introduction== The new ultra-thin 38K universal infrared remote control, NEC encoding format 1-21-key remote control, USB port stereo, car MP3, foot bath, lighting, digital ...")
 
Line 1: Line 1:
 
==Introduction==
 
==Introduction==
 +
[[File:Remote control.jpg]]
 +
 
The new ultra-thin 38K universal infrared remote control, NEC encoding format 1-21-key remote control, USB port stereo, car MP3, foot bath, lighting, digital photo frame, microcontroller development board, learning board, etc..
 
The new ultra-thin 38K universal infrared remote control, NEC encoding format 1-21-key remote control, USB port stereo, car MP3, foot bath, lighting, digital photo frame, microcontroller development board, learning board, etc..
  
Line 14: Line 16:
  
 
==Document==
 
==Document==
[IR Reomote library]
+
;[http://www.geeetech.com/Documents/IRremote%20library.zip IR Reomote library ]
  
 
==Usage==
 
==Usage==
You need a IR receiving breakout to detect the IR signal and decodes it as HEX code, then dispaly it on the serial monitor.     
+
;You need a IR receiving breakout to detect the IR signal and decodes it as HEX code, then dispaly it on the serial monitor.     
  
 +
[[File:IR remote control 2.jpg]]
 +
 +
  S  -> D11
 +
VCC -> 5V
 +
GND -> GND
  
 
==Example code==
 
==Example code==
 +
#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==
 
==How to buy==
 
Click here to buy [Arduino IR Remote Control]
 
Click here to buy [Arduino IR Remote Control]

Revision as of 07:39, 30 May 2012

Introduction

Remote control.jpg

The new ultra-thin 38K universal infrared remote control, NEC encoding format 1-21-key remote control, USB port stereo, car MP3, foot bath, lighting, digital photo frame, microcontroller development board, learning board, etc..

Feature

  • Remote control distance: more than 8 meters
  • Launch tube infrared wavelength: 940Nm
  • Crystal: the oscillation frequency of 455 KHz
  • IR carrier frequency: 38KHz
  • Encoding: the encoding format of the NEC, upd6122 encoding scheme, the user code 00FF, key coding below picture
  • Size: 86 * 40 * 6mm
  • Frequency: 38K
  • Power supply: CR2025/160mAH
  • Button: free height is less than 3mm, the force 200-350g, the life of more than 200 000

Document

IR Reomote library

Usage

You need a IR receiving breakout to detect the IR signal and decodes it as HEX code, then dispaly it on the serial monitor.

IR remote control 2.jpg

 S  -> D11
VCC -> 5V
GND -> GND

Example code

#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 [Arduino IR Remote Control]