Author Topic: LM324 inverting amplifier, works but shouldn't?  (Read 3107 times)

0 Members and 1 Guest are viewing this topic.

Offline MikeKTopic starter

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: us
LM324 inverting amplifier, works but shouldn't?
« on: March 25, 2013, 07:54:44 pm »
Okay, so a while ago I built a display for my Elenco xp-720 power supply.  It uses an LM324, a PIC, and an LCD.  It works well as it quite accurate.

But after going through the LM324 datasheet again recently, I'm wondering why part of it works at all.  Specifically, I used one of the op-amps in the LM324 to invert and scale the power supply's negative output.  This ranges from 0 down to -17V.

Since I power the LM324 with +5V and 0V, and the datasheet says that the minimum common mode input voltage is 0V, aren't I exceeding the spec by a large amount by allowing the input to be negative?

Or am I misreading the datasheet?
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: LM324 inverting amplifier, works but shouldn't?
« Reply #1 on: March 25, 2013, 08:18:55 pm »
With an inverting amplifier, the input to the inverting amplifier and input to the op amp are not the same thing.

See the attached schematic. -15V is applied to the input, +15V at the output, and the op amp only sees 0V and +15V. Remember that the op amp tries to make both inputs equal - by applying the opposite voltage to the other end of a voltage divider, the center will be zero.

Of course, using different resistors can scale the -15V to something under 5V. If you use R1=75k and R2=20k, than -15V becomes 4V.

One bad side to this approach is that the op amp will be unhappy if accidentally powered down. The LM324 is unique in being able to handle inputs up to +32V even when not powered, but that does not apply for negative inputs, only positive.
« Last Edit: March 25, 2013, 08:26:27 pm by c4757p »
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline MikeKTopic starter

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: us
Re: LM324 inverting amplifier, works but shouldn't?
« Reply #2 on: March 25, 2013, 08:23:59 pm »
Ohhhhh.

Great.  Thanks for explaining that.  I did forget about the inputs being made equal.  I thought I was on to some cold fusion hyperspace thing there for a second.

This is why I love op-amps...They're bloody awesome!
« Last Edit: March 25, 2013, 08:25:56 pm by MikeK »
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: LM324 inverting amplifier, works but shouldn't?
« Reply #3 on: March 25, 2013, 08:29:42 pm »
This is why I love op-amps...They're bloody awesome!

Yes, they are. Probably the single most useful active component in analog electronics. There's not much you can't do with some op amps, resistors, and caps.
No longer active here - try the IRC channel if you just can't be without me :)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf