ADC filter


Closed Thread
Results 1 to 5 of 5

Thread: ADC filter

  1. #1
    Join Date
    Feb 2005
    Location
    Portugal
    Posts
    79

    Default ADC filter

    I want to implement a filter into my ADC measurement, because my display second digit is always changing. Whatīs the best way to do it and have a correct value?
    I'm using PIC16F872 with ADC 10bits.
    Thank you.

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


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default

    Take a number of samples, sum and average...

    Personally, I take it a stage further..

    1. Take a number of samples... eg 16...
    2. Sort in numeric Sequence...
    3. Junk the Top Four and Bottom Four (this removes any serious anomalies)...
    4. Sum and average the eight remaining...

  3. #3
    Join Date
    Feb 2005
    Location
    Portugal
    Posts
    79


    Did you find this post helpful? Yes | No

    Default Average

    I already did that... When I posted the question I realized the solution
    But I canīt take more than 12 samples and make the average, because my display brightness decrease! The ideia to remove the Top Four and Bottom Four itīs great, i already didnīt do that!
    Regards
    Leonel Monteiro

  4. #4
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Refresh the LED display between the samples.

  5. #5
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    The software-only solution sounds great, but if you'd rather not deal with the extra code, how about a 0.1 uf (or larger) capacitor across the input?

    Regards,

    Anand

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. Atod Digital Filter
    By GeoJoe in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd April 2008, 17:04
  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