Wemos D1 Mini: Difference between revisions
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
How to load Tasmota on the Wemos D1 Mini |
How to load Tasmota on the Wemos D1 Mini |
||
- install and run Arduino 1.8.9 |
|||
If you're insterested in just putting Tasmota on a Wemos D1 mini, use esptool.py and upload tasmota.bin straight onto it |
|||
- install esp8266 libraries |
|||
Do NOT use the debian apt version of esptool, but grab it from github or pip |
|||
'Tools - Manage Libraries' - type: 'esp8266' and select the library from MicroGear (chavee) |
|||
- install esp8266 boards |
|||
'File - Preferences - Additional board manager URLs' |
|||
add: https://arduino.esp8266.com/stable/package_esp8266com_index.json |
|||
Then install the boards: |
|||
'Tools - Board - Board Manager' - Type: 'esp8266' and install the 'esp8266 by ESP8266 Community' |
|||
- load board for 'LOLIN (WEMOS) D1 R2 & mini' |
|||
You can now write sketches to the device. Check the 'Examples' section to get started. |
|||
Writing an MQTT client to the Wemos D1 Mini using Arduino |
|||
(This is different to the Tasmota environment which is a fully integrated client platform |
|||
and has relatively little customisation possibilities) |
|||
DEPRECATED!! |
|||
apt-get install pip (or python3-pip) |
|||
Writing the Tasmota client firmware to a Wemos D1 Mini |
|||
pip install esptool (or pip3 install esptool) |
|||
apt-get install git |
|||
DEPRECATED!! |
|||
git clone https://github.com/espressif/esptool.git |
|||
to upgrade pip: pip install --upgrade pip |
|||
- download and set up Tasmota libraries and sketches (Sonoff-Tasmota-6.6.0) (where?) |
|||
- compile and flash to USB attached Wemos D1 Mini |
|||
- update my_user_config.h for local wifi connection settings |
|||
- check local dhcp server for ip address |
|||
- browse to ip |
|||
upgrade over the air to newer versions is now possible |
|||
Grab the latest Tasmota.bin from the developer's website: https://tasmota.github.io/docs/Download/ |
|||
NOTE: newer versions of Tasmota were harder and harder to compile |
|||
on Arduino. As a result, they have now made available an |
|||
entirely different development IDE (something 'IO'). If you |
|||
can compile and write Tasmota to an ESP8266 through Arduino |
|||
then good for you, but you won't find much support if it |
|||
doesn't work anymore. |
|||
Then just connect the board to the computer with a USB cable (no need to do anything with reset buttons or jumper leads etc..) |
|||
DEPRECATED!! |
|||
Command to flash tasmota onto the esp8266: |
|||
esptool.py --port /dev/ttyUSB0 write_flash -fs 1M -fm dout 0x0 tasmota_8.1.0.bin |
|||
After uploading the firmware the Wemos D1 mini, simply unplug the USB and re-insert it. After about 10 seconds, the Wemos D1 mini will broadcast a WLAN captive portal. Click on the SSID to connect to it and open a browser to navigate to the tasmota page (it will load automatically). Once tasmota is loaded in the browser set the local WiFi credentials you wish to connect to and let it reboot. |
|||
DO THIS: |
|||
Writing the Tasmota client firmware to a Wemos D1 Mini |
|||
If your device doesn't show up in your router's DHCP table, it may still be in |
|||
-> download the tasmota.bin binary firmware from github and |
|||
'captive portal' mode and it will advertise its own WLAN. Connect to that and it will |
|||
flash it directly to the board with the esptool.py |
|||
take you straight to the internal running tasmota web server. Configure your wifi |
|||
credentials and reboot. Then set up your mqtt settings. |
Latest revision as of 01:55, 20 December 2021
How to load Tasmota on the Wemos D1 Mini
If you're insterested in just putting Tasmota on a Wemos D1 mini, use esptool.py and upload tasmota.bin straight onto it
Do NOT use the debian apt version of esptool, but grab it from github or pip
apt-get install pip (or python3-pip) pip install esptool (or pip3 install esptool)
apt-get install git git clone https://github.com/espressif/esptool.git
to upgrade pip: pip install --upgrade pip
Grab the latest Tasmota.bin from the developer's website: https://tasmota.github.io/docs/Download/
Then just connect the board to the computer with a USB cable (no need to do anything with reset buttons or jumper leads etc..)
Command to flash tasmota onto the esp8266:
esptool.py --port /dev/ttyUSB0 write_flash -fs 1M -fm dout 0x0 tasmota_8.1.0.bin
After uploading the firmware the Wemos D1 mini, simply unplug the USB and re-insert it. After about 10 seconds, the Wemos D1 mini will broadcast a WLAN captive portal. Click on the SSID to connect to it and open a browser to navigate to the tasmota page (it will load automatically). Once tasmota is loaded in the browser set the local WiFi credentials you wish to connect to and let it reboot.
If your device doesn't show up in your router's DHCP table, it may still be in 'captive portal' mode and it will advertise its own WLAN. Connect to that and it will take you straight to the internal running tasmota web server. Configure your wifi credentials and reboot. Then set up your mqtt settings.