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 »

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: 776
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 »

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 »

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..
TateStiroh
Posts: 1
Joined: Mon Feb 10, 2020 4:50 pm

Re: How to send two raw codes to control AC

Post by TateStiroh »

Hi...I wanted to build an air conditioner IR controller, and wanted help if figuring out if I can use the Wio Link and Grove components to make this work?
The first phase would be to control the A/C to switch between COOL and FAN based on temperature. Future phases will include using my phone when away from the house to turn on A/C, and other ideas.

seo toronto
Last edited by TateStiroh on Wed Feb 19, 2020 6:22 pm, edited 1 time in total.
User avatar
AnalysIR
Site Admin
Posts: 776
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 »

I guess it is possible with that equipment. However I have not verified this platform or the components used.

Of course, I would always recommend out own modules, available via our online shop (link above).

Specifically, our range of A.IR shield modules:
A.IR Shield ESP8266 TRx (and TX only)
A.IR Shield ESP32 TRx (and TX only)
..we also have a range of other solutions that are designed with only high quality IR components.

We also have a number of posts on our blog that help with AC infrared signals and our AnalysIR application is by far the best tool available for IR.
Post Reply