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
    Commented Jan 4, 2020 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
    Commented Jan 4, 2020 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? Commented Jan 4, 2020 at 16:30
  • I tend use 1ms to wake up and go back to sleep in my calculations.
    – Gerben
    Commented Jan 4, 2020 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
    Commented Jan 4, 2020 at 18:24

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.