+ Reply to Thread
Results 1 to 12 of 12

Thread: Lowpass active filter failing at the lower range

  1. #1
    atferrari Good atferrari Good atferrari Good
    Join Date
    Oct 2003
    Location
    Buenos Aires - Argentina
    Posts
    573

    Default Lowpass active filter failing at the lower range

    Please let me ask about this without showing any circuit, YET.

    There is an active 4-poles Sallen Key lowpass filter. Cut off freq (-3 db) = 740 Hz. Both LM 358 opamps fed with +/- 9 V and duly filtered.

    At the input, the signal from a network of 12 resistors driven by CMOS shif registers generating sine sequence of 24 voltage steps. Their output is referred to ground and so input to filter properly centered on 0V.

    To my surprise, from 120 Hz to 500 Hz (upper limit of this design), filter output is remarkably smooth and looks OK, but going down from 120 to 10 Hz, the filter output is more and more jagged (one peak for every step at the input).

    My question= is it any typical reason for this filter to behave like this? What would you check first in a case like this?

    Just in case, please note that I tried two designs already: one with equal value resistors and the current one designed with Filterlab from Microchip.

    I am far from my bench so posting values/circuits is not feasible by now.

    My intention was to generate those steps in LT Spice to see what could be the reason but (see my post somewhere below) could not find how yet.

    Do lowpass filters behave like this?
    Agustín Tomás
    In theory, there is no difference between theory and practice. In practice, however, there is.


  2. #2
    Leftyretro Excellent Leftyretro Excellent Leftyretro Excellent Leftyretro Excellent
    Join Date
    Mar 2007
    Location
    Hercules, California
    Posts
    1,420

    Default

    Quote Originally Posted by atferrari
    Please let me ask about this without showing any circuit, YET.

    There is an active 4-poles Sallen Key lowpass filter. Cut off freq (-3 db) = 740 Hz. Both LM 358 opamps fed with +/- 9 V and duly filtered.

    At the input, the signal from a network of 12 resistors driven by CMOS shif registers generating sine sequence of 24 voltage steps. Their output is referred to ground and so input to filter properly centered on 0V.

    To my surprise, from 120 Hz to 500 Hz (upper limit of this design), filter output is remarkably smooth and looks OK, but going down from 120 to 10 Hz, the filter output is more and more jagged (one peak for every step at the input).

    My question= is it any typical reason for this filter to behave like this? What would you check first in a case like this?

    Just in case, please note that I tried two designs already: one with equal value resistors and the current one designed with Filterlab from Microchip.

    I am far from my bench so posting values/circuits is not feasible by now.

    My intention was to generate those steps in LT Spice to see what could be the reason but (see my post somewhere below) could not find how yet.

    Do lowpass filters behave like this?
    "My question= is it any typical reason for this filter to behave like this? What would you check first in a case like this?"


    Yes, at the lower frequencies you are testing at there will be harmonics that are still within the passband of your low pass filter. What you are seeing is harmonic distortion that passes within your low pass filter.

    Lefty

  3. #3
    speakerguy79 Excellent speakerguy79 Excellent speakerguy79 Excellent speakerguy79 Excellent speakerguy79 Excellent speakerguy79 Excellent speakerguy79 Excellent
    Join Date
    May 2007
    Location
    USA
    Posts
    1,414

    Default

    That sounds like the system is operating exactly as designed

    The Fourier series for a square wave is sin(x) + 1/3*sin(3x) + 1/5*sin(5x) + ..... for all odd numbers. You sine wave is a stepped function, which is similar to a square wave insofar as the incremental steps of the sine wave function will have higher frequency content than the fundamental and your output will have jaggies. You could actually calculate the DFT of your signal mathematically if you really wanted to to get its Fourier series and figure out what harmonics are/aren't getting through your lowpass filter, but that's getting way to deep into the problem. If you double the output rate (samples/second) and add 1 bit depth (twice as many steps) you will keep the fundamental constant but smooth out the output sine wave.

    Question is, do you want us to help you fix it? Increasing the output rate (number of steps per second) and bit resolution (number of steps your amplitude is divided into) will help you smooth it out while keeping the frequency constant.

    Apologies if you already know this stuff, you likely do since you're working on something like this anyway.
    Last edited by speakerguy79; 18th July 2007 at 08:25 PM.

  4. #4
    audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent
    Join Date
    Mar 2004
    Location
    Canada, of course!
    Posts
    19,881

    Default

    As I mentioned on another forum, if the filter is a Butterworth type then it boosts frequencies near its cutoff frequency.

    With a 10Hz input and only 24 steps then the first harmonic is only 230Hz which is well within the passband of the filter.

    It needs more steps.
    Uncle $crooge

  5. #5
    speakerguy79 Excellent speakerguy79 Excellent speakerguy79 Excellent speakerguy79 Excellent speakerguy79 Excellent speakerguy79 Excellent speakerguy79 Excellent
    Join Date
    May 2007
    Location
    USA
    Posts
    1,414

    Default

    How does a butterworth filter have gain around Fc? I know from acoustics that a HP and LP BW filter will sum to greater than unity but a single BW filter alone should be flat across its bandwidth.

  6. #6
    audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent
    Join Date
    Mar 2004
    Location
    Canada, of course!
    Posts
    19,881

    Default

    Four separated single pole filters have a loss of 12db at the cutoff frequency. A Butterworth filter has positive feedback at the cutoff frequency which boosts the level up so the loss is only 3dB. So the boost is 9dB.
    The boost causes ringing at the cutoff frequency.
    Uncle $crooge

  7. #7
    Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent Roff Excellent
    Join Date
    May 2003
    Location
    Idaho, USA
    Posts
    6,725

    Default

    A true Butterworth has no peaking in the Bode plot. Any lowpass filter with abrupt cutoff will exhibit Gibbs phenomenon, which exhibits itself as ringing in the time domain.
    Ron


  8. #8
    audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent
    Join Date
    Mar 2004
    Location
    Canada, of course!
    Posts
    19,881

    Default

    Quote Originally Posted by Roff
    A true Butterworth has no peaking in the Bode plot.
    A single RC network has a Q of 0.5 so it doesn't ring. A Butterworth filter has positive feedback which creates a Q of 0.707 and boosts the loss at the cutoff frequency to only 3dB.
    Uncle $crooge

  9. #9
    speakerguy79 Excellent speakerguy79 Excellent speakerguy79 Excellent speakerguy79 Excellent speakerguy79 Excellent speakerguy79 Excellent speakerguy79 Excellent
    Join Date
    May 2007
    Location
    USA
    Posts
    1,414

    Default

    The ringing is not due to any boost but rather simply the increased rate of amplitude change around Fc. Talking about a filter in terms of boost relative to a critically damped system isn't a good way to think of filters I think, Bode plots, transfer function equations and pole/zero plots are more informative I think.

  10. #10
    audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent
    Join Date
    Mar 2004
    Location
    Canada, of course!
    Posts
    19,881

    Default

    I use a second-order Sallen and Key highpass filter with too much boost to make a bass boost circuit. The pot adjusts how much positive feedback there is. I set them for +10dB at 30hz.
    Attached Images
    Uncle $crooge

  11. #11
    atferrari Good atferrari Good atferrari Good
    Join Date
    Oct 2003
    Location
    Buenos Aires - Argentina
    Posts
    573

    Default Links to circuirt and pictures

    Thanks to both for replying.

    Speakerguy79

    The first file is the circuit and the other four are pictures taken when output frequency was appr 77 Hz.

    http://img374.imageshack.us/img374/5...circuitdk1.png

    Network not loaded by filter
    http://img514.imageshack.us/img514/3...networkvv4.jpg

    Network loaded by filter
    http://img404.imageshack.us/img404/4...networkob0.jpg


    After filter, before RC passive highpass
    http://img412.imageshack.us/img412/2...eforercvo2.jpg

    After RC passive
    http://img413.imageshack.us/img413/3928/afterrcdv2.jpg

    I can see that I would end redesigning everything. I prefer not to increase the number of steps. Do I have other chances even if using a more complex filter?

    Last edited by atferrari; 21st July 2007 at 08:42 AM. Reason: Changing links
    Agustín Tomás
    In theory, there is no difference between theory and practice. In practice, however, there is.

  12. #12
    audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent
    Join Date
    Mar 2004
    Location
    Canada, of course!
    Posts
    19,881

    Default

    Maxim make some simple to use switched-capacitor lowpass filter ICs that have up to 8 poles. You feed in a square-wave and they output a low distortion sine-wave.

    I made a very low distortion sine-wave generator with a stepped sine-wave filtered by a switched capacitor filter.
    Uncle $crooge

+ Reply to Thread

Similar Threads

  1. Elec. mic. array with active filter and amp.
    By Pax Writer in forum Electronic Projects Design/Ideas/Reviews
    Replies: 19
    Latest: 24th June 2007, 04:40 PM
  2. Z8 Encore Error index out of range
    By mootaccount in forum Micro Controllers
    Replies: 2
    Latest: 17th October 2006, 02:23 PM
  3. Active filter project 90% complete.
    By Juglenaut in forum General Electronics Chat
    Replies: 29
    Latest: 22nd April 2005, 11:40 PM
  4. Massive ERRORS in program. URGENT HELP NEEDED.
    By davepusey in forum Micro Controllers
    Replies: 8
    Latest: 18th May 2004, 04:13 AM
  5. Help with Active Bandpass Filter
    By Gandledorf in forum General Electronics Chat
    Replies: 8
    Latest: 3rd February 2004, 06:24 PM

Tags for this Thread