Send and receive #1511
-
Hey, I got a question regarding sending and receiving with the same device. I recorded a few commands with a IR-receiver and now I tried to see what happens if I send the same signals back. For that purpose I used the send and receive examples and merged them in one program. I also connected the input and output Pins with a cable. But somehow the receiver prints a completly different code than I'm sending. Is there a problem with my setup? What am I doing wrong? Does this even work? Or should I use two different devices because of timing issues? Thanks in advance! Real cool project |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
Probably, but most likely with the software you've written/merged.
Typically, the problem is sending at the same time as receiving. You can get a feedback loop of sorts, or distorted captures. Or you could be trying to send If you want to see how to do it, look at:
Yes, but you have to do it correctly. Read the comments in the code examples I linked.
No and Yes. Mostly No. Read the comments. Unless you are isolating (physically visible) the transmitter from the receiver, you could corrupt your capture. If you have done that, you can capture and send at the exact same time. If not isolated, you typically need to stop the capture while you send, and resume afterwards. Capture happens in the background via interrupts. It will take some CPU cycles, but not much. So, there is a very small chance the outbound transmission could have it's timing affected ever so slightly if capture is enabled, but it's unlikely to make a significant impact. However, if you truly need near perfect, or perfect transmission and capture at the exact same time, you need to run the processes on separate CPU cores (e.g. ESP32) or multiple ESP8266s. |
Beta Was this translation helpful? Give feedback.
-
Aah ok I get it now.
…On Tue, 29 Jun 2021, 10:11 David Conran, ***@***.***> wrote:
Im actually not too sure but it looks like this: url
<https://www.reichelt.de/de/de/ir-empfaenger-module-38khz-90-side-view-tsop-31238-p107210.html?PROVID=2788&gclid=CjwKCAjwieuGBhAsEiwA1Ly_na0tAVTaV9xlQF-TxJXRmjABcsTSxH-Ku45Ix5NQ2bhv3e1VxGkbLhoC430QAvD_BwE&&r=1>
That's a demodulator. Two pins = diode, three = demodulator. Typically.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1511 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ2CVCH3BBWR4KUD4VBJVOLTVF52BANCNFSM47NXNDFA>
.
|
Beta Was this translation helpful? Give feedback.
Probably, but most likely with the software you've written/merged.
Typically, the problem is sending at the same time as receiving. You can get a feedback loop of sorts, or distorted captures. Or you could be trying to send
UNKNOWN
signals. We can't tell what it is you're doing without seeing your code.If you want to see how to do it, look at:
https://github.com/crankyoldgit/IRremoteESP8266/blob/master/examples/DumbIRRepeater/DumbIRRepeater.ino
or
https://github.com/crankyoldgit/IRremoteESP8266/blob/master/examples/SmartIRRepeater/SmartIRRepeater.ino
Yes, but you have to do it correctly. Read the comments…