It works a lot better when alpha is a value like .8 or .9 and then average doesn't need to be initialized to the current ADC value.
Pete
It works a lot better when alpha is a value like .8 or .9 and then average doesn't need to be initialized to the current ADC value.
Pete