Hi all.
I'm trying to conceptualize something and I can't quite figure it out. I've tried searching for this specific topic but can't find anything on it. Everytime I search for "sleep" and "watchdog", I get results that tell me how to use the watchdog to wake up the Arduino from sleep. This isn't what I want to do...but I may be over thinking my problem.
My goal (with an Arduino Uno clone) is to put it to sleep for several hours. Then, I will wake it up at a specified time by using the alarm on a DS3231. While the Uno is awake, I want the watchdog enabled and waiting to reset in case of a lock-up in the code. I can't figure out how this would specifically be done. Is it as easy as just enabling the watchdog after you wake it up and then disabling the watchdog just before you put it back to sleep? Does this repeated enabling/disabling of the watchdog cause any issues for the microcontroller?
Thanks,