#include //Local DNS Server used for redirecting all requests to the configuration portal #include //ESP8266 Core WiFi Library (you most likely already have this in your sketch) It will then reboot in about 30 seconds with the new code. You can use your web browser to go to and upload the *.bin file. That will compile a *.bin file in the same directory as your *.ino. Next, compile it in Arduino IDE using CTRL+ALT+S. If you don’t do this, the firmware will not work on the Wemos. The settings will be saved across reboots.įor OTA, in Arduino IDE, click Tools -> Flash Size -> 4M (1M SPIFFS). You can then connect to the AP to setup Wifi on the Wemos. The code below uses WifiManager, which starts the Wemos as an AP if it can’t connect to a Wifi network. After the firmware is on there, you can do the updates Over-The-Air (OTA). The first time you upload the firmware, you will need to do it via serial using a USB cable. You will need to edit the custom parameters section as needed. Next, we need to upload the code below to the Wemos.Garage Door Opener Wemos Schematic My Wemos and relay. That would trigger the relay, and unexpectedly open your garage door. If for any reason, you don’t use the same pins as I did on the Wemos, keep in mind that the chip will send some pins to high on startup. The schematic below shows how I wired mine. The first thing we will need to do is wire up the Wemos.If anyone reading this does need help with any of that, feel free to post a comment. There are plenty of guides out there on how to set those up. I’m going to assume that Home Assistant, MQTT, and Arduino IDE are all setup. Home Assistant configured with an MQTT broker such as Mosquitto.Magnetic Reed Switch/Door Sensor | AliExpress.After some research, I decided to use an ESP8266 based Wemos D1 Mini and Home Assistant. I decided I wanted to be able to control my garage door using my phone.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |