Skip to content

alixahedi/ESP-WIFI-CONTROLLER-PROJECT

Repository files navigation

ESP8266 WiFi Controller

This project allows you to wirelessly control the power of an electrical device, such as an evaporative cooler! 🌬️

With a built-in web interface, you can control the device from any browser. You can even add the web page as a web application to your mobile home screen for quick access. Just tap the icon and start controlling your device instantly.

🔥 Features

  • 🛜 Two operating modes:
    • Access Point Mode: Creates its own WiFi network for direct connection.
    • Station Mode: Connects to an existing WiFi network.
  • 🎛️ Web-based control panel – No need for additional apps!
  • 🔧 Easy configuration – Set the device name, web page title, and host address in the Wifi_Controller.ino file.
  • Over-the-Air (OTA) updates – Upload new firmware directly from the web page.
  • 🔄 Auto-switching WiFi – If no WiFi credentials are set, the device creates an Access Point.

🚀 Getting Started

  1. Flash the ESP8266 with the provided firmware using the Arduino IDE.
  2. On first startup, the module will try to connect to a WiFi network.
    • If no credentials are stored, it will create an Access Point named "Cooler" (you can change this in the code).
  3. Connect to the device and access the settings page (📷 see below).
  4. Set up your WiFi credentials and switch between modes as needed.
  5. Control your device via the web interface!

🖥️ Web Interface

Home Tab

Control the device easily from the web page.

Home Tab

Settings Tab

Configure the WiFi mode and update settings.

Setting Tab

OTA Update

Upload new firmware remotely using Over-the-Air updates.

Update

🛠️ How to Update Firmware (OTA)

  1. Compile the binary file:
    • In Arduino IDE, go to SketchExport Compiled Binary.
  2. Upload the .bin file to the Update tab in the web interface.
  3. Click Upload, and the ESP8266 will restart with the new firmware!

🏗️ Customization

Modify these values in Wifi_Controller.ino to personalize your device:

#define DEVICE_NAME "Cooler"
#define WEB_TITLE "Cooler Controller"
#define HOST_ADDRESS "192.168.4.1"

Change them to fit your needs! 🎯


📜 License

This project is licensed under the MIT License.


📞 Contact

For questions or suggestions, feel free to reach out via email: 📧 [email protected]


Alix | Twitter Ali's LinkedIN Ali's FaceBook Ali's Instagram

About

ESP8266 Wifi Controller - webpage

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published