Objective:
To display the values corresponds to each key of a Remote Controller unit
Components Required
- Arduino Uno
- IR Receiver Module
Connection Diagram
Program
#include<IRremote.h>
int RecvPin = 10;
IRrecv irrecv(RecvPin);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn();
}
void loop()
{
if (irrecv.decode(&results))
{
Serial.println(results.value, HEX);
irrecv.resume();
delay(1000);
}
}
Working
Whenever we press any button in the Remote Controller it emits a Hexa Decimal Value corresponds to it. This value is captured by using the IR receiver module and can be used to identify the key pressed at the Remote Controller in wireless medium.
Output
Key Value : 272
Note : Before executing the program install the Library “IRremote.h”