# Timed relay Question

**URL:** <https://forum.xod.io/t/timed-relay-question/1857>\
**Category:** Uncategorized\
**Created:** [February 13, 2019, 1:11am UTC](https://forum.xod.io/t/timed-relay-question/1857 "2019-02-13T01:11:57Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/jeff/32/372_2.png) [@jeff](https://forum.xod.io/u/jeff)\
**Post date:** [February 13, 2019, 1:11am UTC](https://forum.xod.io/t/timed-relay-question/1857/1 "2019-02-13T01:11:57Z")

</div>

I am trying to make a timed relay that turns on for 3 seconds and then turn off.  
I tried both ways in image.  
After uploading the button will turn on relay and relay turns off after 3 sec. but it only works once.  
the second buttonpress doesnt seem to register.  
If I reset the arduino, the button wil work again but only once.  
Am I missing something?  
(the pulse node is pulse-on true)

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/8e02cc386c800007f96c682fcec5790d2d2b5aae.png)

---

<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:** [February 13, 2019, 2:01am UTC](https://forum.xod.io/t/timed-relay-question/1857/2 "2019-02-13T02:01:35Z")

</div>

Hi, try this

![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/05786f5c8eb5a3ac690fbffa1ded2c73275b3c1c.png)

---

<div class="post-metadata">

**Author:** ![jeff](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/jeff/32/372_2.png) [@jeff](https://forum.xod.io/u/jeff)\
**Post date:** [February 13, 2019, 7:24am UTC](https://forum.xod.io/t/timed-relay-question/1857/3 "2019-02-13T07:24:50Z")

</div>

This one also works once.

---

<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:** [February 13, 2019, 3:25pm UTC](https://forum.xod.io/t/timed-relay-question/1857/4 "2019-02-13T15:25:10Z")

</div>

The only thing that occurs to me is that the pull-up resistor is missing

---

<div class="post-metadata">

**Author:** ![jeff](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/jeff/32/372_2.png) [@jeff](https://forum.xod.io/u/jeff)\
**Post date:** [February 13, 2019, 4:27pm UTC](https://forum.xod.io/t/timed-relay-question/1857/5 "2019-02-13T16:27:25Z")

</div>

that could be it i think.  
untill now i always used the internal pullup resistor.  
can that be done from inside XOD?

---

<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:** [February 13, 2019, 5:18pm UTC](https://forum.xod.io/t/timed-relay-question/1857/6 "2019-02-13T17:18:34Z")

</div>

If you can, but for now from c++.  
There are some forum topics, which you could consult.

---

<div class="post-metadata">

**Author:** ![p-bitsch](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@p-bitsch](https://forum.xod.io/u/p-bitsch)\
**Post date:** [February 13, 2019, 6:10pm UTC](https://forum.xod.io/t/timed-relay-question/1857/7 "2019-02-13T18:10:58Z")

</div>

![grafik](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/69c14d6492e494dece9f02471e03957d99b26fa7.png)  
 ![grafik](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/ac6efa2aada9dd19ce0d8baddc4465e82946b143.png)

Try this…

---

<div class="post-metadata">

**Author:** ![jeff](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/jeff/32/372_2.png) [@jeff](https://forum.xod.io/u/jeff)\
**Post date:** [February 13, 2019, 8:58pm UTC](https://forum.xod.io/t/timed-relay-question/1857/8 "2019-02-13T20:58:58Z")

</div>

Tried it and it worked the same.  
But after soldering in a 10K pullup resistor, this one and all the others worked 😄

---

<div class="post-metadata">

**Author:** ![jeff](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/jeff/32/372_2.png) [@jeff](https://forum.xod.io/u/jeff)\
**Post date:** [February 13, 2019, 9:02pm UTC](https://forum.xod.io/t/timed-relay-question/1857/9 "2019-02-13T21:02:19Z")

</div>

soldering in a 10K pullup resistor made all the different versions work 😄

---

<div class="post-metadata">

**Author:** ![jeff](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/jeff/32/372_2.png) [@jeff](https://forum.xod.io/u/jeff)\
**Post date:** [February 13, 2019, 9:08pm UTC](https://forum.xod.io/t/timed-relay-question/1857/10 "2019-02-13T21:08:00Z")

</div>

Thanks to all for the help.  
I learned alot today 😄  
(especially that I can plug a boolean output into a pulse input without a “pulse-on-true” node )

---

<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:** [February 13, 2019, 9:11pm UTC](https://forum.xod.io/t/timed-relay-question/1857/11 "2019-02-13T21:11:14Z")

</div>

> [@jeff](#):
>
> all the different versions work

ok I’m glad, enjoy 👍
