[Lab] ESP8266 issues and data logger
Raj
modlab at raj.homelinux.com
Tue Dec 9 15:17:14 EST 2014
8s is the max the watchdog timer will go, your approach is generally what
is used to extend sleep beyond 8s.
--Raj.
On Tue, Dec 9, 2014 at 12:56 PM, Adrian Jones <adrian at woodsgood.ca> wrote:
> Dear all,
> I added a simple error counter to the software to reset and restart the
> ESP8266 if it goes haywire. So far (overnight, at least) all appears well.
> Nevertheless, I do plan using the ATmega328 watchdog time (WDT) to put the
> unit to sleep and into low power mode, and awaken after some period of
> time.
> Using the highest value in the timer prescalers, the longest I can get the
> Arduino to sleep is 8 seconds before the WDT overflows and wakes up.
> However, I need a sleep time in the order of 10s of minutes. So, less than
> ideal, I have added a counter so that after 8 seconds, the software wakes,
> increments and counter and then goes back to sleep. After 'n' of these
> cycles, I execute the WiFi software.
> I've tried prescaling the system clock but to no avail. Anyone know how to
> extend the WDT longer than 8 seconds?
>
> Regards,
> ... Adrian
>
>
> _______________________________________________
> Lab mailing list
> 1. subscribe http://artengine.ca/mailman/listinfo/lab
> 2. then email Lab at artengine.ca to send your message to the list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://artengine.ca/pipermail/lab/attachments/20141209/b731da6c/attachment.html>
More information about the Lab
mailing list