Allow to control a Fujitsu ASU12CQ with infrared.
Here is the architecture for my setup.
I chose to use an Arduino Nano as it can fit directly into the AC, so nothing is visible from the outside. It is alimented directly from the power of the AC with a transformer and is reachable through RF433.
[RaspberryPi] ---> RF433 ---> [Arduino Nano] ---> IR ---> [AC]
fujitsu-ac-arduino.ino
is the main file containaing the main loop for the Arduino. It listens RF433 code and generate IR sequence to be sent to the AC.commands.h
contains the simple IR commands (Turn off, toggle swing, toggle airclean, set the wing position)command-generator.ino
provides a functiongenerateCommand
which allow to generate complex IR sequence containing all the settings for the AC (Master mode, fan mode, temperature)
To control the AC over RF433, you need to send an integer code.
Here is the code for the simple operation
- 15001: Turn off
- 15002: Toogle airclean
- 15003: Toogle swing
- 15004: Set wing position
For the control of the master mode, fan mode, the temperature and to turn it on here is the template of the code to send.
{2}temperature{1}mastermode{1}fanmode{1}toggleon
- 18 to 30 (degree celsius)
- 0: auto
- 1: cool
- 2: dry
- 3: fan
- 0: auto
- 1: high
- 2: med
- 3: low
- 4: quiet
- 0: send command when AC is already on
- 1: send command when AC is off
To turn on the AC on 22 degree on auto mode and fan quiet here is the code to send: 22041
(22 for 22 degree, 0 for master on auto mode, 4 for fan on quiet mode and 1 to turn on the AC)
The docs folder contains some documents I produced for the analyze of the IR sequence. The most interesting part is in the ir_analyze.numbers file which show the difference of the sequence for each mode/temperature.