Re: New software filter for adc reading
Thank you Darrel for such a quick answer. I will keep thinking what else I could do for further improvment.
As far as the running average is concerned, a way to have a faster answer could be:
Code:
ADCIN chan,ADVal
If RAv = 0 then
RAv = ADVal
ELSE
RAv = (RAv*15 + ADVal)/16
ENDIF
In this way you load the variable with the raw value and then you smooth it. Just thinking!
Cheers
Al.
Last edited by aratti; - 15th January 2013 at 15:23.
All progress began with an idea
Bookmarks