1

I use the watchdog timer to make Arduino sleep for 8 seconds and then wake it right after and make it sleep again if it didn't complete the loop for 450 times. I made it so that it will only do its job every 1 hour with a for loop. How much time does the Arduino keep awake until it sleeps again? I think it wouldn't be worth to put power consumption of this to calculation but still need to verify.

7
  • 2
    you said 8 seconds every hour ... what are you asking?
    – jsotola
    Jan 4 '20 at 5:25
  • I mean right after 8 seconds of sleeping it wakes up and sleeps again if it didn't complete loop for 450 times.
    – heathcliff
    Jan 4 '20 at 14:10
  • That time totally depends on what exactly you're doing when waking up. If you have a delay(10000); in there, it will be more awake than sleeping. How does it check that the loop didn't complete for 450 times? Jan 4 '20 at 16:30
  • I tend use 1ms to wake up and go back to sleep in my calculations.
    – Gerben
    Jan 4 '20 at 16:38
  • it keeps awake the length of the timeout every hour .... your question still makes no sense ... you are describing a fixed timeout ... within that timeout you count the number of iterations ... you said nothing about what happens it 450 iterations are reached
    – jsotola
    Jan 4 '20 at 18:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.