Chat freely about anything...

User avatar
By dormullor
#59515 hello everyone
i am trying to get my esp8266 into deepsleep for 24 hours but it wakes up after 1 hour , after a few search's i noticed that the 32-bit processor cannot handle a big int of 24 hours in ms.

there is another option to make it work's ? or using another low-energy device(RTC)?
User avatar
By AcmeUK
#59516
there is another option to make it work's ?
Use the RTC memory to store a counter value.

This guy has his ESP wake up periodically, looks at the counters, takes any required action, updates the counters and returns to deep sleep:-
https://github.com/SensorsIot/ESP8266-Longterm-Sensor-Hourly/blob/master/ESPSensorHourly.ino

He has counters that action daily and weekly events.
User avatar
By trackerj
#59521 For all the data logging projects where it is needed to have long time sleep and low power consumption using a real hardware RTC might help you a lot.

More details about ESP8266 + hardware RTC IC implementations you can find HERE and HERE

The same principle was also used for the latest version of Smart Mon Ext Board - Voltage, Current, Power monitor.
The RTC is not bringing you only a very, very low power consumption but also other capabilities, Alarm and timer functions, MOSFET driven Interrupt output to drive whatever you want, etc...