|
arduino IDEArduino
|
|
|
Cadsoft Eagle |
ESP32 Smart Power Strip with Local Web Control and Timer
Hi everyone!
I’d like to share my ESP32 Smart Power Strip project. It independently controls two AC power outlets over Wi-Fi and features an integrated active cooling system, all built around a custom single PCB (45×55 mm).
Design and operation
In my daily setup, I wanted a smart power strip that works reliably without depending on external cloud servers or an active internet connection. Instead of connecting to a third-party cloud platform, the ESP32 DevKit V1 hosts a lightweight local Access Point (AP) web dashboard. Any smartphone or laptop can connect directly to the power strip's Wi-Fi network to toggle each outlet with zero lag, monitor live status, and configure custom countdown or scheduled timers.
To keep timers accurate without an internet connection or an external RTC module, the web interface automatically synchronizes time directly from the client browser whenever the dashboard is opened. For everyday safety inside a compact enclosure, I also added an automated thermal management system. An internal temperature check monitors operating heat and triggers a 5V DC brushless cooling fan whenever temperatures reach 60°C or higher, while still allowing a manual override directly from the web UI.
Hardware
The hardware is built on a custom 45×55mm single layer PCB designed to consolidate the control logic and keep internal wiring neat and compact. The ESP32 DevKit V1 is mounted using 2.54mm female pin headers, making it easy to remove or replace during maintenance.
For high-voltage switching, the controller drives a 2 channel 5V relay module wired to standard AC terminal sockets. Because the relay module features built-in optocoupler isolation, the low-voltage microcontroller circuitry remains safely separated from the 220V AC mains path.
To drive the 5V cooling fan cleanly from a microcontroller pin, I included a low-side switching stage on the PCB using a BC547 NPN transistor connected to GPIO 25 through a 1kΩ base resistor. A 1N4004 flyback diode is placed across the fan terminals to suppress inductive voltage spikes whenever the fan switches off.
Firmware and integration
The firmware runs directly on the ESP32 DevKit V1 and serves both the local Wi-Fi Access Point and the embedded web server. Through the browser dashboard, the controller exposes independent controls for both outlets alongside real-time scheduling and thermal settings:
Independent outlet controls
- Instant manual on and off switching for Outlet 1 and Outlet 2
- Individual countdown and scheduled timer configuration synced via browser time
- Live state feedback on the web dashboard
Thermal management controls
- Auto mode activating the cooling fan automatically at 60°C or above
- Manual mode for continuous fan operation when running heavy loads
ESP32 Smart Power Strip with Local Web Control and Timer
Project images are for reference only. Actual production is based on the manufacturing files on the project page.
Please review the designer's notes (e.g., PCB thickness) and select the appropriate options.
PCBWay is not responsible
for issues caused by unsuitable parameter selections.
For more important ordering information, please refer to
Read More
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(1)
- Likes(1)
-
Engineer
Nov 21,2026
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Engineer
-
-
Power Proto Board 100 x 50 mm (built-in 5 V + 3.3 V supply)
660 0 0 -
-
-
-
BorePilot - ESP32-S3 Smart Borewell Pump Controller
526 0 0 -
-
-
AudioLink – USB & Bluetooth LE Audio / Auracast Receiver with Balanced Line Outputs (nRF5340)
691 0 2 -
-







