The purpose of the project is to control office air conditioning systems.
There are multiple parts to the system, these roughly correspond to each of the tabs.
There are comments in each tab for your reference.
The AC system also automatically turns off when the ambient light sensor is under a certain ambient light measurement (threshold). This threshold is a setting that can be changed through the cloud console.
To configure the system, the user must first record the required commands using the original remote.
To do that, we created an interface that can be toggled on/off by pressing the MD button. The user is then required to use the remote control to issue four AC states - 1 for the fan setting, 2 for the coldest setting, 3 for the hottest setting, and 4 for off.
After that, the system will automatically issue commands based on two factors:
- The difference in room temperature and ‘target temperature’
- Ambient light being over/under a certain threshold
There are settings related to automated temperature control (configured through TPS LCD screen or Cloud Console):
- Critical_cold_delta
- Critical_hot_delta
- Acc_hot_delta
- Acc_cold_delta
When Auto is enabled AND:
- Room temp < target_temperature - critical_cold_delta: the HOT command is sent every 60 seconds
- target_temperature - critical_cold_delta < Room temp < target_temperature - acc_cold_delta: the HOT command is sent once and NOT sent again until the temperature is outside of this range.
- target_temperature - acc_cold_delta < room_temp < target_temperature+acc_hot_delta: the FAN command is sent once and NOT sent again until the temperature is outside of this range.
- target_temperature+acc_hot_delta < room temp < target_temperature+critical_hot_delta: the COLD command is sent once and NOT sent again until the temperature is outside of this range.
- Target_temperature+critical_hot_delta < target_temperature: the COLD command is sent once every 60 seconds.