SwitchDoc Labs Dual WatchDog Timer Board for Arduino / Raspberry Pi
Designed by SwitchDoc Labs in United States of America
Buy with confidence.
Our Tindie Guarantee protects your purchase from fraud. Learn More
Why do you need an External Hardware WatchDog on an Arduino or Raspberry Pi? The reason is the internal watchdog is disabled in the boot loader for the Arduino and the Raspberry Pi watchdog is unreli…
Read More…The reason is the internal watchdog is disabled in the boot loader for the Arduino and the Raspberry Pi watchdog is unreliable and difficult to use. The SwitchDoc Labs Dual WatchDog Timer is designed to make small computer such as the Arduino and Raspberry Pi more reliable by detecting and recovering from computer or software malfunctions. It has two WatchDog Timers that can be used independently or together to reset non-responsive computers. It directly can drive the Arduino Reset line, the Raspberry Pi B/B+ and 2/3 reset line or a to a relay to reset a Raspberry Pi.
You can download the Dual WatchDog Product Brief here.
The SwitchDoc Labs Grove/Pin Dual WatchDog Timer is based on the 555 timer IC running in astable mode. The 555 timer acts as a “continuous” pulse generator. The pulse starts on power up or any time the trigger input is brought to ground. The setting of the TM1 potentiometer determines the length of the pulse (30-240 seconds). When the pulse ends the Arduino Reset output is taken to ground (and the PulseHigh output goes to VDD) for approximately 200ms. Then the cycle starts over again.
Here is a recent series of articles by SwitchDoc Labs about WatchDog Timers.
The software on the Raspberry Pi and Arduino is very straightforward.
To use a single timer on the WatchDog board, you connect a GPIO line to the DOG1_TRIGGER input. This GPIO pin needs to be set to high-impedance mode (input mode) when the trigger is not being applied to avoid interfering with the charging process of the 555 timer.
To “pat the dog” or trigger the External WatchDog Timer, you need to use the following code. Since the line has to be held in high impedance mode and then just taken to ground when you pat the dog, the code for the Arduino looks like this:
void ResetWatchdog1() {
pinMode(RESET_WATCHDOG1, OUTPUT);
delay(200);
pinMode(RESET_WATCHDOG1, INPUT);
Serial.println("Watchdog1 Reset");
} And in Python for the Raspberry Pi, the code looks like this:
def resetWatchDog():
GPIO.setup(RESET_WATCHDOG1, GPIO.OUT)
GPIO.output( RESET_WATCHDOG1, False)
time.sleep(0.200)
GPIO.setup(RESET_WATCHDOG1, GPIO.IN)
You put these functions in your code such that you pat the dog more often than Wto. Wto is defined as the maximum amount of time the WatchDog Timer can count before it needs to be reset (in other words, when it will reboot the computer if the computer goes away).
No country selected, please select your country to see shipping options.
No rates are available for shipping to .
Enter your email address if you'd like to be notified when SwitchDoc Labs Dual WatchDog Timer Board can be shipped to you:
Thanks! We'll let you know when the seller adds shipping rates for your country.
Shipping Rate | Tracked | Ships From | First Item | Additional Items |
---|---|---|---|---|
:
|
We can ship to virtually any address in the world. Note that there are restrictions on some products, and some products cannot be shipped to international destinations.
When you place an order, we will estimate shipping and delivery dates for you based on the availability of your items and the shipping options you choose. Depending on the shipping provider you choose, shipping date estimates may appear on the shipping quotes page.
Please also note that the shipping rates for many items we sell are weight-based. The weight of any such item can be found on its detail page. To reflect the policies of the shipping companies we use, all weights will be rounded up to the next full pound.
Buy with confidence.
Our Tindie Guarantee protects your purchase from fraud. Learn More
$45.00
Free Shipping!
$19.95
Free Shipping!
$19.95
Free Shipping!
$75.00
Free Shipping!
$15.00
Free Shipping!
$16.00
Free Shipping!
$9.95
Free Shipping!
By clicking Register, you confirm that you accept our Terms & Conditions
We recognize our top users by making them a Tindarian. Tindarians have access to secret & unreleased features.
We look for the most active & best members of the Tindie community, and invite them to join. There isn't a selection process or form to fill out. The only way to become a Tindarian is by being a nice & active member of the Tindie community!