Too much garbage from cheap IR Remote?

greets

I bought one of these HX1838 IR Remote + Sensor combos:

http://www.ebay.de/itm/121048843797?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

!(http://i.ebayimg.com/t/HX1838-Infrared-Remote-Control-module-NEC-Code-Infrared-Remote-Control-/00/s/NDAwWDUwMA==/$(KGrHqF,!jMFD2YjsmITBQ99l0b!Jg~~60_12.JPG)

I’m using the IRRemote library and this sketch:

#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, DEC);
irrecv.resume(); // Receive the next value
}
}

And I’m getting different values when pressing the same button.
e.g.

I pressed the “1” button five times ad I got this:

16724175
255
255
16724175
16724175
4294967295

same button another five times:

4294967295
2534850111
255
255
255

same button push and hold:

255
4294967295
4294967295
4294967295
4294967295

I’ve seen videos on youtube with the same IR sensor and sketch but different remote controls, they were also getting garbage in the signal but way less. Could my cheap remote control be malfunctioning or it’s because of the cheap quality… or some other factor?

a) It could be your cheap software - Serial.println() takes time to execute (try putting irrecv.resume() before Serial.println())

b) All remotes transmit two different values for the same button, that's how you tell if the button is just pressed or repeating.

c) Many of those "universal remotes" transmit many different values for a button press so they work with more devices.

d) A combination of any of the above reasons.

fungus:
a) It could be your cheap software - Serial.println() takes time to execute (try putting irrecv.resume() before Serial.println())

b) All remotes transmit two different values for the same button, that’s how you tell if the button is just pressed or repeating.

c) Many of those “universal remotes” transmit many different values for a button press so they work with more devices.

d) A combination of any of the above reasons.

learned something new every day, bookmarked.