gonana
January 5, 2023, 7:16pm
1
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.
LarryD
January 5, 2023, 7:22pm
2
Always show us a good schematic of your proposed circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components.
gonana
January 5, 2023, 7:35pm
3
This is my ciruit.
The components are an offbrand arduino mega 2560 and a KY-020 IR reciever
LarryD
January 5, 2023, 7:47pm
6
gonana:
but why is it important
So we can confirm your wiring.
The component you linked is mounted on a PCB yours is not.
gonana
January 5, 2023, 8:05pm
7
The sensor is being recognized
LarryD
January 5, 2023, 8:12pm
8
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?
LarryD
January 5, 2023, 9:55pm
10
Huston we might have a problem.
From what we see the receiver is a TSOP1838.
Different footprint than your wiring.
You may have damaged the component.
LarryD
January 5, 2023, 9:58pm
11
Is there a part number on the back of your receiver ?
gonana
January 5, 2023, 10:38pm
12
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
gonana
January 6, 2023, 6:10pm
14
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.
LarryD
January 6, 2023, 6:22pm
16
As stated, everything here works 100%.
You can answer this question.
FYI
d5105
January 7, 2023, 9:48pm
17
I would be very interested in your fix?
gonana
February 2, 2023, 5:57pm
18
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
system
Closed
August 1, 2023, 5:57pm
19
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.