Help on sending IR Codes #702
Replies: 12 comments
-
Posted at 2017-02-25 by @gfwilliams Hi - are you doing this with a normal Espruino, or Puck.js? On normal Espruino it should be as easy as:
So all I did is divide the times by 1000 to get them in milliseconds rather than microseconds. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-25 by navas Hi Gordon, Thanks for responding. Actually the AirCon. has a longer IR Codes, It has 199 bits. So far I only found appropriate code for OFF :( Is there any way I can decode longer IR signals, I am always getting memory out of error using Espruino using official decoded method (like the instructions on Youtube) Thanks |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-26 by navas Also, I finally figured out the code using espruino. It works with Puck.JS, but ot doesn't work on my Pico, Any ideas?
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-26 by navas It is working on the official Espruino Pico. Still trying to figure out on ESP8266. Thanks |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-27 by @gfwilliams ESP8266 won't work I'm afraid - it can't generate the 38kHz oscillation needed at the moment with its software PWM. If you want to save some memory, you can do:
It'll put the data into a typed array, which will be much more memory-efficient. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-03-14 by navas Thanks @gordon. I ended up using arduino for the IR part. It's so unfortunate that esp8266 on espruino sucks at pwm. Hope it won't be any problem on ESP32. Thanks |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-03-14 by @gfwilliams Or you could use Espruino WiFi, which would work perfectly :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-03-14 by navas Yup!, that's what I did for one of my AC. And for another one, I ended up using Arduino. My budget is tight, so I can't afford to have multiple espruino Wifi :( I heard there is a way to use IRQ and make it work on esp8266. Is there any work in progress? I miss RGB Control (not the neo pixel) and IR stuffs since it lacks PWM support. Those are the two things I use mostly. Thanks |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-03-14 by @gfwilliams
Not as far as I know. I'm trying to use the patreon page to get some funds to look into ESP8266 a bit more, so I guess at some point that might happen. However I think at some point WiFi takes priority over everything, so it might never be reliable.
Soft PWM does work ok. It seems to be ok-ish for ~100Hz or so, which might work for your lighting? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-03-14 by navas Here you go buddy. Thanks for letting me know the patreon page. And for RGB, controlling individual pins with each 100Hz works? I tried with one and seems like worked with OK, but haven't tried with all 3 pins. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-03-15 by @gfwilliams Thanks! That's great! Yes, 3x 100Hz should work ok - it might glitch very occasionally, but it's usable. The way it's implemented, 3x 100Hz has about the same load as 1x 300Hz - so it should be fine. If you need more PWM you could always try lowering the frequency. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-03-15 by navas ok, thanks @gordon. I will give it a try. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-24 by navas
Hi,
I was trying to send IR code for my Aircondition unit. Unfortunately, none of the methods (hopefully) listed on the espruino website works for me, I was able to deduct the IR code using Arduino and found the following code.
How do I send the equivalent code from Espruino? (there is no pronto code listed on irdb.tk)
Thanks
Navas
Beta Was this translation helpful? Give feedback.
All reactions