|
Post by SDL on May 24, 2017 18:09:28 GMT -8
Jose said:
Hi I connected the watchdog to my Raspberry Pi as per the diagram but could not make it work.
Is there a way to test that is really triggering ?
Also couldn't understand the time adjustment.
Thank you
|
|
|
Post by SDL on May 24, 2017 18:19:55 GMT -8
Triggering test:Unplug the computer from the WatchDog board. You may have to supply power to the watchdog board. Watch the two LEDs on the board. They will flash periodically when the watchdog is triggered. How often they flash depends on how you have set the time potentiometer on each channel. Hooking up your computer to the watchdog inputs, now start a program that will "pat the dog" as in the manual. The LED of the channel that you are patting will stop flashing periodically. #define RESET_WATCHDOG1 18 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). Setting the Potentiometer: (see the specification: www.switchdoc.com/wp-content/uploads/2016/12/DualWatchDog_110216-V2.02.pdf )Using a flat blade small screwdriver turn the potentiometer on your chosen channel. The timeout interval for each WatchDog timer is set by turning the respective TM1 / TM2 single turn potentiometer. It can be set from 30 seconds to 240 seconds. It is set by turning it over a 270 degree range. BP
|
|
|
Post by jfmaldo on May 30, 2017 18:01:47 GMT -8
Thanks for the quick reply.
I couldn't get the LEDs to blink. They stayed on all the time, no matter what I did. I tried to trigger the input (to ground) but no success. Any other idea is appreciated.
Thank you
|
|
|
Post by SDL on May 31, 2017 3:21:58 GMT -8
Make sure the trigger pins are unconnected. BTW, taking the trigger to ground momentarily will STOP the LEDs from blinking for another cycle.
Try setting the time adjustment down to 30 seconds. Makes it easier not to miss the blinks.
BP
|
|