IR Remote signal not recieved

I am trying to getting a signal from a remote via the IR reciever KY_020 to the arduino, but i don't get a signal back to the arduino.
This is my Code:

#include <IRremote.h>

const byte IR_RECEIVE_PIN = 11;

void setup() {
  Serial.begin(115200);
  Serial.println("IR Receive test");
  IrReceiver.begin(IR_RECEIVE_PIN, true);
}

void loop() {
  if (IrReceiver.decode()) {
    Serial.println(IrReceiver.decodedIRData.command, HEX);
    IrReceiver.resume();
  }
}

I checked that the remote is working and am trying differents aswell.

Always show us a good schematic of your proposed circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components.


This is my ciruit.
The components are an offbrand arduino mega 2560 and a KY-020 IR reciever

Give us a link to this.

Here:

but why is it important

So we can confirm your wiring.

The component you linked is mounted on a PCB yours is not. :thinking:

The sensor is being recognized

Your sketch here works perfectly.

  • Try new wires.

  • We need to confirm the actual IR receiver part number, you could try a new sensor but if it is wired incorrectly, it will get destroyed.

  • Try a new battery in your remote.

What remote control are you using? Is it 38KHz modulation like the receiver? It likely is but no guarantee.

What protocol is the remote control?

Huston we might have a problem.

From what we see the receiver is a TSOP1838.

Different footprint than your wiring. :woozy_face:
image

You may have damaged the component.

Is there a part number on the back of your receiver ?

Sadly not thats why i used the resource from the company i bought it from but apperently the switch a bit.
How do i know if it is broken or not cause it is still not working but i am not sure if it is broken or not


Well,

  • your sketch works here
  • my TSOP1838 is wired as here
    image

:thinking:

Yeah i have rewired it the right way now but is there a way for me to find out if it did break it or not

If you connected the power backwards it is dead. I can say that with assurance because of direct experience.

As stated, everything here works 100%.

You can answer this question.


FYI

IRreceivers

I would be very interested in your fix? :slight_smile:

I tested everything and then bought a new one the connection from above from @LarryD is right and my code works, I just destroyed the other one

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