Any news to use a Switch/Dimmer with 50Hz input

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Micha_he
Normal user
Posts: 369
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Any news to use a Switch/Dimmer with 50Hz input

#1 Post by Micha_he » 08 Apr 2021, 13:29

I have not noticed all the ESPEasy-changes in the last months...

Are there any news on making a 50Hz-input workable with ESPEasy, without modify the circuit with a electrolytic capacitor? As used e.g. by MOES-switches input's.

Can we configure the switch-input-plugin (or modify the source-code), so that we get the following behavior:

1. When the signal at the input changes to 1 with a 50Hz frequency, we get a constant 1 result (only a single event).
2. If the signal falls to 0 for a period of xxx ms, then the internal result switch back to 0.

In summary: A delay only in the direction from 1 to 0.

The pulse-counter-plugin wasn't a solution in the last test (~ one year ago), because ESPEasy always crashed with the high count of pulses.
I'm searching for a solution, to use a mini-dual-switch (e.g. like this one), with dual-channel input and would like to stay with ESPEasy :)
Last edited by Micha_he on 08 Apr 2021, 13:36, edited 1 time in total.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Any news to use a Switch/Dimmer with 50Hz input

#2 Post by TD-er » 08 Apr 2021, 13:36

Pulse counter is capable of counting quite high frequencies these days.
So what you can do is set this to an interval of 1 sec and check the counted value.
If it does no longer increase, you can conclude the frequency was no longer present.

Micha_he
Normal user
Posts: 369
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Re: Any news to use a Switch/Dimmer with 50Hz input

#3 Post by Micha_he » 08 Apr 2021, 13:39

Does the pulse-counter only generate an event on the interval setting or on every change ?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Any news to use a Switch/Dimmer with 50Hz input

#4 Post by TD-er » 08 Apr 2021, 13:42

I think (!!) it is only on the interval as it is impossible to process > 20-ish events per second and people have reported to be able to count > 200 Hz signals. (reported counting of 12'000 rpm motor)

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 43 guests