Simplest watchdog circuit



  • jmgjmg Posts: 11,062
    edited May 2017 Vote Up0Vote Down
    Can share the actual circuit please?
       |             |             
      +-+            |             
      | |            |             
      |R|            |             
      | |    1G14    |             
      +-+     |\     |              
       |      | \U1  |              
       +----+-|  o---+------> /RST
       |    | | /                   
     C |    | |/                     
      ---  c|                      
      ---    \|b  +------+        
       |  Q1  |---|  Rb  |-------||-----< _/=\_  Feed WDOG
       |     /|   +------+       Ci  
       |   e|
      GND  GND
       U1 74AHCT1G14SE-7
       Q1 DTC143EET1G (includes Rb)
       R,C to Suit Timeout.
       Ci optional AC coupling, to avoid stuck-hi lokcout.
  • That could be the simplest circuit using discrete OTS parts, and the capacitor in the reset circuit avoids the stuck-low problem. I'd add the diode+resistor in the feedback to speed up the discharge phase in case it has to repeat.
  • Tracy AllenTracy Allen Posts: 6,197
    edited May 2017 Vote Up0Vote Down
    Peter, about the PUT. I had an article in a IEEE Circuits & Systems special issue on chaotic dynamics, with experimental verification using driven PUTs, an integrate and fire model. Prof. Leon Chua was editor of that issue, and he had a keen interest also in synthesis of 4-layer semiconductors using bipolar transistors, per jmg's comment. Also i had an article in Physica D, using cross-coupled PUTs as a number-theoretic model of coupled neurons . That was long ago when I was a grad student, before I forgot everything. And I guess it makes me a passé world expert on PUTs.

    Also, thinking of tunnel diodes, i still have one of the original HealthKit tunnel-dippers.
  • jmg's simplest watchdog circuit
    912 x 700 - 120K
    There is no such thing as bad news.
  • Here is the really final circuit with only 6 components!
    I changed the transistor to PNP type to eliminate the discharge diode.
    The base capacitor was removed to enable the micro to set the timeout period and
    also have the option to temporarily disable the watchdog. ( at the small risk of a lock-out )
    694 x 689 - 83K
    There is no such thing as bad news.
  • Here's the prototype board which i plan to add the watchdog circuit.
    There are still a few issues here and there, for example
    a. I still don't know how to mount the speaker properly to the board ( now using super glue )
    b. yellow audio cable looks out of place
    1356 x 756 - 458K
    There is no such thing as bad news.
  • your board?, as it have a rtc why not use one with WDT functionality?
    Why is 90% of copper etch away?, pour should be used.

  • william chanwilliam chan Posts: 1,295
    edited May 2017 Vote Up0Vote Down
    Hi Tony,
    tonyp12 wrote: »
    your board?, as it have a rtc why not use one with WDT functionality?
    It's not easy to get a working Linux driver for the RTC chip, so we stick with the one that works.
    tonyp12 wrote: »
    Why is 90% of copper etch away?, pour should be used.
    I still like to see where the tracks run. Pour is used on on the bottom layer.
    There is no such thing as bad news.
  • William, that looks like a clever adaptation to me, using the transistor for dual function to reset via either rst\ or io\ . The base-emitter junction has very low leakage current, better than a typical 1N4148, and the 3.3V power supply is well below the zener threshold. One thing you might try would be to connect the transistor in inverted mode, that is, switch the collector and emitter leads. The base-collector junction is also low-leakage, not quite as good as base-emitter, but what you gain is a lower saturation voltage, so the capacitor can discharge to a few millivolts (given enough time and enough drive current) instead of bottoming out at some 600 millivolts. Another note: If the circuit does get locked in reset, the period will be a lot shorter than it will be when the capacitor starts at zero volts. The hysteresis band of the 1G14 is only about 0.75 volt . That could be a "feature".

    Watchdog timers can be a real pain though. Especially during development--It has to be turned off!

Sign In or Register to comment.