Page 1 of 2

problems sending raw code with ESP32

Posted: Thu Apr 19, 2018 1:03 pm
by electrodevice
I can not use the Arduino IRRemote library for raw codes with ESP32, because this microcontroller uses a different method in native form, to handle reception and IR transmission, in native form (RMT).
How can I avoid the problem?

Re: problems sending raw code with ESP32

Posted: Thu Apr 19, 2018 1:37 pm
by AnalysIR
As you have an A.IR Shield ESP32 Shield....you would have received an email with firmware which can send and receive IR signals, with AnalysiR.

It should be easy to adjust that to send RAW signals.

As it happens, I will be doing some testing with the ESP32 this afternoon, so if you want to send me your test signals, I can use them for my tests & provide you with the firmware.

Re: problems sending raw code with ESP32

Posted: Thu Apr 19, 2018 2:18 pm
by electrodevice
I intend to create a database of raw ir codes, of various brands, even long ones like Hitachi.
in which format do I have to export raw codes, so that it can be used with AIRShield?
I hypothesize exporting for airshield, correct me if I'm wrong.
I have attached a file with four codes from two different remote controls (Toshiba on / off and Hitachi on / off).

Re: problems sending raw code with ESP32

Posted: Thu Apr 19, 2018 3:37 pm
by AnalysIR
You can write firmware for the A.IR Shield to send IR in any format.

However, the firmware supplied with the Shield uses A.IR Format, which can be exported from AnalysIR. AnalysIR can also export in most industry formats. The A.IR format is essentially a RAW format with he carrier frequency included.

Code: Select all

eg $38:4502,4420,592,1596,.......
Thanks for the upoad I will test it out in the next couple of hours, once I have things set up.

PS: The signals you posted are in AIR format, and should work as is with the firmware we emailed to you for the Shield.

Re: problems sending raw code with ESP32

Posted: Thu Apr 19, 2018 4:05 pm
by electrodevice
unfortunately the sketch you sent me, I think it is not compatible with ESP32 (is older, year 2014).
During compilation there is a blocking error: 'PIND' was not declared in this scope
Please send me the correct one
Thank you

Re: problems sending raw code with ESP32

Posted: Thu Apr 19, 2018 4:16 pm
by AnalysIR
You are probably referencing the wrong sketch, I will re-send it later.

Re: problems sending raw code with ESP32

Posted: Thu Apr 19, 2018 4:31 pm
by AnalysIR
I have just re-emailed the firmware again.

If you want to write your own 'simpler' sketch, you just need to use the function AIR_sendRAW (and include everything it references).

Initially, you should use the firmware as is, with AnalysIR to verify everything is OK. (Links to instrictions & documentation are in the email)

Once you are happy with that, you can then start customising hte sketch or parts of it to your own needs.

Re: problems sending raw code with ESP32

Posted: Thu Apr 19, 2018 6:37 pm
by electrodevice
i don't receive the mail, please resend-me.
Thanks

Re: problems sending raw code with ESP32

Posted: Thu Apr 19, 2018 6:53 pm
by AnalysIR
I have sent it twice now, please cheack your spam/junk folder

Re: problems sending raw code with ESP32

Posted: Fri Apr 20, 2018 7:31 am
by electrodevice
Hi Chris,
I can not invulge it anywhere, maybe the internet provider's mail server blocks it.
Please, compress it in zip or rar format and send it to us, if we do not even manage it, we can transfer it via TeamViewer or Skype.
Thank you