I'm using the Keyes Infrared Receiver Module on an Arduino Uno R3 with the IRemote library included and running the IRrecvDemo example sketch included in the library.

I wired the IR receiver incorrectly the first time I ran the program. I wired the data pin to 5V and wired the Vcc pin on the module to the digital I/O pin. The ground was wired correctly.

Did I destroy the IR receiver by doing this? There was no noticeable overheating.

I corrected the wiring and tried again but still nothing over the serial monitor while pushing buttons on the IR remote that came with it. I wondered if the issue was with the remote so I hooked up a IR LED to flash using the following code:

#include <IRremote.h>

int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;

IRsend irsend;

void setup()
  irrecv.enableIRIn(); // Start the receiver

void loop()
  for (int i = 0; i < 3; i++) {   //// for statement controls IR LED
    irsend.sendSony(0xa90, 12);   
    if (irrecv.decode(&results))    //// if statement controls the receiver
     Serial.println(results.value, HEX);
     irrecv.resume(); // Receive the next value

Nothing showed up on the serial monitor. However, the LED on the IR receiver module began flashing when the receiver was exposed to the IR LED, leading me to believe that I did not destroy the module when I wired it incorrectly.


I took the IR led and simply lit it with a coin cell battery and the IR receiver detected it and sent data over serial monitor. The remote powered by that same coin cell battery will not trigger the IR receiver. Can I conclude that this is a problem with the remote?

  • What is transmitting here? Are you sending from a remote? – Nick Gammon Oct 13 '16 at 21:49
  • @Nick Gammon Yes,the IR receiver came with a remote. I also have a simple IR LED that I set up just to see if the receiver would recognize it and send data over serial monitor. Neither worked. – zdub Oct 13 '16 at 22:43
  • I'm just wondering why your posted sketch has an irsend in it. What is the point of that? – Nick Gammon Oct 14 '16 at 2:44
  • 1
    Just shining an IR led on the module, shouldn't trigger the receiver, as it requires 38kHz modulated IR-light. So that's very suspicious. I'd also check the remote by shining it towards a camera (e.g. the iPhone front camera, as it doesn't have an IR filter). Or just use the remote from your TV. – Gerben Oct 14 '16 at 14:28
  • @Nick Gammon The posted code both sends IR signals using the IR led and receives the signals. The posted code is was for testing the receiver with the IR led. The code that I'd like to ultimately use is the IRrecvDemo sketch from the library to be used with a remote. – zdub Oct 14 '16 at 20:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.