IR_Receiver module (Mega 2560)

Hello, I am trying out Lesson 15 in the tutorial. The library import and code upload was fine. But I am getting odd IR signals as some of the buttons were not sending out the correct codes. In the Serial Monitor I saw -

FUNC/STOP
FAST BACK
PAUSE
FAST FORWARD
DOWN
VOL-
UP
0
EQ
ST/REPT
1
2
3
1019622966
other button
255
other button
6
7
255
other button
1162823869
other button

Seems to me that buttons 4, 5, 8 and 9 were not picked up correctly. Any idea why ? Much appreciated.

Best,
Bryan

Not all Remotes send the same codes. Your Remote buttons send its codes. You must discover those codes and use those codes in your program.

Thanks but another observation is that pressing the same buttons (esp. number buttons) consecutively could yield a different code. I printed out the code if it falls under the "other button" case. You can also see above that 5 and 8 both yield the code 255.

That is called a repeated button. Read about IR remote codes.

You give no explanation for the blob of numbers.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.