Hi, in this tutorial we will see how to control electrical devices like fan, light, etc., to turn on and off using esp8266 from a web browser. if you are bored with a dedicated device controller like an app or an remote which will be available for only one particular device but using this method all the device which support web browsing will be act as a controller for us.
Make sure all the devices are connected to the same router, this example doesn't include a port forwarding function which will not allow us to control the device from outside the home network.
Components that you need for completing this project are very simple, you need to have an esp8266 wifi module and a relay, make sure you buying a 5v relay which very easy to use with esp chips doesn't require external supply too. we can make use of the Vin pin of the nodemcu or if you are using a generic chip, you need to supply an external 5v to the relay.
Learn more / En savoir plus / Mehr erfahren:
https://www.scoop.it/t/21st-century-learning-and-teaching/?&tag=ARDUINO
https://www.scoop.it/t/21st-century-learning-and-teaching/?&tag=I2C
https://www.scoop.it/t/21st-century-learning-and-teaching/?&tag=LCD
http://blog.mklec.com/how-to-use-iici2c-serial-interface-module-for-1602-lcd-display/
https://www.scoop.it/t/21st-century-learning-and-teaching/?&tag=NodeMCU
https://www.scoop.it/t/21st-century-learning-and-teaching/?&tag=ESP8266+WiFi+Module
This tutorial shows how to use Server-Sent Events (SSE) in an ESP8266 NodeMCU Web Server programmed with Arduino IDE. SSE allows the browser to receive automatic updates from a server via HTTP connection. This is useful to send updated sensor readings to the browser, for example. Whenever a new reading is available, the ESP8266 sends it to the client and the web page can be updated automatically without the need to make additional requests.
Learn more / En savoir plus / Mehr erfahren:
https://www.scoop.it/t/21st-century-learning-and-teaching/?&tag=ARDUINO
https://www.scoop.it/topic/21st-century-learning-and-teaching/?&tag=ESP8266+WiFi+Module