I'm trying to use a Wemos D1 mini as a smart button that will boot up, perform a task, and then shut back down. I'd like to do this as a true power off as opposed to any sort of sleep mode.
I'm hoping I can do something similar to this post https://www.esp8266.com/viewtopic.php?f=11&t=4458
- Tie RST pin to a Low GPIO pin so that it doesn't boot
- Push a button that will run 3.3v to RST pin to make it go high and cause a boot up
- Flip the GPIO pin that is tied to RST to high so that it stays running when button is no longer pressed
- Run some code and flip GPIO back to LOW shutting down
Things I've tried:
Tie to GPIO15 (D8) - This stops the boot and starts booting when button is pressed but never finishes booting up. I'm assuming I am causing D8 to go high by pressing my button and interfering with the boot, but honestly not sure
Tie to GPIO4 or 5 (D2, D1). This doesn't prevent boot.
I've also tried #2 with a pull down resistor on the GPIO pin, but that doesn't seem to work either
Any help would be much appreciated.