Date: 01.09.16 - 5:48am
for my IOT humidor project I needed to use a long external watchdog to catch hangs in the Wi-Fi chip,
I've been using a commercially available, yet somewhat expensive watchdog and thought I would try my hand at creating my own. I found two main schools of thought on this, you either use a 555 timer chip and an RC time curve to set the timeout delay, or you use another small micro controller.
Being primarily a software guy, I decided to go with the minimal ATTiny85 chip route. This micro controller will cost you about three dollars delivered and is a single-chip. It is powered off of the parent Arduino, and requires very little wiring to make it work. All the components can be put on board and brought out to a four header strip to interface with the parent device. Below is a quick circuit diagram of what I came up with:
in order to configure the timeout delay, there is an on board pot that you can set. Timeout delay by default is between 9 and 90 seconds.
Note: The jumper time multiplier has been sacrificed in favor of adding a software disable line. Just set this pin LOW to disable the dog. You can ignore this pin is you dont need to use a disable feature.
The blink codes are as follows:
Links to resources on how to program an ATTiny from the Arduino IDE using just an UNO are included the tiny source. This project is elegantly simple in terms of the source code, wiring, components, configuration, and cost. This is exactly what I was going after.