Get Started With ESP8266 Using “AT Commands” Via Arduino
One of the ways to programming the ESP8266 is throughout the Arduino micro-controller board. The ESP8266 is programmed using AT commands; when received, it replies with an acknowledgment. The ESP8266 is powered up using a 3.3 Volts power source, An Arduino Uno will be able to power up the ESP through its regulated 3.3 V power pin.
The ESP8266 is connected to the Arduino through TXD, RXD, GND, and the VCC pins to the RX, TX, GND and 3.3 V pins, respectively (If you are using an Arduino MEGA). The TX received from the Arduino should be connected to a voltage divider so that RXD of the ESP8266 receives a signal of 3.3 volts logic and not 5 volts. If the signal is received in 5 volts, the ESP8266 will malfunction. The voltage divider will be explained in the next step.
If you are using an Arduino Uno, then follow the steps:
Arduino ————————————————— ESP8266
Pin 10 (Software RX) ———————————–> TXD
Pin 11 (Software TX) ——-> Voltage Divider —–> RXD
GND ——————————————————–> GND
3.3 V ——————————————————–> VCC
3.3 V ——————————————————–> CH_PD