Here I am using a esp8266 wifi enabled microcontroller to open my garage door
The plan is to have it controlled though a home automation system where it can send a text message if the door is open for longer then a hour.
I use a HTTP app for android called HTTP Shortcuts.
This will require the esptool.py https://github.com/espressif/esptool
MicroPython https://github.com/micropython/micropython
cd /project/home/
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect -fm dio 0 esp8266-20171101-v1.9.3.bin
- I like to use the WebREPL website makes in easy http://micropython.org/webrepl/.
- now upload the boot.py and the main.py.
- once that completes you should be able to trigger the relay with a HTTP PUT.
curl -X PUT http://<IPADDRESS>:\?Open-Close\=OFF0