ESP8266 - 07 Connections for Deep Sleep (SOLVED)
Posted: Sat Feb 04, 2017 12:18 pm
I am building an ESP8266 based mailbox sensor, loosely following the post found here. The concept idea is to have the MCU in deep sleep forever until it is reset by the reed switch. Then the MCU wakes up, connects to the Internet and sends a message.
Based on my previous ESP8266-01 experience I have:
I realized that it is impossible to wake from ESP.deepSleep(0) using the magnetic reed switch, except if I disconnect GPIO16 from RST. I suppose that the GPIO LOW is not low enough to reset the mcu, because RST is pulled up to VCC. Correct?
Of course after disconnecting GPIO16 from RST, it is not possible any more to wake up from a predefined period deep sleep (in case that this is needed), e.g. ESP.deepSleep(1000).
So I am wondering... Is it necessary for ESP8266-07 (or 12) to connect GPIO16 to RST (like we do for esp-01) in order to be able to use the deep sleep function for a predefined time period? Are they already connected?
SOLUTION: The solution to this issue is just to add a diode between GPIO16 and RST. See updated circuit below and the related posts:
Based on my previous ESP8266-01 experience I have:
- VCC and CH_PD pulled up with 4k6 or 10k resistors
- GPIO0 and GPIO2 pulled up with 4k6 or 10k resistors
- tact buttons in order to be able to flash the mcu with the same board
- GPIO16 connected to RST in order to wakeup from deep sleep.
I realized that it is impossible to wake from ESP.deepSleep(0) using the magnetic reed switch, except if I disconnect GPIO16 from RST. I suppose that the GPIO LOW is not low enough to reset the mcu, because RST is pulled up to VCC. Correct?
Of course after disconnecting GPIO16 from RST, it is not possible any more to wake up from a predefined period deep sleep (in case that this is needed), e.g. ESP.deepSleep(1000).
So I am wondering... Is it necessary for ESP8266-07 (or 12) to connect GPIO16 to RST (like we do for esp-01) in order to be able to use the deep sleep function for a predefined time period? Are they already connected?
SOLUTION: The solution to this issue is just to add a diode between GPIO16 and RST. See updated circuit below and the related posts: