Pulse counter plugin able to recognize 50Hz input

Moderators: grovkillen, Stuntteam, TD-er

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

Pulse counter plugin able to recognize 50Hz input

#1 Post by Micha_he » 27 Oct 2019, 17:55

For the input switch from Moes SQ-WIFI-D01 dimmer (https://letscontrolit.com/forum/viewtop ... 133#p40133), I need to detect the 50Hz input on GPIO13.
Is the P003-Pulse-Counter-Plugin able to count it ? Or does the timing of ESPEasy-rules not allow this frequency ?

Even better... Has someone a rule to recognize short- and longpress with a ~50Hz input ? :)

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

Re: Pulse counter plugin able to recognize 50Hz input

#2 Post by TD-er » 27 Oct 2019, 19:56

I think you will run into either a very slow running ESP with likely a lot of WiFi connection issues, or a crashing one when supplying 50 Hz to the pin setup for the Pulse Counter.

Why do you need to detect 50 Hz input?
It sounds like net frequency, so I think you may be looking for something a bit more simple to implement whatever you would like to achieve.

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

Re: Pulse counter plugin able to recognize 50Hz input

#3 Post by Micha_he » 28 Oct 2019, 08:07

Yes, that's what I've noticed. The ESP seems very slow and the web-interface doesn't available.

Why...? Because the Moes QS-Wifi-D01 dimmer has this input schematic:
https://user-images.githubusercontent.c ... 6874d3.png

And I didn't want to change anything at the circuit, if it's not necessary. Currently I've smoothed the input (GPIO13 to GND) with a 10µF capacitor. It seems to work...

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

Re: Pulse counter plugin able to recognize 50Hz input

#4 Post by TD-er » 28 Oct 2019, 10:09

Micha_he wrote: 28 Oct 2019, 08:07 [...] Currently I've smoothed the input (GPIO13 to GND) with a 10µF capacitor. It seems to work...
That would have been my suggestion too.

I assume you have it on the GPIO side? Otherwise you're feeding a polarized capacitor with negative voltage and that's quite dangerous.

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

Re: Pulse counter plugin able to recognize 50Hz input

#5 Post by Micha_he » 28 Oct 2019, 10:11

Yes, directly to GPIO13 ;)

Post Reply

Who is online

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