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.
33
questions
1
vote
2
answers
431
views
Need help with parsing NWS JSON weather alerts causing reset on ESP8266
I'm trying to parse the JSON string from the National Weather Service Alerts and am encountering a problem where the code can't parse the value and the device auto-resets. I've used this code before ...
1
vote
0
answers
137
views
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 ...
1
vote
1
answer
73
views
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 ...
2
votes
2
answers
216
views
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 ...
4
votes
1
answer
274
views
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 ...
1
vote
1
answer
110
views
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 ...
2
votes
1
answer
532
views
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 &...
1
vote
2
answers
2k
views
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 ...
0
votes
1
answer
86
views
Save Watchdog ISR Return Address in EEPROM
If the WDT ever fires, from the ISR I save some info in EEPROM for later diagnostics before I drive the reset pin. Stack size, heap size, etc.
It might also be useful to know where the code was when ...
1
vote
0
answers
74
views
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 ...
1
vote
1
answer
66
views
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 <...
1
vote
0
answers
595
views
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. ...
0
votes
1
answer
704
views
esp32s: error: 'WDT_TIMEOUT' was not declared in this scope
I am trying to initialize the watchdog timer.
I have installed
arduino-esp32-master.zip
I have
#include <esp_task_wdt.h>
set but it is not highlighted red indicating the IDE knows about it.
...
1
vote
1
answer
608
views
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 ...
1
vote
0
answers
198
views
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 ...
1
vote
1
answer
950
views
wdt reset cause:4, boot mode:(3,6)
I'm working on Python and nodeMCU with websocket connection.
So, I send a string from Python to nodeMCU and nodeMCU collects the string and decodes to set values to a stepper motor. Initial code ...
1
vote
0
answers
239
views
ESP32-POE/ISO unstable after 10 days of power up
i have one ESP32-POE and ESP32-POE and i'm using the Olimex RS485 module to read a power meter that is placed near the ESP32 (5 meters of CAT5 cable - 9600 8N1).
My device has this workflow (it's ...
0
votes
0
answers
1k
views
watchdog timer giving me fits on ESP8266, how to find relevant code from Serial output describing the RST?
I've written a pair of sketches for two NodeMCUs to implement a noise meter. The master MCU voltage samples off an opamp's output pin and periodically digests 500 samples at a time into an RMS-type ...
0
votes
0
answers
176
views
Arduino sleep mode problem while sending data with gsm module
i am trying to send gps data via sim800l gsm module. Working fine without the power down code but when i add the power down code it stops working (not sending the gps data. code execution stops in ...
3
votes
2
answers
3k
views
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 ...
1
vote
0
answers
380
views
Freezing ESP8266 after 4-8h
Build my own 'Artnet to WS2812b Neopixel' boxes for lighting in a club. Working fine. I have 20 stripes with 50 pxls each. One ESP8266(NodeMCU) is feeding 6 stripes, so it gets 2 DMX universes via ...
0
votes
3
answers
1k
views
Getting wdt reset + reboots every 5 seconds on simple button/relay code that has worked previously, now it does not and I changed nothing
I have some arduino code I adapted from a simple 2 button 2 relay code I found online. I just multiplied everything so I could have 5 buttons/5relays. I am using a NodeMCU (ESP-12E) for this.
I have ...
1
vote
1
answer
243
views
Task watchdog gets triggered during Bluetooth initialization
The board ESP32-Dev-WROOM-32D cannot establish a bluetooth connection due to the task watchdog. Here's my code:
#include "BluetoothSerial.h"
//check if Bluetooth is enabled
#if !defined(...
1
vote
0
answers
58
views
How much time passes between waking up and sleeping?
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 ...
0
votes
1
answer
213
views
Low power error with serial connection
So I want to create an application where I can send data with a SIM-Module, and when it's not needed it should fall into a "standby-mode" because it's battery powered. But I always get this exact ...
1
vote
0
answers
598
views
NRF24L01 based project freezes for no good reason
I have built and coded a low power NRF24L01 transmitter and receiver, for purposes of transmitting the temperature of the transmitter's environment. I have used an Atmega328P chip for the project. The ...
1
vote
1
answer
470
views
Attiny85 Watchdog fires only once
I build something like a flashlamp with different modi. From the hardware site it's quite simmilar to the Nanjg105c.
There is a Attiny85 which generates a PWM signal to an AMC7135.
I have one push ...
1
vote
0
answers
51
views
freeRTOS tasks never run on Lightblue Bean
Although Punchthrough no longer supports the Bean and Bean+ they still maintain the online compiler and reference materials:
Bean Github
Bean reference
One of the external libraries they've included ...
2
votes
2
answers
774
views
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 ...
2
votes
0
answers
845
views
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 ...
1
vote
2
answers
3k
views
AVR software reset without watchdog
I wrote a generic avr program wrapper which already use the watchdog timer to restart - and after the watchdog reset - recover the the bad situation.
After this recover process i have to restart the ...
-1
votes
2
answers
189
views
RC-oscillator calibration in real time
This pesky watchdog RC oscillator is at the limit of its 10% tolerance already at room temperature. i was looking to bringing it to more like 5% (it stems from an internak 128 kHz RC oscillator) and ...
0
votes
2
answers
2k
views
I'm getting watchdog timer resets in NodeMCU. How can I permanently disable or stop that?
I'm using NodeMCU for my project. At first it works fine, but after some days it is resetting frequently because of the watchdog timer. I have used the Esp.wdtfeed() method also. But it is not working....