Author Topic: Proteus gives negative voltage in a single supply operational circuit  (Read 10655 times)

0 Members and 1 Guest are viewing this topic.

Offline pantagavoTopic starter

  • Newbie
  • Posts: 3
Hi, I am new using Proteus and after building my system the results were not good, so I decided to step back to a very simple circuit and I was really confused when I got what you can see in the figure attached. How can the output be negative if all the voltages are positive? I have to expect these things to be normal in proteus?

Gustavo
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21609
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Proteus gives negative voltage in a single supply operational circuit
« Reply #1 on: January 30, 2014, 02:18:13 am »
Don't suppose they provide multiple simulation models to choose from.  Obviously, that particular model doesn't work well in saturation.

A simulation model is a bunch of equations thrown together.  It is rarely representative, in some fundamental way, of the actual circuit or component.  (For the same reason... any simulation at all is only a bunch of equations thrown together; its relevance is limited by the detail, skill and understanding of the modeler using it.  YMMV.)

The worst offenders are the three terminal op-amp models, which assume infinite supply voltages...

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline digsys

  • Supporter
  • ****
  • Posts: 2209
  • Country: au
    • DIGSYS
Re: Proteus gives negative voltage in a single supply operational circuit
« Reply #2 on: January 30, 2014, 02:54:39 am »
As a Proteus user myself, I agree with the previous comment. The more "features" a model has, the more than can go "wrong"
until you figure it out.
Hello <tap> <tap> .. is this thing on?
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21609
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Proteus gives negative voltage in a single supply operational circuit
« Reply #3 on: January 30, 2014, 05:52:05 am »
But that's kind of a backwards way of putting it, isn't it...?  I mean, ideally a model would encompass every possible usage case: input characteristics, output characteristics, like....time dependency of the power supplies even...?!  But, even if such models were created as a matter of course, they would be massive and run very slowly.  There's just too much stuff to account for in real life that is difficult to implement in SPICE.

A too-simple model can only demonstrate what it's useful for; the textbook model of an op-amp being simply a block of very high gain (approaching infinity) won't even converge outside of DC in SPICE.  A more accurate model would be an ideal integrator (which at least occasionally shows up in textbooks, at least once the start talking bandwidth and filters), but that fails for both DC offset and output swing.  Such an oversimplified model still fails for the example circuit in question, since voltage will just rise to infinity over time.  (Those three terminal models are basically this, plus finite DC gain, and maybe a higher pole to represent phase margin near cutoff.  They probably don't cover slew rate limiting, and certainly don't cover output saturation (what voltage rails are they supposed to saturate to?) or supply current (no rails to draw current from!).)

The crap end of it is either case: an oversimplified model that doesn't cover your situation simply isn't going to work.  But an overly complex model will run so slow as to be useless, or have convergence issues preventing you from using it in the first place!  (Which requires one to dabble in those obscure SPICE environment variables, which...yep.)

The best model is always a model that's just developed and accurate enough for your particular case.

So of course, in the end, the only generalization that really sticks: that the user must be wise enough to decide if the models provided (up to and including the overall circuit) are lying or reasonable.  No free lunch and all.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline pantagavoTopic starter

  • Newbie
  • Posts: 3
Re: Proteus gives negative voltage in a single supply operational circuit
« Reply #4 on: January 30, 2014, 04:08:10 pm »
Ok, I knew that Proteus is not full professional but I thought that it was better. My conclussion is:
Use it at your own risk and believe more in your knowledge of electronics. Thanks Tim and digsys for your replies.

Gustavo
 

Offline digsys

  • Supporter
  • ****
  • Posts: 2209
  • Country: au
    • DIGSYS
Re: Proteus gives negative voltage in a single supply operational circuit
« Reply #5 on: January 30, 2014, 08:53:26 pm »
Quote from: pantagavo
Ok, I knew that Proteus is not full professional but I thought that it was better. My conclussion is:
Use it at your own risk and believe more in your knowledge of electronics. Thanks Tim and digsys for your replies.   
Yeah, I didn't explain myself that well :-)
As a schematic / layout pgm, I find it the best I've tried (comparing ease, features, intuitiveness?), and have no reason to change.
For auto-routing / auto-placement (even though I don't use them), I found the options as good as any other I tried. You have a
choice of what level of AR/AP package to add-on.
As for simulation (again, I never use it), in past years, when I've had to demonstrate / teach others, I certainly didn't "see" that
many issues. Maybe it is just a "settings" issue? I know (knew) several students who used it just fine, but again, fine for some
MAY not be perfect for others. I can't say.
Hello <tap> <tap> .. is this thing on?
 

Offline Kappes Buur

  • Regular Contributor
  • *
  • Posts: 137
  • Country: ca
Re: Proteus gives negative voltage in a single supply operational circuit
« Reply #6 on: January 30, 2014, 10:27:29 pm »
@ pantagavo

Just out of curiosity, which version of Proteus are you using?
 

Offline pantagavoTopic starter

  • Newbie
  • Posts: 3
Re: Proteus gives negative voltage in a single supply operational circuit
« Reply #7 on: January 31, 2014, 09:57:51 pm »
 Kappes Buur

I am using version 7.7 sp2, but I think that I will change the program because it has several bugs and it is not reliable
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf