Page 1 of 1

Decode Air Conditioner Codes with ESP8266

Posted: Tue Jul 12, 2016 10:45 pm
by jfigue
Hi,

I have a Samsung Air Conditioner and I'm struggling to decode its IR codes on an NodeMCU ESP8266 so I can control it through wireless. I tried the example on AnalysisIR page for "Recording long Infrared Remote control signals with Arduino" and, even tough, it compiles it doesn't do anything and it only shows me "Press the button on the..." message on the terminal. I guess that probably the code can't be migrated so easily.
Can I ask if there's a specific version of that code for the ESP8266? Has anyone been able to decode this specific brand IR codes with the ESP8266?

Thanks in advance.

Regards,
Javier.

Re: Decode Air Conditioner Codes with ESP8266

Posted: Thu Jul 14, 2016 12:44 pm
by AnalysIR
I had a quick look at the original Arduino code and it shouldn't be hard to port it to the ESP8266 NodeMCU with the Arduino IDE.

Just make sure the Interruots are set up correctly and that watchdog doesn't time out.

It is also important to power the IR receiver from 3V3 (not 5V)

Let me know if you get it working....

Re: Decode Air Conditioner Codes with ESP8266

Posted: Thu Jul 14, 2016 12:51 pm
by AnalysIR
I just checked with the firmwarewe provide with AnalysIR for ESP8288 NodeMCU & it is very similar. So I dont see an obvious reason it wouldnt work.

So if you are having issues, it is likely something you are doing wrong in code or your wiring etc.
(add in some debug println statement to see what is happening)

You should write some test code to see if you can detect a high to low to high transition via interrupt on your setup.

Re: Decode Air Conditioner Codes with ESP8266

Posted: Mon Aug 01, 2016 1:10 am
by jfigue
Thank you very much for your response. I was able to adapt the sketch and decode the signals for my air conditioner. I'm attaching the text file with the output (I pressed a couple of times the On/Off button just to check). Does this output seems reasonable? Can I just put this into the output IR Led and send it back to the AC?

Thanks in advance!!

Regards,
Javier.

Re: Decode Air Conditioner Codes with ESP8266

Posted: Mon Aug 01, 2016 1:59 pm
by AnalysIR
Javier

I checked your first 2 signals and they decode on AnalysIR as VESTEL168_112_56AC, which is probably just a rebrand of your AC.

There are examples on our blog, showing how to send AC signals on the ESP. (Not the output signals is inverted in our code)


With AnalysIR, you can also clean these signals to get betterperformance/reliability/range.

There are also examples on our blog showing how to go about reverse engineering AC signals using AnlaysIR.

Re: Decode Air Conditioner Codes with ESP8266

Posted: Sun Oct 22, 2017 2:21 pm
by PatrickBar
AnalysIR wrote: Mon Aug 01, 2016 1:59 pm There are great Blackwolf Pre Workout results examples on our blog, showing how to send AC signals on the ESP. (Not the output signals is inverted in our code)
Could you link to one of the examples please?

Re: Decode Air Conditioner Codes with ESP8266

Posted: Mon Oct 23, 2017 12:40 am
by AnalysIR
https://www.analysir.com/blog/tag/esp8266/

Also note we have recently released 2 new A.IR shields for ESP8266 & ESP32.