IoT air conditioner controller
IoT air conditioner controller
Air conditioners consume a fair amount of electricity. As such, forgetting to turn one off before leaving one's home can result in an expensive electricity bill. This is a Wi-Fi enabled controller for air conditioners, which can turn the unit on or off according to MQTT messages. It is built around an Wemos D1 mini and interfaces with the AC using an IR LED.
The Wemos D1 mini drives the infrared LED so as to send signals identical to that of the original remote controller of the AC. Those signals must first be recorded, which can be done with an IR receiver connected to an Arduino running this sketch.
Additionally, an HC-SR501 PIR motion sensor and a DHT22 temperature and humidity sensor are included for added functionality.
Here are the parts used in this project:
Wemos D1 mini
DHT22 Temperature and humidity sensor
HC-SR501 PIR motion sensor
940nm IR LED
2N2222A NPN transistor
100Ω resistor
1kΩ resistor
More info about the hardware on OSHWLab
On the other hand, the source code is available on GitHub.