IR receiver is overheating when power is run through the breadboard

Whenever I run power through the breadboard, the IR receiver overheats and I need to unplug it since it would probably burn otherwise. I am using an arduino UNO with HX1838 IR receiver.
My wiring is the same as in this photo:

Code:

#include <IRremote.h>

IRrecv IR(3);
decode_results results;
unsigned long key_value = 0;

void setup() {
  Serial.begin(9600);

  receiver.enableIRIn();
  receiver.blink(true);
}

void loop() {

  if(receiver.decode(&results)){

    if(results.value == 0XFFFFFFFF){
    results.value = key_value;
  }

  receiver.resume();
    
  }
}

Im quite new to this and have no idea what to do so any help would be apreciated

Are you actually using the bare part and not a breakout board? If so, according to a couple of datasheets I've looked at for the part, you are missing a 47-100R resistor between +5V and the Vcc pin on the receiver, a 10K pullup resistor on the output pin, and a 47-100uF cap across the power pins. The first omission may have cooked the device.

Also, your Fritzing diagram shows the output pin hooked up to pin 7 on the Uno, whereas your code indicates that it's looking on pin 3. However, that won't matter at all as you've called the IRrecv variable IR, and yet you never refer to it at all in the code, but instead reference an undeclared variable called receiver.

In short, you may have toasted your IR receiver, the hardware you are showing doesn't match your code, and your code won't compile anyhow.

1 Like

Apart from all that, there are multiple different pinouts for those TSOP type IR devices. Try to find a datasheet for your exact type.

1 Like

FYI

IRreceivers


Let’s see the actual wiring.

1 Like

. . . and also a variant (this time a module) where the Signal pin is in the middle:

image

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