Author Topic: How to stop op-amps from oscillating  (Read 6926 times)

0 Members and 3 Guests are viewing this topic.

Offline SolbergTopic starter

  • Contributor
  • Posts: 30
  • Country: dk
How to stop op-amps from oscillating
« on: April 07, 2020, 01:17:19 pm »
Hi

Does anyone know how i stop this circuit from oscillating?

I haven't bought the parts yet, so i cant test in real life.

It started oscillating when i added the x10 feedback op-amp (U2).

Any help Will be greatly appreciated.
 

Offline Jan Audio

  • Frequent Contributor
  • **
  • Posts: 820
  • Country: nl
Re: How to stop op-amps from oscillating
« Reply #1 on: April 07, 2020, 01:21:57 pm »
Add a 100pf or 220pf cap between the output and inverting input from the lower half.
 

Online dietert1

  • Super Contributor
  • ***
  • Posts: 2403
  • Country: br
    • CADT Homepage
Re: How to stop op-amps from oscillating
« Reply #2 on: April 07, 2020, 01:32:01 pm »
When you use a unity gain stable OpAmp it means you can feed the full output signal to the inverting input. If you feed 10x the output to the input it will oscillate. So you need to reduce loop gain at high frequencies to the unity gain situation by adding parallel to R4 a capacitor or a capacitor in series with up to 20 KOhm resistor.

Regards, Dieter
 

Offline Jan Audio

  • Frequent Contributor
  • **
  • Posts: 820
  • Country: nl
Re: How to stop op-amps from oscillating
« Reply #3 on: April 07, 2020, 01:35:05 pm »
Here is another topic :
https://www.eevblog.com/forum/projects/opamp-ringing/msg2459511/#msg2459511

It is called : opamp instability.
 

Offline SolbergTopic starter

  • Contributor
  • Posts: 30
  • Country: dk
Re: How to stop op-amps from oscillating
« Reply #4 on: April 07, 2020, 02:32:37 pm »
Thank you all for the help.

I have a better understanding of the problem now. thanks
 

Offline schmitt trigger

  • Super Contributor
  • ***
  • Posts: 2357
  • Country: mx
Re: How to stop op-amps from oscillating
« Reply #5 on: April 07, 2020, 02:58:44 pm »
I see that you are building a constant current load.

If you plan to actually build this unit and not constrain yourself to a simulation, for best DC precision make sure that the grounding of the resistor R5 is routed as shown in my sketch.
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7235
  • Country: pl
Re: How to stop op-amps from oscillating
« Reply #6 on: April 07, 2020, 03:20:52 pm »
Is this really necessary? Why not divide the input signal to the upper opamp 10x?
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19986
  • Country: gb
  • 0999
Re: How to stop op-amps from oscillating
« Reply #7 on: April 07, 2020, 03:48:29 pm »
Is this really necessary? Why not divide the input signal to the upper opamp 10x?
Agreed. It still may require some additional compensation, but it's still much more sane to use an attenuator, rather than an amplifier.

EDIT: The attached schematic is wrong, see below.
« Last Edit: April 07, 2020, 04:55:51 pm by Zero999 »
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11713
  • Country: my
  • reassessing directives...
Re: How to stop op-amps from oscillating
« Reply #8 on: April 07, 2020, 04:01:07 pm »
you got it the other way around. the divider should be on +ve input of U1 dividing V3. OP wants to amplify the R1 voltage because he got 10X input (V3), so instead, he should divide the V3 1/10X.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 
The following users thanked this post: Zero999

Online dietert1

  • Super Contributor
  • ***
  • Posts: 2403
  • Country: br
    • CADT Homepage
Re: How to stop op-amps from oscillating
« Reply #9 on: April 07, 2020, 04:08:31 pm »
I understood the second amplifier was eventually meant for scaling the shunt signal up for measurement (e.g. ADC input). That amplifier stage doesn't need to be in the control loop. One can scale down the loop input signal by the same factor.

Regards, Dieter
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19986
  • Country: gb
  • 0999
Re: How to stop op-amps from oscillating
« Reply #10 on: April 07, 2020, 04:55:15 pm »
you got it the other way around. the divider should be on +ve input of U1 dividing V3. OP wants to amplify the R1 voltage because he got 10X input (V3), so instead, he should divide the V3 1/10X.
You're right. I had a total brain fart. I just moved the gain to the other op-amp.  :palm:
 
The following users thanked this post: Mechatrommer

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2671
  • Country: us
Re: How to stop op-amps from oscillating
« Reply #11 on: April 07, 2020, 05:04:28 pm »
A 1Ω sense resistor will get pretty hot.

Here's what I did with a 0.2Ω 3W sense resistor for up to 20V and 2.5A.  Actually, the limit is about 50W.
The voltage across the sense resistor will be 0V to 0.5V.

   965350-0

and here is another circuit:  * eLoad.pdf (32.95 kB - downloaded 116 times.)
It is discussed here but I can't find the thread.
« Last Edit: April 07, 2020, 05:17:01 pm by MarkF »
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17196
  • Country: us
  • DavidH
Re: How to stop op-amps from oscillating
« Reply #12 on: April 07, 2020, 11:37:29 pm »
You're right. I had a total brain fart. I just moved the gain to the other op-amp.  :palm:

Exactly, U2 was not doing anything useful to improve the ultimate performance of the circuit.
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7235
  • Country: pl
Re: How to stop op-amps from oscillating
« Reply #13 on: April 08, 2020, 06:29:48 am »
When you use a unity gain stable OpAmp it means you can feed the full output signal to the inverting input. If you feed 10x the output to the input it will oscillate. So you need to reduce loop gain at high frequencies to the unity gain situation by adding parallel to R4 a capacitor or a capacitor in series with up to 20 KOhm resistor.
:scared:
You are making U2 an integrator with 90° phase delay above the RC cutoff point. I'm not sure if that's a good idea even if gain falls with frequency too. The more common solution is what others showed: bypassing the U2 circuit entirely at high frequencies.
 

Online dietert1

  • Super Contributor
  • ***
  • Posts: 2403
  • Country: br
    • CADT Homepage
Re: How to stop op-amps from oscillating
« Reply #14 on: April 08, 2020, 09:01:46 pm »
Don't know what this comment shall be good for. Are you asking a question?
Please don't forget this is "Beginners", so i tried to explain a little what may be wrong, in case somebody wants to understand how to use multiple OpAmps in one control loop. Of course, the concept of unity gain stability is a limited approach, yet it is something to start with. In reality also the Mosfet adds phase shift and gain. A complete analysis would involve breaking the loop, connecting a generator to the input and plotting phase shift and gain as a function of frequency in order to define a stable solution.

Regards, Dieter
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7235
  • Country: pl
Re: How to stop op-amps from oscillating
« Reply #15 on: April 08, 2020, 11:02:30 pm »
Sorry, I somehow ended up assuming your solution would add significant phase lag through U2 at high frequencies. On second thought, it seems OK.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf