-->
Page 1 of 5

Looking after timer low power to get deep sleep over 71 min

PostPosted: Sun Jun 04, 2017 12:40 pm
by YellowSky
Hi everyone,
i'm looking after a timer to wake up the esp8266 after a timer over than 71 minutes (current limitations is 32bits for a timer in µs).
Therefore i'm looking for a timer consuming very low power (it is dedicated to an application powered by batteries) and able to get a timer until one day.
Thank you for your help

Re: Looking after timer low power to get deep sleep over 71

PostPosted: Sun Jun 04, 2017 3:23 pm
by trackerj
You can use a proper RTC like the DS3231 or the PCF8563.
In the links above you have ESP8266 usage examples for both.

Re: Looking after timer low power to get deep sleep over 71

PostPosted: Sun Jun 04, 2017 3:47 pm
by schufti
or you can just implement a software counter stored in nonvolatile intern rtc ram.
use board search for examples.

Re: Looking after timer low power to get deep sleep over 71

PostPosted: Sun Jun 04, 2017 10:49 pm
by YellowSky
trackerj wrote:You can use a proper RTC like the DS3231 or the PCF8563.
In the links above you have ESP8266 usage examples for both.


Ok, it seems is one solution

or you can just implement a software counter stored in nonvolatile intern rtc ram.
use board search for examples. - See more at: posting.php?mode=quote&f=13&p=66724#sthash.RGqUCzIY.dpuf


Ok, i know how to store in RTC but what is the way to use this counter to wake up or not?