Average Values and digital filter ...


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231


    Did you find this post helpful? Yes | No

    Default Averaging lots of numbers

    Hi all,
    I have the need to slow things down a bit. I'm running a 18F1330 at 32 MHz executing a sense loop for ultrasonics each 32 mS. I have tried to use DT's averaging routine with a 250 reading average, but it still reacts way too fast. I need to dampen it to a 2 or 3 second response so that it doesn't drive the mechanical parts nuts.

    It doesn't look like I can just change the AvgCount to a larger variable without messing it up.

    Anybody ran into this before?

    Thanks for any input while I try and think through this.
    Bo

  2. #2
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231


    Did you find this post helpful? Yes | No

    Default Progress

    After looking closely at my code, I realized that I had tried to tweak DT's code.... as always, likely a mistake....

    Went back to the original and it is working more like need. Further testing.

    Move along, Nothing to see here.
    Bo

Similar Threads

  1. Funny PULSIN values: what is going on???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th April 2008, 08:02
  2. 16F877A problem: "coupled" digital values
    By Lupo83 in forum General
    Replies: 16
    Last Post: - 4th December 2007, 12:46
  3. 2nd Order Digital Filter for 24-bit
    By sefayil in forum mel PIC BASIC
    Replies: 0
    Last Post: - 2nd December 2005, 21:55
  4. digital filter
    By yasser hassani in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th September 2004, 01:28
  5. implementig digital filter and my problems????????
    By yasser hassani in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 2nd June 2004, 18:06

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