Why is my circuit simulation software not working properly?

In summary: The one thing that bothered me was that. That 50 Ohm resistor in feedback, too small. But I thought "oh what do I know" :DThe standard 741 op amp can give out 20 mA if I recall.If he did put that 50 ohm resistor in feedback, wouldn't op amp fry? Not to mention that 100 Ohm resistor.
  • #1
Plantis
19
0
Hello

I need to do some simulations before trying to make a real circuit. I was advised to use the free software by Linear Technology. However, it works bad.

I have a circuit with a couple of operational amplifiers(op-amp). According to the first golden rule, an op-amp should keep equal voltage on both inputs. However, it does not do it. As a result, a simulation data is wrong.

Can you suggest me another software? Also, Why can it be that the program doesn't work appropriately.

Thank you, Plantis
 
Engineering news on Phys.org
  • #2
Have you considered you set it up wrong?

Anyway, unless you are ready to spend some money for other circuit simulators, LTspice is the way to go.

But anyway: Proteus ISIS, TINA, National Instruments mutlisim... These cross my mind.

Post a circuit schematics, we might see what the problem is.
 
  • #3
You can get a free demo version of OrCAD PSpice, which is in my opinion way better than LTspice.
 
  • #4
Did you remember the most important three words in your golden rule, "with negative feedback"?
 
  • #5
ColinW said:
Did you remember the most important three words in your golden rule, "with negative feedback"?

Do you mean that op-amp attempts to make not always makes the voltage difference between the inputs zero?

Golden rules:
I. The output attempts to do whatever is necessary to make the voltage difference between the inputs zero.
II. The inputs draw no current.
 
  • #6
Plantis said:
Do you mean that op-amp attempts to make not always makes the voltage difference between the inputs zero?

Golden rules:
I. The output attempts to do whatever is necessary to make the voltage difference between the inputs zero.
II. The inputs draw no current.

How can output do anything to the input, if there is no feedback, negative in our case? Without feedback, its a comparator...
 
  • #7
"an op-amp should keep equal voltage on both inputs. However, it does not do it."

what Colin is saying is:
it is the responsibility of the designer to place the op-amp in a circuit that gives it the ability to force its inputs equal.

if the designer does not succeed at this , the opamp cannot keep them equal, so they will be unequal,
and more often than not that's the trouble.

perhaps if you post a drawing of your circuit , somebody here would offer some pointers.

Linear is a first class outfit. i doubt they have bad software.

when building real circuits ,,,
it is normal to have difficulty when starting out.

at first it doesn't work at all,
then you get it working halfway,
then you get it you think right,
then you find some things you misunderstood or overlooked,
then you get it working great.
then you figure out how to make it better yet.

if world of simulation is similar, i'd say that's good.

second rule: Never give up.
 
  • #8
Bassalisk said:
Have you considered you set it up wrong?

Anyway, unless you are ready to spend some money for other circuit simulators, LTspice is the way to go.

But anyway: Proteus ISIS, TINA, National Instruments mutlisim... These cross my mind.

Post a circuit schematics, we might see what the problem is.

You can find scheme and simulation attached. Thank you

Simulation.jpg - Voltage for point A and B(inputs for U2 op-amp)
pdf file - scheme

Plantis
 

Attachments

  • Simulation.JPG
    Simulation.JPG
    25.8 KB · Views: 482
  • dual_amp_current_v2.pdf
    13.8 KB · Views: 283
  • #9
okay now experiment a little, to gather some observable symptoms for your troubleshooting..


first thing i'd try is set R5 and R6 both to 100 meg-ohms(1e8) and see if it changes output (it should)

easier done with simulator than soldering iron for you, but not for me...
i don't even understand those arguments of SINE(?).

the bright young fellows here will get you going I'm sure.

over and out
 
Last edited:
  • #10
The opamps shown have very low gain because of the low feedback resistor sizes.

Gains are 0.01 or 1/100 and 0.0005 or 1/2000. This would be why it isn't working very well.

The feedback resistors need to be higher and you might start with 100K resistors or higher.
 
  • #11
make it work DC-wise first ?

what must U1's output be to force his -in equal to +in?

can he develop that across R6?
if not, designer has failed to surround U6 with a circuit that let's him force his inputs equal.

oops - out.
 
  • #12
It has a lot of problems at present, but first, the feedback resistors need to be reasonable.

Then there is the effect of two large voltage sources, V4 and V2 in the input circuitry.
 
  • #13
vk6kro said:
It has a lot of problems at present, but first, the feedback resistors need to be reasonable.

Then there is the effect of two large voltage sources, V4 and V2 in the input circuitry.

The one thing that bothered me was that. That 50 Ohm resistor in feedback, too small. But I thought "oh what do I know" :D

The standard 741 op amp can give out 20 mA if I recall. If he did put that 50 ohm resistor in feedback, wouldn't op amp fry? Not to mention that 100 Ohm resistor. Am I any close to right here?
 
  • #14
""Am I any close to right here?""

i think so...
but remember how voltage follower works.
 
  • #15
jim hardy said:
""Am I any close to right here?""

i think so...
but remember how voltage follower works.

Yes, true but voltage follower, has "-" lead connected only to output, and no current flows through that wire (- to output)[only offset currents]. Right? His configuration is a diff amp, and the first one is inverter(I think).
 
  • #16
""but voltage follower, has "-" lead connected only to output, and no current flows through that wire (- to output)[only offset currents]. Right?""

correct.

i plod one step at a time...

i'm focused on U1, trying to get it working as an opamp (i.e. able to make its inputs equal) for DC.
since the current source is a sinewave it'll have zero DC component
and not much DC can come in through R4 because it's so large compared to R2


so in you mind's eye open(or remove) that wire from R4 to U1 - what would be DC voltages at both inputs of U1 then, were U1 working as an opamp?
 
Last edited:
  • #17
The feedback resistors are important because they control the possible gain of the opamps.
They could also overload the opamps but usually these are well protected internally, so they would not be damaged.

This circuit needs to be got going one section at a time. At present, it has no chance of working and a change of simulator isn't going to fix that.

I have tried a couple of other simulators, but LTSpice is excellent. I find it very easy to use and it seems to give good results.
 
  • #18
i think it'd work if R6 were clipped out, or value increased .

R6 loads U1 opamp to point it can't make feedback to balance V2
which let's V4 push U2's output negative...

do you suppose simulation models that?

i was hoping OP would try it out.

but i don't know what those numbers inside SINE(?) argument mean.

teacher pulled a sneaky trick with those diodes, they're both reverse biased unless the sinewave is pretty big..
 
Last edited:
  • #19
I wouldn't worry too much about R6. The opamp type is not given, so we assume the opamp can cope with a 100 ohm load.

Assume that the output of U1 was -15 volts, follow the path R3, R4, R2, and R6. Because of V4 there will be about 0 volts on the input of U2. So it could work like that.

The sinewave is ZERO cycles of 500 Hz sinewave of amplitude 1 mV peak and a DC offset of 10 mV.

I would set the number of sinewaves to 5000, increase the top feedback resistor to 33 K and try it.
 
  • #20
""The sinewave is ZERO cycles of 500 Hz sinewave of amplitude 1 mV peak and a DC offset of 10 mV.""

perhaps not mv but ma? I took that symbol to be a current source... else it shorts out the cap and resistor in parallel with it.
 
  • #21
jim hardy said:
""The sinewave is ZERO cycles of 500 Hz sinewave of amplitude 1 mV peak and a DC offset of 10 mV.""

perhaps not mv but ma? I took that symbol to be a current source... else it shorts out the cap and resistor in parallel with it.

Yes, that would be right. It is probably a printout from a screen dump, and the symbols are correct for current.

Which raises a new question. 1 mA through 100 K is 100 volts. Maybe Plantis could confirm or deny this.
 
  • #22
Thanks v6 !

i'd like to confirm my DC analysis of it, then add in the AC signal.

let us for a moment turn the current sources to zero, they are AC anyhow(sine should have no DC ?)
and take your idea that the opamp has a lot of output capability . maybe it's an LM12 which is about like a 741 except it'll deliver 8 amps.

starting at U1: input + is held at negative 10 by V2(i think i see a minus sign there)
so U1 forces his input - to negative ten
hold that thought

U2 input + is at zero because it's tied to common
so U2 forces his input- to zero

above conditions establish 10 volts across R4
so 100 microamps flow into U1's summing junction through R4
D2 is reverse biased and we temporarily set current source I3 to zero,
so that 100 microamps must leave summing junction through R2,
100 microamps X 50 ohms is 5 millivolts
which means U1's output voltage is more negative than his summing junction by 5 millivolts, for negative 10.005 volts?...

next;
U2's summing junction has 100 microamps leaving through R4
and 150 microamps entering through R3
and D1 is reverse biased and I1 is zero
which means 50 microamps must leave summiing junction through R1
which means U2 output is 50 microamps X 1k ohm = 50 millivolts, negative.

now we can turn on the AC current sources and see what is output.

Since U2 locks his summing junction at constant voltage, zero,
and U1 locks his summing junction at ten volts ,
there can be no AC voltage across R4
so allof I3's AC current must flow out of summing junction through R2

which means the output of U1 is : -10.005 - (50 X I3) volts
where I3 is that sine function current

I3's AC current will flow into U2's summing junction and get added to I1's AC current
and their sum will leave through R1
so U2's output will be: -0.05 - 1000 X (I1 + I3) volts

if the simulation isn't doing this
then something isn't set right.

that's why i'd raise R6 to see if it's the opamp model running out of drive,

and set the current sources to zero (and make sure they're current sources not voltage sources or replace them with thevenin equivalents)
Note that if they're modeled as voltage sources then both summing junctions are locked at fixed voltages and it cannot work - ability for opamp to force inputs equal is not there so golden rule was violated.

i usually drop signs and reverse thinking in these exercises.

i hope Plantis checks out our thought process..

sound logical?

old jim
 
Last edited:
  • #23
and i already see one sign reversal

I3 into U2 summing junction comes out negative end of I3 current source so probably it should be differenced instead of summed with I1.

ohh the joys of getting old...
 

Related to Why is my circuit simulation software not working properly?

1. What is circuit simulation software?

Circuit simulation software is a computer program designed to model and analyze the behavior of electronic circuits. It allows users to create virtual circuits and test their functionality without physically building them.

2. How does circuit simulation software work?

Circuit simulation software uses mathematical algorithms and circuit theory to simulate the behavior of electronic circuits. It takes into account the properties of individual components, such as resistors and capacitors, and how they interact with each other.

3. What are the benefits of using circuit simulation software?

There are several benefits to using circuit simulation software, including cost savings, time efficiency, and the ability to test and troubleshoot circuits before physically building them. It also allows for more complex and accurate simulations that may not be possible with traditional methods.

4. Is circuit simulation software accurate?

The accuracy of circuit simulation software depends on several factors, such as the quality of the software, the complexity of the circuit being simulated, and the accuracy of the component models used. However, in most cases, it can provide highly accurate results that closely match real-world behavior.

5. What types of circuits can be simulated using circuit simulation software?

Circuit simulation software can simulate a wide range of circuits, including analog, digital, and mixed-signal circuits. It can also handle complex circuits with multiple components and connections, making it a versatile tool for various applications in electronics and electrical engineering.

Similar threads

Replies
9
Views
4K
  • Electrical Engineering
Replies
5
Views
2K
  • Electrical Engineering
Replies
3
Views
1K
  • Electrical Engineering
Replies
6
Views
3K
  • Electrical Engineering
Replies
3
Views
1K
  • Electrical Engineering
Replies
6
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
1K
Replies
1
Views
1K
  • Electrical Engineering
Replies
6
Views
2K
Replies
55
Views
4K
Back
Top