Delete comment from: Ken Shirriff's blog
Hi iv been trying to get this simple ir translator to work so i can use unused buttons on my stereo remote to control my tv. This code runs however after receiving the proper code from the receiver remote the Arduino executes the code needed but then wont respond to other ir signals sent to it regardless of there value. The only way to get the Arduino to respond again is to reset it. Can someone explain to me why this isn't working?
Here is my code!!
#include
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
IRsend irsend;
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
pinMode(13,OUTPUT);
}
void loop() {
if (irrecv.decode(&results)) {
delay(500);
Serial.println(results.value,HEX);
// Receive the next value
if (results.value == 0x4B3420DF)
{
delay(1000);
irsend.sendSony(0x61A0F00F,32);
Serial.println("HORRAY!!");
delay(1000);
}
irrecv.resume();
}
}
Feb 24, 2013, 1:36:17 AM
Posted to A Multi-Protocol Infrared Remote Library for the Arduino

