# Minimal Relay Module pulse duration

**URL:** <https://forum.hardwario.com/t/minimal-relay-module-pulse-duration/612>\
**Category:** TOWER\
**Created:** [July 24, 2020, 11:31am UTC](https://forum.hardwario.com/t/minimal-relay-module-pulse-duration/612 "2020-07-24T11:31:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PunyIron](https://forum.hardwario.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@PunyIron](https://forum.hardwario.com/u/PunyIron)\
**Post date:** [July 24, 2020, 11:31am UTC](https://forum.hardwario.com/t/minimal-relay-module-pulse-duration/612/1 "2020-07-24T11:31:22Z")

</div>

Hello,

- I have Relay Module with SA-105 alarm connected.
- For some reasons (to notify something) I want to invoke really short sound.
- I use command `"node/generic-node:0/relay/0:0/pulse/set"` with payload `{"duration":10, "direction":true}`.

It’s working OK almost all the time.  
Although, sometimes, time by time, this command closes the relay permanently.

It leads to loud siren is triggered until I power off it by command `"node/generic-node:0/relay/0:0/state/set"` = false.

I need to achieve pulse short as possible but without error behaviour.  
Unfortunately, this is very unpredicable, for example 2 times in month.  
So it’s heavy to test it and find any suitable pulse duration.

Which minimal pulse duration is safe to use?

Thanks.

---

<div class="post-metadata">

**Author:** ![hub.martin](https://forum.hardwario.com/user_avatar/forum.hardwario.com/hub.martin/32/631_2.png) [@hub.martin](https://forum.hardwario.com/u/hub.martin)\
**Post date:** [July 24, 2020, 3:10pm UTC](https://forum.hardwario.com/t/minimal-relay-module-pulse-duration/612/2 "2020-07-24T15:10:42Z")

</div>

Hello, the pulse function was meant to trigger pulses 100ms or longer.

The issue here might be that the task scheduler is running in 10ms intervals and it can have issues if you call function with 10ms or less from time to time. My guess is that with 20ms it **might** work, but really this pulse function or relays at general are not suitable for this short pulses. I would suggest to set 50ms pulse to be on safe side.

---

<div class="post-metadata">

**Author:** ![hub.martin](https://forum.hardwario.com/user_avatar/forum.hardwario.com/hub.martin/32/631_2.png) [@hub.martin](https://forum.hardwario.com/u/hub.martin)\
**Post date:** [December 3, 2021, 12:14pm UTC](https://forum.hardwario.com/t/minimal-relay-module-pulse-duration/612/3 "2021-12-03T12:14:00Z")

</div>


