Pulse Counter / Glitch Filter

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
CherAlban
Normal user
Posts: 14
Joined: 15 Nov 2016, 16:47

Pulse Counter / Glitch Filter

#1 Post by CherAlban » 02 Jul 2017, 20:40

Hi,

I am reading my Ferraris electric meter using a cheap tcrt5000 IR sensor, triggering on the rising edge, created by the end of the red-section of the rotating disc.
The setup is not really hassle free, as I am getting additional triggers, caused by very short glitches. I am already using the "Debounce Time" of the Pulse Counter plugin, but I am missing something like a 'Minimum Pulse duration [ms]", as a Glitch Filter.
Is this a feature anybody already implemented or that is on the road-map?

CherAlban

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Pulse Counter / Glitch Filter

#2 Post by Shardan » 03 Jul 2017, 13:37

Hello,

I'm no Dev so i can't say if something is planned or on roadmap.

Anyways i tend to say that such spikes and glitches usually have a reason.
This might be power supply (spikes or noisy voltage), or it might result from
bad or no filtering in the circuitry.

Please give some more info:
Are you using just the bare tcrt5000 (IR-LED/Sensor) or one of these little breakout boards
with a little trimme and a LM293 or similiar chip on it? If the second, cann you give a picture or a link?

Regards
Shardan
Regards
Shardan

CherAlban
Normal user
Posts: 14
Joined: 15 Nov 2016, 16:47

Re: Pulse Counter / Glitch Filter

#3 Post by CherAlban » 03 Jul 2017, 14:22

Hi,

yes of course those glitches have a reason, in this case the whole poor optical setup and especially the reflective properties of my 50 years old Ferraris disc, which is hard to influence...

I am using one of those little breakout boards, incl. a trimmer on it. There is no analog filtering implemented. If possible, I would prefer to implement the debouncing / glitch filtering in software.

CherAlban

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: Pulse Counter / Glitch Filter

#4 Post by psy0rz » 16 Jul 2017, 15:38

Its not on the roadmap but it seems a usefull feature indeed. Please create a feature request on github for it and we might implement this.

Edwin
Please support ESPEasy development via Patreon or buy us a coffee.

CherAlban
Normal user
Posts: 14
Joined: 15 Nov 2016, 16:47

Re: Pulse Counter / Glitch Filter

#5 Post by CherAlban » 16 Jul 2017, 20:14


Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests