jitter smoothing question



as first post here, hello everybody!!

i know there countless threads smoothing jittery potentiometer data there 1 thing can't find answer - though it's pretty standard issue... anyway:

i have analogue poti , in setup, important trigger "value change" if there turning poti.

so 2 things:
1. smooth data moving average (i tried many use library: https://github.com/michaelthessel/arduino-analog-smooth).

2. know wether value changed or not, introduced deadband (i think that's called), is: trigger change when current value differs last value.

this works expected regardless of how smoothing apply have case sometimes, final value oscillate between 2 numbers - triggers "value change".
i can avoid increasing threshhold of deadband 0 1 run problem, if turn poti slowly, not register @ because every individual change falls within +-1 range. can turn poti way other side without "value change" being registered @ all.

how solve this?
any appreciated, in advance!!!
karl


er, problem solved.
as posts, fact 1 needs write down helps - realized not have google "smoothing" "triggering" - led me library seems amazing job:
http://damienclarke.me/code/posts/writing-a-better-noise-reducing-analogread

best , sorry premature post!
k


Arduino Forum > Using Arduino > Sensors > jitter smoothing question


arduino

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts