Control a power outlet with an ESP8266 running MQTT via a relay
By: +David Herron; Date: April 17, 2017
The ESP8266 is a little computer gizmo with bundled WiFi that's easy to incorporate into a wireless control system. The on-board computer is tiny, but it's powerful enough to run a MQTT client. MQTT in turn is an extremely light-weight message-oriented communication system. The example shows an ESP8266 with custom software controlling a relay, that in turn controls enough AC power to turn a light on/off. Controlling the relay is fairly simple, since the ESP8266 has an output strong enough to drive the coil of a relay.
The software is built with ESPHelper, see: https://www.youtube.com/watch?v=HyicIoBBLQ8
Smart Relay Build - YouTube
Source: ItKindaWorksEver wanted to turn your dumb light, fans (insert your dumb household device here!) into something no so dumb? Check out this easy build and make your own sm...
ESPHelper Relay Demo - YouTube
Source: ItKindaWorksThis is a super simple demo of ESPHelper to control a relay connected to an ESP8266 through MQTT. This demo shows off all of the main features of ESPHelper i...