# I need help for timer

**URL:** <https://forum.xod.io/t/i-need-help-for-timer/6847>\
**Category:** Uncategorized\
**Created:** [April 16, 2024, 8:09pm UTC](https://forum.xod.io/t/i-need-help-for-timer/6847 "2024-04-16T20:09:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![napreenkof123](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@napreenkof123](https://forum.xod.io/u/napreenkof123)\
**Post date:** [April 16, 2024, 8:09pm UTC](https://forum.xod.io/t/i-need-help-for-timer/6847/1 "2024-04-16T20:09:39Z")

</div>

I want to go on vacation for a long time, and wanna make the automatic feeder for my pets and i dont know how i can do this.  
I encountered a timer problem, i actually got no ideas for how do this i try do this with a clock node, but i need the servo triggers after a certain time, but works with the same period as the time after which the clock node triggers. if somebody know how to do the timer, please attach a screenshot under this post.  
Thanks in advance 🙏

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [April 17, 2024, 12:34am UTC](https://forum.xod.io/t/i-need-help-for-timer/6847/2 "2024-04-17T00:34:03Z")

</div>

If you really want feeding to happen at the same time, you will need a RTC (Real Time Clock) module. There are other threads on this forum discussing that.

You can use ‘delay’ node to have the dispenser fire after X seconds, and repeat, but Arduino clock loops around every few days, and even without that, repeating every X seconds is likely to drift over time. The traffic light example [New guide article: Simple Traffic Light Example](https://forum.xod.io/t/new-guide-article-simple-traffic-light-example/186) will show you how to use delay and loops.

You will only need 2 of the 3 delay nodes from the traffic light example. The first is your delay between feedings, the second is to give the servo time to open, then restart loop. delay-ACT of 2nd delay node should feed an if-else-COND. if-else-T will be position of servo to dispense food. if-else-F will be position of servo between feedings. Output of if-else feeds to servo position pin.

---

<div class="post-metadata">

**Author:** ![napreenkof123](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@napreenkof123](https://forum.xod.io/u/napreenkof123)\
**Post date:** [April 17, 2024, 6:14am UTC](https://forum.xod.io/t/i-need-help-for-timer/6847/3 "2024-04-17T06:14:21Z")

</div>

Thank you very much, you helped a lot!

---

<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:** [May 17, 2024, 6:14am UTC](https://forum.xod.io/t/i-need-help-for-timer/6847/4 "2024-05-17T06:14:38Z")

</div>

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