In this ESP8266 tutorial, we are using an ESP-01 module to control an LED over the internet. The ESP8266 is a cheap, yet effective platform for communicating over the internet. It's also easy to use with an Arduino. After going through this ESP8266 tutorial, you will have the know-how to control any electrical device through the internet from anywhere in the world!

Here, we will be using an USB-to-TTL converter to program the ESP8266 ESP-01 module.And we'll be using the Arduino IDE to develop the web server to control an LED remotely. If you just bought your module, you can also refer my previous ESP8266 tutorial to see how to get started with the ESP-01 Wi-Fi module. It also shows how you can configure it and verify that there is communication established between the ESP8266 and another device without using aUSB-to-TTL converter.

How Does It Work?





The ESP8266 can be controlled from your local Wi-Fi network or from the internet (after port forwarding). The ESP-01 module has GPIO pins that can be programmed to turn an LED or a relay ON/OFF through the internet. The module can be programmed using an Arduino/USB-to-TTL converter through the serial pins (RX,TX).