GREE AC On/OFF

Everything related to protocols and IR codes
Post Reply
ourangzeb
Posts: 2
Joined: Thu Aug 17, 2017 7:46 am

GREE AC On/OFF

Post by ourangzeb »

Hi i have a GREE Air conditioner. I just want to turn it on/off with Arduino. Can anybody give me the sample code which are universal and how to send it through the IR and Arduino.

I will be thankful to all of you.

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

Re: GREE AC On/OFF

Post by AnalysIR »

@ourangzeb

Search is your friend...
You best option is to search this forum, our blog and GitHub & I am sure you will find an example for GREE somewhere. I don't have one to hand, but you will find one in oine of these places.
ourangzeb
Posts: 2
Joined: Thu Aug 17, 2017 7:46 am

Re: GREE AC On/OFF

Post by ourangzeb »

@AnalysIR
I have got these signal by IRremote

For on state
Decoded NEC: 9CE0060A(32 bits)
#define Something_DEC 2631927306
#define Something_HEX 9CE0060A
Raw (74): 25142, 8900 -4400, 700 -1600, 700 -500, 700 -500, 650 -1600, 700 -1600, 700 -1600, 650 -550, 650 -550, 650 -1600, 700 -1600, 650 -1600, 700 -500, 700 -500, 700 -500, 700 -500, 700 -500, 700 -500, 650 -550, 650 -500, 700 -500, 700 -500, 700 -1600, 700 -1600, 650 -500, 700 -500, 700 -500, 700 -500, 700 -500, 700 -1600, 650 -500, 700 -1600, 700 -500, 700 -500, 650 -1650, 650 -500, 700
Bytes

For OFF STATE

Decoded NEC: 8CE0040A(32 bits)
#define Something_DEC 2363491338
#define Something_HEX 8CE0040A
Raw (74): -6962, 8900 -4400, 700 -1600, 700 -500, 700 -500, 650 -550, 650 -1600, 700 -1600, 700 -500, 700 -500, 650 -1600, 700 -1600, 700 -1600, 650 -550, 650 -500, 700 -500, 700 -500, 700 -500, 700 -500, 700 -500, 650 -550, 650 -500, 700 -500, 700 -1600, 700 -500, 700 -500, 700 -500, 650 -550, 650 -500, 700 -500, 700 -1600, 700 -500, 700 -1550, 700 -500, 700 -500, 700 -1600, 700 -500, 700


To on/off GREE AC i am using this code but its not working can you help me where i am wrong?
#include<IRremote.h>
IRsend irsend;

void setup()
{
Serial.begin(9600);
irsend.enableIROut(38);
}
void loop()
{
irsend.sendNEC(0x9CE0060A, 32);
delay(3000);
irsend.sendNEC(0x8CE0040A, 32);
delay(3000);

}


Post Reply