2
\$\begingroup\$

op amp circuit

output voltage

[output voltage zoomed in3

Ideal op amp output voltage

I designed a simple op amp and now I am trying to make it work as an integrator as shown in image 1.

The output voltage waveform looks fine for a sine input as I am getting negative cosine as shown in image 2.

However, when I zoom in, you can see that the waveform looks weird as shown in image 3.

To compare, image 4 shows the output voltage of an ideal op amp in Lt spice.

Anyone knows what might be wrong with the circuit? Any help is appreciated. Thanks

\$\endgroup\$
2
  • 3
    \$\begingroup\$ It’s oscillating. You don’t have enough gain margin compensation \$\endgroup\$
    – D.A.S.
    Commented May 21, 2021 at 13:50
  • 1
    \$\begingroup\$ Search "opamp driving capacitive load" for more info \$\endgroup\$
    – user16324
    Commented May 21, 2021 at 13:58

1 Answer 1

3
\$\begingroup\$

This is a more conventional design of an amplifier.

Note the compensation capacitor, C1 which gives the amplifier stability by providing adequate phase and gain margins. - It rolls off the open loop gain, with increasing frequency, so that the loop gain gets down to unity well before the loop phase reaches -360 degrees. Typical value for C1 would be 100pF.

You can replace Q8, and its associated components, with your two biasing voltage sources if you wish.

Amplifier

The integration process on its own produces a negative cosine wave (90 degrees lag) but the op amp integrator is itself inverting, inverting the negative cosine wave to give an output cosine wave with 90 degrees lead on the input sine wave.

\$\endgroup\$
1
  • \$\begingroup\$ Thanks James. It worked. Actually I was aware that without adding a compensation capacitor would create stability issues. I was trying a design without a capacitor. But I guess its not possible. \$\endgroup\$
    – Blackbeard
    Commented May 21, 2021 at 15:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.