<div dir="ltr">8s is the max the watchdog timer will go, your approach is generally what is used to extend sleep beyond 8s.  <div>--Raj.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 9, 2014 at 12:56 PM, Adrian Jones <span dir="ltr"><<a href="mailto:adrian@woodsgood.ca" target="_blank">adrian@woodsgood.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
I added a simple error counter to the software to reset and restart the<br>
ESP8266 if it goes haywire. So far (overnight, at least) all appears well.<br>
Nevertheless, I do plan using the ATmega328 watchdog time (WDT) to put the<br>
unit to sleep and into low power mode, and awaken after some period of time.<br>
Using the highest value in the timer prescalers, the longest I can get the<br>
Arduino to sleep is 8 seconds before the WDT overflows and wakes up.<br>
However, I need a sleep time in the order of 10s of minutes. So, less than<br>
ideal, I have added a counter so that after 8 seconds, the software wakes,<br>
increments and counter and then goes back to sleep. After 'n' of these<br>
cycles, I execute the WiFi software.<br>
I've tried prescaling the system clock but to no avail. Anyone know how to<br>
extend the WDT longer than 8 seconds?<br>
<br>
Regards,<br>
<div class="HOEnZb"><div class="h5">... Adrian<br>
<br>
<br>
_______________________________________________<br>
Lab mailing list<br>
1. subscribe <a href="http://artengine.ca/mailman/listinfo/lab" target="_blank">http://artengine.ca/mailman/listinfo/lab</a><br>
2. then email <a href="mailto:Lab@artengine.ca">Lab@artengine.ca</a> to send your message to the list<br>
</div></div></blockquote></div><br></div>