I bought the DFRobot IR Remote controller kit and tried to use it with the IRrecvDemo.
Many applications can be found that are based on the IRrecvDemo, but none seem to work for me.
Without making changes to IRrecvDemo, I tried it with IDE 23 but my Serial.print always shows 8 character values rather than the 6 character values as illustrated below
I'm sure the hardware is OK, the sample code found here IR_Kit_SKU_DFR0107_-DFRobot works OK. Note that this sample code does not use the IRremote.h library.
/*
* 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
}
}