Page 1 of 1

Pulse Counter / Glitch Filter

Posted: 02 Jul 2017, 20:40
by CherAlban
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

Re: Pulse Counter / Glitch Filter

Posted: 03 Jul 2017, 13:37
by Shardan
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

Re: Pulse Counter / Glitch Filter

Posted: 03 Jul 2017, 14:22
by CherAlban
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

Re: Pulse Counter / Glitch Filter

Posted: 16 Jul 2017, 15:38
by psy0rz
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

Re: Pulse Counter / Glitch Filter

Posted: 16 Jul 2017, 20:14
by CherAlban