Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
boards:esp8266 [2023/10/14 20:20] – [Tasmota] darron | boards:esp8266 [2024/07/10 12:20] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 6: | Line 6: | ||
The Espressif Systems ESP8266 is used in cheap WiFi modules. It embeds an Xtensa LX3 CPU. ESP8266 boards named ESP-XX come with at least 1/2 megabyte of SPI flash for program storage. | The Espressif Systems ESP8266 is used in cheap WiFi modules. It embeds an Xtensa LX3 CPU. ESP8266 boards named ESP-XX come with at least 1/2 megabyte of SPI flash for program storage. | ||
+ | Also see [[tools: | ||
=== Pinout === | === Pinout === | ||
Line 40: | Line 41: | ||
< | < | ||
- | wget " | + | wget " |
esptool.py --port / | esptool.py --port / | ||
Connecting... | Connecting... | ||
Line 142: | Line 143: | ||
Although the ESP-01 only has 2 GPIOs, NodeMcu has I2C support and a circuit such as [[: | Although the ESP-01 only has 2 GPIOs, NodeMcu has I2C support and a circuit such as [[: | ||
- | |||
- | === Tasmota === | ||
- | |||
- | Tasmota is firmware providing support for various devices attached to an ESP8266. It has both and HTTP (web) and MQTT interface. | ||
- | |||
- | It was primarily designed for SONOFF power switches but can be used with any device to give an MQTT enabled WIFI temperature monitor, for example. | ||
- | |||
- | Here is an example seession for a SONOFF basic switch. | ||
- | |||
- | Backup factory firmware. | ||
- | |||
- | < | ||
- | esptool.py --port / | ||
- | </ | ||
- | |||
- | Write tasmota firmware. | ||
- | |||
- | < | ||
- | esptool.py --port / | ||
- | </ | ||
- | |||
- | Now an example session with the D1 Mini Lite. | ||
- | |||
- | Read MAC address. | ||
- | |||
- | < | ||
- | esptool.py -p / | ||
- | |||
- | esptool.py v2.6-beta1 | ||
- | Serial port / | ||
- | Connecting.... | ||
- | Detecting chip type... ESP8266 | ||
- | Chip is ESP8285 | ||
- | Features: WiFi, Embedded Flash | ||
- | MAC: xx: | ||
- | Uploading stub... | ||
- | Running stub... | ||
- | Stub running... | ||
- | MAC: xx: | ||
- | Hard resetting via RTS pin... | ||
- | </ | ||
- | |||
- | Backup flash. | ||
- | |||
- | < | ||
- | esptool.py -p / | ||
- | |||
- | esptool.py v2.6-beta1 | ||
- | Serial port / | ||
- | Connecting.... | ||
- | Detecting chip type... ESP8266 | ||
- | Chip is ESP8285 | ||
- | Features: WiFi, Embedded Flash | ||
- | MAC: xx: | ||
- | Uploading stub... | ||
- | Running stub... | ||
- | Stub running... | ||
- | 1048576 (100 %) | ||
- | 1048576 (100 %) | ||
- | Read 1048576 bytes at 0x0 in 92.8 seconds (90.4 kbit/s)... | ||
- | Hard resetting via RTS pin... | ||
- | </ | ||
- | |||
- | Erase flash. | ||
- | |||
- | < | ||
- | esptool.py --port / | ||
- | |||
- | esptool.py v2.6-beta1 | ||
- | Serial port / | ||
- | Connecting.... | ||
- | Detecting chip type... ESP8266 | ||
- | Chip is ESP8285 | ||
- | Features: WiFi, Embedded Flash | ||
- | MAC: xx: | ||
- | Uploading stub... | ||
- | Running stub... | ||
- | Stub running... | ||
- | Erasing flash (this may take a while)... | ||
- | Chip erase completed successfully in 4.1s | ||
- | Hard resetting via RTS pin... | ||
- | </ | ||
- | |||
- | Write tasmota firmware. | ||
- | |||
- | < | ||
- | esptool.py --port / | ||
- | |||
- | esptool.py v2.6-beta1 | ||
- | Serial port / | ||
- | Connecting.... | ||
- | Detecting chip type... ESP8266 | ||
- | Chip is ESP8285 | ||
- | Features: WiFi, Embedded Flash | ||
- | MAC: 60: | ||
- | Uploading stub... | ||
- | Running stub... | ||
- | Stub running... | ||
- | Configuring flash size... | ||
- | Auto-detected Flash size: 1MB | ||
- | Compressed 501424 bytes to 343631... | ||
- | Wrote 501424 bytes (343631 compressed) at 0x00000000 in 30.3 seconds (effective 132.5 kbit/s)... | ||
- | Hash of data verified. | ||
- | |||
- | Leaving... | ||
- | Hard resetting via RTS pin... | ||
- | </ | ||
- | |||
- | |||
- | == Install == | ||
- | |||
- | < | ||
- | wget " | ||
- | gunzip tasmota-sensors.bin.gz | ||
- | </ | ||
- | |||
- | < | ||
- | esptool.py --port / | ||
- | esptool.py v4.6.2 | ||
- | Serial port / | ||
- | Connecting.... | ||
- | Detecting chip type... Unsupported detection protocol, switching and trying again... | ||
- | Connecting.... | ||
- | Detecting chip type... ESP8266 | ||
- | Chip is ESP8285N08 | ||
- | Features: WiFi, Embedded Flash | ||
- | Crystal is 26MHz | ||
- | MAC: 60: | ||
- | Uploading stub... | ||
- | Running stub... | ||
- | Stub running... | ||
- | Configuring flash size... | ||
- | Auto-detected Flash size: 1MB | ||
- | Flash will be erased from 0x00000000 to 0x000affff... | ||
- | Compressed 717264 bytes to 506294... | ||
- | Wrote 717264 bytes (506294 compressed) at 0x00000000 in 45.7 seconds (effective 125.5 kbit/s)... | ||
- | Hash of data verified. | ||
- | |||
- | Leaving... | ||
- | Hard resetting via RTS pin... | ||
- | </ | ||
- | |||
- | ==Initial configuration== | ||
- | |||
- | After target reboots connect to the tasmota Wifi AP to access the network configuration [[http:// | ||
- | |||
- | Enter your SSID and password and the target will reboot. | ||
- | |||
- | Once rebooted visit the target device again to perform device setup. | ||
- | |||
- | |||
- | ==Configuration== | ||
- | |||
- | Change the device type, Eg. Generic and save settings. It will reboot. | ||
- | |||
- | For an attached I2C sensor: | ||
- | |||
- | Change GPIO4 to SDA, and GPIO5 to SCL. | ||
- | |||
- | ==Sensor== | ||
- | |||
- | < | ||
- | Generic | ||
- | Tasmota | ||
- | BMP280 Temperature 21.3 °C | ||
- | BMP280 Pressure 1022.8 hPa | ||
- | </ | ||
- | |||
- | < | ||
- | Generic | ||
- | Tasmota | ||
- | Program Version 13.1.0(sensors) | ||
- | Build Date & Time 2023-08-15T07: | ||
- | Core/SDK Version 2_7_4_9/ | ||
- | </ | ||
=== Resources === | === Resources === | ||
[[http:// | [[http:// | ||
- | |||
- | [[http:// | ||