Low pass filter failing at the lower range
Low pass filter failing at the lower range
(OP)
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?
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





RE: Low pass filter failing at the lower range
RE: Low pass filter failing at the lower range
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Low pass filter failing at the lower range
YES!
Your circuit is working as designed. You have a low pass filter at 740Hz. It will not filter signals at 500Hz and below. Why does it work for your 120Hz signal? Well, you are reconstructing the 120Hz. This requires higher frequency components such as double, treble and other integer multiples of the fundamental frequency. Google "harmonics".
As you go lower in frequency you get less and less filtering of the harmonics. The steps in the waveform are high frequency signals (harmonics).
RE: Low pass filter failing at the lower range
You could try scaling down the filter when generating lower frequencies. I have seen this done by using SPST IC switches to add-to or double the capacitor values to cut in half the filter cutoff frequency.
Also, if you are varying some clock to change your signal, then you might look at using a switch-cap filter IC for your filter. By varying the clock to a switch-cap filter IC, you vary the cutoff frequency. If you scale your clock correctly between your signal generating circuit and your switch cap filter, then the filter will track the generated signal.
RE: Low pass filter failing at the lower range
Perhaps the OP can submit a schematic or point to one on the web. Perhaps your filter is actually a bandpass filter, and not a low-pass filter
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Low pass filter failing at the lower range
He says that he is applying a step wave form to a low pass filter with a 740Hz cutoff freq. He says that with inputs with a fundamental between 120 and 500 Hz that the output looks good. I take this to mean that he is seeing a relatively smooth sine wave of the fundamental frequency. As was already pointed out, this would be expected since at least most of the harmonics (depending on input freq) are being significantly attenuated. At low input frequencies, 10Hz-120Hz the output looks choppy which of course it would sine the 3rd and 5th and likely even the 7th harmonic are clearly in the pass band.
RE: Low pass filter failing at the lower range
Presumably, the OP would still recognize his blocky sine wave. A "peak" would imply a differentiation of the steps in the waveform, implying a highpass behavior at the lowest frequencies.
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Low pass filter failing at the lower range
Get a network analyzer (or even a swept sine source and a scope) and measure the response.
RE: Low pass filter failing at the lower range
Their names are self explanatory, I hope.
htt
htt
htt
htt
http
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
RE: Low pass filter failing at the lower range
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Low pass filter failing at the lower range
My circuit
h
Network not loaded by filter
h
Network loaded by filter
http://img
After filter, before RC passive highpass
http://
After RC passive
http
Agustín Tomás
RE: Low pass filter failing at the lower range
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: Low pass filter failing at the lower range
The 2 uF along with 5.4 kOhms (27k in parallel with 6.8k) rolls off below about 15 Hz, which is is pretty low, probably showing up in the phase shift between the fundamental frequency and the ripple in your last two pictures.
RE: Low pass filter failing at the lower range
Even then, the comments about higher harmonics passing through the filter at the lower frequencies probably still apply and you will never fully get rid of the level steps with this approach.
R18+R19 are effectively in parallel with R17 making the frequency of that circuit much lower than you probably expected too.
Basically,
The filter load is changing the nice "steps" of your source to those peaked shapes.
The high roll off frequency of the filter is passing the distorted steps to the output.
The highpass frequency of the DC decoupling? capacitor/resistor circuit is then distorting the signal a bit more.
What is the purpose of the circuit? There are likely easier ways to generate a sinewave such as using a higher frequency PWM that is easy to filter. Or, find a function generator IC that does what you want.