WiFi Controlled LED Using ESP8266 and Arduino
WiFi Controlled LED Using ESP8266 and Arduino
What is ESP8266?
The ESP8266 WiFi Module is a self contained SOC with integrated TCP/IP protocol stack that
can give any microcontroller access to your WiFi network. The ESP8266 is capable of either hosting an
application or offloading all Wi-Fi networking functions from another application processor. Each
ESP8266 module comes pre-programmed with an AT command set firmware, meaning, you can simply
hook this up to your Arduino device and get about as much WiFi-ability as WiFi Shield offers (and that’s
just out of the box). The ESP8266 module is an extremely cost effective board with a huge, and ever
growing, community.
This module has a powerful enough on-board processing and storage capability that allows to be
integrated with the sensors and other application specific devices through its GPIO’s with minimal
development up-front and minimal loading during runtime.
Components Required:
1. Arduino UNO
2. ESP8266 WiFi Module
3. LED
4. 330Ω Resistor
5. 1K Ω Resistor
6. 2.2K Ω Resistor
7. Push Button
8. Connecting Wires
9. Mini Breadboard
Circuit Diagram
The circuit diagram for the WiFi Controlled LED using ESP8266 and Arduino project is shown
in the image below.
Circuit Design
I have used the software serial feature of the Arduino and made its digital pins 2 and 3 as RX and
TX. These pins must be connected to TX and RX pins of the ESP8266 WiFi Module. An LED is
connected to the Digital pins I/O pin 11 of the Arduino. (This is the LED that we will be controlling over
WiFi)
Coming to the rest of the connections with respect to the ESP826, it’s VCC and CH_PD pins are
connected to 3.3V of the Arduino and GND is connected to, well the GND pin of the Arduino. A push
button is connected between RESET of ESP8266 and GND. Both the GPIO pins of the Esp8266 i.e.
GPIO0 and GPIO2 are left open as we won’t be suing those pins in this project.