Non-inverting amplifier with offset: ±10 V into a 0 to 3.3 V ADC on E24, 14.4 mV off
A ±10 V signal into a 0 to 3.3 V ADC is Vout = 0.165·Vin + 1.65 V. On a 1.8 V reference that is a non-inverting amplifier with the offset summed into the + input: R1 5.1 kΩ from the signal and R2 910 Ω from the reference, RF 820 Ω and RG 10 kΩ for the gain, all on E24. With an ideal op-amp it reads 0.0144 V at −10 V and 3.291 V at +10 V, 14.4 mV and −9.0 mV off.
With 1% resistors and a 0.1% reference the low corner at −10 V is −20.3 mV, below the ADC's 0 V, and the high corner at +10 V is 3.321 V. Above 1.976 V the wizard refuses this line: it would need a gain below 1 ahead of the divider.
Change this: set the reference to 1.25 V in the wizard and its best E24 set (R1 30 kΩ, R2 3.9 kΩ, RF 4.7 kΩ) misses by 65.0 mV at −10 V.
Key numbers
| Quantity | Vin = −10 V | Vin = +10 V |
|---|---|---|
| Output, ideal op-amp | 0.0144 V | 3.2910 V |
| Error from the target | 14.4 mV | −9.0 mV |
| Worst case, linear (1% R, 0.1% reference) | ±34.5 mV | ±29.4 mV |
| Worst corner, low | −0.0203 V | 3.2618 V |
| Worst corner, high | 0.0487 V | 3.3207 V |
Every result here is the Op-Amp Lab's own, computed when the site was built from the circuit the button opens, and checked against a hand calculation. How the engine is checked.
The circuit
Vout = (1 + RF/RG)·(Vin·R2 + Vref·R1)/(R1 + R2)
| Part | Value | Where |
|---|---|---|
| RG | 10 kΩ | − input to ground |
| R1 | 5.1 kΩ | Input to the + input |
| R2 | 910 Ω | Reference to the + input |
| RF | 820 Ω | Output to the − input |
| VREF | 1.8 V | Reference |
The numbers use an ideal op-amp on ±15 V rails. Set U1's Vos and Ib on the sheet and the error budget adds their share; its Monte Carlo run gives the spread of 1000 boards.