Date: 05.21.15 - 5:33am
the Arduino comes with a watchdog that can reset it if the chip is hung. The maximum timeout built in is an eight second delay.
for some uses this is not long enough. One such configuration that requires a longer timeout is the use of the Adafruit cc3000 wi-fi board. This board is fairly reliable but is also prone to occasional hangs. I have been using one for about eight months now as part of my iot Web-enabled humidor project. I would probably have to reset it once a week or so when I saw it hung.
I tested using the eight second delay watchdog, and I could tell that it was not a long enough delay but more or less it was working for me because even if it resets my project will automatically upload on reboot. For one of my users however the delay simply was not enough and he had to find code for the long watchdog reset. Special thanks goes out to Philip Allagas for researching this and finding the solution.
the following code is from Dave Evans and is worth mirroring below.
Another option would be to use an external hardware watchdog. The premade circuit I purchased for bypassing the mc60 soft start should have worked for this scenario, but I didn't want to require another component for my build.
thanks again to Dave and Philip!
Comments: (2)On 01.28.19 - 8:53am Dave wrote:
On 09.11.20 - 3:41am akhil wrote: