I've got a problem here. I have tried to get my IR-receiver working. i have the sensor and remote control. I used the code
#include <IRremote.h>
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
pinMode(3, OUTPUT);
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}
void loop() {
if (irrecv.decode(&results))
{
Serial.println(results.value, HEX);
delay(100);
irrecv.resume(); // Receive the next value
}
if(results.value == 0xFF30CF)
{
digitalWrite(3, HIGH);
}
else if (results.value == 0xFFA25D)
{
digitalWrite(3, LOW);
}
}
Code works great except the thing that after every few second there is three garbage-values that my IR-sensor reads. And when they are displayed none of my inputs are received. When i press button after the three values have shown it works great! I don't understand what are those three codes
3C573D9C
43B23900
6860065
it gives something like these in every few seconds. And they are diffrent every time!