1.2.2. Electrical Characteristics ......................1.2.3. Power Consumption ......................... 1.2.4. Package Footprint ........................1.2.5. Hardware Development Kit ...................... 1.2.6. ESP8266EX Modules (WROOM) ....................1.3. A ESP8266EX ...................... PPLICATIONS USING 1.3.1. UART Connector (as in Fig. 4 Demo Board) ................1.3.2. Sensor Application (as in Fig. 5 USB Sensor Demo) ..............
Page 5
ESP8266EX Beginner’s Guide Espressif Systems 3.3.3. Transparent Serial ........................4. AT INSTRUCTION SET ........................... 4.1. O VERVIEW 4.2. B AT I ........................ASIC NSTRUCTIONS 4.3. W ........................NSTRUCTIONS 4.4. TCP/IP T ..........................OOLBOX 5. DEVELOPMENT KIT ..........................5.1. C ESP8266EX D ................
Page 6
ESP8266EX Beginner’s Guide Espressif Systems P a g e " " September 17, 2014...
Wi-Fi networking functions from another application processor. When ESP8266EX hosts the application, it boots up directly from an external flash. In has integrated cache to improve the performance of the system in such applications.
Page 8
PCB area. ESP8266EX also integrates an enhanced version of Tensilica’s L106 Diamond series 32-bit processor, with on-chip SRAM, besides the Wi-Fi functionalities. ESP8266EX is often integrated with external sensors and other application specific devices through its GPIOs;...
ESP8266EX Beginner’s Guide Espressif Systems 1.2. Hardware Overview 1.2.1. Pin Definition Figure 2: ESP8266EX Pin Definition Diagram Name Type Function 1 VDDA Analog Power 3.0 ~3.6V 2 LNA RF Antenna Interface,Chip Output Impedance=50 Ω No matching required but we recommend that the π- type matching network is retained.
Page 13
ESP8266EX Beginner’s Guide Espressif Systems 6 TOUT ADC Pin 7 CHIP_EN Chip Enable. High: On, chip works properly; Low: Off, small current 8 XPD_DCDC Deep-Sleep Wakeup;GPIO16 9 MTMS GPIO14; HSPICLK 10 MTDI GPIO12;HSPIQ 11 VDDPST Digital/IO Power Supply (1.8V~3.3V) 12 MTCK GPIO13;HSPID...
ESP8266EX Beginner’s Guide Espressif Systems 1.2.2. Electrical Characteristics Parameter Condition Typical Unit Storage Temperature Room ℃ Maximum Soldering IPC/JEDEC J- ℃ Temperature STD-020 Operating Voltage Any I/O Pin Voltage -0.3/0.75V 0.25V N/0.8V 0.1V Electrostatic Discharge TAMB=25℃ (HBM) Electrostatic Discharge TAMB=25℃...
100s, sleep 300s and waking up to connect to the AP (taking about 0.3~1s), the overall average current is less than 1mA. 1.2.4. Package Footprint Figure 3: ESP8266EX Package Dimensions P a g e " "...
UART Download Flash Boot 1.2.5. Hardware Development Kit Espressif provides a demo board for ESP8266EX. Figure 4: ESP8266EX Demo Board (Brief Outline) ▪ External power supply: 5V, 1A, positive in, negative out. ▪ External 5V power supply split through 3 LDO for ESP8266: PA, LNA and IO. Blue variable resistor can be used to adjust the value of the three power supplies.
Page 17
ESP8266EX Beginner’s Guide Espressif Systems ▪ When connected to a typical external SMA antenna, RF performance tests can be done using cable lines connected to the test instrument. ▪ MTDO, GPIO0, GPIO2 form a 3-bit selectable SDIO mode. Please refer to board markings for jumper info.
ESP8266EX Beginner’s Guide Espressif Systems 1.2.6. ESP8266EX Modules (WROOM) Espressif offers 2 kinds of modules, SMD and DIP. SMD: Figure 5: WROOM SMD Module 1. Refer to Figure 5 for pin definition. Module size is 11.8x15mm. Flash package is SOP8-150mil. Refer below for usage of SMD module (Tables in section 1.2.1 for reference): 2.
Page 19
ESP8266EX Beginner’s Guide Espressif Systems DIP: Figure 6: WROOM DIP Module Refer to Figure 6 for and pin definition. Features: 1. Ultra-small size: 11.5x11.5mm. 2. Flash package: USON8_2x3mm. Flash located on the back of the module. 3. External metal antenna. Module used in vertical position can reduce the interference of external circuit (antenna?).
ESP8266EX Beginner’s Guide Espressif Systems 1.3. Applications using ESP8266EX 1.3.1. UART Connector (as in Fig. 4 Demo Board) PIN Definition for UART Connector: UART0: (PIN 25) U0RXD+ (PIN 26) — Communication UART1: (PIN 14) GPIO2( TXD) — Print Log uart0 can be used to transmit and receive data packets while uart1 can be used to print log.
ESP8266EX Beginner’s Guide Espressif Systems Figure 7: ESP8266EX as used in USB Sensor Demo 1. USB interface is used only for 5V power supply. 2. DC-DC power chip converts 5V input voltage into 3.3V for circuit use. 3. GPIO0 connector. With jumper cap: low; otherwise: high. For switching between UART Download and Flash Boot mode.
Page 22
ESP8266EX Beginner’s Guide Espressif Systems Figure 8: ESP8266EX as used in Smart Light Demo 1. Input voltage of 5V for RGB triple color light and other circuits. 2. 5V DC-DC power chip converts to 3.3V. 3. 3w RGB triple color light.
ESP8266EX Beginner’s Guide Espressif Systems 1.3.4. Wi-Fi Smart Plug Application PIN Definition for Wi-Fi Smart Plug Application: (PIN 13) MTDO — Control relay (PIN 15) GPIO0 — Wi-Fi status indicator (PIN 10) MTDI — Communication (with server) indicator (PIN 12) MTCK — Reset button (Hold for 5s to reset) Sensors using ESP8266 (Figure 7) can be used to in the wifi...
▪ SoftAP + Station mode Use ESP8266EX to achieve a flexible network topology. 2.1.1. SoftAP Mode Using ESP8266EX in softAP mode will allow mobile phones, computers, user devices and other ESP8266EX station interfaces to connect to it, forming a LAN. P a g e "...
Systems 2.1.2. Station Mode Using ESP8266EX in station mode will it to connect through routers (AP) to a Cloud server to upload and download data. The user can use apps on the mobile phones or tablets etc to monitor and control the ESP8266EX device.
2.2. Pass-through Connection Pass-through here refers to the transparent transmission function. Host data is transmitted to ESP8266EX through uart and ESP8266EX the transmits the data over the wireless network, and vice versa. ESP8266 receives data over a wireless network, empathy spread through uart Host.
ESP8266EX Beginner’s Guide Espressif Systems 2.4. Encryption ESP8266EX supports many different kinds of encryption: ▪ WEP (only in station mode) ▪ WPA-PSK/TKIP ▪ WPA-PSK/AES ▪ WPA2-PSK/TKIP ▪ WPA2-PSK/AES P a g e " " September 17, 2014...
In addition to the usual serial flash update, ESP8266EX also supports firmware update through Cloud server. Simply upload the new firmware to the Cloud server and when ESP8266EX is connected to the internet, the Cloud server will push the update to the user. The user can then choose to upgrade or not.
ESP8266EX Beginner’s Guide Espressif Systems 3. Espressif Cloud Server 3.1. Guide to using Espressif Cloud Server Website A. Goto http://iot.espressif.cn/#/ “Start 开始”->”Developer API 开发者API”: API device control instructions “Start 开始”->”Help 帮助”: Example to help user setup their own products “Register 注册”: New user registration “Login 登录”: Login if registered user...
Page 30
ESP8266EX Beginner’s Guide Espressif Systems B. After logging in, click on “Device Development 设备开发”. User can edit the settings for all the devices. “Search 搜索”: Enter device name or device key to search for device “Export 导出”: Export the device list “Create 创建”: Create a new device...
ESP8266EX Beginner’s Guide Espressif Systems 3.1.1. Device Development In this menu, the user can view the device history, add timer, upgrade firmware and customize reverse control. 3.1.1.1. Device History On the device page -> “Data Model 数据模型” -> “Data 数据” to view device history.
Page 32
ESP8266EX Beginner’s Guide Espressif Systems 3.1.1.2. Debugging Info “Request Log 请求⽇日志“ logs the commands received by the server and used to debug the device. P a g e " " September 17, 2014...
Page 33
ESP8266EX Beginner’s Guide Espressif Systems 3.1.1.3. Timer Espressif Cloud server supports 3 kinds of timers: Precise timer 精确时间: Execute a command at a specified time Cycle Timer 周期循环: Execute a command at fixed intervals Weekly Timer 按周循环: Execute a command at weekly or on certain days each week P a g e "...
Page 34
ESP8266EX Beginner’s Guide Espressif Systems 3.1.1.4. Customized Reverse Control User can customize an action to reverse control the device. 3.1.1.5. Firmware upgrade User update the firmware through Cloud Server P a g e " " September 17, 2014...
ESP8266EX Beginner’s Guide Espressif Systems 3.1.2. Product Management Here, the user can control the sales of products and upload firmware updates. In the product list, the Activated/Total number shows how many products has been activated by the customers vs the total number of products made.
▪ Serial Transfer tools: SecureCRTPortable.exe ▪ Network Debugging tools: NetAssist.exe 3.2.2. Network Connections ESP8266EX has 2 types of network interface, softAP and station. Both can be used at the same time. Depending on the user’s actual requirements: ▪ SoftAP interface: Mobile phone or PC acts as station, connects to ESP8266EX through softAP interface.
3.3. Application Examples 3.3.1. Wi-Fi Remote Control Example: Mobile phone acts as station, connects to ESP8266EX through softAP. ESP8266EX can connect to device via UART and mobile phone can now control the device. 3.3.2. Wi-Fi Remote Access Example: ESP8266EX acts as station, connects through router (AP) to internet. It can then upload or download data via Cloud server.
ESP8266EX Beginner’s Guide Espressif Systems 3.3.3. Transparent Serial Example: Device’s MCU as host, connects and transmits data to ESP8266EX through UART. ESP8266EX then transmits via W-Fi destination address, working in pass-through mode. P a g e " " September 17, 2014...
ESP8266EX Beginner’s Guide Espressif Systems 4. AT Instruction Set 4.1. Overview Each instruction set contains four types of AT commands. Test A T+<x>=? Query the Set command or internal parameters and its range values. Query A T+<x>? Returns the current value of the parameter.
ESP8266EX Beginner’s Guide Espressif Systems 4.3. Wi-Fi Instructions Command Description Response Reference AT+CWMODE Select Wi-Fi <mode> 1: Station application mode 2:AP 3. Both Test AT+CWMODE=? +CWMODE:(<mode> value list) Set command requires reboot (AT+RST) Query AT+CWMODE? Back to current mode +CWMODE:<mode>...
Page 41
ESP8266EX Beginner’s Guide Espressif Systems Command Description Response Reference AT+CWQAP Disconnect from Test AT+CWQAP=? Execute AT+CWQAP AT+ CWSAP Set parameters Set command requires reboot under AP mode <ssid>=string value, Query AT+CWSAP? Back to current AP AP name parameters <pwd>=string value, +CWSAP=<ssid>,<pwd>,...
ESP8266EX Beginner’s Guide Espressif Systems 4.4. TCP/IP Toolbox Command Description Response Reference AT+CIPSTATUS Get connection <id>=connected ID no. 0-4 status <type>=string value, conection type Execute AT+CIPSTATUS Back to current “TCP” or “UDP” connection mode and <addr>=string value, status IP address +CIPSTATUS:<id>,<type>,...
Page 43
ESP8266EX Beginner’s Guide Espressif Systems Command Description Response Reference Single Connection Syntax correct and (+CIPMUX=0) connection successful, returns +CIPSTART=<type>,<addr >,<port> else returns Multiple Connections ERROR (+CIPMUX=0) If connection already +CIPSTART=<id>,<type>, exists, returns <addr>,<port> ALREADY CONNECT AT+CIPSEND Send Data <id>= required ID no.
Page 44
ESP8266EX Beginner’s Guide Espressif Systems Command Description Response Reference Execute AT+CIPSEND Wrap return “>” after execute command. Enters pass-through mode, 20ms interval between each packet, maximum 2048 bytes per packet. When single packet containing “+++” is received, it returns to command mode.
Page 45
ESP8266EX Beginner’s Guide Espressif Systems Command Description Response Reference AT+CIPSR Get local IP address <IP address>: device’s current IP address (Station mode) Test AT+CIPSR=? No effect under AP mode Execute AT+CIPSR +CIFSR:<IP address> ERROR AT+CIPMUX Start multiple <mode> 0: Single Connection...
Page 46
ESP8266EX Beginner’s Guide Espressif Systems Command Description Response Reference AT+ CIPSERVER Configure as server Set AT <mode> +CIPSERVER=<mode>[,< 0: Server mode OFF port>] Server has to be restarted 1: Server mode ON <port>: port number, default value=333 Server monitor will...
Page 47
ESP8266EX Beginner’s Guide Espressif Systems Command Description Response Reference AT+CIPSTO Set server timeout <time>: Server timeout Range 0~28800 Units in seconds Query AT+CIPSTO? +CIPSTO:<time> Set AT+CIPSTO=<time> +IPD Receive network data Single Connection When the module receives <id>: id no. given by...
ESP8266EX Beginner’s Guide Espressif Systems 5. Development Kit 5.1. Components of ESP8266EX Development Kit The ESP8266 development kit consists of a HDK (hardware development kit), SDK (software development kit), APK (android application) and DOC (user guides). ESP8266 Development Kit SDK:...
ESP8266EX Beginner’s Guide Espressif Systems 5.2. Documentation List Espressif provides reference guides to help developers use ESP8266EX in their projects: ▪ ESP8266 Module Application Design Guide: How to develop ESP8266EX modules using our HDK ▪ Espressif IoT SDK Manual: ESP8266EX development environment ▪...
ESP8266EX Beginner’s Guide Espressif Systems Appendix: Contact Details For more information, you can contact us at Address: 456 B A201 UITE UDONG HANGHAI 201203 HINA Email: SALES ESPRESSIF SUPPORT ESPRESSIF Corporate Website: HTTP ESPRESSIF P a g e " "...
Need help?
Do you have a question about the ESP8266EX and is the answer not in the manual?
Questions and answers