Well, 4 bits down means the jitter is max 15 counts of the ADC... This is too much!
Cannot understand how can a pot have so much bad connection of its wiper... If you use this port in audio...
Type: Posts; User: Ioannis; Keyword(s):
Well, 4 bits down means the jitter is max 15 counts of the ADC... This is too much!
Cannot understand how can a pot have so much bad connection of its wiper... If you use this port in audio...
I have not seen Henrik's piece of code, but as he noted it is not a sort or fast one.
In the mean time, maybe you can:
1. find the reason of the jitter/noise of the pot output.
2. try getting...
You need to use floats whatever the sample are.
Ioannis
Ehh, hmm, I think it is Al, Darrel :)
It is indeed surprising how many have used it, but who thought that it needed floating? Also Microchip use it in various AN like the cap-sense routines but of...
I think with the running average will never reach the final ADC value because of rounding errors.
E.g. for 10 bit ADC and say a RunAverage value of 1008, on next iteration 0.9375 should be added,...
Thanks Darrel. Is that on the X-axis ... time? I guess it is and the time it takes is forever.
OK, if we use 3/4 will sure be faster, but how accurate?
On an experiment with touch sensors I can...
Yes Jerson. That was it. It was too late here, so...
Thanks for correcting.
Ioannis
Hi Darrel.I too agree that nothing may beat the oversampling. It is obvious.
The average I have in mind would be average=average*15/16+sample. Not many, but not too little and /16 can be done fast...
Excellent analysis Darrel!
It would be interesting (at least to me) on your same setup to test the moving or running average too.
Also, how did you collect the samples? From Excel side I mean....
I agree that the design engineer should do the best to eliminate every possible source of noise by good design and filtering.
This does not make sure though that noise, spikes or whatever cannot...