# 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:** 1\
**Showing post:** 2

<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.

---

_[View the full topic](https://forum.xod.io/t/i-need-help-for-timer/6847)._
