Ignore value if duration shorter than


#1

I want to test if a gpio/in/analog signal falls within a certain range. ( upper_bound > value > lower_bound )
but only if the value stays within that range for a certain minimum time (e.g. 3 miliseconds)
to avoid false positives in a noisy signal
any suggestions how to do that?


#2

well, control rate is 3khz... so thats a 0.33333 ms
perhaps a + 1 that when reaches 3 means success, and a change object that resets value to zero. do the check on success.
you could easily build an axo which does the same, but combines the above into one object... in fact you can probably do this with a script object.


#3

using a lp filter.
and there's also a Smoother object (iirc), which is also some sort of filter but probably uses less resources.