I have an analog input that I need to measure. The analog input is single-ended and ranges from -10V to +10V.
I want to try and measure that output with an ADC, which has a 0-3.3 V range.
I want -10 V to be 0 V, +10 V to be 2.5 V, and 0 V to be 1.25 V.
Right now, I have -10 V = 5 V, 0 V = 2.5 V, 10 V = 0 V (I can handle just a simple voltage divider to halve the range)
This is the circuit I have now:
simulate this circuit – Schematic created using CircuitLab
I figure that there's some difference amplifier circuit I can use, but my knowledge of these analog circuits is lacking.
On the board, I have spare op-amps, as well as a 1.25 V reference to use.
Here is an easily editable simulation of the circuit.