connect vcc to 5V connect Gnd to GND connect In to D11 pin onto Uno, Nano etc. download the library from here and follow the instructions/where to unzip and removing the other folders/: http://z3t0.github.io/Arduino-IRremote/
Open the Arduino program and paste this code onto a new Arduino project:
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 } }
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
}
}
Select 'Sketch'/Import Library from Arduino and select IRremote from the drop-down menu.
Upload the sketch Open Tools/Serial monitor then select 9600 as baud rate Use a Tv remote, IR car remote or the remote from the module. You will see the HEX code of each button after pressing it.