Testers wanted for Long-Duration Watchdog Timer breakout board

Hi everyone! I'm looking for a handful of folks interested in testing a new, long-duration watchdog timer breakout board that I've been developing. It's a simple, "plug and play" board with a set timeout duration depending on the board configuration. It can be used for system reset and recovery, or for system wake-up.

It uses four pins - power and ground, a heartbeat pin to control it, and connects to the Arduino's RESET pin for system recovery or a GPIO pin for system wake-up. Only about 10 lines of code are needed to manage the heartbeats. So super simple to add and use.

I plan on offering it in different timeout ranges from 1 minute up to an hour, but it will also be available as kits and can support custom timeouts from sub-second up to several hours.

It's designed to be used as part of prototyping or learning about circuits/microcontrollers, or can be embedded in a more permanent project and is especially suited for remote applications that need to keep running 24/7 without manual intervention.

I'm looking for half a dozen folks or so that I could send samples to for them to test and give me their feedback. US-based would be preferred, but if you are outside the US, feel free to raise your hand as well -- I just haven't sorted out international shipping needs/tariffs/etc. :slightly_smiling_face:

If interested, reply here or send me a DM!

---Lawrence

While you are at it, consider adding a MOSFET so you can power down
the peripherals as well. This helps clear and un-latch some devices.

I built a version that does this and also provides a watchdog heartbeat.
The signal is driven low for about one second if the board is recovering
from a power failure. If the reset was caused by a watchdog timeout, the
signal is left high.

If the processor does not respond within a given time, it is reset again.
This repeats until it successfully recovers. I call this a "deaddog".

In my case, the MOSFET switches the raw power line ahead of the regulator and after the converter.

Interested (but outside the US)

Is it an open hardware project?
DO you have a (GitHub) link where we can see the design / PCB etc?

@gilshultz Yeah something to reset the peripherals would be a good addition too.

I take it on yours, your watchdog timer board was powered directly from the power supply upstream from the MCU?

@robtillaart Sent you a DM…

That is correct. I used 4000 logic so it could run directly from a 12V source but it also has a 5V regulator if you want to run it form 24V. Internally it is AC coupled (capacitor) so it is immune to the input toggle being stuck on a given state. Here is the schematic.
Dog_Reset_5_Sch.pdf (151.5 KB)
I think I had to move the reset from Pin 10 to pin 11. JP1,2,3 select the timing delay.

How will it detect when a breakout board stops responding?

@mikedb The watchdog timer detects when the microcontroller stops running correctly. If heartbeats aren’t received from the MCU frequently enough to “reset” the watchdog timer, then the watchdog timer “times out” and resets the MCU.

@gilshultz Cool, thanks. Yours is a lot more sophisticated than mine - I’m using a simple RC circuit coupled with a 555 timer with just a single “RESET” output.

I haven’t played around with the 4000 counters yet but was considering them for future designs.

Your clock is the R7/C2 combination, right? Do you find that the wide tolerances with capacitor values (i.e. +/- 20% rated capacitance) affects the clock frequency enough that you see a lot of variance in your timings board to board?

The SMD caps are generally more stable then the through hole ones. I tend to use Ceramic Capacitors of the NPO type. In my design timing is not critical, it is to recover mainly from locked up devices such as the PCF857x devices. They are very glitch sensitive.

1 Like

There is another aspect worth considering for long-term unattended operation: once recovery works reliably, it becomes useful to know how often the watchdog actually had to intervene...

From Debugging to Autonomous Recovery — An External Watchdog That Does Not Reset and Forget

I use FRAM and keep track of the current state, I save that upon reset so from that I can determine where it failed and of course there is also a counter that counts power on resets and Deadog resets.

1 Like

It looks like an old thread may have been reawoken but, anyway, I've been thinking of designing something similar to this watch dog based on an attiny412. The use case would be to protect certain display devices from being overdriven. Some LED displays, for example, have one power rating when they are multiplexed/pulse driven but another, lower rating when they continuously driven. If, for some reason, the multiplexing stalls* then the power to the should be cut to prevent damage to the device. The watch dog refresh would be the detection an in specification condition (frequency not too low, duty cycle not too high etc.)
The hardware in this case would be very simple; little more an mcu and maybe a mosfet.

*this can happen say when uploading code to the mcu.

1 Like

I like the concept of FRAM -- looks like it could be really useful for system recovery and tracking system states. I assume this is an external module from your Arduino? Do you use the I2C version? Any issues with I2C lockup using that? (I've seen I2C lockup using other modules... which usually results in the watchdog resetting the system anyway...)

I initially used a FRAM module, and I now have the FRAM IC as a standard part of the board, along with a DS3231 RTC.

32K x 8 will hold a lot of information, and FRAM works at memory speed without the write delays and write-cycle limitations of EEPROM. It is available with either I2C or SPI interfaces.

I write my code using a state counter. If something hangs up, I can use the state value to determine where the problem occurred and what is needed. If I decide that a reset is required, I simply do not return from that state and let the watchdog reset the processor.

The FRAM also holds the I/O states. When the processor comes out of reset, there is only a short glitch while the I/O is initialized and returned to its pre-fault condition.