-->
Page 2 of 3

Re: deep sleep for more than 35 minutes possible?

PostPosted: Wed Feb 11, 2015 10:50 am
by alonewolfx2
you cant use deepsleep more than 35 minutes. because timer is 32bit. but you can use forever deepsleep function or you can combine deepsleep set option and deepsleep function. something like this http://bbs.espressif.com/viewtopic.php?f=7&t=171 this example working as i said. this is best solution before espressif timer change to 64bit

Re: deep sleep for more than 35 minutes possible?

PostPosted: Thu Feb 12, 2015 9:21 am
by Sleepy Head
Thank you. Good information.

I was going to build a battery operated sensor that turns on a couple of times a day and updates Thingspeak. Now i see its not possible using the esp8266 timer.
I have to find an external timer of sorts that can turn on the chip, with very low power consumption and that preferably can run on the same 2x AA batteries.

Re: deep sleep for more than 35 minutes possible?

PostPosted: Thu Feb 12, 2015 12:25 pm
by Fr4gg0r
Code: Select allif(_non_volatile_memory < 5){
  _non_volatile_memory++;
  dsleep();
}
sensor code..
_non_volatile_memory = 0

Re: deep sleep for more than 35 minutes possible?

PostPosted: Thu Feb 12, 2015 1:18 pm
by Sleepy Head
well i think the context here is saving battery power so the sensor can run for weeks.
Waking the esp8266 every half hour just to go to sleep again is going to consume too much power.

I'm reading up on RTC modules now. They can run a long time with battery backup.