IRRemote only returns FEAC02E5

Hello world,

i have this code:

#include <IRremote.h>
 
int RECEIVE_PIN= 3;
IRrecv irreceiver(RECEIVE_PIN);
decode_results results;
 
void setup()
{
  Serial.begin(9600);
  irreceiver.enableIRIn(); // Start the receiver
}
 
void loop() {
  if (irreceiver.decode(&results)) {
    Serial.println(results.value, HEX);
  }
}

and if i upload it do the arduino, it just spams the HEX FEAC02E5 in the Serial Monitor. I do not know why.

Thanks for your help
FritzFurtz

Hi,
Start with what we know works…

/*
 * IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
 * An IR detector/demodulator must be connected to the input RECV_PIN.
 * Version 0.1 July, 2009
 * Copyright 2009 Ken Shirriff
 * http://arcfn.com
 */

#include <IRremote.h>

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
  }
  delay(100);
}

I think you need the “resume”

terryking228:
Hi,
Start with what we know works…

/*
  • IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
  • An IR detector/demodulator must be connected to the input RECV_PIN.
  • Version 0.1 July, 2009
  • Copyright 2009 Ken Shirriff
  • http://arcfn.com
    */

#include <IRremote.h>

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
  }
  delay(100);
}




I think you need the "resume"

Thanks for the reply, but now it just prints nothing…