0% found this document useful (0 votes)
9 views4 pages

Get Started With ESP8266 Using AT Commands Via Ard

This document provides instructions for getting started with the ESP8266 WiFi module using AT commands via an Arduino. It details the necessary parts, how to connect the ESP8266 to an Arduino, using a voltage divider, uploading code to the Arduino, and gives examples of AT commands to program the ESP8266 module.

Uploaded by

Fanny Wong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views4 pages

Get Started With ESP8266 Using AT Commands Via Ard

This document provides instructions for getting started with the ESP8266 WiFi module using AT commands via an Arduino. It details the necessary parts, how to connect the ESP8266 to an Arduino, using a voltage divider, uploading code to the Arduino, and gives examples of AT commands to program the ESP8266 module.

Uploaded by

Fanny Wong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

technology workshop craft home food play outside costumes

Get Started with ESP8266 using "AT commands" via Arduino


by FABLAB Dhahran on March 15, 2016

Table of Contents

Get Started with ESP8266 using "AT commands" via Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro: Get Started with ESP8266 using "AT commands" via Arduino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1: Parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2: Connecting the ESP8266 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 3: The voltage divider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 4: Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 5: AT commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

http://www.instructables.com/id/Get-Started-With-ESP8266-Using-AT-Commands-Via-Ard/
Intro: Get Started with ESP8266 using "AT commands" via Arduino
ESP8266 Wifi Module is an integrated chip designed for communicating to the world of the internet through Wifi radio signals. It is the link between a project and the
internet. It has on-board processing and memory that allows it to be integrated with electronics through its GPIOs. The ESP8266 can be used to connect your Arduino
projects to the internet.

In this instructable, you will get started with the basics of ESP8266 and how to program it using an AT commands.

Step 1: Parts
These parts are needed to program your ESP8266:

1 - ESP8266

2 - Arduino Uno

3 - Resistor 330 ?

4 - Resistor 180 ?

5 - Jumper Wires

6 - Mini Breadboard

Step 2: Connecting the ESP8266


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

Step 3: The voltage divider


The voltage divider is used to produce an output voltage that is a fraction of the input voltage. We will use the voltage divider between the TX of the Arduino and RXD of
the ESP8266 to produce an output voltage of 3.3 V.

I have used a 180 ? resistor and a 330 ? resister, as R1 and R2, respectively.

Use this website if you have different resistor values.

http://www.instructables.com/id/Get-Started-With-ESP8266-Using-AT-Commands-Via-Ard/
Step 4: Programming
After the connection of the pins mentioned above, the following code is uploaded to the Arduino to enable serial communication between the serial monitor and the
ESP8266 through the Arduino. When a command is entered into the serial monitor on the computer the Arduino will relay it to the ESP8266. Download the Arduino code
attached and upload it to the Arduino Uno board.

File Downloads

WriteToESP_UNO.ino (1 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'WriteToESP_UNO.ino']
Step 5: AT commands
There are many AT commands that can be used to program the ESP8266 Wifi module. Check them out here. The following AT commands should be written in the
Arduino’s serial monitor (in order) to program the ESP8266:

1. “AT” This will check if the module is connected properly and its functioning, the module will reply with an acknowledgment.
2. “AT+RST” This will reset the wifi module. Its good practice to reset it before or after it has been programmed.
3. “AT+GMR” This will mention the firmware version installed on the ESP8266. (Optional)
4. “AT+CWLAP” This will detect the Access points and their signal strengths available in the area.
5. AT+CWJAP=”SSID”,”PASSWORD” This connects the ESP8266 to the specified SSID in the AT command mentioned in the previous code.
6. “AT+CIFSR” This will display the ESP8266’s obtained IP address.
7. If the user wants to disconnect from any access point then use the following AT command AT+CWJAP=””,””
8. “AT+CWMODE=1” This sets the Wifi mode. It should be always set to Mode 1 if the module is going to be used as a node (Like our mobile’s connection to the
access points)
9. After this step is done, repeat step 2 to reset the Wifi Module. “AT+RST”

Now you can connect your ESP8266 to the internet and get started with IoT.

http://www.instructables.com/id/Get-Started-With-ESP8266-Using-AT-Commands-Via-Ard/
Related Instructables

wireless logger Get Started with The ESP8266 ESP8266-1 A newbie's ESP8266 WiFi
ESP8266 ESP8266 Using Part 1 - Serial Enabled RC guide to setup relay switch by
NodeMCU v1.0 AT Commands, WIFI Module for Turned Wifi Car ESP8266 with EasyIoT
with Arduino NodeMCU, or Arduino by With Browser Arduino Mega
IDE by shinteo Arduino (ESP- mjrovai Controlled 2560 or Uno by
12E) by acrobotic Direction. by shinteo
sumbasu

Advertisements

Comments

http://www.instructables.com/id/Get-Started-With-ESP8266-Using-AT-Commands-Via-Ard/

You might also like