Finkregh / ESP8266-WiFi-Relay

Control a relay with an ESP8266 - purpose built module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP8266 WiFi Relay

Control a relay with an ESP8266 - purpose built module

(Direct link to video: https://youtu.be/NbQN7sOpbLU )

So you want to control some mains electrical (or lower voltage) item using your phone, perhaps? This single ESP8266 plug-in controls a relay that is built in to the module.

An Android app (.apk) allows you to configure the relay to switch on and off (toggle) or have a momentary action. All well and good then. Well, not really. Watch the video to find out what they did wrong and how a small Arduino (eg Nano or even an ATTiney85) comes to the rescue!

The Arduino sketch is right here in the Github repository (simple would be too complex a word to describe it!).

Where I bought my device (Banggood)
https://www.aliexpress.com/item/ESP8266-5V-WiFi-relay-module-Things-smart-home-remote-control-switch-phone-APP/32812243370.html

Manufacturer's Webpages
http://www.chinalctech.com/index.php?_m=mod_product&_a=view&p_id=1253 (this 5v relay)
http://www.chinalctech.com/index.php?_m=mod_product&_a=prdlist&cap_id=181 (all their WiFI relays)

Hackster.io page that walks you through the steps to configure it (thanks Graham Wise)
https://www.hackster.io/makerrelay/esp8266-wifi-5v-1-channel-relay-delay-module-iot-smart-home-e8a437

Excellent wepages on ESP8266 and AT commands
https://medium.com/@andrewlr/getting-started-with-esp8266-875fb54441d6
http://room-15.github.io/blog/2015/03/26/esp8266-at-command-reference
https://medium.com/@andrewlr/getting-started-with-esp8266-875fb54441d6 (incl. replacement for the baud rate command)

Link to the ORIGINAL AT command firmware (from Espressif) with instructions
http://www.electrodragon.com/w/ESP8266_AT-Command_firmware

If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so :)

My channel and blog are here:

About

Control a relay with an ESP8266 - purpose built module

License:GNU General Public License v3.0


Languages

Language:C++ 100.0%