How to send two raw codes to control AC

Everything related to protocols and IR codes
Post Reply
jonalama
Posts: 12
Joined: Fri Sep 06, 2019 10:42 pm

How to send two raw codes to control AC

Post by jonalama » Mon Sep 30, 2019 9:40 pm

Hello,

I want to control my AC using two raw codes (one for Power On an the other for Power OFF). I would like to know if it is possible to identify each of them to get recognized also from Bluetooth HC-05 in order to be able to control the AC via Android as below :

I am using IRsendRawcode example of IR remote library.

Could you please give me a hint?

Thank you in advance
You do not have the required permissions to view the files attached to this post.

User avatar
AnalysIR
Site Admin
Posts: 560
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: How to send two raw codes to control AC

Post by AnalysIR » Tue Oct 01, 2019 10:11 am

Unfortunately, you have not provided enough details/specifics for me to be of much help.

sendRAW will work fine (as long as you have enough RAM).

Also...check out
- our blog post on recording long AC signals (works better than IRremote & is more accurate with timings)
- our blog post on sending long signals with Arduino from flash, which may of itself solve you issue. (Doesnt use up scarce SRAM)

jonalama
Posts: 12
Joined: Fri Sep 06, 2019 10:42 pm

Re: How to send two raw codes to control AC

Post by jonalama » Tue Oct 01, 2019 8:29 pm

Hello,

Thank you for your help, it really worked with the code from blog post on sending long signals with Arduino from flash.
But what I really want, is not to send several signals with a command.
I want to put a condition for each signal in order to send them. For ex. if i send "on" turn on the ac, if i send "off" turn off the ac...

I dont know if I did explained well..

User avatar
AnalysIR
Site Admin
Posts: 560
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: How to send two raw codes to control AC

Post by AnalysIR » Wed Oct 02, 2019 2:18 pm

search for 'Arduino serial command parse' on google

Post Reply