|
Carrier air conditioner I needed to control a "Carrier" air conditioner. After having registered and analysed different codes emitted by the original remote control, I was able to write a library which generates the codes to send to the AC in order to control it. The codes generated by the Carrier object can be emitted immediately using the IRsend defined by the Ken Sherriff's IR library (see the link below). Please take a look at the comments inside the source code for detailed information about all available functions. Downloads Example code 01
02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 #include <Carrier.h> #include <IRremote.h> // the Carrier code generator object Carrier carrier(MODE_auto,FAN_3,AIRFLOW_dir_1,25,STATE_on); // the IR emitter object IRsend irsend; void setup() { // wait 5 seconds delay(5000); // change the state carrier.setState(STATE_off); // send the code irsend.sendRaw(carrier.codes,CARRIER_BUFFER_SIZE,38); // wait 10 seconds delay(10000); // change the state carrier.setState(STATE_on); // send the code irsend.sendRaw(carrier.codes,CARRIER_BUFFER_SIZE,38); } void loop() {} Links |