New software filter for adc reading


Results 1 to 30 of 30

Threaded View

  1. #23
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: New software filter for adc reading

    Thank you Darrel for such a quick answer. I will keep thinking what else I could do for further improvment.

    As far as the running average is concerned, a way to have a faster answer could be:

    Code:
    ADCIN chan,ADVal
    
    If RAv = 0 then
    RAv = ADVal
    ELSE
    RAv = (RAv*15 + ADVal)/16
    ENDIF
    In this way you load the variable with the raw value and then you smooth it. Just thinking!

    Cheers

    Al.
    Last edited by aratti; - 15th January 2013 at 16:23.
    All progress began with an idea

Similar Threads

  1. Help with multiple ADC inputs
    By wdmagic in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 4th January 2013, 01: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, 15:33
  3. Filter for PWM
    By Tobias in forum General
    Replies: 1
    Last Post: - 24th August 2008, 11:26
  4. Replies: 3
    Last Post: - 26th November 2006, 22:47
  5. ADC filter
    By leonel in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th May 2005, 18:46

Members who have read this thread : 8

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