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?
Ignore value if duration shorter than
timvets
#1
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.
alex
#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.