Wemos D1 Mini: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
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 |
|||
⚫ | |||
'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' |
|||
Do NOT use the debian apt version of esptool, but grab it from github or pip |
|||
You can now write sketches to the device. Check the 'Examples' section to get started. |
|||
⚫ | |||
⚫ | |||
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 |
|||
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!! |
|||
Writing the Tasmota client firmware to a Wemos D1 Mini |
|||
DEPRECATED!! |
|||
- 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 |
|||
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. |
|||
DEPRECATED!! |
|||
esptool.py --port /dev/ttyUSB0 write_flash -fm dout 0x0 tasmota_8.1.0.bin |
|||
after uploading the firmware the Wemos D1 mini will broadcast a WLAN captive portal. Set the SSID and password, reboot and |
|||
DO THIS: |
|||
connect to the 'tasmota-2323' (or whatever number you saw) website (http://tasmota-2323/) |
|||
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. |
Revision as of 01:30, 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
esptool.py --port /dev/ttyUSB0 write_flash -fm dout 0x0 tasmota_8.1.0.bin
after uploading the firmware the Wemos D1 mini will broadcast a WLAN captive portal. Set the SSID and password, reboot and connect to the 'tasmota-2323' (or whatever number you saw) website (http://tasmota-2323/)
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.