IR Receiver - Inconsistant codes

I’m trying to control a DC motor with an IR receiver. (this one - Arduino Compatible Infrared Receiver Module | Jaycar Electronics)
I am having trouble with getting a different code every time I press the button on my remote.
I have tried a Foxtel remote, a Panasonic DVD remote, a Hitachi remote, and the IR remote app on my phone.
The receiver is plugged into an Arduino UNO. - to gnd, power to 5v, S to Pin 9 (have also tried 10, and 11).
I’ve had it on the board with my other (motor) connections, I’ve had it on a breadboard, and I’ve had it on it’s own on the UNO.
I was using it with my laptop, but someone mentioned that might be an issue, so I swapped to desktop/PC. No change.
I’m losing my mind. Can anyone help with what I am missing here?

Current set up - Just receiver on UNO board - to gnd, power to 5v, S to D9. No other item on board. USB to laptop.

Using IRrecvdemo, and pressing “STOP” on my Panasonic DVD remote multiple times, I get:
9B30ACF1
20090FF7
91F57EBC
756716D8
E9B6D713
D9E1D1E1
170E7D80
D8381E39
58C88BC6
1D15F4D7
FAC1920
CA2D30BB
5C845A25
BFC5614B
88A80D6D
949BDFBE
1D15F4D7
2A8D3E07
B01FF1D5
404EF720
DB80381C
ED583572
209394E8
70E61A66
1D15F4D7
1D15F4D7
1D15F4D7
1D15F4D7
1D15F4D7
FAB9BD36
BB7728EF
E375CB33
C531FC96
7851CADB
1D15F4D7
C44284EC
29A21645
5BA2825D
B69369D1
8996A5E2
2101C294
DEE2D70E
1D15F4D7

If I press the button in the exact same distance/angle to the receiver, I get the same code, but the minute I move a fraction I get a new code.

IRrecvdump:

2B9A589
Unknown encoding: 2B9A589 (32 bits)
Raw (84): 400 -700 300 -750 400 -2600 400 -2250 350 -1350 350 -1400 350 -650 250 -650 300 -1250 350 -750 200 -1350 350 -1350 350 -700 250 -1350 300 -750 250 -650 150 -500 300 -1450 350 -1350 400 -650 250 -1300 350 -700 250 -650 250 -1250 400 -650 250 -600 300 -1300 350 -650 250 -1350 350 -700 250 -1350 200 -700 300 -650 300 -600 250 -650 150 -550 350 -700 250 -1250 350 -1400 350 -650 200 -1400 350
FED607FD
Unknown encoding: FED607FD (32 bits)
Raw (100): 3400 -1750 450 -400 450 -1300 450 -400 450 -450 400 -500 350 -450 450 -450 400 -500 350 -500 400 -450 400 -500 400 -450 400 -500 350 -1350 400 -500 400 -450 400 -450 400 -500 400 -450 400 -500 350 -1350 400 -1300 400 -500 400 -1350 400 -500 350 -500 400 -450 400 -500 400 -450 400 -450 400 -500 400 -450 400 -500 350 -500 400 -450 400 -500 400 -450 400 -450 400 -500 400 -450 400 -500 350 -500 400 -450 400 -500 350 -1350 400 -1350 450 -450 350 -1350 400
42C0A33B
Unknown encoding: 42C0A33B (32 bits)
Raw (68): 350 -950 250 -1650 150 -1850 300 -2300 350 -1450 200 -3200 350 -700 200 -1550 150 -650 250 -650 250 -1400 300 -1350 300 -700 200 -1400 350 -2250 350 -2350 200 -1450 350 -1350 350 -650 300 -1350 300 -1450 250 -850 250 -1300 200 -750 300 -1300 250 -750 300 -1350 300 -1400 300 -750 300 -2100 250 -1600 200 -750 250 -1500 250
1D15F4D7
Unknown encoding: 1D15F4D7 (32 bits)
Raw (100): 3450 -1700 450 -450 400 -1300 450 -450 400 -450 450 -450 400 -450 400 -450 450 -450 400 -450 450 -400 450 -450 400 -450 450 -450 400 -1300 450 -450 400 -450 450 -400 450 -450 400 -450 450 -450 400 -1300 450 -1300 450 -400 450 -1300 450 -450 400 -450 400 -450 450 -450 400 -450 450 -400 450 -450 400 -450 450 -450 400 -450 400 -450 450 -450 400 -450 450 -400 450 -450 400 -450 450 -450 400 -450 400 -450 450 -450 400 -1300 450 -1300 450 -450 400 -1300 450
3893CF12
Unknown encoding: 3893CF12 (32 bits)
Raw (84): 350 -700 300 -650 400 -2650 350 -2250 350 -700 250 -1300 350 -700 250 -1300 350 -1400 350 -1450 300 -700 250 -1300 350 -700 250 -1300 350 -750 200 -1250 350 -1450 200 -1550 350 -700 200 -1300 350 -750 200 -650 300 -1250 300 -800 200 -550 250 -650 300 -650 150 -550 350 -600 300 -600 300 -650 150 -500 350 -650 250 -1350 300 -700 250 -650 300 -1250 350 -1350 400 -1400 350 -600 250 -1400 350
FFFFFFFF
FFFFFFFF (0 bits)
Raw (56): 350 -2350 250 -1600 150 -1350 300 -1500 300 -2500 250 -2150 300 -1450 350 -2250 200 -1600 200 -750 250 -1350 350 -1400 200 -750 300 -2200 350 -1350 350 -1400 350 -1450 300 -750 150 -650 300 -1250 400 -1500 200 -700 200 -700 300 -1200 350 -1350 400 -700 250 -1350 300
DAC8C9E1
Unknown encoding: DAC8C9E1 (32 bits)
Raw (8): 300 -4250 300 -3900 300 -2400 300
1D15F4D7
Unknown encoding: 1D15F4D7 (32 bits)
Raw (100): 3400 -1750 400 -500 400 -1300 400 -500 400 -450 400 -500 350 -500 400 -450 400 -500 400 -450 400 -450 400 -500 400 -450 400 -500 350 -1350 400 -500 400 -450 400 -450 400 -500 350 -500 400 -500 350 -1350 400 -1350 400 -450 400 -1350 400 -500 400 -450 400 -450 400 -500 400 -450 400 -450 400 -500 400 -450 400 -500 400 -450 400 -450 400 -500 400 -450 400 -450 400 -500 400 -450 400 -500 350 -500 400 -450 400 -500 400 -1300 400 -1350 400 -500 350 -1350 400
1D15F4D7
Unknown encoding: 1D15F4D7 (32 bits)
Raw (100): 3450 -1750 450 -400 450 -1300 450 -400 450 -400 450 -450 450 -400 450 -450 450 -400 400 -450 450 -450 450 -400 450 -400 500 -400 400 -1350 450 -400 400 -450 450 -450 450 -400 450 -400 450 -450 400 -1350 450 -1250 450 -450 400 -1300 450 -450 400 -450 450 -450 400 -450 400 -450 450 -450 400 -450 450 -400 450 -450 450 -400 450 -450 450 -400 450 -400 450 -450 400 -450 450 -400 450 -450 400 -450 450 -450 450 -400 450 -1300 450 -1250 450 -450 400 -1350 400
CED2359A
Unknown encoding: CED2359A (32 bits)
Raw (100): 3450 -1700 400 -600 200 -1450 350 -600 350 -500 350 -550 300 -550 300 -500 400 -550 300 -550 350 -550 200 -600 350 -600 200 -600 350 -1300 400 -550 400 -550 200 -600 350 -550 300 -600 200 -600 350 -1300 400 -1350 350 -600 400 -1250 400 -550 350 -550 350 -550 300 -550 350 -550 200 -600 350 -600 200 -550 400 -550 300 -550 350 -550 300 -550 300 -550 300 -600 300 -550 300 -550 350 -550 300 -550 350 -500 350 -500 350 -1300 400 -1350 400 -550 400 -1250 400
FFFFFFFF
FFFFFFFF (0 bits)
Raw (42): 150 -1450 250 -1500 200 -2450 250 -2350 250 -2250 300 -1450 250 -1600 250 -2400 250 -1400 200 -2350 250 -1600 300 -2300 250 -1400 300 -1500 300 -1350 300 -1500 300 -3100 250 -4100 350 -1350 350 -2300 250
3F08AEB5
Unknown encoding: 3F08AEB5 (32 bits)
Raw (74): 350 -700 300 -750 350 -2700 300 -750 250 -1350 300 -1600 150 -1450 350 -1300 350 -700 250 -650 150 -550 250 -750 300 -2150 350 -1350 350 -1450 300 -1400 350 -1400 350 -1450 350 -700 250 -1250 350 -700 250 -1300 350 -750 150 -1350 350 -1400 300 -700 300 -1350 300 -1400 250 -1450 350 -1400 350 -1400 350 -700 150 -1400 350 -1400 300 -700 300 -1350 300
8559DC16
Unknown encoding: 8559DC16 (32 bits)
Raw (82): 400 -700 350 -700 250 -700 300 -1800 350 -650 250 -1300 350 -700 300 -1250 300 -750 200 -1350 350 -1400 300 -1450 300 -700 250 -1350 400 -700 250 -1250 350 -1400 400 -2200 350 -1350 350 -750 250 -1300 350 -700 300 -1200 300 -750 250 -700 150 -550 350 -1350 400 -700 200 -1300 400 -650 250 -1300 400 -650 150 -600 350 -1300 400 -700 150 -600 300 -1350 350 -1400 350 -700 300 -1250 350

Their is a lot of unnecessary detail here, the nub if the problem is:-

If I press the button in the exact same distance/angle to the receiver, I get the same code, but the minute I move a fraction I get a new code.

That module looks a bit crap. You have no decoupling on it at all. Also the page is full of irrelevant detaile and no real technical information apart from the modulation rate which they say is 38KHz. I would have expected at least the real part number for that sensor.

First I would try some proper decoupling as advised with the data sheet of most receivers of this kind. That is 100R in seriese with the 5V supply and a 4u7F or larger capacitor between power and ground of the actual sensor.

Their is the possibility that your IR remote is using a different modulation rate or a different wavelength IR emitter, but without test equipment you can't find out what it is using.

JustJustin:
Raw (8): 300 -4250 300 -3900 300 -2400 300

The big question is → How did you even manage to receive and decode an emoticon smiley with your arduino?

Update:
Do you have a TSOP receiver like this one?

Hi, I think you will find info on the Rx here;

https://arduino-info.wikispaces.com/IR-RemoteControl

Tom... :)

TomGeorge - I'm not sure what you're directing me to?

Grumpy_Mike - I haven't come across decoupling yet. There are many Youtube videos of people using the same receiver with no problems. I'll look into your suggestion. Thanks :)

I purchased another one to try, and it's doing the same. damn. thing. I'm using a different remote, too. https://www.jaycar.com.au/linker-infrared-receiver-module-for-arduino/p/XC4583

Using IRrecvDump - This one is slightly more consistant, though still throwing random codes in.

FFFFFFFF
Decoded NEC: FFFFFFFF (0 bits)
Raw (4): 8950 -2250 550 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 9000 -4450 600 -500 600 -550 550 -1650 600 -550 600 -500 650 -450 750 -400 600 -500 600 -1650 600 -1650 600 -500 600 -1650 600 -1650 600 -1650 550 -1650 650 -1600 600 -500 650 -1600 600 -550 600 -500 600 -1650 600 -500 600 -500 650 -500 600 -1650 600 -500 600 -1650 600 -1650 600 -500 600 -1650 600 -1650 600 -1600 650 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 9000 -4400 650 -500 600 -500 750 -1500 600 -550 550 -550 600 -500 600 -550 600 -500 600 -1650 600 -1600 650 -500 600 -1650 600 -1600 650 -1600 650 -1600 600 -1650 600 -500 650 -1600 600 -500 650 -500 600 -1550 700 -500 600 -500 600 -550 650 -1550 650 -500 600 -1650 600 -1650 550 -550 600 -1650 600 -1600 650 -1650 550 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 9000 -4400 600 -550 550 -550 600 -1650 600 -500 650 -450 650 -500 600 -500 650 -500 600 -1650 550 -1650 600 -550 600 -1600 600 -1650 600 -1650 600 -1650 600 -1600 650 -500 600 -1650 600 -500 600 -500 700 -1550 600 -500 650 -500 600 -500 600 -1650 600 -550 600 -1600 650 -1600 600 -500 650 -1600 600 -1650 700 -1550 600 
F8F7E968
Unknown encoding: F8F7E968 (32 bits)
Raw (30): 400 -650 400 -800 300 -1950 400 -700 350 -800 400 -600 500 -1750 500 -650 500 -1750 450 -1950 300 -600 500 -1750 500 -1750 500 -1750 500 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 9000 -4450 600 -500 600 -500 600 -1650 600 -550 550 -550 600 -550 550 -550 650 -450 600 -1650 600 -1650 550 -550 600 -1650 550 -1700 550 -1650 650 -1650 550 -1650 600 -550 550 -1650 600 -550 550 -550 600 -1650 550 -600 550 -550 550 -550 600 -1650 600 -500 600 -1650 600 -1650 600 -500 700 -1550 600 -1650 550 -1700 550 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 8950 -4500 550 -550 550 -550 600 -1650 550 -600 550 -550 600 -500 600 -500 600 -550 600 -1650 550 -1700 550 -550 600 -1650 550 -1700 550 -1650 600 -1650 600 -1650 600 -500 600 -1650 600 -550 550 -550 550 -1700 550 -550 600 -500 700 -450 550 -1700 550 -550 550 -1700 550 -1700 550 -550 600 -1650 550 -1700 550 -1650 600 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 9000 -4450 550 -550 550 -550 600 -1650 600 -500 650 -500 600 -500 600 -550 550 -550 600 -1650 550 -1650 600 -550 600 -1650 550 -1700 550 -1650 650 -1600 600 -1650 600 -500 600 -1650 600 -550 600 -500 600 -1650 550 -550 600 -550 550 -550 550 -1650 600 -550 600 -1650 600 -1600 650 -500 600 -1650 600 -1650 600 -1600 600 
37A96A78
Unknown encoding: 37A96A78 (32 bits)
Raw (22): 400 -750 150 -1150 100 -1850 450 -700 400 -2000 250 -1750 550 -650 400 -1800 500 -1750 450 -1750 500 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 9000 -4450 550 -550 600 -500 600 -1650 600 -550 550 -550 600 -550 550 -550 550 -550 600 -1650 600 -1650 550 -500 650 -1650 550 -1700 550 -1650 600 -1650 600 -1650 600 -550 550 -1650 600 -550 550 -550 600 -1700 500 -550 600 -550 550 -550 550 -1700 600 -500 600 -1650 600 -1650 550 -550 600 -1650 700 -1550 550 -1650 600 
13AA6AF9
Unknown encoding: 13AA6AF9 (32 bits)
Raw (14): 300 -2000 300 -1900 350 -2000 300 -750 150 -2100 300 -4200 350 
18A5BBCA
Unknown encoding: 18A5BBCA (32 bits)
Raw (64): 350 -750 500 -1750 500 -600 500 -550 550 -650 450 -700 450 -650 450 -1750 500 -1700 550 -600 500 -1750 500 -1750 500 -1700 500 -1700 600 -1700 500 -600 550 -1700 500 -600 550 -550 550 -1700 550 -650 450 -750 400 -600 500 -1700 550 -600 500 -1700 550 -1700 550 -600 500 -1700 550 -1700 550 -1700 550 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 9000 -4450 600 -500 600 -550 600 -1650 550 -550 600 -500 600 -550 550 -550 600 -550 600 -1600 600 -1650 700 -450 550 -1650 600 -1650 600 -1650 600 -1650 550 -1650 600 -550 600 -1600 650 -500 600 -500 600 -1650 600 -550 550 -550 600 -500 600 -1650 600 -500 600 -1650 600 -1650 600 -500 600 -1650 600 -1650 600 -1650 600 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 9000 -4450 600 -500 600 -500 650 -1600 600 -550 600 -500 600 -550 550 -550 600 -500 600 -1650 600 -1650 600 -500 600 -1650 600 -1650 600 -1600 650 -1650 550 -1650 600 -550 550 -1650 750 -400 600 -500 600 -1650 600 -500 600 -550 600 -500 600 -1650 600 -500 600 -1650 600 -1650 600 -500 600 -1650 600 -1650 600 -1600 650 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 8950 -4500 550 -550 550 -550 600 -1650 600 -500 600 -550 600 -500 600 -550 550 -550 600 -1650 550 -1700 550 -550 650 -1600 550 -1700 550 -1650 600 -1650 600 -1650 600 -550 550 -1650 600 -550 550 -550 600 -1650 550 -550 600 -500 600 -550 550 -1700 550 -550 550 -1700 600 -1600 600 -550 600 -1650 550 -1700 600 -1600 600 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 9000 -4450 600 -500 600 -550 550 -1650 650 -500 600 -500 600 -500 600 -550 600 -500 600 -1650 600 -1650 550 -550 600 -1650 600 -1600 650 -1650 550 -1650 600 -1650 600 -500 600 -1650 600 -550 550 -550 600 -1650 700 -400 600 -500 650 -500 600 -1600 650 -500 600 -1650 600 -1650 600 -500 600 -1650 600 -1650 550 -1650 650 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 9000 -4400 650 -500 600 -550 550 -1650 600 -550 600 -500 600 -500 600 -550 600 -500 600 -1650 600 -1650 550 -550 600 -1650 600 -1600 650 -1600 600 -1650 700 -1550 600 -500 600 -1650 600 -550 550 -550 600 -1650 600 -500 600 -500 650 -500 600 -1650 600 -500 600 -1650 600 -1600 650 -500 600 -1650 600 -1650 550 -1650 650 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 9000 -4450 600 -500 600 -550 600 -1600 600 -550 600 -500 600 -550 650 -450 600 -500 600 -1650 600 -1650 600 -500 650 -1600 600 -1650 600 -1650 600 -1600 600 -1650 600 -550 600 -1600 600 -550 600 -500 600 -1650 600 -500 600 -550 600 -500 600 -1650 600 -500 600 -1650 600 -1650 600 -500 600 -1650 600 -1650 600 -1600 650 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 9000 -4400 650 -500 600 -500 650 -1600 600 -550 550 -550 700 -400 600 -550 550 -550 600 -1650 600 -1600 650 -500 600 -1650 600 -1600 650 -1600 650 -1600 600 -1650 600 -500 600 -1650 600 -500 650 -500 600 -1650 550 -550 600 -500 600 -550 550 -1650 650 -500 600 -1600 650 -1600 600 -550 600 -1650 600 -1600 650 -1600 600 
CCE603C7
Unknown encoding: CCE603C7 (32 bits)
Raw (46): 350 -800 250 -1900 450 -1750 450 -1750 500 -1700 550 -1700 550 -600 500 -1700 550 -600 500 -600 550 -1700 550 -550 700 -450 550 -550 550 -1650 550 -600 550 -1650 600 -1650 600 -550 550 -1700 550 -1700 550 -1650 600 
FFFFFFFF
Decoded NEC: FFFFFFFF (0 bits)
Raw (4): 8950 -2250 550 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 8950 -4500 550 -550 550 -550 550 -1700 600 -500 600 -550 550 -550 600 -550 600 -500 550 -1700 550 -1650 600 -550 550 -1650 600 -1650 600 -1650 550 -1700 600 -1600 650 -500 600 -1600 600 -550 600 -550 550 -1650 600 -550 550 -550 600 -500 600 -1650 600 -500 600 -1650 600 -1650 600 -500 600 -1700 550 -1650 600 -1650 600 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 9000 -4400 650 -500 600 -500 600 -1650 600 -500 600 -550 600 -500 600 -550 550 -550 600 -1650 600 -1600 650 -500 700 -1550 600 -1600 650 -1600 600 -1650 600 -1650 600 -500 600 -1650 600 -500 650 -500 600 -1600 750 -400 600 -500 600 -550 600 -1600 700 -450 600 -1600 650 -1650 550 -550 600 -1650 600 -1600 650 -1600 600 
B57093E3
Unknown encoding: B57093E3 (32 bits)
Raw (20): 8950 -4450 600 -550 550 -550 550 -1700 550 -600 550 -600 500 -600 500 -700 350 -750 400 
32E0197B
Unknown encoding: 32E0197B (32 bits)
Raw (32): 8950 -4500 550 -600 500 -600 500 -1800 450 -650 500 -600 500 -600 500 -650 500 -600 500 -1750 500 -1750 500 -700 400 -1800 450 -1800 300 -1900 450 
6425BE56
Unknown encoding: 6425BE56 (32 bits)
Raw (26): 8950 -4450 600 -550 550 -550 550 -1700 550 -600 500 -600 550 -600 500 -600 500 -600 550 -1750 500 -1700 500 -700 450 
FFFFFFFF
Decoded NEC: FFFFFFFF (0 bits)
Raw (4): 8950 -2250 550 
20DF48B7
Decoded NEC: 20DF48B7 (32 bits)
Raw (68): 8900 -4500 550 -550 600 -550 550 -1650 600 -550 550 -600 500 -550 550 -600 550 -600 550 -1650 550 -1700 550 -600 500 -1700 550 -1700 550 -1700 550 -1700 550 -1650 550 -600 550 -1650 600 -550 550 -600 500 -1700 550 -600 500 -600 550 -550 550 -1700 550 -550 550 -1700 550 -1700 550 -550 550 -1700 550 -1700 550 -1700 550 
FFFFFFFF
FFFFFFFF (0 bits)
Raw (66): 500 -600 500 -650 450 -1750 500 -650 450 -650 500 -650 450 -700 450 -600 500 -1750 600 -1600 500 -600 550 -1700 500 -1750 550 -1700 500 -1750 500 -1700 550 -600 500 -1700 550 -600 500 -650 500 -1700 500 -650 500 -600 500 -600 500 -1750 550 -550 550 -1750 500 -1700 500 -600 500 -1750 550 -1700 500 -1750 500

I haven't come across decoupling yet.

Amazing isn't it how many people who think they know about electronics actually have no idea of what they are doing. Decoupling is not an option http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

Hi, I pointed you to a site concerning IR info. Including some code to do what you are trying to do.

Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code. It will be formatted in a scrolling window that makes it easier to read.

We need to see your code and can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png? Also a picture of your project, so we can see your component layout.

Thanks.. Tom... :)

  1. Try to use decoupling.
  2. Try to turn off light and avoid sunlight
  3. Look around with a cell phone camera to identify other sources of IR interference. For example my laptop has IR port that transmits pulse of IR every one second or so.

Smajdalf:
For example my laptop has IR port that transmits pulse of IR every one second or so.

Isn’t that faulty?

Noobian: Isn't that faulty?

Why? I guess it is searching for nearby IR devices. AFAIK BT also "constantly" searches for nearby devices.