Hardware Assembly - sparkfun ESP8266 Hook-Up Manual

Wifi shield
Hide thumbs Also See for ESP8266:
Table of Contents

Advertisement

As an example exercise, here are a series of commands you might type to
connect a WiFi access point and get your IP address:
> AT+CWOMDE=1 
    OK 
> AT+CWJAP="MySSID","MyPSK" 
    WIFI CONNECTED 
    WIFI GOT IP 
    OK 
> AT+CIFSR 
    +CIFSR:STAIP,"192.168.0.101" 
    +CIFSR:STAMAC,"18:fe:34:9d:b7:d9" 
Custom GPIO Commands
We've taken Espressif's AT command firmware and added a few additional
functions which give you control over the ESP8266's unused digital GPIO.
In all, there are 9 GPIO to be digitally controlled: 0, 2, 4, 5, 12, 13, 14, 15,
and 16 (XPD).
The custom commands allow you to set a pin to input or output (or input
with pullup resistor), digitally write high or low, or read the pin's state:
Function
Command
Pin
AT+PINMODE=<pin>,<mode>
Mode
Digital
AT+PINWRITE=<pin>,<state>
Write
Digital
AT+PINREAD=<pin>
Read

Hardware Assembly

Before you can use the ESP8266 Shield, you'll need to solder a few
headers in so it can interface with your Arduino.
Stackable headers are always a good option for shields, especially if you
plan on stacking more shields or plugging in jumper wires.
You can also opt for the more form-factor-friendly male headers, if stacking
isn't as important to you.
Example
Notes
AT+PINMODE=5,o
Mode:
: OUTPUT
o
: INPUT
i
:
p
INPUT_PULLUP
AT+PINWRITE=5,h
State:
: HIGH
h
: LOW
l
AT+PINREAD=0
Response:
LOW or HIGH.
Page 6 of 15
or
for
0
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP8266 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents