A phone-controlled power strip needs a way to receive commands and a way to switch the load. Pedro Minatel’s IoT power strip project on Hackaday.io puts those jobs in an ESP8266 module and a TRIAC-based power stage. The goal was control from a smartphone over the internet; the published code shows a more bounded but useful mechanism: the ESP8266 itself serves the browser controls.
Created on April 27, 2015, the project has supplied development logs running through July of that year, alongside an undated Arduino-style code listing in its details. These offer two firmware approaches, not evidence of a newly launched or finished connected appliance.
The browser talks directly to the ESP8266
Minatel originally proposed NodeMCU firmware with Lua scripts. In an April 28, 2015 testing update, he reported testing a NodeMCU TCP client script and described a basic Android app as the next idea.
The July 28 Lua listing instead provides browser controls through a server listening on port 80. It parses URL parameters, writes a load-control GPIO high or low, and changes indicator outputs. The page offers ON and OFF links; the request handler also recognizes a toggle command. A dedicated phone app isn’t necessary for that interface.
The Arduino-style listing in the project details makes the network arrangement explicit. It configures the ESP8266 as a Wi-Fi access point named IoTStrip, starts an HTTP server, and looks for rele_on or rele_off in incoming requests. Its response offers the opposite action based on a stored GPIO-state variable.
Local wireless control is not the same as internet control. This listing creates its own network rather than joining a router, and it shows no remote-access service or HTTP-level authentication. It also reports the commanded state, not a measured confirmation that the attached load has switched. Those distinctions matter if the interface is to become more than a nearby browser-operated switch.
The TRIAC stage carries the harder questions
The listed hardware includes an ESP-03 module, a MOC3041 optocoupler driver, a BTA12 TRIAC, and a 14K275 varistor. Minatel describes the intended switching capacity as up to 12 A, but the excerpts don’t establish a tested continuous-current rating for the assembled strip.
In a May 4, 2015 hardware update, he describes a TRIAC module with an RC snubber for an inductive load and asks whether to retain the filter. That is an open design question in the visible record, not a documented resolution.
The early discussion also flags the mains-voltage risk. Bruce Land warned against the prototyping-board arrangement. Minatel acknowledged the risk and said the MOC-plus-TRIAC test had lasted only a few seconds at about 180 mA; he described a second prototype as somewhat more secure. Neither a brief low-current test nor that description establishes electrical safety. This is a mains-switching prototype, not a certified power strip or a construction guide for operational use.
A physical button would change the control problem
In October 2017, commenter Lauro Ilson asked about adding a physical pushbutton so the strip could be switched without internet control. No implementation is shown in the supplied discussion, but the suggestion identifies a useful next step: browser commands and a local button would need to share one consistent state.
The project makes the software path easy to understand—a request arrives, a GPIO changes, and a page returns. The next meaningful milestone would be demonstrating dependable behavior around that path: a defined startup state, synchronized local and browser controls, and a properly evaluated mains assembly. Serving an on/off page is only the beginning of making a power switch dependable.
Source: IoT power strip using ESP8266