Distortion in Active Low Pass Filter

Thread Starter

Green Bean

Joined Mar 31, 2017
126
There is something we do not understand here.

If I take a sine and feed it ac coupled into input buffer/bias network, I should see that exact
waveform out, offset Vcc/2 due to bias network. If this is not happening some part
is faulty.

Then if that is passed to a unity G LP filter, in band, that sine signal should also
appear on output of filter, same Vcc/2 offset, same amplitude, no distortion. If those
conditions are not met again some part is faulty.

Try this with sine if you can.

Regards, Dana.
Is it unity gain though? Doesn't the fact that there is resonance mean that signals near the cutoff will be amplified? What resistance should I set the digipots to and what frequency should I use for these tests? Also, will a heavily filtered square wave be ok? That's the only method of getting a sine wave that I have unfortunately.

I will definitely try switching out parts when I get back to work here, specifically those opamps.
 

danadak

Joined Mar 10, 2018
4,057
Yes, circuit is basically unity G. The AC response, due to input 100 nF cap,
is a low Q BPF. I simed a G overall slightly less that 1.

Where did you get OpAmps, not a Chinese knockoff ? Their parts are not
always functional to spec.

Regards, Dana.
 

Thread Starter

Green Bean

Joined Mar 31, 2017
126
Yes, circuit is basically unity G. The AC response, due to input 100 nF cap,
is a low Q BPF. I simed a G overall slightly less that 1.

Where did you get OpAmps, not a Chinese knockoff ? Their parts are not
always functional to spec.

Regards, Dana.
I got them from Mouser, so I think they're legit. Could you run the simulation with a square wave and report back with results? That would be a lot easier for me to replicate.
 

Thread Starter

Green Bean

Joined Mar 31, 2017
126
It is only the lower frequencies that are clipping then reduce the input level until they do not clip.
That sounds logical but why is the top only getting clipped sometimes and then other times also the bottom? I might add another digipot to attenuate the signal, that way I can adjust the strength of the signal depending on the resonance, so that signals without much resonance will have close to the same volume as signals with high resonance (I can do this with code remember).
 

Thread Starter

Green Bean

Joined Mar 31, 2017
126
What about R3 and R4?

EDIT: I guess even I forgot about them in my new schem. But they are still in the actual circuit, between the filter output and opamp inverting input and the inverting input and ground.

(Original circuit):

Sorry about that lol.
 

danadak

Joined Mar 10, 2018
4,057
That makes a big difference because your prior schematic had
buffer there, G = 1. If R3 = R 4 then G = 2.

Here is a sim of that, attached.

The output clips because circuit as shown gains up the offset of 2.5 out
of buffer x 2. Solution, 1) Lower offset at input of buffer 2) AC couple
from buffer to input of filter so it removes DC offset.

Regards, Dana.
 

Attachments

danadak

Joined Mar 10, 2018
4,057
Here is circuit with offset bias divider changed to lower offset out of input buffer.

So if you try to take more G (more than 2) in output stage you have to lower
bias because that gets gained up by filter G and causes clipping. Or set bias
at 2.5 and AC couple the buffer out to the filter input.

Or raise the Vcc on the OpAmps to give more dynamic range.

Regards, Dana.
 

Attachments

Last edited:

MisterBill2

Joined Jan 23, 2018
28,656
In all op-amp circuits there is a limit to the signal amplitude that they can handle. And while I have just now found this thread, I can suggest that an easy experiment would be to reduce the input signal and see if at some point the distortion is reduced. Overloading, which is driving the system beyond the linear operation levels, will always produce distortion. And like has been pointed out, even if it is a low amplitude, if the input signal is near one of the edges of non-linear operation, there can be distortion.
 

Audioguru

Joined Dec 20, 2007
11,248
Your input has even and odd harmonics. An even harmonic is not symmetrical but an odd harmonic is symmetrical. Then even harmonics will clip only one polarity but odd harmonics clip both polarities equally.

You are making a Sallen Key lowpass filter without learning about it. I think you want a flat Butterworth response, not one with a low Q that is droopy and not with a Q too high that has a peak. Look at this:
 

Attachments

Thread Starter

Green Bean

Joined Mar 31, 2017
126
Nono I do want the peak, I want to be able to have high resonance. I'm trying to make a synthesizer and want high resonance to get a nice bass sound. Actually, even with the distortion it sounds ok, but it sounds horrible on the higher octaves with the clipping.
 

Thread Starter

Green Bean

Joined Mar 31, 2017
126
In all op-amp circuits there is a limit to the signal amplitude that they can handle. And while I have just now found this thread, I can suggest that an easy experiment would be to reduce the input signal and see if at some point the distortion is reduced. Overloading, which is driving the system beyond the linear operation levels, will always produce distortion. And like has been pointed out, even if it is a low amplitude, if the input signal is near one of the edges of non-linear operation, there can be distortion.
Yes I know. Now I'm just trying to find the best way to attenuate the signal so there isn't any clipping. Also, sometimes I won't want such high resonance so I'm thinking of making a variable attenutor with another digipot. If I had a fixed attenutor, the signals would be too quiet if I turned down the resonance, so I'd like to attenuate them less depending on how much the resonance is turned down.
 

danadak

Joined Mar 10, 2018
4,057
You have the wrong topology if you want a BPF, unless you are
striving for peaking response on a LPF ? This is BPF architecture -



LPF with peaking -



If you plan on changing the Q then you will have to implement some form
of AGC. Or consider the distortion a "feature".

Regards, Dana.
 
Last edited:

Thread Starter

Green Bean

Joined Mar 31, 2017
126
You have the wrong topology if you want a BPF, unless you are
striving for peaking response on a LPF ? This is BPF architecture -



LPF with peaking -



If you plan on changing the Q then you will have to implement some form
of AGC. Or consider the distortion a "feature".

Regards, Dana.
I don't want a band pass, just the resonant low pass. And yes AGC is what I am trying to figure out with a digipot. I need to know where to put a divider in this whole thing in order to completely elimininate the clipping without interfering with the filter. Where? And should it just be a simple passive attenuator, or do I need something more complex?
 

Audioguru

Joined Dec 20, 2007
11,248
The resonance of a high Q lowpass filter occurs at the highest frequency. For boosted bass resonance you want a high Q highpass filter.
I used the resonance of a highpass filter as the bass boost for my stereo.
 

Attachments

Audioguru

Joined Dec 20, 2007
11,248
The maximum input level is the added levels of all the input signals that have the same frequency and same phase.
AGC adjusts the level but it takes time to react so the beginning of a high level produces clipping. AGC is done by rectifying and filtering the signal and the resulting varying DC drives a voltage controlled amplifier.
 

danadak

Joined Mar 10, 2018
4,057
Predictive AGC ? Using a differentiator in a control loop, given that
at audio rates we have lots of time for calculations (if we do it digitally).
But then when do we consider AGC another form of distortion if fast
acting. In AM com work fast acting AGC distortion can be distinguished.

The resonance of a high Q lowpass filter occurs at the highest frequency.
That's true if designed that way, and very high order filter (brickwall).

Regards, Dana.
 
Last edited:
Top