# Watchdog with XOD

**URL:** <https://forum.xod.io/t/watchdog-with-xod/2695>\
**Category:** XOD Programming Questions\
**Created:** [October 15, 2019, 11:38am UTC](https://forum.xod.io/t/watchdog-with-xod/2695 "2019-10-15T11:38:47Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![lkostas1986](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@lkostas1986](https://forum.xod.io/u/lkostas1986)\
**Post date:** [October 15, 2019, 11:38am UTC](https://forum.xod.io/t/watchdog-with-xod/2695/1 "2019-10-15T11:38:47Z")

</div>

hello guys im new here and i need your help. Has any of you tried to use watchdog with XOD? IF yes how it works ?

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [October 15, 2019, 1:26pm UTC](https://forum.xod.io/t/watchdog-with-xod/2695/2 "2019-10-15T13:26:14Z")

</div>

hi, try library de @bradzilla84

[https://xod.io/libs/bradzilla84/sleepydog/](https://xod.io/libs/bradzilla84/sleepydog/)

---

<div class="post-metadata">

**Author:** ![lkostas1986](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@lkostas1986](https://forum.xod.io/u/lkostas1986)\
**Post date:** [October 15, 2019, 6:43pm UTC](https://forum.xod.io/t/watchdog-with-xod/2695/3 "2019-10-15T18:43:15Z")

</div>

thank you i will try )

---

<div class="post-metadata">

**Author:** ![c2death](https://avatars.discourse-cdn.com/v4/letter/c/bcef8e/32.png) [@c2death](https://forum.xod.io/u/c2death)\
**Post date:** [December 8, 2019, 1:00pm UTC](https://forum.xod.io/t/watchdog-with-xod/2695/4 "2019-12-08T13:00:12Z")

</div>

How its use for NodeMCU? thx gays)

---

<div class="post-metadata">

**Author:** ![pan](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@pan](https://forum.xod.io/u/pan)\
**Post date:** [June 20, 2020, 6:23pm UTC](https://forum.xod.io/t/watchdog-with-xod/2695/5 "2020-06-20T18:23:28Z")

</div>

Hi cesars how can i use the wathdog.with XOD. I mean how and with what can i conect it.  
thanks a lot

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [June 21, 2020, 1:59am UTC](https://forum.xod.io/t/watchdog-with-xod/2695/6 "2020-06-21T01:59:53Z")

</div>

hi, in library `bradzilla84/sleepydog` the two nodes have the watchdog implementation, start them with the INIT pin.

---

<div class="post-metadata">

**Author:** ![pan](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@pan](https://forum.xod.io/u/pan)\
**Post date:** [June 21, 2020, 7:19am UTC](https://forum.xod.io/t/watchdog-with-xod/2695/7 "2020-06-21T07:19:19Z")

</div>

Thanks you cesars for your reply. Because I am not familiar with the programming I will be gratfull if you can send me a simple XOD strougtule with a watchdog inside to see how this node link with the athers. Thanks a lot

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [June 21, 2020, 8:55am UTC](https://forum.xod.io/t/watchdog-with-xod/2695/8 "2020-06-21T08:55:53Z")

</div>

Here are some examples

watchdog node

![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/d/d6940ee8877a2321cd15377d1bc65a218807c70e.png)

sleep node

![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/6/6431dc3dbcc90e30041d08df51e8eaac2126cf96.png)

sleep and wake up by change of state on pin 2

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/c/c522a022d238fa75a29e9a68c83e8497f417b037.png)

---

<div class="post-metadata">

**Author:** ![pan](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@pan](https://forum.xod.io/u/pan)\
**Post date:** [June 21, 2020, 9:26am UTC](https://forum.xod.io/t/watchdog-with-xod/2695/9 "2020-06-21T09:26:05Z")

</div>

I thing I understand know… I use the first one for reset.  
I conect the INT with a node to prevent pulses a timer for example and if the controller stucks the watchdog do the job and reset . right?

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [June 21, 2020, 9:18pm UTC](https://forum.xod.io/t/watchdog-with-xod/2695/10 "2020-06-21T21:18:47Z")

</div>

It is correct, if it does not receive a pulse that could be used `continuous-pausable` if a false one arrives, the micro resets after 4 seconds or the established time

---

<div class="post-metadata">

**Author:** ![pan](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@pan](https://forum.xod.io/u/pan)\
**Post date:** [June 22, 2020, 7:26am UTC](https://forum.xod.io/t/watchdog-with-xod/2695/11 "2020-06-22T07:26:59Z")

</div>

Thanks you cesars  
best regards

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [June 22, 2020, 6:35pm UTC](https://forum.xod.io/t/watchdog-with-xod/2695/12 "2020-06-22T18:35:27Z")

</div>

To clarify something else, the pulse can not only be internal, it can also be the signal from an external sensor.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [July 22, 2020, 6:35pm UTC](https://forum.xod.io/t/watchdog-with-xod/2695/13 "2020-07-22T18:35:34Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
