Adding input offset on a non-inverting opamp.
Electronics Forum Index Electronics
Circuits, theory, electrons and discussions.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ElectronicsHelp.net
Adding input offset on a non-inverting opamp.

 
Post new topic   Reply to topic    Electronics Forum Index -> Design
Author Message
Guest






Posted: Tue Feb 15, 2005 7:07 pm    Post subject: Adding input offset on a non-inverting opamp. Reply with quote

Hello!
I need to make a small-gain amplifier with extremely
high impedance. Because of the latter requirement, I've
chosen the TL08x opamp in a non-inverting configuration:


+5V
|
|
---------------------- + |
TL08x --*-------------
.-- - | |
| | |
| -5V |
| |
*---/\/\/\/---'
| 10K
Input | Output
\
/
\ 20K
/
\
|
|
-------------------*---------------------------
Gnd


The gain of the above circuit will be x3.

I would really appreciate adding some offset, so
that e.g. Output=(Input+0.1)*3, but at the same
time I cannot give up on the high impedance and
non-inverting configuration. Also, I'd like to do
it using these TL08x parts, just because I have
plenty of them.

The following circuit seemed to work well (but all
the equipment I had to test it was a multimeter and
a voltage source):

+5V
|
|
---------------------- + |
TL08x --*-------------
.-- - | |
| | |
| -5V |
| |
+5V --/\/\/\/---*---/\/\/\/---'
20K | 10K
Input | Output
|
-5V --/\/\/\/---'
22K


-----------------------------------------------
Gnd


Now my problems are:

1) Does it *really* work well? It seems so at least!
But I don't have neither the equipment nor the
theoretical background to make sure it really is.
2) How do I calculate the gain now?
3) How do I calculate the offset now?

I.e. calculate the values of the 3 resistor for a
formula like:

Output=(Input+0.1)*3

(or any other values)

Thanks!
TPM

Back to top
Ken Smith
Guest





Posted: Tue Feb 15, 2005 7:07 pm    Post subject: Re: Adding input offset on a non-inverting opamp. Reply with quote

In article <XtmQd.896754$35.33885313@news4.tin.it>,
<tpm@againstallspam.com> wrote:
Quote:

Hello!
I need to make a small-gain amplifier with extremely
high impedance. Because of the latter requirement, I've
chosen the TL08x opamp in a non-inverting configuration:


This is the simple version
Modified schematic:
Quote:

+5V
|
|
---------------------- + |
TL08x --*-------------
.-- - | |
| | |
| -5V |
R1 | |
+5V --/\/\/\/---*---/\/\/\/---'
| 10K
Input | R3 Output
|
R2 !

GND --/\/\/\----

Quote:
Now my problems are:

1) Does it *really* work well? It seems so at least!
But I don't have neither the equipment nor the
theoretical background to make sure it really is.

The way you drew it the difference between the +5V and -5V voltages
effects the output a lot. The change I've done. Reduces the effect of
the supply voltage.


Quote:
2) How do I calculate the gain now?
3) How do I calculate the offset now?

Basically the answer to both is apply Ohm's law. You know that the inputs
of an op-amp are at equal voltage when the op-amp is doing its thing.

Assume that the R3 is really 10K.

You know the output voltage when the input is zero.

Assume the input voltage is 0V and figure out the currents through R3

Once you have the current apply the fact that none of this flows into the
op-amp so it must go through the R1 resistor. R2 must have 0V on it and
thus no current in it. Apply Ohms law to find the resistor.

Now you know the output voltage when the input is 1V (Ignore any clipping)

Use Ohm's law to find the current in R1 and R3. You now know how much
current flows in R2 with 1V on it so apply Ohm's law.


--
--
kensmith@rahul.net forging knowledge
Back to top
Jim Thompson
Guest





Posted: Tue Feb 15, 2005 9:13 pm    Post subject: Re: Adding input offset on a non-inverting opamp. Reply with quote

On Tue, 15 Feb 2005 13:07:03 GMT, tpm@againstallspam.com wrote:

Quote:

Hello!
I need to make a small-gain amplifier with extremely
high impedance. Because of the latter requirement, I've
chosen the TL08x opamp in a non-inverting configuration:


+5V
|
|
---------------------- + |
TL08x --*-------------
.-- - | |
| | |
| -5V |
| |
*---/\/\/\/---'
| 10K
Input | Output
\
/
\ 20K
/
\
|
|
-------------------*---------------------------
Gnd


The gain of the above circuit will be x3.

The gain is (10K + 20K)/20K = 1.5

Quote:

I would really appreciate adding some offset, so
that e.g. Output=(Input+0.1)*3, but at the same
time I cannot give up on the high impedance and
non-inverting configuration. Also, I'd like to do
it using these TL08x parts, just because I have
plenty of them.

The following circuit seemed to work well (but all
the equipment I had to test it was a multimeter and
a voltage source):

+5V
|
|
---------------------- + |
TL08x --*-------------
.-- - | |
| | |
| -5V |
| |
+5V --/\/\/\/---*---/\/\/\/---'
20K | 10K
Input | Output
|
-5V --/\/\/\/---'
22K


-----------------------------------------------
Gnd


Now my problems are:

1) Does it *really* work well? It seems so at least!
But I don't have neither the equipment nor the
theoretical background to make sure it really is.
2) How do I calculate the gain now?

"Gain" is (10K + 20K||22K)/(20K||22K)

Quote:
3) How do I calculate the offset now?

I.e. calculate the values of the 3 resistor for a
formula like:

Output=(Input+0.1)*3

(or any other values)

Thanks!
TPM


If 10K Resistor = R1
20K Resistor = R2
22K Resistor =R3
Input = Vin
Output = Vo
and Vs=5V

Then (summing currents at -Input of OpAmp):

(Vo-Vin)/R1 + (Vs-Vin)/R2 = (Vs-Vin)/R3

Solving is left as an exercise for the STUDENT ;-)

(Visually, it is obvious that the output is negative when Vin=0, so
your choice of resistors is incorrect.)

...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |

I love to cook with wine. Sometimes I even put it in the food.

Back to top
Chris
Guest





Posted: Tue Feb 15, 2005 9:14 pm    Post subject: Re: Adding input offset on a non-inverting opamp. Reply with quote

tpm@againstallspam.com wrote:
Quote:
Hello!
I need to make a small-gain amplifier with extremely
high impedance. Because of the latter requirement, I've
chosen the TL08x opamp in a non-inverting configuration:


+5V
|
|
---------------------- + |
TL08x --*-------------
.-- - | |
| | |
| -5V |
| |
*---/\/\/\/---'
| 10K
Input | Output
\
/
\ 20K
/
\
|
|
-------------------*---------------------------
Gnd


The gain of the above circuit will be x3.

I would really appreciate adding some offset, so
that e.g. Output=(Input+0.1)*3, but at the same
time I cannot give up on the high impedance and
non-inverting configuration. Also, I'd like to do
it using these TL08x parts, just because I have
plenty of them.

The following circuit seemed to work well (but all
the equipment I had to test it was a multimeter and
a voltage source):

+5V
|
|
---------------------- + |
TL08x --*-------------
.-- - | |
| | |
| -5V |
| |
+5V --/\/\/\/---*---/\/\/\/---'
20K | 10K
Input | Output
|
-5V --/\/\/\/---'
22K


-----------------------------------------------
Gnd


Now my problems are:

1) Does it *really* work well? It seems so at least!
But I don't have neither the equipment nor the
theoretical background to make sure it really is.
2) How do I calculate the gain now?
3) How do I calculate the offset now?

I.e. calculate the values of the 3 resistor for a
formula like:

Output=(Input+0.1)*3

(or any other values)

Thanks!
TPM

Wow. First, questions of this type usually get a better reception at
sci.electronics.basics.

Second, you've got a couple of resistors bass-ackwards on your first
diagram. A non-inverting amplifier with a gain of 3 might look like
this (view in fixed font or M$ Notepad):

|
| Vcc
|
| V(in) |\|
| o--------|+\ V(out) = 3*V(in)
| | >------o---o
| .---|-/ |
| | |/| |
| | |
| | Vee |
| | ___ |
| V(in) o-----|___|---'
| | 20K
| .-.
| | |
| 10K | |
| '-'
| |
| GND
|
created by Andy´s ASCII-Circuit v1.24.140803 Beta www.tech-chat.de

Now, for your problem. You're not talking about an offset voltage
(usually used to describe cancelling out the op amp V(os), but adding
or summing two voltages in a non-inverting amplifier.

As is frequently the case, National Semiconductor AN-31 calls out with
an answer. On page two, it describes a non-inverting summing amplifier
which will do the job for you (assuming the output impedance of your
V(in) is fairly low):

| ___
| .---|___|---.
| | 100K |
| | Vcc |
| ___ | |\| |
| .--|___|--o---|-\ |
| | 20K | >----o----o
| === .--|+/
| GND | |/|
| | Vee
| |
| |
| V(in) ___ |
| o---|___|-o
| 100K |
| |
| ___ |
| o---|___|-'
| 33.3mV 100K
|
|
created by Andy´s ASCII-Circuit v1.24.140803 Beta www.tech-chat.de

Here's the way it works: The op amp non-inverting input sees the
average of V(in) and 33.3mV, or [V(in) + 33.3mV]/2. The two resistors
at the inverting side are set up for a gain of 6. That results in a
total gain of [V(in) * 3] + 100mV, which is what you were looking for
to begin with.

With a 5V supply, you might get close enough for government work by
using a 5.1K/33 ohm resistive voltage divider to get the 33mV. The
important thing is to keep both impedances low.

http://www.national.com/an/AN/AN-31.pdf

Download this app-note and keep it with you. It's a really good
cookbook for the most basic op amp circuits.

Have fun, and good luck
Chris
Back to top
Chris
Guest





Posted: Tue Feb 15, 2005 9:18 pm    Post subject: Re: Adding input offset on a non-inverting opamp. Reply with quote

Chris wrote:
Quote:
Have fun, and good luck
Chris

By the way, if the 100K input impedance of the above circuit isn't good
enough, take another amplifier and use it as a voltage follower to give
you the high input impedance.

Good luck
Chris
Back to top
Jim Thompson
Guest





Posted: Tue Feb 15, 2005 9:25 pm    Post subject: Re: Adding input offset on a non-inverting opamp. Reply with quote

On 15 Feb 2005 07:18:08 -0800, "Chris" <cfoley1064@yahoo.com> wrote:

Quote:

Chris wrote:
Have fun, and good luck
Chris

By the way, if the 100K input impedance of the above circuit isn't good
enough, take another amplifier and use it as a voltage follower to give
you the high input impedance.

Good luck
Chris

The OP DID stress input-Z was critical ;-)

...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| E-mail Address at Website Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |

I love to cook with wine. Sometimes I even put it in the food.
Back to top
John Larkin
Guest





Posted: Tue Feb 15, 2005 10:31 pm    Post subject: Re: Adding input offset on a non-inverting opamp. Reply with quote

On Tue, 15 Feb 2005 13:07:03 GMT, tpm@againstallspam.com wrote:

Quote:

Hello!
I need to make a small-gain amplifier with extremely
high impedance. Because of the latter requirement, I've
chosen the TL08x opamp in a non-inverting configuration:


+5V
|
|
---------------------- + |
TL08x --*-------------
.-- - | |
| | |
| -5V |
| |
*---/\/\/\/---'
| 10K
Input | Output
\
/
\ 20K
/
\
|
|
|
|
+5 ---r1---------+

|
|
|
r2
|
|
|
gnd

is better, because it's much less sensitive to power supply variation.
The original circuit adds noise and drift from both supplies into the
output. If r2 << 20K, the gain doesn't change much.

As a generalism, in the analog world, never try to make a small number
by subtracting two large numbers.

John
Back to top
John Larkin
Guest





Posted: Tue Feb 15, 2005 10:37 pm    Post subject: Re: Adding input offset on a non-inverting opamp. Reply with quote

On Tue, 15 Feb 2005 08:31:34 -0800, John Larkin
<jjSNIPlarkin@highTHISlandPLEASEtechnology.XXX> wrote:

Quote:

As a generalism, in the analog world, never try to make a small number
by subtracting two large numbers.



Oh, the classic bad example of this homily is...

+15
|
|
|
10k
|
|
|
/
/ 100r pot
/ <----------- trim voltage
/
/
|
|
|
10k
|
|
|
-15


Which I've seen far too many times, from people who should know
better.

John
Back to top
Chris
Guest





Posted: Tue Feb 15, 2005 11:11 pm    Post subject: Re: Adding input offset on a non-inverting opamp. Reply with quote

Jim Thompson wrote:
Quote:

The OP DID stress input-Z was critical ;-)

...Jim Thompson

Thanks. I caught that a little late, I guess. Possibly the OP might
prefer this...


| +5V
| Vin |\| Vout = 3*Vin +100mV
| o---------|+\
| | >--o---------o
| .-----|-/ |
| | |/| .-.
| | -5V | |200K
| | | |
| | '-'
| | |
| '-----------o
| |
| .-.
| | |100K
| | |
| '-'
| |
| -33mV o-----.
| | |
| .-. .-.
| | |33 | |5.1K
| | | | |
| '-' '-'
| | |
| === -5V
| GND
created by Andy´s ASCII-Circuit v1.24.140803 Beta www.tech-chat.de

This is a variation on a circuit on page 6 of AN-31.

Thanks again for the spot, Mr. Thompson.

Chris
Back to top
Rich Grise
Guest





Posted: Wed Feb 16, 2005 1:14 am    Post subject: Re: Adding input offset on a non-inverting opamp. Reply with quote

On Tue, 15 Feb 2005 09:11:56 -0800, Chris wrote:

Quote:

Jim Thompson wrote:

The OP DID stress input-Z was critical ;-)

...Jim Thompson

Thanks. I caught that a little late, I guess. Possibly the OP might
prefer this...

I noticed he said he's got a lot of opamps. What if he keeps the
working circuit, for the X3 and high-impedance, and then resolve
Output=(Input+0.1)*3 to Output = (Input * 3) + (0.1 * .3), and
add it in another stage:

+5V
|
|
------------- + |
TL08x --*---/\/\/\---*----- +
.-- - | | | TL08x --*-----
| | | | .-- - |
| -5V | | | |
| | | `-------------'
*---/\/\/\/---' |
| 10K |
Input | | Output
\ +.3V --/\/\/---'
/
\ 20K
/
\
|
|
----------*---------------------------
Gnd

Good Luck!
Rich
Back to top
Rich Grise
Guest





Posted: Wed Feb 16, 2005 1:20 am    Post subject: Re: Adding input offset on a non-inverting opamp. Reply with quote

On Tue, 15 Feb 2005 08:37:58 -0800, John Larkin wrote:
Quote:
On Tue, 15 Feb 2005 08:31:34 -0800, John Larkin
As a generalism, in the analog world, never try to make a small number
by subtracting two large numbers.

Oh, the classic bad example of this homily is...

+15
|
10k
|
/
/ 100r pot
/ <----------- trim voltage
/
|
10k
|
-15


Which I've seen far too many times, from people who should know
better.


Which is the right way to do this, then? I've seen this in military stuff.
Not that military stuff is designed better than other stuff, but it is
ostensibly reliable. Actually, in general, military stuff probably isn't
all that reliable electronically, when you consider there's about a
couple of hundred guys working full time to keep a couple of dozen planes
in the air. ;-)

Thanks,
Rich
Back to top
John Larkin
Guest





Posted: Wed Feb 16, 2005 1:45 am    Post subject: Re: Adding input offset on a non-inverting opamp. Reply with quote

On Tue, 15 Feb 2005 19:20:29 GMT, Rich Grise <richgrise@example.net>
wrote:

Quote:
Oh, the classic bad example of this homily is...

+15
|
10k
|
/
/ 100r pot
/ <----------- trim voltage
/
|
10k
|
-15



I actually took some business away from some guys who did that. Their
constant-fraction discriminator just wouldn't stay stable!

Quote:

Which is the right way to do this, then? I've seen this in military stuff.
Not that military stuff is designed better than other stuff, but it is
ostensibly reliable. Actually, in general, military stuff probably isn't
all that reliable electronically, when you consider there's about a
couple of hundred guys working full time to keep a couple of dozen planes
in the air. ;-)

Better:

+15
|
|
|
/
/ 20k pot
/ <--------10k-----+-------- trim voltage
/ |
/ |
| 100r
| |
| |
| gnd
-15



I actually once saw a guy use an inverting opamp with a gain of 0.001
to generate a +-15 mV offset for another amp. So he wound up adding
the offset and noise and drift of another opamp to the one he was
trying to trim.

John
Back to top
Ian
Guest





Posted: Thu Feb 17, 2005 4:00 pm    Post subject: Re: Adding input offset on a non-inverting opamp. Reply with quote

"Jim Thompson" <thegreatone@example.com> wrote in message
news:re3411lea2qjb76v93607av27omp11752o@4ax.com...
Quote:
On Tue, 15 Feb 2005 13:07:03 GMT, tpm@againstallspam.com wrote:


Hello!
I need to make a small-gain amplifier with extremely
high impedance. Because of the latter requirement, I've
chosen the TL08x opamp in a non-inverting configuration:

"Gain" is (10K + 20K||22K)/(20K||22K)

Then (summing currents at -Input of OpAmp):

(Vo-Vin)/R1 + (Vs-Vin)/R2 = (Vs-Vin)/R3

Solving is left as an exercise for the STUDENT ;-)


...Jim Thompson

How mean of you to apply the Student's t-Test...

Regards
Ian
;-)
Back to top
 
Post new topic   Reply to topic    Electronics Forum Index -> Design All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Home & Living New Topics
Contact Us
Powered by phpBB