diyAudio

diyAudio (http://www.diyaudio.com/forums/)
-   Software Tools (http://www.diyaudio.com/forums/software-tools/)
-   -   Need help with LT spice op amp connections (http://www.diyaudio.com/forums/software-tools/229326-need-help-lt-spice-op-amp-connections.html)

Amit_112dB 4th February 2013 03:36 PM

Need help with LT spice op amp connections
 
My input signal is 0.7 volts and the amp amplifies by a factor of 10.
I decide the output signal by 10 and then feed it to inverting end of op amp
and the original signal at non inverting end of op amp.
I want to get difference between the 2 signals but i am getting a square wave as op amp seems to be running in high gain.
How can i set this op amp to unity gain so i get only the difference of 2 signals

http://s11.postimage.org/ctjl148wj/testamp.jpg
upload pic

View image: testamp

Mooly 4th February 2013 03:52 PM

You can't do it as you have shown. The opamp will give a squarewave because the difference between the the two signals is huge (in opamp terms... even if it were only a fraction of a millivolt difference)

I'd have to think about how you would do it... something like an adjustable gain amp differential amp.

Have a look at fig 3 here for ideas. You might need more than one opamp to match and process the signals first.

High_Voltage_Diffamp: Analog Dialogue: Analog Devices

Amit_112dB 4th February 2013 06:36 PM

This helped.
I ended up using 3 op amps

Thank you Mooly

Mooly 4th February 2013 06:42 PM

Well done, its not an easy problem to crack :)

jcx 4th February 2013 07:39 PM

if you just want the diff measurement then you should look at waveform math - in the waveform viewer you can enter equations for trace definitions, multiply, divide, add, subtract any of the node voltages or terminal currents


if you want even more calculating power you can use B sources which create waveforms in the sim that are defined by equations

http://www.diyaudio.com/forums/softw...ml#post1333137

or look over a sim that is only BV equations and .func

http://www.diyaudio.com/forums/multi...ml#post3314826

Amit_112dB 4th February 2013 08:17 PM

Quote:

Originally Posted by jcx (Post 3355960)
if you just want the diff measurement then you should look at waveform math - in the waveform viewer you can enter equations for trace definitions, multiply, divide, add, subtract any of the node voltages or terminal currents


if you want even more calculating power you can use B sources which create waveforms in the sim that are defined by equations

http://www.diyaudio.com/forums/softw...ml#post1333137

or look over a sim that is only BV equations and .func

http://www.diyaudio.com/forums/multi...ml#post3314826

Yes i was able to add subtract/add the waveforms from the output > add trace and then my custom expression.
Will need look more into the B sources

Thanks JCX


All times are GMT. The time now is 08:24 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio


Content Relevant URLs by vBSEO 3.3.2