keyestudio
www.keyestudio.com
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
}
}
*******************************************************************************
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 corresponding codes. If you press the key too long, it will show messy codes easily as shown in bellow figure.