k4pi
New Member
Posts: 4
|
Post by k4pi on Jul 5, 2017 13:56:15 GMT -8
I have a model 110216-01-001 Dual Watchdog and am trying to connect it to a Pi 3 Model B. I see documentation connecting to an older Pi but cannot find anything on doing the Pi 3. Can anyone supply a pictorial of how the wiring should be? I cannot make out the wiring from the old documentation. Any help appreciated.
|
|
|
Post by SDL on Jul 6, 2017 14:32:53 GMT -8
Happy to help. We don't have a part number with 110216-01-001. That sounds like an amazon order number. Look at the board and give us the part number on the board itself. A picture would be good too.
There are several versions of the Dual Watchdog board out there.
BP
|
|
k4pi
New Member
Posts: 4
|
Post by k4pi on Jul 9, 2017 6:08:48 GMT -8
That is the number right on the board.110216-01-001 There is another number also on board EL-1EP5-47YS. Thanks..
|
|
|
Post by SDL on Jul 9, 2017 18:23:19 GMT -8
k4pi,
This board has gone through a number of versions and manufacturers. This board was started before we had normalized our part numbers and we are not 100% sure which board you have. Our numbers on our units don't match, but we may be missing a version.
Please post a picture of your board and we will be able to help you based on that.
Best,
BP
|
|
|
Post by bricsi5 on Jul 10, 2017 0:55:39 GMT -8
 I have the same problem here. Everything is connected correctly and I set the timer to 30 seconds, but I couldn't get the LEDs to blink. I also tried to unconnect the trigger pins but still no blink. Board infos: 110216-01-001 Dual WatchDog EL-1EP5-47YS 
|
|
|
Post by SDL on Jul 10, 2017 7:39:27 GMT -8
Thank you Bricsi5. Is this the same board k4pi?
Now we understand what you are using. You have the latest version of the board.
We figured out the problem. It looks like the manufacturing process changed a bit during production and the Grove Pin 1 (for Dog 1) and Pin 2 (for Dog 2) needs to be pulled to VDD for the pin headers to work (The right of the Grove connector as you are looking at the board is pin 1).
Using the Grove connector, everything works as expected.
We used a 100KOhm resistor to pull pin 1 high on the Grove connector and Dog 1 started functioning correctly. You could just tie it to VDD, no need for a resistor.
Next batch we will add resistor pull-ups to make this work perfectly in all cases, regardless of manufacturing variations.
Here is our test code:
# # Test WatchDog Blink #
# SwitchDoc Labs July 2017
# Note: With programs like this, you may have to exit by using CTRL+| #
# Wire up power to pins on WatchDog (Note: We are NOT using the Grove Connector in this case) # # Note: Pin 1 and Pin 2 of the Grove Connector needs to be connected to VDD for the pin inputs to work correctly.
import RPi.GPIO as GPIO import time
GPIO.setmode(GPIO.BCM)
# Patting line RESET_WATCHDOG1 = 12
# Don't hook up 12 # We are not going to pat the dog here, we are just going to look at the free running input
READ_WATCHDOG = 6
def resetWatchDog():
GPIO.setup(RESET_WATCHDOG1, GPIO.OUT) GPIO.output( RESET_WATCHDOG1, False) time.sleep(0.200) GPIO.setup(RESET_WATCHDOG1, GPIO.IN)
def my_callback(channel): print "rising edge detected on ", READ_WATCHDOG
GPIO.setup(READ_WATCHDOG, GPIO.IN )
try: while True: print "Waiting for rising edge on port " , READ_WATCHDOG GPIO.wait_for_edge(READ_WATCHDOG, GPIO.RISING) print "Rising edge detected on port %i." % READ_WATCHDOG print "Edge Detected at:"+ time.strftime("%Y-%m-%d %H:%M:%S")
except KeyboardInterrupt: GPIO.cleanup() # clean up GPIO on CTRL+C exit GPIO.cleanup() # clean up GPIO on normal exit
And our test results (with pin 1 of the Grove pulled High (to VDD) and the pot set to about 15 seconds.
pi@RPi3-65:~/testWatchDog $ sudo python testWatchDog.py Waiting for rising edge on port 6 Rising edge detected on port 6. Edge Detected at:2017-07-10 08:38:22 Waiting for rising edge on port 6 Rising edge detected on port 6. Edge Detected at:2017-07-10 08:38:36 Waiting for rising edge on port 6
BP
|
|
|
Post by bricsi5 on Jul 10, 2017 9:38:22 GMT -8
Thanks the quick response. This solved the blinking problem.
edit: The Dog1 only blinks if the grove pin1 connected only. (If I want to use the JP7/1 with grove pin1 VCC connected, not blinking.) So I think JP7 is the bad part. I use grove connection instead.
|
|
k4pi
New Member
Posts: 4
|
Post by k4pi on Jul 12, 2017 6:55:41 GMT -8
k4pi, This board has gone through a number of versions and manufacturers. This board was started before we had normalized our part numbers and we are not 100% sure which board you have. Our numbers on our units don't match, but we may be missing a version. Please post a picture of your board and we will be able to help you based on that. Best, BP
|
|
k4pi
New Member
Posts: 4
|
Post by k4pi on Jul 12, 2017 7:07:17 GMT -8
|
|
|
Post by SDL on Jul 12, 2017 8:01:40 GMT -8
k4pi,
Thanks!
If you are not using Grove connectors, you connect the Dog 1 input to a GPIO on your your Raspberry Pi. Power (3.3V and Ground) to your Raspberry Pi GPIO connector and then you need to tie Pin 1 of the Grove Connector (as in the post above) to 3.3V.
The Dog Out Pin (the Pulse) High pin will be connected to the Run pad on the Raspberry Pi3. Don't connect it until you have all your software running correctly. Look up the "Run Pad on the Raspberry Pi 3" to see how to connect it.
BP
|
|
|
Post by John on Oct 1, 2017 22:14:50 GMT -8
Can you please post some sort of updated diagram for this. I'm having trouble making any sense of what you are referring to.
|
|
|
Post by John on Oct 1, 2017 22:22:38 GMT -8
Let me clarify: in your instructions above you do not clearly indicate what needs to be connected where. You reference that if you are not using grove connectors...but then reference having to connect to a grove connector. Are Grove connectors required for this version of the board?
Please simplify your instructions to fit the board that is being sold, as it seems there are several versions of the directions dependent on board purchased.
|
|
|
Post by SDL on Oct 2, 2017 4:06:58 GMT -8
If you are not using Grove connectors: 1) Connect the Dog 1 input to a GPIO on your your Raspberry Pi.
2) Connect Power (3.3V and Ground) to your Raspberry Pi GPIO connector
3) Connect Pin 1 of the Grove Connector (as in the post above) to 3.3V.
4) Connect the Dog Out Pin (the Pulse) High pin to the Run pad on the Raspberry Pi3. Don't connect it until you have all your software running correctly.
Look up the "Run Pad on the Raspberry Pi 3" to see how to connect it. The header position is marked RUN on the Raspberry Pi 3
Step 3 will be eliminated in future versions of the board. Step 3 is used if you have a version 110216-01-001 WatchDog Board.
BP
|
|
|
Post by Bob on Oct 30, 2017 9:22:44 GMT -8
I am also using the WatchDog Dual shown in the pic. If I use the Grove connector, do I have to connect any other wires to the WatchDog Dual? Also, where exactly should the other end of the Grove connector go?... any Digital port of the GrovePi?
|
|
|
Post by SDL on Nov 1, 2017 18:21:42 GMT -8
Yes, the Grove connector should go to any digital output of the Pi2Grover board.
You do have to do #4 in the post above:
4) Connect the Dog Out Pin (the Pulse) High pin to the Run pad on the Raspberry Pi3. Don't connect it until you have all your software running correctly.
Look up the "Run Pad on the Raspberry Pi 3" to see how to connect it. The header position is marked RUN on the Raspberry Pi 3
|
|