Notifications
Clear all

RE: Trying to capture IR Remote Controls outputs with the Arduino - Serial Monitor always displays '0'

1 Posts
1 Users
0 Likes
464 Views
robotBuilder
(@robotbuilder)
Member
Joined: 5 years ago
Posts: 2037
Topic starter  

@groove

groove wrote:

I relatively new to Arduino (and programming in general) and these videos are FANTASTIC!

I'm trying to find the 'codes' that my IR Remote is sending.  

I've started by using the first simple Ardunio sketch 'IR-Rcv-Demo1.ino' which uses the <IRremote.h> library.

The sketch seems to compile/upload successfully, but the serial output is always '0' no matter which button is pressed on the remote.

example:
14:00:02.933 -> 0
14:00:03.034 -> 0
14:00:03.171 -> 0
14:00:03.272 -> 0
14:00:03.374 -> 0
14:00:03.475 -> 0
14:00:04.089 -> 0
14:00:04.123 -> 0
14:00:04.261 -> 0
14:00:04.364 -> 0
14:00:04.467 -> 0
14:00:05.676 -> 0

I've tried several similar sketches and I've tried different remotes but all end with the same results.

Any ideas as to what might be the issue?

Note: My board is Mega2560 (though I've tried using an Arduino Nano board with the same results).

 

Thanks,

-Groove

 

This topic came up some time ago.
Check all your hardware connections?

Use webcam or digital camera to look at the remote output to see if it is working.

https://forum.dronebotworkshop.com/arduino/ir-modual/#post-11780

 


   
Quote