ADC Averaging


Closed Thread
Results 1 to 5 of 5

Thread: ADC Averaging

  1. #1
    Join Date
    Sep 2009
    Posts
    6

    Default ADC Averaging

    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

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    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.

  3. #3
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    966


    Did you find this post helpful? Yes | No

  4. #4
    Join Date
    Sep 2009
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    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.
    Hey,

    for 10 bit ADC, if the value is not ranging much, what should be the number of samples to be taken?


    Thanks for the reply.
    Last edited by Sach_1979; - 21st September 2009 at 06:26.

  5. #5
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Take a couple of dozen samples...

    Sort them...

    Discard the top six values...

    Discard the Bottom six values...

    Sum and average the middle twelve.

Similar Threads

  1. Stable Adc Reading Routine
    By gebillpap in forum General
    Replies: 27
    Last Post: - 13th May 2015, 02:18
  2. Can't get ADC to loop
    By TravisM in forum mel PIC BASIC
    Replies: 2
    Last Post: - 11th October 2009, 15:33
  3. adc averaging readings
    By amgen in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st June 2006, 00:57
  4. ADC value with 2 decimals on an LCD
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2005, 15:54
  5. 12F675 ADC 'Issues'
    By harrisondp in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2005, 01:55

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts