meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
home_automation:esp8266:general [2016/06/03 09:18] – [Pinout] niziakhome_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|}}
Line 50: Line 38:
 ^ Pin # ^ GPIO   ^ role / description ^^^^ ^ Pin # ^ GPIO   ^ role / description ^^^^
 | 15    | GPIO0  | FLSH      | SPI_CS2 |        | !!! Must be H during bootup. L=boot from UART | | 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  3,3V ! | +| 26    | GPIO1  | UART0_TXD | SPI_CS1 |        | UART TX during flash programming  3,3V ! | 
-| 14    | GPIO2  |           |                | UART Tx during flash programming | +| 14    | GPIO2  | UART1_TXD |                | UART TX during flash programming | 
-| 25    | GPIO3  | UART0_RXD |                | Uart Rx during flash programming  3,3V ! |+| 25    | GPIO3  | UART0_RXD |                | UART Rx during flash programming  3,3V ! |
 | 16    | GPIO4  |                          | | | 16    | GPIO4  |                          | |
 | 24    | GPIO5  |                          | | | 24    | GPIO5  |                          | |
Line 62: Line 50:
 | 20    | GPIO11 |           | SPI_CS0 | SD_CMD | | | 20    | GPIO11 |           | SPI_CS0 | SD_CMD | |
 | 10    | GPIO12 | HSPI_MISO | MTDI    |        | | | 10    | GPIO12 | HSPI_MISO | MTDI    |        | |
-| 12    | GPIO13 | HSPI_MOSI | MTCK    | UART0_CTS | |+| 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    |           | | | 9     | GPIO14 | HSPI CLK  | MTMS    |           | |
-| 13    | GPIO15 | HSPI CS   | MTDO    | UART0_RTS | !!! Must be L durign bootup (H=SDIO mode) |+| 13    | GPIO15 | HSPI CS   | MTDO    | UART0_RTS / UART0_TXD2 | !!! Must be L durign bootup (H=SDIO mode) |
 | 8     | GPIO16 | XPD_DCDC  |                   | Depp sleep Timer output / USER / WAKE. Connect it to reset ping to wakeup from Deep Sleep mode | | 8     | GPIO16 | XPD_DCDC  |                   | Depp sleep Timer output / USER / WAKE. Connect it to reset ping to wakeup from Deep Sleep mode |
 |              |                             | | |              |                             | |
Line 79: Line 67:
 | 31    |        | RES12K    |                   | Serial connection with a 12kOhm resistor do ground | | 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 124: Line 87:
 ===== Arduino ===== ===== Arduino =====
 [[https://github.com/esp8266/Arduino]] [[https://github.com/esp8266/Arduino]]
 +
 +[[https://github.com/markszabo/IRremoteESP8266]]