Questions tagged [watchdog]

For questions about the use of so-called 'watchdog timers', which detect and allow recovery from system failures, in conjunction with Arduino.

32 questions
4
votes
1 answer

How do I escape a boot loop?

Note: This is a reference question (but feel free to write answers of your own!) I uploaded code that contains a bug that causes my Arduino to immediately reset itself when starting using this code from the AVR libc FAQ. The built-in LED keeps…
glibg10b
  • 197
  • 5
3
votes
2 answers

AsyncWebServer giving wdt reset

I am using 3 Esp32 modules. One being master and other two being nodes. Nodes are connecting to the master's AP. Master is connected with GSM module to execute the web api. Master esp is having a Async Webserver which takes the http requests from…
java bee
  • 81
  • 2
  • 11
2
votes
1 answer

Arduino not rebooting with watchdog enabled

I have a custom board that is switching an inductive load through a 10A@230V ac relay. Due to a poor design, voltage spikes are causing the board to reboot from time to time (brown-out, watchdog and "unknown reason") The problem here is that from…
Jvila
  • 21
  • 1
2
votes
2 answers

ESP12E Soft WDT reset stack trace leads to libraries

Im using ESP12E DevKit v2 (esp8266 wifi module) board for controlling relays and displaying DHT22 temp,humidity on web server. It runs smoothly when the web client is closed but when i leave the website on for like a 20mins it crashes. I have…
Dan
  • 41
  • 3
2
votes
0 answers

Cant get rid of Soft WDT reset using ESP8266

Im using ESP12E DevKit v2 (esp8266 wifi module) board for controlling relays and displaying DHT22 temp,humidity on web server. It runs smoothly but after while i always get a watchdog timer reset. (If i have serial monitor opened up it happens…
Dan
  • 41
  • 3
1
vote
0 answers

RTC problems after longer time periods

I'm using the MKR NB 1500 for server sending, an ENV shield for measuring the environment, and an external lithium battery to power the circuit. The internal RTC and WDT on the NB 1500 are used. The program is trying to measure data, send it to a…
5TableLegs
  • 33
  • 3
1
vote
1 answer

Why is the watchdog biting to quickly?

currently trying to implement a watchdog into my project. I am using the WDTZero library for controlling the watchdog on my MKR NB 1500. The program is trying to measure data, send it to a server, go to sleep, wake up, and repeat the process.…
5TableLegs
  • 33
  • 3
1
vote
2 answers

How to configure watchdog for the arduino Nano 33 BLE Sense board?

For the arduino Nano 33 BLE Sense board, the standard avr/wdt.h is not available. And it seems that no standard library provides it. How to use the watchdog system for this board ? I found no full information about it. I've found the page…
tjbtjbtjb
  • 11
  • 3
1
vote
1 answer

Help with Arduino sleep and watchdog timer interrupt

I want to use Arduino's sleep and wakeup functionality but have hit a roadblock and can't seem to get past it. As I am just prototyping for a final system, I cannot use the LowPower library to implement the functionality so I am doing it barebones.…
phizaics
  • 11
  • 1
1
vote
2 answers

Arduino Reset via Software (every day)

Dear Stack Exchanger's, I want to reset my Arduino and system in every 24h for preventing frozen software and also other connectivity stuffs. I wrote a program which connects a digital pin to reset pin of Arduino and I want to reset with that…
1
vote
0 answers

ESP12F works indefinitely, then gets stuck in unrecoverable hardware WDT "boot loop"?

I have a sketch running on a number of ESP12F modules (AiThinker). They can work for months on end, can be power cycled, can be moved around, etc. It is a complex sketch with multiple parts and is still using the 2.4.2 core. What I've seen happen on…
Pinja
  • 31
  • 2
1
vote
1 answer

WDT ISR not called when SPI ST7789 module initiated

Using the .init function for the ST7789 TFT screen prevents my WDT ISR from firing. What explains this behaviour, and is there something I can do? Any other timer ISR I could use instead? #include // Includes…
JCSB
  • 111
  • 1
1
vote
0 answers

ESP8266 wdt reset

I just bought a KS0354 ESp8266 board to make a remote control for my iot project. Not sure why I keep on getting a wdt error. Even before I can complete my entire code I start getting this error. Below is my code: int PIN_BUTTON_A = 2; int…
1
vote
1 answer

Watchdog timer/deep sleep loop for Atmega 328 Pro Mini 5v 16 mhz

I have been struggling to get my Adafruit 5v pro mini to loop in deep sleep mode several times, then awake to perform something then return to the deep sleep mode loop. While it is out of deep sleep mode I want the watchdog timer to be active to…
J.B.
  • 21
  • 4
1
vote
0 answers

To reduce the Attiny85 current consumption

I am using Attiny85 to control 4 LEDs parallelly with a programmable switch. But even though when the LEDs are in OFF state, current consumption is around 7-8mA. I am using a 200mAh battery in my project and it is draining up the whole battery in…
1
2 3