Altium
Altium Student Lab

Published: March 31, 2026
Video Description
In this ESP8266 IoT project, you will learn how to build a powerful and practical Home Automation system using ESP8266 NodeMCU with Timer and EEPROM, turning it into a DIY Smart Plug that works even without internet.
Enroll Altium Student Lab for FREE: https://www.altium.com/in/yt/techstudycell
Limited Time offer for students.
This ESP8266 project allows you to control 2 relays using a mobile-friendly web dashboard as well as manual switches. It also includes a timer feature with countdown display, EEPROM memory support, and a beautiful modern UI. So it is perfect for beginners and intermediate makers who want to create a standalone IoT system.
How It Works:
The ESP8266 creates its own WiFi hotspot. Simply connect your phone to the ESP8266 network and open the IP address (192.168.4.1) in your browser. From there, you can control the relays, monitor status, and use the timer — all in real-time.
I have covered the following topic in this ESP8266 Home Automation system:
00:18 Quick demo on ESP8266 DIY Smart Plug.
02:38 Required Components for ESP8266 home automation project.
02:57 Circuit diagram of ESP8266 control relay project.
03:54 Source code for the ESP8266 NodeMCU project.
07:12 Set the timer from web-dashboard to control esp8266 relay.
Required Components for this NodeMCU DIY smart relay:
ESP8266 NodeMCU WiFi module
2-channel relay module (active-LOW)
5-mm LED + 220Ω resistor for WiFi status
2 latched switches (ON/OFF toggle or rocker switch)
5A 3 pin socket
Jumper wires
Download Code for this ESP8266 home automation project:
https://iotcircuithub.com/wp-content/uploads/2026/03/code_NodeMCU_WebserverAP_SmartPlug.zip
Project Highlights:
• Control 2 relays using a mobile-friendly web dashboard
• ESP8266 runs in Access Point (AP Mode) – No WiFi router required
• Manual control using latched switch or push button (selectable in code)
• Built-in Timer feature for automation (Relay 2)
• Timer ON/OFF control with real-time countdown display
• Smart time format (minutes + seconds) on dashboard
• EEPROM support to restore relay states after power failure
• Configurable relay type (Active HIGH / LOW)
• LED indicator shows timer status
• Clean and modern responsive UI
This project is ideal for:
• DIY Smart Plug
• Home automation systems
• Offline IoT projects
• Learning ESP8266 Web Server
• Automation using timers
In this project, we successfully built a fully standalone Home Automation system using ESP8266 NodeMCU, combining web-based control, manual switches, timer functionality, and EEPROM memory into a single smart solution.
This DIY Smart Plug demonstrates how powerful and flexible the ESP8266 can be, even without internet connectivity. With features like real-time feedback, configurable relay logic, and a user-friendly mobile dashboard, this project is both practical and scalable for real-world use.
You can further expand this system by adding more relays, sensors, or even integrating cloud platforms for remote access. Whether you're a beginner or an advanced maker, this project is a great step toward building your own smart home ecosystem.
#homeautomation #esp8266 #smartplug
-------------------------------------------------------
Thanks For Watching...
✅ SUBSCRIBE ✅LIKE ✅SHARE ✅ COMMENTS
Find out more such projects: https://iotcircuithub.com/
Facebook: https://www.facebook.com/techstudycell/
Instagram: https://www.instagram.com/techstudycell/
Telegram: https://t.me/techstudycell/
-------------------------------------------------------
-------------------------------------------------------
WARNING:
This video is for demonstration and educational purposes only.
Each demonstration presents risks and hazards that must be fully understood before attempting.
And should be performed only by professionals
------------------------------------------------------
Other useful IoT projects:
Latest ESP32 projects playlist:
https://www.youtube.com/playlist?list=PLlBmS9EKFydee7YsvVP_5TiPDeH38PwlK
Latest NodeMCU projects playlist:
https://www.youtube.com/playlist?list=PLlBmS9EKFydcv9ffXm72-cU9_EusicIjO
Arduino Home Automation Projects playlist:
https://youtube.com/playlist?list=PLlBmS9EKFydcxOoCht4ocLEV5zUdoCwsd