meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
home_automation:esp8266:general [2016/06/03 08:48] niziak |
home_automation:esp8266:general [2020/06/05 14:43] (current) niziak |
||
---|---|---|---|
Line 25: | Line 25: | ||
{{:home_automation:esp8266:0a-esp8266_datasheet_en_v4.3.pdf|}} | {{:home_automation:esp8266:0a-esp8266_datasheet_en_v4.3.pdf|}} | ||
+ | ====== External software ====== | ||
+ | * [[https://github.com/igrr/esptool-ck/releases/download/0.4.8/esptool-0.4.8-linux64.tar.gz|esptool 0.4.8]] | ||
+ | * [[https://github.com/themadinventor/esptool|https://github.com/themadinventor/esptool]] | ||
+ | * [[http://arduino.esp8266.com/linux64-xtensa-lx106-elf-gb404fb9.tar.gz|xtensa-lx106-elf-gcc 1.20.0-26-gb404fb9-2]] | ||
+ | * [[https://github.com/igrr/mkspiffs/releases/download/0.1.2/mkspiffs-0.1.2-linux64.tar.gz|mkspiffs 0.1.2]] | ||
- | ===== 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]])\\ | ||
- | {{:esp8266:esp-01.jpg?direct&300|}} | ||
- | {{:esp8266:esp8266-01-deep-sleep-mod.jpg?direct&200|}} | ||
- | {{:home_automation:esp8266:esp-01_mcu_pinouts.jpg?direct&300|}} | ||
- | {{:home_automation:esp8266:esp8266_extra_gpio.jpg?direct&200|}} | ||
- | === ESP-12 === | ||
- | === ESP-12E === | ||
- | {{home_automation:esp8266:esp8266-esp-12e.jpg?direct&200|}} | ||
- | |||
- | === ESP-12F === | ||
- | improved stability, better antenna, 4 layer pcb.\\ | ||
- | {{:esp8266:esp8266-wifi-series-of-model-esp-12-esp-12f-esp12f-esp12-authenticity-guaranteed.jpg?direct&200|}} | ||
- | {{:esp8266:esp-12f-back.jpeg?direct&100|}} | ||
- | |||
- | === ESP-14 === | ||
===== Pinout ===== | ===== Pinout ===== | ||
{{:esp8266:esp_pinout_01.pdf|}} | {{:esp8266:esp_pinout_01.pdf|}} | ||
{{:home_automation:esp8266:esp8266_pinout.jpg?direct&200|}} | {{:home_automation:esp8266:esp8266_pinout.jpg?direct&200|}} | ||
- | ^ Pin # ^ Pin ^ role ^ description ^ | + | ^ Pin # ^ GPIO ^ role / description ^^^^ |
- | | 7 | CH_PD | | Chip power down - to enable chip needs to be pulled up | | + | | 15 | GPIO0 | FLSH | SPI_CS2 | | !!! Must be H during bootup. L=boot from UART | |
- | | 32 | RST | | | | + | | 26 | GPIO1 | UART0_TXD | SPI_CS1 | | UART TX during flash programming 3,3V ! | |
- | | 6 | T_OUT | ADC | | + | | 14 | GPIO2 | UART1_TXD | | | UART TX during flash programming | |
- | | GPIO0 | FLSH | Pull up during powering to go into flashing mode | | + | | 25 | GPIO3 | UART0_RXD | | | UART Rx during flash programming 3,3V ! | |
- | | GPIO1 | TXD | 3,3V ! | | + | | 16 | GPIO4 | | | | | |
- | | GPIO2 | IO | | | + | | 24 | GPIO5 | | | | | |
- | | GPIO3 | RXD | 3,3V ! | | + | | 21 | GPIO6 | | SPI_CLD | SD_CLK | | |
- | | GPIO6 | MMC CLK | | + | | 22 | GPIO7 | | SPI_MISO| SD_D0 | | |
- | | GPIO7 | MMC D0 | | + | | 23 | GPIO8 | | SPI_MOSI| SD_D1 | | |
- | | GPIO8 | MMC D1 | | + | | 18 | GPIO9 | HSPI_HD | SPI_HD | SD_D2 | | |
- | | GPIO9 | MMC D2 | | + | | 19 | GPIO10 | HSPI_WP | SPI_WP | SD_D3 | | |
- | | GPIO10 | MMC D3 | | + | | 20 | GPIO11 | | SPI_CS0 | SD_CMD | | |
- | | GPIO11 | MMC CMD | | + | | 10 | GPIO12 | HSPI_MISO | MTDI | | | |
- | | 10 | GPIO12 | HSPI Q | 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 | |
- | | GPIO13 | HSPI D / RXD2 | | + | | 9 | GPIO14 | HSPI CLK | MTMS | | | |
- | | 9 | GPIO14 | HSPI CLK | MTMS | | | + | | 13 | GPIO15 | HSPI CS | MTDO | UART0_RTS / UART0_TXD2 | !!! Must be L durign bootup (H=SDIO mode) | |
- | | 13 | GPIO15 | HSPI CD | MTDO | TXD2 | | + | | 8 | GPIO16 | XPD_DCDC | | | Depp sleep Timer output / USER / WAKE. Connect it to reset ping to wakeup from Deep Sleep mode | |
- | | GPIO16 | XPD | Depp sleep Timer output / USER / WAKE | | + | | | | | | | | |
- | | IO0 | | + | | 7 | | CH_PD | CHIP_EN | | Chip power down - to enable chip needs to be pulled up | |
- | | IO2 | | + | | 32 | | EXT_RSTB | | | External reset signal (active low) | |
- | | IO4 | | + | | 6 | | T_OUT | ADC | | | |
- | | IO5 | | + | | | | | | | | |
- | | IO12 | | + | | 11 | | VDDPST | | | Digital I/O Power Supply (1.8V~3.3V) | |
- | | IO13 | | + | | 17 | | VDDPST | | | Digital I/O Power Supply (1.8V~3.3V) | |
- | | IO14 | | + | | 29 | | VDD | | | Analog power 3.0V~3.6V | |
- | | IO15 | | + | | 30 | | VDDA | | | Analog power 3.0V~3.6V | |
+ | | 27 | | XTAL_OUT | | | | | ||
+ | | 28 | | XTAL_IN | | | | | ||
+ | | 31 | | RES12K | | | Serial connection with a 12kOhm resistor do ground | | ||
- | |||
- | ====== 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|https://github.com/themadinventor/esptool]] | ||
- | |||
- | Example usage: | ||
- | <code bash>./esptool.py --port /dev/ttyUSB1 --baud 9600 write_flash 0 ../nodemcu_float_0.9.6-dev_20150704.bin</code> | ||
- | |||
- | <code> | ||
- | Connecting... | ||
- | Erasing flash... | ||
- | Writing at 0x00001400... (1 %) | ||
- | </code> | ||
- | |||
- | <code> | ||
- | Erasing flash... | ||
- | Wrote 462848 bytes at 0x00000000 in 520.5 seconds (7.1 kbit/s)... | ||
- | |||
- | Leaving... | ||
- | </code> | ||
====== Firmwares ===== | ====== Firmwares ===== | ||
Line 119: | Line 87: | ||
===== Arduino ===== | ===== Arduino ===== | ||
[[https://github.com/esp8266/Arduino]] | [[https://github.com/esp8266/Arduino]] | ||
+ | |||
+ | [[https://github.com/markszabo/IRremoteESP8266]] | ||