Project 3 Digital IR Receiver Module

1.Introduction
IR is widely used in remote control. With this IR receiver, Arduino project is able to receive command from any IR remoter controller if you have the right decoder. Well, it will be also easy to make your own IR controller using IR transmitter.
2.Specification
Power Supply: 5V
Interface: Digital
Modulate Frequency: 38Khz
Module Interface Socket: JST PH2.0
NOTE: In the sample code below Digital pin 11 is in use, you may either change your wiring or change the sample code to match.
3.Connection Diagram

4.Sample Code
#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
}
}
5.Result
In this project, we need to use a IR remote control which has 17 functional key and its launching distance is 8 meters at most, proper to control various devices indoors. This project is actually to decode remote control signal. After connection and uploading codes, aim at IR receiving module and press the key, finally you can see the corresponding codes. If you press the key too long, it will show messy codes easily as shown in below figure.

