flickering from sensors
I’m trying to use a bunch of new sensors, but looks like with greater sensitivity comes a major flickering…
So, I know several ways to detect and filter flickering, which is great. Only problem is that in this case is not only flickering, but sometimes, somehow the sensor – which is placed in a very still position and far from movements – sends some random (like one or two) values way bigger or smaller than the avarage flickering, so what i get is a *preceived* movement, which is not, actually…
I don’t think there are some fixes for this, but in the Max world, you never know… ;-)
So i hereby attach three text file I collected with coll which show what I’m talking about, so in case you wich you can reproduce and see if there is a possible fix
A median filter may help, but after looking at your files I’m not sure it will help much, I don’t see where the datas are way bigger or smaller than a running mean. Sometimes I’d be happy to get as dirty datas as you get ;-)
As always, with median or running mean you’ll get less reactive datas…
thanks Patrick, I tried with them but then I get delay, which is not useful at all in my case…
if you look carefully for instance "X"
you find jump from 9-to-16 points, and that was without movement…
but now that i put it this way.. i see that it’s not just one value, but the three of them altogether at the same time..
AND, more interestingly, it is just "one" value, and then it goes back to normal…
So i think there is something i could do with counter, o things like this…
I’ll tinker a little bit more and see if this is the case, and/or if this gets reproduced…
and thanks for your interest Patrick! ;-)
ok, it is confirmed. it is just "one" jump, and then it goes back more or less where it was…
I’m trying to figure out some code, if you have some ideas, please, feel free to spread.. ;-)
What kind of sensor is it? Isn’t it something in your electrical circuit that’s causing this noise? Could be easier to fix that than filter it out in code.
In my experience, all sensors jitter a little, even in a well designed system.