-->
Page 1 of 1

ESP deep sleep and interrupts

PostPosted: Mon Jun 25, 2018 8:50 pm
by Dave Wave
I built a weather station based on a esp-07s. I am trying to minimize the power consumption. The station uses a tipping bucket that trips a reed switch to track rainfall. My issue is I need to find a way to do this during deep sleep. My understanding is that this is not possible with the esp8266 (it will not wake up on interrupt)?

Is there any sort of work around?

Option B is using a Attiny85 (also sleeping) to watch the reed switch. If the line goes low, it wakes up and checks a sense line to see if the esp8266 is awake. When that line goes high, it pulls low the rain switch line from the esp, and the esp records the event. The Attiny85 then resets everything and goes back to sleep.

Thoughts?

Dave

Re: ESP deep sleep and interrupts

PostPosted: Mon Jun 25, 2018 9:38 pm
by vaiojasard
Hi Dave!

Perhaps, you could give a look to this doc:
https://www.espressif.com/sites/default ... s_en_0.pdf

Regards!

Re: ESP deep sleep and interrupts

PostPosted: Tue Jun 26, 2018 3:27 am
by torntrousers
Have the reed switch enable the ESP? Like this: viewtopic.php?f=11&t=4458

Re: ESP deep sleep and interrupts

PostPosted: Thu Jun 28, 2018 10:31 pm
by davydnorris
Deep sleep simply gets the RTC inside the ESP8266 to wake the CPU by sending a signal to its reset pin. You could do exactly the same with the reed switch.