New software filter for adc reading


Results 1 to 30 of 30

Threaded View

  1. #25
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: New software filter for adc reading

    I agree!
    That Avg = (Avg*15 + ADval)/16 running average is only going to work with floating point math.
    It's surprising how many times we've seen it used around here in an integer only language.

    Charlie, I don't think setting it to ADval first will help, because it is likely to still be a short distance from the real value.
    And it's when it's close to the real value that it doesn't move anymore, so it would never get any closer than that first reading.
    Last edited by Darrel Taylor; - 15th January 2013 at 15:30.
    DT

Similar Threads

  1. Help with multiple ADC inputs
    By wdmagic in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 4th January 2013, 00:27
  2. Need help on ADC : Software R/C filter
    By luminas in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 27th November 2010, 14:33
  3. Filter for PWM
    By Tobias in forum General
    Replies: 1
    Last Post: - 24th August 2008, 10:26
  4. Replies: 3
    Last Post: - 26th November 2006, 21:47
  5. ADC filter
    By leonel in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th May 2005, 17:46

Members who have read this thread : 7

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