
this delay help to complete all initial tasks Else, It will reset Micro-controller before completing that task. If your program uses a larger delay() which greater than threshold delay of watchdog timer, add reset function before that delay too. This function is used for resetting the watchdog timer.

To enable watchdog timer, WDT RESET TIMER varies from 15ms - 8s Constant NameĮg: wdt_enable(WDT0_8S) -Enabled watchdog timer for 8Seconds Reset watchdog timer Library is needed to use watchdog timer in Arduino Enable Watchdog timer : In Arduino UNO uses ATMEGA328P micro-controller. So, let's try watchdog timer in Arduino ) Likewise watchdog timer protect micro-controller from hang case. If any case the main program does not get back to reset the timer before it counts down to zero,an interrupt is generated to reset the processor. We are enabling watchdog timer is loaded with an initial value greater than the total delay in main program. We have a main part in program which runs over and over( loop). if you can't feed one day, it will bite you! Like this watchdog timer works. You need to feed that dog on a regular interval. It is often used to automatically reset an embedded device that hangs because of a software or hardware fault." (os./cookbook/WatchDog-Timer). " A watchdog timer ( WDT) is a hardware timer that automatically generates a system reset if the main program neglects to periodically service it.

Now we are discussing about such device which already inside on a micro-controller. So, How about a device to perform this task? sounds good. What are the normal troubleshooting methods? Reset Button, Right? Is it practically possible to press on a button all time?😕.

What is the situation while your micro-controller is confused in an infinite loop😖.
