meta data for this page
This is an old revision of the document!
General info
ESP8266 is a SOC module contains:
- CPU: Tensilca Xtensa LX3, 32bit, 80MHz
- RAM: 32kB, DRAM 80kB, Flash 200kB
- WiFi 802.11 b/g/n (soft AP mode available)
- and more
Additionally on PCB:
- External SPI Flash 512kB with firmware
Device is 3,3V only and can consume over 200mA. Some FTDI or PL2303 conventers are capable to provide 3,3V VCC but the power is not enough to provide stable supply.
Memory MAP: http://www.esp8266.com/wiki/doku.php?id=esp8266_memory_map
esp8266_specifications_english.pdf
0a-esp8266_datasheet_en_v4.3.pdf
Modules versions
ESP-01
To enable deep sleep mode, connect XPD pin to RESET pin (picture from http://www.esp8266.com/viewtopic.php?f=32&t=5701&start=28)
ESP-12
ESP-12E
ESP-12F
ESP-14
Pinout
Pin | role | description |
---|---|---|
CH_PD | Chip power down - to enable chip needs to be pulled up | |
RST | ||
T_OUT | ADC | |
GPIO0 | FLSH | Pull up during powering to go into flashing mode |
GPIO1 | TXD | 3,3V ! |
GPIO2 | IO | |
GPIO3 | RXD | 3,3V ! |
GPIO6 | MMC CLK | |
GPIO7 | MMC D0 | |
GPIO8 | MMC D1 | |
GPIO9 | MMC D2 | |
GPIO10 | MMC D3 | |
GPIO11 | MMC CMD | |
GPIO12 | HSPI Q | |
GPIO13 | HSPI D / RXD2 | |
GPIO14 | HSPI CLK | |
GPIO15 | HSPI CD / TXD2 | |
GPIO16 | XPD | Depp sleep Timer output / USER / WAKE |
IO0 | ||
IO2 | ||
IO4 | ||
IO5 | ||
IO12 | ||
IO13 | ||
IO14 | ||
IO15 |
Flashing new firmware
When Chip is powered on, with GPIO0 pulled up, it enter into firmware downloading mode.
esptool
Download/clone https://github.com/themadinventor/esptool
Example usage:
./esptool.py --port /dev/ttyUSB1 --baud 9600 write_flash 0 ../nodemcu_float_0.9.6-dev_20150704.bin
Connecting... Erasing flash... Writing at 0x00001400... (1 %)
Erasing flash... Wrote 462848 bytes at 0x00000000 in 520.5 seconds (7.1 kbit/s)... Leaving...
Firmwares
Own firmware in C
AT command
NodeMCU
It is LUA based firmware (command interpreter). https://github.com/nodemcu/nodemcu-firmware
NodeLua
ESP Easy
The ESP Easy firmware can be used to turn the ESP module into an easy multifunction sensor device for Home Automation solutions like Domoticz. Configuration of the ESP Easy is entirely web based, so once you've got the firmware loaded, you don't need any other tool besides a common web browser. http://www.esp8266.nu
Wiki page ESP Easy