Check My Work: Op-amp Circuit

Mar 25, 2011 13 Replies

See any problems with the circuit below? The intent is to buffer Vin somewhat, while protecting the following ADC from voltages that go above



4.7V or below 0.3V. The idea is that while the LM358 can't pull its output above 3V or so, R1 will -- limited by R3. On the low-voltage side, R2 and R3 will only allow the output to be pulled most of the way to 0V, but not all. The whole assembly should have a reasonably low output impedance, except for the inevitable weirdness of being able to pull down a lot better than it can pull up.

Comments welcome.


+5V + | | +5V .-. + | | R1 | | | 1K LM358 | R2 '-' Vin |\| 64.9 | o------------|+\ ___ | | >----|___|-----o .-----|-/ | Vout | |/| o------o----------o | | | | | | .-. | | === R3 | | | | GND 15.8K | | | | '-' | | | | | | | | R4 === | | 100 GND | | ___ | '-----|___|--------------------' (created by AACircuit v1.28.6 beta 04/19/05
formatting link


Tim Wescott Wescott Design Services http://www.wescottdesign.com Do you need to implement control loops in software? "Applied Control Theory for Embedded Systems" was written for you. See details at http://www.wescottdesign.com/actfes/actfes.html

Isn't the object to have the output follow the input?

The LM358 can have inputs go only to VCC-1.5, then you lose feedback effects. ...Jim Thompson

| James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | Remember: Once you go over the hill, you pick up speed

Whoops. I knew there was a good reason to ask! I took care of the _output_ not going to the rail, but not the _input_.

I need to think about this -- I think I can fix this in one of three ways:

1: be sensible and find a nice rail-rail op amp. 2: make the thing inverting, and fix it in software. 3: attenuate the input, and make the thing amplifying.

With the rail-rail amp I'd use the same topology, just jigger the resistor values to get the same effect.

Tim Wescott Wescott Design Services http://www.wescottdesign.com Do you need to implement control loops in software? "Applied Control Theory for Embedded Systems" was written for you. See details at http://www.wescottdesign.com/actfes/actfes.html

With OpAmp rails greater than needed swing, then clamp...

formatting link

But a rail-to-rail OpAmp (input AND output) should need nothing else if powered from same rails as ADC. (Most everything I know of can stand 0.3V over and under rails without any problems at all.) ...Jim Thompson

| James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | Remember: Once you go over the hill, you pick up speed

What's the active range of the ADC?

John

The way I have it wired, pretty much 0.3V to 4.7V. It's a 16-bit ADC in an application that could get by with less.

Tim Wescott Wescott Design Services http://www.wescottdesign.com Do you need to implement control loops in software? "Applied Control Theory for Embedded Systems" was written for you. See details at http://www.wescottdesign.com/actfes/actfes.html

Why not just use a r-r opamp powered from ground and +5?

John

How about an emitter follower with +5V Vcc?

The way I would do it, after looking at a couple of older part spec's, is to use something like a LM393 comparator. In the saturation state, it drops to 250mv, I don't think that is much of an issue here. The pull up R can then be clamped with a 4.7V zener. The output looped back to the inverted input. This gives you only 2 added components in the mix..

I did something like this years ago where the input could get up to

12 volts but I only wanted to measure up to 5 volts and have the output only at 5 volts max..

I supplied the comparator with 15 volts and clamped the pull up R with a 5.1 Zener. This simple circuit allowed me to have voltages on the input up to 15 volts with out fear of damage but still operated as I needed it on the output..

Just a thought, you may have different ideas and different components to use, I'm sure..

Jamie

I think (3) is the winner; a two-resistor attenuator on the input will also make open inputs float to LOW in a reliable fashion, which is sometimes a very good thing. The feedback, then, comes from a center-tap on R3, but then there's no need for R4 at all. So, it's just adding two resistors, and using some of the op amp gain (which you've already paid for).

Isn't there a delay before one of the clamp opamps comes out of saturation? I remember delays for opamps coming out of saturation but it was long ago (decades) when I was doing analog design.

Cannot remember how long LM358 or LM324 opamps take to do that.

Or, is the coming out of saturation delay short enough to not worry about, I'm wondering if there would be spikes on the clamped output while the clamping opamp got it act together.

But I can't see how to keep the opamp in feedback mode easily without loading the input, with your circuit.

Maybe I shouldn't worry about that delay?

Grant.

I wouldn't worry about the OpAmp recovery unless you have a very fast signal. If you do, there are more exotic configurations that keep the OpAmp out of saturation. ...Jim Thompson

| James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | Remember: Once you go over the hill, you pick up speed

Sure, something like a bakers clamp.

Jamie

in

A R-R buffer with anti-parallel schottkies in the output would guarantee something pretty close to Tim's spec.

+5V + | | +5V .-. + | | R1 | | | 10K R-R | '-' Vin |\| | o------------|+\ schottky | | >--+-|>|--+----o .-----|-/ | | | Vout | |/| '-|

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required