How to Measure Negative Voltage with an ADC, Part 2...

In the previous article we looked at several methods of measuring negative voltage with an ADC; in this one let's look at a few more methods that deserve attention. One of them can be seen in the currently popular DSO138 kit.
How to Measure Negative Voltage with an ADC, Part 2...

As you can see, this circuit doesn't use a summing amplifier, but the principle is the same as described in the previous article. Let's recall it: we need to set an offset equal to half the ADC's dynamic range (in this case 0 to 3.2), i.e. when 0 volts arrives at the op-amp input, the output should be 1.6 volts (you can see this on the schematic, marked with two asterisks). Then the designers did the following, or at least it looks that way: when -0.8 volts arrives at the op-amp input, the output is 0.07 volts, and when 0.8 volts arrives, the output is 3.27 volts. In this case the ADC's dynamic range is 3.2 volts, and you can see that 1.6 volts is not its midpoint, but that's not essential for us; we're more interested in this measurement method.

Let's simulate the situation the engineers were in: they had a circuit but no resistor values (I've seen a similar circuit in other oscilloscope models; sometimes it's modified and the negative voltage is obtained using PWM and an op-amp).

Let 0 volts arrive at the non-inverting input; then the inverting input should be at the same voltage, and the op-amp output will be 1.6 volts. In this case no current flows through R11, as there is no potential difference. It turns out that the zero at the inverting input is formed by the voltage divider made of R9 and R10.
How to Measure Negative Voltage with an ADC, Part 2...


The schematic shows that the voltage drop across R10 is 3.125 times greater than the drop across R9; since the resistors are connected in series, their resistances are in a ratio of roughly R10/R9 = 3/1. Let's assume R9 = 1K and R10 = 3K.

Let 0.8 volts arrive at the non-inverting input of the op-amp; the inverting input will be at the same voltage, and the op-amp output will be 3.27 volts. In this situation 2.47 volts will drop across R9, and a current of 2.47mA will flow through it.
How to Measure Negative Voltage with an ADC, Part 2...


Then this current splits and flows through R10 and R11.

Let's look at what current will flow through R10.

I10 = (0.8 - (-5))/3000 = 1.93mA


The current through R11 equals the difference between the currents through R9 and R10.

I11 = 2.47 - 1.93 = 0.54mA


Divide 0.8 volts by 0.54mA and we get the value of R11

R11 = 0.8/0.54 = 1.48K


Looking at the schematic, we see that the resulting value differs slightly from the actual one (1.5K); one reason for this is that we didn't account for the op-amp's offset voltage.
How to Measure Negative Voltage with an ADC, Part 2...

Let's simulate the circuit in Micro-Cap at different input voltages.
How to Measure Negative Voltage with an ADC, Part 2...
How to Measure Negative Voltage with an ADC, Part 2...
How to Measure Negative Voltage with an ADC, Part 2...

The pictures above confirm the calculations; the only remaining mystery is why the schematic says that when 0 volts is applied to the op-amp input, its output will be 1.6 volts.

P.S. Two approximations were made along the way: first, that R10/R9 = 3, although we got 3.125; second, the op-amp offset voltage wasn't taken into account in the calculations. In short, this result can't be called a success, so I asked a friend who has a DSO138 to measure the voltage at the op-amp output in GND mode (it can't be 1.6 volts there, I thought). And indeed, in GND mode the op-amp output turned out to be 1.67 volts, which puts everything in its place. I won't correct the calculations in the article, but anyone who wants to can do it themselves, since they now know the calculation method.