add esptool.py instructions

Greg MacLellan 2019-05-09 17:06:08 -04:00
parent 01bb618326
commit cb932b057c
1 changed files with 12 additions and 1 deletions

@ -1,8 +1,11 @@
# Flashing Wemos with Tasmota
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos-d1-mini-pro-v1.0.0.jpg" width=225>
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos-d1-mini-v2.2.0.jpg" width=200>
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/wemos-d1-mini-v3.0.0.jpg" width= 225>
# Flashing Wemos with Tasmota
## Using PlatformIO
Follow [these](PlatformIO) steps to flash a Wemos D1 Mini with Tasmota firmware and add the following lines at the end of platformio.ini:
```
@ -36,6 +39,14 @@ From the Menu -> PlatformIO -> Run Other Target... (F7) and choose PIO Upload (w
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/platformio_run_other_target.jpg" width=625>
## Using esptool.py
1. Install [esptool.py](https://github.com/espressif/esptool) (instructions for 2.6+)
1. Hold the button for 10s while connecting the D1's USB port to the PC (or RaspberryPi). This will power the D1 and make the serial connection
2. Verify the connection by running `./esptool.py --port /dev/ttyUSB0 read_mac`
3. Download [sonoff.bin](https://github.com/arendst/Sonoff-Tasmota/releases)
3. Erase + Write the new flash by running: ``./esptool.py --port /dev/ttyUSB0 write_flash --erase-all -fm dout 0x0 /path/to/downloaded/sonoff.bin`
# Configure Tasmota for Wemos
## Generic Module
In the Configuration -> Configure Module page, select **Module Type: "18 Generic"** (releases before 5.12.0 this was called "Wemos D1 Mini"). After Saving the settings, the WEMOS reboots with the Generic configuration. The first time you switch to "18 Generic" you will NOT see all the options as seen in the picture below YET. You have to save "18 Generic" first and when you go there again after the reboot you get the long table where you can change all the pin's parameters. These steps are confirmed to also work with the Wemos D1 mini PRO v2.0.0.