This repo contains a project for controlling an air conditioning unit wirelessly using an ESP8266 microcontroller. The system allows users to operate the AC unit via a web interface accessible from a smartphone or PC, eliminating the need for a traditional remote control. This project is part of a broader lab automation initiative aimed at enhancing the convenience and efficiency of managing home appliances.
- Wireless Control: Operate your AC unit from anywhere within Wi-Fi range using a web browser.
- User-Friendly Interface: Simple web interface to control power, temperature, fan speed, and mode.
- Customizable Settings: Easily modify the code to adapt to different AC models or functionalities.
- Persistent Settings: The settings are saved in the SPIFFS file system, allowing them to persist across reboots.
-
Hardware:
- ESP8266 microcontroller (e.g., NodeMCU, Wemos D1 R1 Mini)
- IR LED for sending commands to the AC unit
- Power supply for the ESP8266
-
Software:
- Arduino IDE with ESP8266 board support
- Required libraries:
- ESP8266WiFi
- IRremoteESP8266
- IRsend
- FS
- ArduinoJson
-
Clone the Repository:
git clone https://github.com/iot-lab-kiit/controlAC cd controlAC
-
Open in Arduino IDE:
- Open the
.ino
file in Arduino IDE.
- Open the
-
Install Libraries:
- Ensure you have the required libraries installed via the Library Manager in Arduino IDE.
-
Configure Wi-Fi Credentials:
- Update the
ssid
andpassword
variables in the code with your Wi-Fi credentials.
- Update the
-
Upload Code:
- Connect your ESP8266 to your computer and upload the code using Arduino IDE.
- After uploading, open the Serial Monitor (set to 115200 baud) to view connection status.
- Once connected, access the web interface by entering the ESP8266's IP address in your web browser.
- Go to the esp_ip/file-upload url and upload all the contains of the data folder one at a time.
- Use the buttons on the interface to control power, temperature, fan speed, and mode of your AC unit.