Offset calibration of Op-amp - is that really ok?
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
Offset calibration of Op-amp - is that really ok?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Electronics Forum Index -> Design
Author Message
Klaus Kragelund
Guest





Posted: Fri Dec 02, 2005 9:35 am    Post subject: Offset calibration of Op-amp - is that really ok? Reply with quote

Hi

I have an application in which I need to amplify a signal say 100times.
The opamp is a LM324 with ~5mV offset voltage. If I do nothing the
output might be 500mV off target

I plan to calibrate the op-amp continously by using a switch to set the
input to 0mV (instead of the signal) and then sample the resulting
voltage with the microcontroller to store a calibration number.

That might be fine a that cures any drift the Vos has over time and
temperature.

But what about non-linearities of the offset versus the input signal
range? Will the Vos be the same for say a 0V input and a 5V input?

Thanks

Klaus

Back to top
Fred Bartoli
Guest





Posted: Fri Dec 02, 2005 9:35 am    Post subject: Re: Offset calibration of Op-amp - is that really ok? Reply with quote

Check CMRR, or use an inverter stage if you can.


--
Thanks,
Fred.
Back to top
Tony Williams
Guest





Posted: Fri Dec 02, 2005 11:47 am    Post subject: Re: Offset calibration of Op-amp - is that really ok? Reply with quote

Quote:
But what about non-linearities of the offset versus the input
signal range? Will the Vos be the same for say a 0V input and a
5V input?

But the gain is 100. So MaxVin cannot exceed MaxVout/100,
which limits Vin to 100mV or so.

BTW: If you are on a single rail supply Auto-zero can be
done, but requires two ADC readings of two artificial
offsets with a known ratio. Then a few sums in the uP.

--
Tony Williams.

Back to top
Robert Baer
Guest





Posted: Fri Dec 02, 2005 3:39 pm    Post subject: Re: Offset calibration of Op-amp - is that really ok? Reply with quote

Quote:
Check CMRR, or use an inverter stage if you can.



....and there are a number of op-amps that have VOS in the tens of
microvolts region, not to mention chopper stabilized op-amps.
Back to top
Guest






Posted: Fri Dec 02, 2005 4:00 pm    Post subject: Re: Offset calibration of Op-amp - is that really ok? Reply with quote

Klaus Kragelund wrote:
Quote:
Hi

I have an application in which I need to amplify a signal say 100times.
The opamp is a LM324 with ~5mV offset voltage. If I do nothing the
output might be 500mV off target

I plan to calibrate the op-amp continously by using a switch to set the
input to 0mV (instead of the signal) and then sample the resulting
voltage with the microcontroller to store a calibration number.

That might be fine a that cures any drift the Vos has over time and
temperature.

But what about non-linearities of the offset versus the input signal
range? Will the Vos be the same for say a 0V input and a 5V input?

The sensitivity of Vos to the common mode voltage can be deduced from
the common mode rejection ratio (CMRR) which is listed on page 3 of the
LM324 data sheet as 85dB typical, 65dB worst case. For a 5V common mode
shift, this is 160uV typical, 2.8mV worst case.

On psge 7 of the data sheet, there is a plot of typical common mode
rejection ratio versus frequency, where you can see that it starts
getting worse at frequencies above 10kHz.

There are amplifiers around offering better common moder rejection
ratios - the Linear Technology LT1014 which was intended to be an
upgrade from the LM324, has a CMRR of 97dB (worst case) and 114dB
typical, which pushes your worst case common mode shift down to 70uV.

Linear Technology also offer a range of auto-zeroing "zsero drift"
amplifiers, which include your auto-zeroing scheme. Analog Devices
offer similar parts.

-------------
Bill Sloman, Nijmegen
Back to top
Mike Harrison
Guest





Posted: Fri Dec 02, 2005 4:01 pm    Post subject: Re: Offset calibration of Op-amp - is that really ok? Reply with quote

On 2 Dec 2005 01:02:28 -0800, "Klaus Kragelund" <klauskvik@hotmail.com> wrote:

Quote:
Hi

I have an application in which I need to amplify a signal say 100times.
The opamp is a LM324 with ~5mV offset voltage. If I do nothing the
output might be 500mV off target

I plan to calibrate the op-amp continously by using a switch to set the
input to 0mV (instead of the signal) and then sample the resulting
voltage with the microcontroller to store a calibration number.

That might be fine a that cures any drift the Vos has over time and
temperature.

But what about non-linearities of the offset versus the input signal
range? Will the Vos be the same for say a 0V input and a 5V input?

Thanks

Klaus

Why not just use a better op-amp?
Back to top
Spehro Pefhany
Guest





Posted: Fri Dec 02, 2005 5:35 pm    Post subject: Re: Offset calibration of Op-amp - is that really ok? Reply with quote

On 2 Dec 2005 01:02:28 -0800, the renowned "Klaus Kragelund"
<klauskvik@hotmail.com> wrote:

Quote:
Hi

I have an application in which I need to amplify a signal say 100times.
The opamp is a LM324 with ~5mV offset voltage. If I do nothing the
output might be 500mV off target

I plan to calibrate the op-amp continously by using a switch to set the
input to 0mV (instead of the signal) and then sample the resulting
voltage with the microcontroller to store a calibration number.

That might be fine a that cures any drift the Vos has over time and
temperature.

But what about non-linearities of the offset versus the input signal
range? Will the Vos be the same for say a 0V input and a 5V input?

Thanks

Klaus

I don't think the LM324 is too bad in that department, assuming the
power supply is something like 10V. Some of the "better" R-R input
op-amps have a horrible shift of several hundred uV in the Vos as you
transition from one input stage to the other. Bill S says 160uV
typical from the specs for a 5V change, but what configuration do you
have that would change the CM voltage by anything like 5V? Full scale
is going to be less than 10mV, right? Watch effects due to the
resistance of your switches and the relatively hefty Ib of the LM324.


Best regards,
Spehro Pefhany
--
"it's the network..." "The Journey is the reward"
speff@interlog.com Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com
Back to top
Jim Thompson
Guest





Posted: Sat Dec 03, 2005 1:35 am    Post subject: Re: Offset calibration of Op-amp - is that really ok? Reply with quote

On 2 Dec 2005 01:02:28 -0800, "Klaus Kragelund"
<klauskvik@hotmail.com> wrote:

Quote:
Hi

I have an application in which I need to amplify a signal say 100times.
The opamp is a LM324 with ~5mV offset voltage. If I do nothing the
output might be 500mV off target

I plan to calibrate the op-amp continously by using a switch to set the
input to 0mV (instead of the signal) and then sample the resulting
voltage with the microcontroller to store a calibration number.

That might be fine a that cures any drift the Vos has over time and
temperature.

But what about non-linearities of the offset versus the input signal
range? Will the Vos be the same for say a 0V input and a 5V input?

Thanks

Klaus

Signal Frequency?

If DC or in a limited time frame, just store VOS in a capacitor...
chopper-style.

I built a uV meter that way 25 years ago to find shorts on PCB's by
measuring trace drops.

...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
Klaus Kragelund
Guest





Posted: Sat Dec 03, 2005 1:35 am    Post subject: Re: Offset calibration of Op-amp - is that really ok? Reply with quote

Tony Williams skrev:

Quote:
In article <1133514148.212070.222180@z14g2000cwz.googlegroups.com>,
Klaus Kragelund <klauskvik@hotmail.com> wrote:

[snip]
But what about non-linearities of the offset versus the input
signal range? Will the Vos be the same for say a 0V input and a
5V input?

But the gain is 100. So MaxVin cannot exceed MaxVout/100,
which limits Vin to 100mV or so.

BTW: If you are on a single rail supply Auto-zero can be
done, but requires two ADC readings of two artificial
offsets with a known ratio. Then a few sums in the uP.

I am on a single rail. Can you elaborate on that - why not just one

reading when as you say the CMRR isn't important for high gains due to
the limited input range?


Thanks

Klaus
Back to top
Klaus Kragelund
Guest





Posted: Sat Dec 03, 2005 1:35 am    Post subject: Re: Offset calibration of Op-amp - is that really ok? Reply with quote

bill.sloman@ieee.org skrev:

Quote:
Klaus Kragelund wrote:
Hi

I have an application in which I need to amplify a signal say 100times.
The opamp is a LM324 with ~5mV offset voltage. If I do nothing the
output might be 500mV off target

I plan to calibrate the op-amp continously by using a switch to set the
input to 0mV (instead of the signal) and then sample the resulting
voltage with the microcontroller to store a calibration number.

That might be fine a that cures any drift the Vos has over time and
temperature.

But what about non-linearities of the offset versus the input signal
range? Will the Vos be the same for say a 0V input and a 5V input?

The sensitivity of Vos to the common mode voltage can be deduced from
the common mode rejection ratio (CMRR) which is listed on page 3 of the
LM324 data sheet as 85dB typical, 65dB worst case. For a 5V common mode
shift, this is 160uV typical, 2.8mV worst case.

On psge 7 of the data sheet, there is a plot of typical common mode
rejection ratio versus frequency, where you can see that it starts
getting worse at frequencies above 10kHz.

There are amplifiers around offering better common moder rejection
ratios - the Linear Technology LT1014 which was intended to be an
upgrade from the LM324, has a CMRR of 97dB (worst case) and 114dB
typical, which pushes your worst case common mode shift down to 70uV.

Linear Technology also offer a range of auto-zeroing "zsero drift"
amplifiers, which include your auto-zeroing scheme. Analog Devices
offer similar parts.


Great - thanks, but I can't spend much more on the part so the LT1014
is out of the question. Good point about the CMRR though

Thanks

Klaus
Back to top
Klaus Kragelund
Guest





Posted: Sat Dec 03, 2005 1:35 am    Post subject: Re: Offset calibration of Op-amp - is that really ok? Reply with quote

Mike Harrison skrev:

Quote:
On 2 Dec 2005 01:02:28 -0800, "Klaus Kragelund" <klauskvik@hotmail.com> wrote:

Hi

I have an application in which I need to amplify a signal say 100times.
The opamp is a LM324 with ~5mV offset voltage. If I do nothing the
output might be 500mV off target

I plan to calibrate the op-amp continously by using a switch to set the
input to 0mV (instead of the signal) and then sample the resulting
voltage with the microcontroller to store a calibration number.

That might be fine a that cures any drift the Vos has over time and
temperature.

But what about non-linearities of the offset versus the input signal
range? Will the Vos be the same for say a 0V input and a 5V input?

Thanks

Klaus

Why not just use a better op-amp?

Well because of the costs. The application is up to 200-300k/year - so
every last nickle counts

Thanks

Klaus
Back to top
Tony Williams
Guest





Posted: Sat Dec 03, 2005 9:48 am    Post subject: Re: Offset calibration of Op-amp - is that really ok? Reply with quote

In article <1133565055.438949.40540@g14g2000cwa.googlegroups.com>,
Klaus Kragelund <klauskvik@hotmail.com> wrote:


Quote:
BTW: If you are on a single rail supply Auto-zero can be
done, but requires two ADC readings of two artificial
offsets with a known ratio. Then a few sums in the uP.

I am on a single rail. Can you elaborate on that - why not just
one reading when as you say the CMRR isn't important for high
gains due to the limited input range?

Amplifier Vout = G(Vin + Vos). A single rail amplifier
cannot deliver a negative Vout. If Vos is negative then
the amplifier will fail to give the correct output for
all values of Vin less than Vos. This applies to signal
readings as well as trying to auto-zero to a 0V reference.
The 324 max Vos is +/- 7mV, so it cannot be guaranteed to
work for Vin less than 7mV.

I realise now (with that gain of x100) that you probably
do need to operate correctly for Vin less than 7mV, and
the two-stage Vos correction is not appropriate.

Time for Plan B.... which involves putting a small voltage
in series with Vin, slightly larger than +7mV.
_
|- \
Sw1 C + |Op >-->ADC
Vin----+----+----+---+/+--+--||----+----|+_/
| | | | 1uF? |
\ _|_ _|_ + +
/ /_\ \_/ Sw2/ Sw3/
\ | | + +
| | | | |
0v----+----+----+--------+--/\/\--+---/\/\--+2.5V
10R /|\ 3k
|
8mV approx.

To Auto-zero. Open Sw1, Close Sw2 and Sw3.
Wait 50uS (or so), for C to stabilise.
Read ADC, store effective (Vos+8mV).

To read Vin. Open Sw2 and Sw3, Close Sw1.
Read ADC.
Subtract effective (Vos+8mV).

Note the relatively high value of C. The LM324 has
a maximum input bias current of 250nA, which causes
the voltage on C to drift upwards slightly when
measuring Vin. 1uF is a drift of 250uV/mS, so the
ADC must be read as quickly as possible.

--
Tony Williams.
Back to top
Winfield Hill
Guest





Posted: Sun Dec 04, 2005 12:05 am    Post subject: Re: Offset calibration of Op-amp - is that really ok? Reply with quote

Klaus Kragelund wrote...
Quote:

Why not just use a better op-amp?

Well because of the costs. The application is up to 200-300k/year
- so every last nickle counts

If there's a uP involved, how about switching to ground, measure
the offset and stores its value.


--
Thanks,
- Win
Back to top
Jim Thompson
Guest





Posted: Sun Dec 04, 2005 5:35 pm    Post subject: Re: Offset calibration of Op-amp - is that really ok? Reply with quote

On Fri, 02 Dec 2005 16:48:56 -0700, Jim Thompson
<To-Email-Use-The-Envelope-Icon@My-Web-Site.com> wrote:

Quote:
On 2 Dec 2005 01:02:28 -0800, "Klaus Kragelund"
klauskvik@hotmail.com> wrote:

Hi

I have an application in which I need to amplify a signal say 100times.
The opamp is a LM324 with ~5mV offset voltage. If I do nothing the
output might be 500mV off target

I plan to calibrate the op-amp continously by using a switch to set the
input to 0mV (instead of the signal) and then sample the resulting
voltage with the microcontroller to store a calibration number.

That might be fine a that cures any drift the Vos has over time and
temperature.

But what about non-linearities of the offset versus the input signal
range? Will the Vos be the same for say a 0V input and a 5V input?

Thanks

Klaus

Signal Frequency?

If DC or in a limited time frame, just store VOS in a capacitor...
chopper-style.

I built a uV meter that way 25 years ago to find shorts on PCB's by
measuring trace drops.

...Jim Thompson

Found my notes. Posted at....

Newsgroups: alt.binaries.schematics.electronic
Subject: Re: Offset calibration of Op-amp - is that really ok? -
AutoZeroVOS.pdf
Message-ID: <ls36p15b7r7oqeb26227hna0d4cmouji19@4ax.com>

...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
Klaus Kragelund
Guest





Posted: Sun Dec 04, 2005 5:35 pm    Post subject: Re: Offset calibration of Op-amp - is that really ok? Reply with quote

Tony Williams skrev:

Quote:
In article <1133565055.438949.40540@g14g2000cwa.googlegroups.com>,
Klaus Kragelund <klauskvik@hotmail.com> wrote:


BTW: If you are on a single rail supply Auto-zero can be
done, but requires two ADC readings of two artificial
offsets with a known ratio. Then a few sums in the uP.

I am on a single rail. Can you elaborate on that - why not just
one reading when as you say the CMRR isn't important for high
gains due to the limited input range?

Amplifier Vout = G(Vin + Vos). A single rail amplifier
cannot deliver a negative Vout. If Vos is negative then
the amplifier will fail to give the correct output for
all values of Vin less than Vos. This applies to signal
readings as well as trying to auto-zero to a 0V reference.
The 324 max Vos is +/- 7mV, so it cannot be guaranteed to
work for Vin less than 7mV.

I realise now (with that gain of x100) that you probably
do need to operate correctly for Vin less than 7mV, and
the two-stage Vos correction is not appropriate.

Time for Plan B.... which involves putting a small voltage
in series with Vin, slightly larger than +7mV.
_
|- \
Sw1 C + |Op >-->ADC
Vin----+----+----+---+/+--+--||----+----|+_/
| | | | 1uF? |
\ _|_ _|_ + +
/ /_\ \_/ Sw2/ Sw3/
\ | | + +
| | | | |
0v----+----+----+--------+--/\/\--+---/\/\--+2.5V
10R /|\ 3k
|
8mV approx.

To Auto-zero. Open Sw1, Close Sw2 and Sw3.
Wait 50uS (or so), for C to stabilise.
Read ADC, store effective (Vos+8mV).

To read Vin. Open Sw2 and Sw3, Close Sw1.
Read ADC.
Subtract effective (Vos+8mV).

Note the relatively high value of C. The LM324 has
a maximum input bias current of 250nA, which causes
the voltage on C to drift upwards slightly when
measuring Vin. 1uF is a drift of 250uV/mS, so the
ADC must be read as quickly as possible.

Nice solution, Tony :-)


And this circuit can be used for all the inputs for all the non-ideal
amplifiers in the circuit (switching the circuit via an analog switch)
- and with not that high a penalty cost-wise

Moreover the temperature drift of the offset voltage is pretty low so
an autozero at startup might be sufficient (or perhaps even a
productionline calibration)

Thanks

Klaus
Back to top
 
Post new topic   Reply to topic    Electronics Forum Index -> Design All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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
Powered by phpBB