meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
home_automation:esp8266:general [2016/06/02 08:02] – niziak | home_automation:esp8266:general [2020/06/05 14:43] (current) – niziak | ||
---|---|---|---|
Line 22: | Line 22: | ||
Memory MAP: [[http:// | Memory MAP: [[http:// | ||
- | {{: | + | {{: |
+ | {{: | ||
+ | ====== External software ====== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[http:// | ||
+ | * [[https:// | ||
- | ===== Modules versions ===== | ||
- | === ESP-01 === | ||
- | To enable deep sleep mode, connect XPD pin to RESET pin (picture from [[http:// | ||
- | {{: | ||
- | {{: | ||
- | |||
- | === ESP-12 === | ||
- | === ESP-12E === | ||
- | {{: | ||
- | |||
- | === ESP-12F === | ||
- | improved stability, better antenna, 4 layer pcb.\\ | ||
- | {{: | ||
- | {{: | ||
- | |||
- | === ESP-14 === | ||
===== Pinout ===== | ===== 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 | | ||
+ | ^ Pin # ^ GPIO ^ role / description ^^^^ | ||
+ | | 15 | GPIO0 | FLSH | SPI_CS2 | | !!! Must be H during bootup. L=boot from UART | | ||
+ | | 26 | GPIO1 | UART0_TXD | SPI_CS1 | | UART TX during flash programming | ||
+ | | 14 | GPIO2 | UART1_TXD | | ||
+ | | 25 | GPIO3 | UART0_RXD | | ||
+ | | 16 | GPIO4 | | ||
+ | | 24 | GPIO5 | | ||
+ | | 21 | GPIO6 | | SPI_CLD | SD_CLK | | | ||
+ | | 22 | GPIO7 | | SPI_MISO| SD_D0 | | | ||
+ | | 23 | GPIO8 | | SPI_MOSI| SD_D1 | | | ||
+ | | 18 | GPIO9 | HSPI_HD | ||
+ | | 19 | GPIO10 | HSPI_WP | ||
+ | | 20 | GPIO11 | | SPI_CS0 | SD_CMD | | | ||
+ | | 10 | GPIO12 | HSPI_MISO | MTDI | | | | ||
+ | | 12 | GPIO13 | HSPI_MOSI | MTCK | UART0_CTS / UART0_RXD2 | Note: there is UART Swap register, and UART0 can be muxed to GPIO13 and GPIO15 | | ||
+ | | 9 | GPIO14 | HSPI CLK | MTMS | | | | ||
+ | | 13 | GPIO15 | HSPI CS | MTDO | UART0_RTS / UART0_TXD2 | !!! Must be L durign bootup (H=SDIO mode) | | ||
+ | | 8 | GPIO16 | XPD_DCDC | ||
+ | | | ||
+ | | 7 | ||
+ | | 32 | | EXT_RSTB | ||
+ | | 6 | ||
+ | | | ||
+ | | 11 | | VDDPST | ||
+ | | 17 | | VDDPST | ||
+ | | 29 | | VDD | ||
+ | | 30 | | VDDA | | ||
+ | | 27 | | XTAL_OUT | ||
+ | | 28 | | XTAL_IN | ||
+ | | 31 | | RES12K | ||
- | ====== Flashing new firmware ====== | ||
- | When Chip is powered on, with GPIO1 pulled up, it enter into firmware downloading mode. | ||
- | |||
- | |||
- | ===== esptool ===== | ||
- | Download/ | ||
- | |||
- | Example usage: | ||
- | <code bash> | ||
- | |||
- | < | ||
- | Connecting... | ||
- | Erasing flash... | ||
- | Writing at 0x00001400... (1 %) | ||
- | </ | ||
- | |||
- | < | ||
- | Erasing flash... | ||
- | Wrote 462848 bytes at 0x00000000 in 520.5 seconds (7.1 kbit/s)... | ||
- | |||
- | Leaving... | ||
- | </ | ||
====== Firmwares ===== | ====== Firmwares ===== | ||
Line 116: | Line 87: | ||
===== Arduino ===== | ===== Arduino ===== | ||
[[https:// | [[https:// | ||
+ | |||
+ | [[https:// | ||