-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement receiving and receiving sample #2
Comments
Yes, the receiver part was not implemented yet. I edited the description for now, and I will implement it later |
Cool. Looking forward to it. Do you think it will be hard to implement, and where do you see the challenges? |
Well I have no experience with timers and interrupts on ESP8266, so that will be a pretty big challenge for me :D Also someone else started to implement it, and got issues with the receiving part: http://www.esp8266.com/viewtopic.php?f=33&t=3357#p19122 So it probably won't be easy |
Yes, PaulDG's comment reads like he got receiving working by using https://sui77.wordpress.com/2011/05/27/use-any-arduino-pin-for-transmission-with-the-irremote-libary-by-soft-pwm/ plus some changes he describes on the page you linked. Did you try that? Also it looks like https://github.com/sh4d0w12/esp8266_irlib/blob/master/user/user_main.c does what we'd need, maybe you can make use of that too? |
Not yet, I don't have too much time right now. And originally I only needed the sending part (I recorded the codes with Arduino previously), that's why I did not implemented it back then. |
This works for me, it gives the raw timings. From there it could be hooked into the existing decoding algorithms.
|
Thanks for the code. I tried it yesterday, but it didn't worked for me. It seemed as loop() would stop after a couple of minute and I didn't have time to debug it yet. But the interrupt part certainly works, so I will try to rewrite the receiving part of the library using it. |
Guys anything new regarding the receive part? we need a way to receive raw value and decode it to be used within the system. Appreciate your hard work |
Same here. Any progress on enabling the receiver part? Would be amazing! |
So I tried @probonopd sketch. instead of GPIO2 I used GPI14 on an ESP-12. It is working now but everything i get doesn't look like distinct IR codes form my remote (this is pressing 3 times the same button):
|
If your expecting the same EXACT bunch of #'s to appear then this will not happen, I do not know the coding of your remote, but all these #'s do look good, they are all +- a few counts from one another, you need to feed this data into a decoder and you will I think get real keypresses out! |
Alright. This helps me out a lot since I know now where to go. The problem is, as of now, there doesn't seem to be any compatible IR decoder for the ESP8266 as they all rely on the AVR/io.h and AVR/interrupt.h. And this is exactly the same problem why IRremote.h doesn't work in the first place. So, I'm receiving IR signals but sadly I can't do anything with them on the ESP8266. Isn't there a way to get the io.h and interrupt.h working on the ESP8266? |
@ildr3him the fact that you got these codes shows that they were received properly without the need for AVR/io.h or AVR/interrupt.h. It is not simply a matter of feeding these timings into the decoding software (which should not need AVR/io.h or AVR/interrupt.h) in order to get it decoded. However, note that markszabo mentioned the receiving code stops working after a couple of minutes which could be an indication for a leak somewhere. So I haven't given up hope yet for markszabo to find some time and implement the receiving :-) |
Hi everyone ! |
@sebastienwarin these are great news!! I can't wait to try it out :) |
I just publish my library with the receiving part : https://github.com/sebastienwarin/IRremoteESP8266 |
@sebastienwarin you are them man! :D |
Sorry guys, I didn't have the time to contribute to this, but great job, thank you 👍 |
On the main page the description says "send and receive infrared signals" but I can only find examples for sending, which works great. Please also implement receiving.
The text was updated successfully, but these errors were encountered: