How does deep sleep work?
Posted: Sat Sep 12, 2015 3:34 am
Hello all, I've been experimenting with deep sleep on esp01. Putting the chip into deep sleep for 1 minute (60,000,000us) causes the current drawn by the esp01 to drop to around 350uA. I assume much of that is the red led rather than the chip. After 60s, the current drawn increases to around 16mA. So the sleep time has ended, but my sketch does not restart. I had read that this would be the case, and so I intend to connected the ch_pd pin to an output of an attiny84 which will be programmed to wake the esp after the required delay (that won't be the attiny's only function, it will monitor sensors while the esp sleeps).
My question is; what is going on once the deep sleep time is over and the current increases? Why can the sketch not restart automatically?
I know that on esp modules with more pins, connecting a particular gpio pin to ch_pd causes the restart. But why this clumsy mechanism that uses up 2 pins? Why does the esp not simply have this connection made internally?
Thanks
Paul
My question is; what is going on once the deep sleep time is over and the current increases? Why can the sketch not restart automatically?
I know that on esp modules with more pins, connecting a particular gpio pin to ch_pd causes the restart. But why this clumsy mechanism that uses up 2 pins? Why does the esp not simply have this connection made internally?
Thanks
Paul