Chat freely about anything...

User avatar
By ofca
#22639 Hi guys!

I'm making a remote control pilot that's supposed to open/close garage gate. It's already working with LiPo battery, micro-usb charger and ESP8266 as microcontroller.

Now here's where I'm a bit stuck. At this moment I wired one of GPIOs along with a push button, battery and small capacitor to CH_PD. Idea behind this is quite simple: you push the button, supplying voltage to CH_PD, which enables the ESP8266, which brings up GPIO, which supplies voltage to CH_PD until it stops supplying volate to CH_PD, which shuts the ESP8266 down, thus saving as much battery power as possible. This works great, I'm happy with it with current draw at 8 microampers. I however want to be able to push the button again when the ESP8266 is powered to alter the current state of garage gate (i.e. opening->closing and vice versa) without going through the whole reboot/association with AP ordeal - ESP8266 keeps itself powered up for few moments to exchange new security keys with AP, report battery status, upgrade remote's software etc., which is a great time to monitor the button for more pushes. Any ideas how to do it? More buttons aren't an option. :)