Measurement -2.5 +2.5 with ADC

azadfalah

Jul 17, 2016
15
Joined
Jul 17, 2016
Messages
15
hello friends

i need Measurement -2.5 +2.5 with ADC

i should use opamp but i dont know how use opamp for this

Please Offer a simple circuit :)

thanks all
 

hevans1944

Hop - AC8NS
Jun 21, 2012
4,968
Joined
Jun 21, 2012
Messages
4,968
The complexity of what you want to do depends a lot on the ADC resolution and accuracy. For an 8-bit ADC, it's not much of a problem. For a 23- or 24-bit ADC, it's a lot more complicated.

Many microprocessors have uni-polar ADC built-in. The Arduino Uno, for example, has an ADC with a 0 to +5 V DC input range. The easiest way to use this with a bi-polar -2.5 to +2.5 V DC input is to offset the input with 2.5 V DC so that -2.5 V DC input becomes 0 V DC input and +2.5 V DC input becomes +5 V DC input.

If your input source is "floating" and not referenced to the ADC common, you can just insert a 2.5 V battery in series with the negative terminal of the source, negative terminal of the battery to common and positive terminal of the battery to the negative terminal of the source. Thus, when the source is at 0 V DC, the battery will make the positive terminal of the source +2.5 V DC and you would measure with the ADC the positive terminal of the source with respect to ADC common as +2.5 V DC for 0 V DC input. No op-amp required! The problem might then be finding a stable and accurate 2.5 V DC battery.

You could use an op-amp, connected as a unity-gain inverting summing amplifier, and apply -2.5 V DC as an offset voltage to an additional unity-gain inverting summing input. That is, use a 10 kΩ resistor from the op-amp output to the inverting input and connect two additional 10 kΩ resistors to the inverting input, one for the signal you will digitize and one for the -2.5 V DC offset. Apply the input signal you want to digitize (-2.5 V to +2.5 V DC) to one of the resistors and apply the -2.5 V DC offset to the other resistor.

Connect the non-inverting input to common through a 3.3 kΩ resistor, or actually through a resistor that is the value of three 10 kΩ resistors connected in parallel, but 3.3 kΩ will be close enough for most purposes. This resistor is there to equalize the bias-current offset voltage generated by bias currents flowing from the inverting and non-inverting op-amp inputs. The result should be +2.5 V DC output when zero input is applied, rising to +5.0 V DC when the input is -2.5 V DC and falling to 0 V DC when the input is +2.5 V DC.

With the op-amp inverting the polarity of the signal input, the ADC output will vary from zero, with +2.5 V DC input, to full-scale with -2.5 V DC input. If you need to preserve the polarity information of the input signal, you can do this in software by performing math operations on the ADC output. The biggest problem with the offset binary approach is stability of the -2.5 V DC offset. For an 8-bit ADC the offset can usually be derived from a zener diode with sufficient stability and accuracy.

Another possibility is to use an absolute value circuit, of which there are plenty of examples on the Internet, to always present a positive, uni-polar input to the ADC. You can also add a polarity sensing circuit to provide a "sign" bit for the ADC conversion, a sometimes tricky operation when the input signal is nearly zero.

Did this help you?
 

azadfalah

Jul 17, 2016
15
Joined
Jul 17, 2016
Messages
15
Thanks a lot

for better understanding Please take a example with schematic To sum voltage - 2.5, +2.5 with a constant voltage of 2.5 volts Using opamp
 

hevans1944

Hop - AC8NS
Jun 21, 2012
4,968
Joined
Jun 21, 2012
Messages
4,968
I don't do schematics much. You should be able to draw one from my description and post it here. If you make mistakes, I will attempt to correct them. It's a very simple circuit: four resistors and one op-amp. Or maybe someone else here on EP can chime in with a schematic.
 

BobK

Jan 5, 2010
7,682
Joined
Jan 5, 2010
Messages
7,682
Here you go.

The opamp must be have rail to rail inputs and outputs, and the power supply must be precision regulated to 5V for this to work well. Even then, there will be some bending of the line at the top and bottom of the range.

The graph shows the output for input sweeping from -2.5V to 2.5V.

For more precision at the bottom and top of the range, you would have to use dual supplies of about ±7V or more, and then you could use a standard (non rail to rail) opamp.

Bob

upload_2016-7-24_21-15-21.png
 

CDRIVE

Hauling 10' pipe on a Trek Shift3
May 8, 2012
4,960
Joined
May 8, 2012
Messages
4,960
azadfalah, I made note that you clicked "Liked" in regard to the schematic and transient analysis that Bob took the time to draw. That's all well and good but where's the "Thank You"? Is it possible that you turned in this class assignment and have moved on to the next one?

If my suspicions are correct I can only hope that your instructor interrogates you to determine if you actually did this work and fully understand it.

Chris
 
Top