Hi everybody,
I have to simulate a circuit for one-channel EEG signal conditioning. Basically I have to use a band pass filter, a notch filter and an instrumentation amplifier.
I was able to simulate a bandpass filter response, and I have used two Sallen Key filters in series (the first high pass and the second low pass). I expect that outside the bandpass (set to 0.1-70 Hz) the slope of the V(bandpass) magnitude is -40dB/dec, instead is like 5dB/dec. Can you understand why?
Here there is my schematic:
The weird thing is that if I put a resistor between the negative input of the first OpAmp and ground, the slope of the first part of the graph increases and I obtain this plot:
It may help if you apply power to the power pins of your opamps.
Also:
Where do your opamps come from?
Do they have the right spice model attached?
It is very common for opamps, that the pin numbers on your schematic do not coincide with the pins of the spice simulation, you will have to look into that too.
I tried powering the Opamps with 5 and -5 V, but it wasn’t working at all. Maybe because I was using the same power supplies for both the Opamps?
Anyway, I also tried using 4 different power supplies, 2 of 5 V and 2 of -5 V. I obtained the same plot. I took the model from here http://www.ti.com/lit/zip/snom255 (from this tutorial, example 4 http://ngspice.sourceforge.net/ngspice-eeschema.html). I rearranged the pins in the right order using an option in Kicad which allows to put them by hand.
Also, if I try a simple opamp Circuit with only resistances trying to have a gain of 10, I obtain something with no sense (like 4000 gain). So I think that there is something that I’m missing about the Opamps.
The slopes on the filter skirts appear to be correct.
(I used the TL071 opamp instead of the LF356 because its model was in my default library on this machine, and the LF356 was not. There are other reasons for preferring the TL071, and an Astute Student may ask about them.)
I would say your circuit design is usable. Your problem is likely to be in your use of the simulation tool, or possibly in your model for the LF356.
Are you a student? (Either formally enrolled in a course, or an autodidact?) This design is what I would expect from a slightly above-average student in an introductory Devices course, or Circuits sequence.
Thank you so much @dchisholm!
At the end I used LTSpice and I had no problems at all (using the same Spice models). I have no idea of the reason why in Kicad it wasn’t working.