Sending Infrared signal to TV - not working #5999
Replies: 1 comment
-
Posted at 2018-01-27 by @MaBecker check this page too , it also explains how round the grabbed values. Posted at 2018-01-27 by Wilberforce Also on the page @MaBecker mentions is : http://www.espruino.com/pronto http://irdb.tk contains a list of common remote control codes for different devices. So you can look up your tv, get the code and try using the pronto library... Posted at 2018-01-28 by CrashingDutchman Thank you for your suggestions @MaBecker and @wilberforce. First I tried to fix the pulse times from the receiver to 1 decimal, but that didn't work. Next I wanted went the Pronto-way. I found codes for my TV, but run into a problem with the Pronto module:
I found the pronto module on the Espruino site and took the function to decode the hex-string and used it to send to to my TV with digitalPulse... To no avail. Has anyone ever got this to work with a NodeMCU? Posted at 2018-01-29 by @gfwilliams The IR page you linked also mentions a whole bunch of other stuff you need - specifically There are a few posts on the ESP8266 forum about this already, but basically the code given won't work on ESP8266 because there's no way of getting a 40kHz square wave at the same time as executing digitalPulse. The solutions for you would be to:
Attachments: Posted at 2018-01-29 by CrashingDutchman Thank you @gfwilliams! Hmmm, maybe this way is over my head then... I have an Espruino, so I might try to go that way first but the idea was to build this into an iTead S20 smartswitch so I think that the other options (555 timer or an array with 40khz pulses) would better suit me. Any pointers on how to generate such an array or do you have a link to the page where you found the above image @gfwilliams? Much appreciated! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-01-27 by CrashingDutchman
I have a TSOP31236 connected to a NodeMCU:
I am using the following code to record IR codes from the remote from my TV:
I press the Standbye-key on the remote and when I type console.log(times) I see the contents of the times-array:
So, the receiving part seems to work.
Now from this page I found that you can send the times-array to an IR transmitter led. I have connected an IR led to pin NodeMCU.D2 and NodeMCU ground and use the following command to submit the times-array to my TV:
Nothing seems to happen, at least the TV doesn't switch off or on. When I exchange the IR led with a normal led I see that there are pulses sent out. Any idea what could be wrong or does anyone have working code with Espruino on an ESP8266?
Beta Was this translation helpful? Give feedback.
All reactions