Hi,
Can anyone let me know how is the ADC averaging is done?
How many values I need to read before averaging? Will this act as filter?
The I am reading a thermistor sensor value.
Please let me know.
Thanks
Sach
Hi,
Can anyone let me know how is the ADC averaging is done?
How many values I need to read before averaging? Will this act as filter?
The I am reading a thermistor sensor value.
Please let me know.
Thanks
Sach
The amount of data you collect before averaging is pretty much a personal prference. If the value does not swing much then more is a waist of time. Large swings withe the most being mid range then you need to collectet enough to cover it all.
To do he averaging. Set up a loop reading the ADC for the amount you want to collect. Keep adding the VAR to it's self then divide when finished.
Dave
Always wear safety glasses while programming.
Take a couple of dozen samples...
Sort them...
Discard the top six values...
Discard the Bottom six values...
Sum and average the middle twelve.
Bookmarks