0

I am asking for help, how can I WEMOS D1 wake up with the button? I know how to do this after some time using:

ESP.deepSleep (180000000)

Please help.

Bartek
  • 35
  • 6
  • use reset button. in deep sleep the esp8266 is complete off. only RTC is running and sets io 16 LOW if there is time for wake-up. io 16 must be wired to reset for wakeup from deep sleep – Juraj Feb 07 '20 at 21:23
  • Can you write something more how to do it? – Bartek Feb 08 '20 at 07:11
  • there is nothing more. but it should by " io 16 must be wired to reset for wakeup from deep sleep by timer" – Juraj Feb 08 '20 at 09:13
  • What is `ESP.deepSleep`? Possibly you mean node.dsleep() https://nodemcu.readthedocs.io/en/master/modules/node/#nodedsleep – sergio Feb 09 '20 at 21:22

2 Answers2

1

Just put your button between RST and GND. Pressing the button will reset (and therefor wake up) the Esp ...

PrfctByDsgn
  • 1,022
  • 1
  • 14
  • 18
0

https://nodemcu.readthedocs.io/en/master/modules/node/#nodedsleep

This function can only be used in the condition that esp8266 PIN32(RST) and PIN8(XPD_DCDC aka GPIO16) are connected together. Using sleep(0) will set no wake up timer, connect a GPIO to pin RST, the chip will wake up by a falling-edge on pin RST.

sergio
  • 111
  • 4