Author Topic: Simulating Multiple Feedback Low Pass filter in LTSPICE!  (Read 10633 times)

0 Members and 1 Guest are viewing this topic.

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
Simulating Multiple Feedback Low Pass filter in LTSPICE!
« on: October 13, 2011, 12:37:27 pm »
Hi all, again!

I am trying to simulate the follwoing circuit in LTSpice IV. What I am looking for is overall performance in frequency domain.



I downloaded and readed a lot of LTSpice guides, but none of them were speaking about how to do for this kind of circuit. If you know how-to, I would really appriciate yuor help! Maybe it is stupid but I do not know what voltage source (AC, DC, sine or ...) I should use and I do not know which simulation type will be what I need.

I have attached the schematic design, if you want to look.
EMBEDONIX - Embedded Systems, Linux and good stuff!
 

Offline jahonen

  • Super Contributor
  • ***
  • Posts: 1054
  • Country: fi
Re: Simulating Multiple Feedback Low Pass filter in LTSPICE!
« Reply #1 on: October 13, 2011, 01:42:10 pm »
Unless you want to use your own model for the opamp, I suggest you use suitable LT opamp in simulation. Or if you want just theoretical result, then substitute E (voltage controlled voltage source) component for the opamp and give it a very big gain (something like 10^12 or similar).

Another thing, delete the f's in capacitor values. LTSpice might complain about them.

Regards,
Janne
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: Simulating Multiple Feedback Low Pass filter in LTSPICE!
« Reply #2 on: October 13, 2011, 05:13:32 pm »
Treat it like you want to measure a real circuit. You decide what you want to measure. From there it follows what input signal(s) you need to apply, what type of simulation you want to run, and for how long or over what range (not all applicable).
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
Re: Simulating Multiple Feedback Low Pass filter in LTSPICE!
« Reply #3 on: October 13, 2011, 05:35:06 pm »
Thanks for caring guys :P

I want to see how is the frequency responce. Actually I am trying to design a filter and I amfollowing this guide. I managed to do the calculations and it seems to be like what I need it to be.

The problem now is simulating the circuit in LTSPICE! Luckly I have found this site that plots the frequency responce, and it is like this:



But when I am trying to simulate this circuit by myself using LTSPICE, I get something like this:


And here is the schematic and setting for the circuit I designed in LTSPICE as well as simulation commands:


The opamp, I right clicked and changed "Aol" to 100M, that is 100,000,000
There was another option in the opamp called GBW which is set by default to 10Meg

For voltage source I just put 1 in AC Amplitude

Can you please tell me what I am doing wrong? how can I get a similar result to the plot generated by that website?

Thanks!
EMBEDONIX - Embedded Systems, Linux and good stuff!
 

Offline jahonen

  • Super Contributor
  • ***
  • Posts: 1054
  • Country: fi
Re: Simulating Multiple Feedback Low Pass filter in LTSPICE!
« Reply #4 on: October 13, 2011, 06:37:10 pm »
Try changing your simulation command to ".ac dec 500 1 1meg" and remove "F"'s in capacitance values. Further, you are missing a connection dot in crossing of R1-R2-R3-C2.

Regards,
Janne
 

Offline qno

  • Frequent Contributor
  • **
  • Posts: 422
  • Country: nl
Re: Simulating Multiple Feedback Low Pass filter in LTSPICE!
« Reply #5 on: October 13, 2011, 07:27:28 pm »
Hi all,

I think a junction is missing between R3 and R1 in the simulation schematic.
Why spend money I don't have on things I don't need to impress people I don't like?
 

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
Re: Simulating Multiple Feedback Low Pass filter in LTSPICE!
« Reply #6 on: October 13, 2011, 07:49:23 pm »
yeah guys, I was so stupid to miss that node :P anyway after putting that node in the junction I got the following plot, but it is not still the same as the generated file from that website. (I also used the commands janne gave). What can be the problem?

EMBEDONIX - Embedded Systems, Linux and good stuff!
 

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
Re: Simulating Multiple Feedback Low Pass filter in LTSPICE!
« Reply #7 on: October 14, 2011, 07:33:13 am »
Well after some investigation I found out the last plot I posted here (above post) is correct.

Now can somone please tell what kind of information this plot can give to us? whats up with all these curves?

Can we see the gain and cutoff frequency here?
EMBEDONIX - Embedded Systems, Linux and good stuff!
 

Offline ejeffrey

  • Super Contributor
  • ***
  • Posts: 3717
  • Country: us
Re: Simulating Multiple Feedback Low Pass filter in LTSPICE!
« Reply #8 on: October 14, 2011, 08:57:27 am »
It looks like the gain is 6 dB (2x gain) and the 3 dB point is around 200 Hz.  The amplifier is inverting, so the phase at DC is 180 degrees.  It is a second order filter, so the slope in the stop band is 40 dB/decade, and the phase shift in the stop-band is 0 degrees: 180 from the inverting nature, and an additional 90 degrees from each order.  The bumps in the phase response don't mean much.  The transition band (curved region of the amplitude plot) is fairly wide with gentle phase response, so this is a low Q filter.  It will be insensitive to component variation and won't screw up your time domain waveform too much, but it won't attenuate signals unless they are well above the pass band.
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: Simulating Multiple Feedback Low Pass filter in LTSPICE!
« Reply #9 on: October 14, 2011, 04:55:42 pm »
Now can somone please tell what kind of information this plot can give to us? whats up with all these curves?

Guess why I wrote you should think about what to measure first? Now you have some plot and don't know what to do with it.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline Conrad Hoffman

  • Super Contributor
  • ***
  • Posts: 1930
  • Country: us
    • The Messy Basement
Re: Simulating Multiple Feedback Low Pass filter in LTSPICE!
« Reply #10 on: October 14, 2011, 08:21:40 pm »
Here's one that's fun. To get a steeper response you can build a 4-pole filter with just a single opamp. This one is the Butterworth version and you can scale the resistors and capacitors for whatever frequency you like. Enter exactly as shown, at least the first time around.

 

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
Re: Simulating Multiple Feedback Low Pass filter in LTSPICE!
« Reply #11 on: October 15, 2011, 12:41:48 pm »
It looks like the gain is 6 dB (2x gain) and the 3 dB point is around 200 Hz.  The amplifier is inverting, so the phase at DC is 180 degrees.  It is a second order filter, so the slope in the stop band is 40 dB/decade, and the phase shift in the stop-band is 0 degrees: 180 from the inverting nature, and an additional 90 degrees from each order.  The bumps in the phase response don't mean much.  The transition band (curved region of the amplitude plot) is fairly wide with gentle phase response, so this is a low Q filter.  It will be insensitive to component variation and won't screw up your time domain waveform too much, but it won't attenuate signals unless they are well above the pass band.

Thanks, but would you mind to tell how you got this info? would be really nice if you mark them in the picture and upload it again here if you feel for it :P
EMBEDONIX - Embedded Systems, Linux and good stuff!
 

Offline Conrad Hoffman

  • Super Contributor
  • ***
  • Posts: 1930
  • Country: us
    • The Messy Basement
Re: Simulating Multiple Feedback Low Pass filter in LTSPICE!
« Reply #12 on: October 15, 2011, 03:02:27 pm »
One of the fundamentals needed to read these graphs is an understanding of the dB system. Do you understand dB- if not, we need to start with that.
 

Offline sean87Topic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: nl
  • EE WannaBee
    • EMBEDONIX
Re: Simulating Multiple Feedback Low Pass filter in LTSPICE!
« Reply #13 on: October 15, 2011, 03:22:38 pm »
One of the fundamentals needed to read these graphs is an understanding of the dB system. Do you understand dB- if not, we need to start with that.

Thanks Conrad, I know how dB is. Just knowing the plot I got would be nice!
EMBEDONIX - Embedded Systems, Linux and good stuff!
 

Offline Conrad Hoffman

  • Super Contributor
  • ***
  • Posts: 1930
  • Country: us
    • The Messy Basement
Re: Simulating Multiple Feedback Low Pass filter in LTSPICE!
« Reply #14 on: October 15, 2011, 07:36:38 pm »
If you look over on the left side scale, that's the ratio of the signal source amplitude to where ever you clicked to make a measurement, hopefully the output. Note that the input and output labels serve no function here. They're used to connect to other circuit blocks, or just to help identify the nodes.

Filters are specified by the -3dB point, so you follow the gain curve from left to right until it drops by 3dB. At that point, go down to the frequency scale at the bottom and read off the frequency. Now you know the -3dB point.

The filter order determines many things, like the attenuation in dB/octave or dB/decade that ejeffrey gave. The phase plot is read in degrees on the right hand side of the graph. Though digital filters can do some strange things, analog filters are very constrained. Just knowing the order and construction of the filter tells you what the phase plot will look like, without even simulating it.
 

Offline codeboy2k

  • Super Contributor
  • ***
  • Posts: 1836
  • Country: ca
Re: Simulating Multiple Feedback Low Pass filter in LTSPICE!
« Reply #15 on: October 24, 2011, 07:24:54 am »
I'm a little late in this thread, but from reading, I think Conrad has just completed someone's homework for them,
including telling them how to read the basic Bode plot.

The OP doesn't sound like he even knows the basics of filters and how to sweep the input to get a frequency response
output.. he doesn't even know what he's got, once he got it.

:(

Thumbs down to anyone using the Internet for their homework.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf