Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 18th July 2007, 07:29 PM   (permalink)
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.
atferrari is offline   Reply With Quote
Old 18th July 2007, 07:52 PM   (permalink)
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
Leftyretro is offline   Reply With Quote
Old 18th July 2007, 08:17 PM   (permalink)
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.
speakerguy79 is online now   Reply With Quote
Old 18th July 2007, 09:35 PM   (permalink)
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
audioguru is offline   Reply With Quote
Old 18th July 2007, 10:38 PM   (permalink)
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.
speakerguy79 is online now   Reply With Quote
Old 19th July 2007, 12:23 AM   (permalink)
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
audioguru is offline   Reply With Quote
Old 19th July 2007, 02:48 AM   (permalink)
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

Roff is offline   Reply With Quote
Old 19th July 2007, 03:17 AM   (permalink)
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
audioguru is offline   Reply With Quote
Old 19th July 2007, 01:24 PM   (permalink)
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.
speakerguy79 is online now   Reply With Quote
Old 19th July 2007, 03:18 PM   (permalink)
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
File Type: png Bass Extension circuit.PNG (24.8 KB, 10 views)
__________________
Uncle $crooge
audioguru is offline   Reply With Quote
Old 21st July 2007, 12:13 AM   (permalink)
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?

__________________
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.

Last edited by atferrari; 21st July 2007 at 08:41 AM. Reason: Changing links
atferrari is offline   Reply With Quote
Old 21st July 2007, 12:55 AM   (permalink)
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
audioguru is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


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



All times are GMT. The time now is 06:16 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.