# Analog Voltage Measurement

Discussion in 'Analog & Mixed-Signal Design' started by Saravanan0301, Jan 26, 2016.

1. ### Saravanan0301 Thread Starter New Member

Jan 25, 2016
1
0
My requirement is to measure DC voltage in range 20 to 80 using a microcontroller.

Its is stated in the microcontroller datasheet that "The maximum recommended impedance for analog sources is 2.5 kΩ." and the analog input range of the microcontroller is 0-5v.

I am restricted to do this by using voltage divider and op amp. Here scaling down of voltage is done, is it possible to have the gain of op amp less than unity.

I am an absolute beginner so pls provide me a circuit and explain what is the role of op amp (since scale down of voltage can be achieved by voltage divider itself).

2. ### hp1729 Well-Known Member

Nov 23, 2015
1,951
219
Voltage divider first to bring the highest expected voltage down to 5 volts, then an op amp as a simple buffer (non-inverting input, output tied back to inverting input).

Saravanan0301 likes this.
3. ### Bordodynov Active Member

May 20, 2015
637
188
See

Saravanan0301 likes this.
4. ### Papabravo Expert

Feb 24, 2006
10,142
1,790
To answer the original question. In the inverting configuration an opamp can have a gain less than one or greater than one. In the non-inverting configuration the gain must be greater than or equal to one. You need to pay careful attention when operating from a single supply what inversion means.

Oct 15, 2009
4,770
970
6. ### Sensacell Well-Known Member

Jun 19, 2012
1,130
266
I don't see why you would need an opamp?

If you make a simple 2 resistor voltage divider, set the lower R to 2.5 K ohms (satisfies your min source impedance) and choose the upper resistor to scale the input appropriately.

If what you are measuring has a very high impedance, you might use much higher resistor values and buffer the voltage into your ADC input with a simple follower / buffer to satisfy the minimum signal source impedance, as Bordo suggests.

7. ### ErnieM AAC Fanatic!

Apr 24, 2011
7,387
1,605
Sensacell is mostly correct, though the source resistance for a voltage divider is actually with both resistors in parallel (which is the thevenin equivalent). If you can tolerate drawing the 1.6 ma from the 80 volts then an op amp is not required.

If you need draw less then you need to scale the resistors higher and use the op amp. The amp keeps the source resistance the micro sees down to near zero.