Low frequency level shifting using single supply opamp
Calculate the voltage on the inverting input to the amp using a resistor divider equation (they exist for three resistors).  Call it \$V_-\$, make it a function of \$V_{out}\$, \$V_{ref}\$, and \$R1\$ through \$R3\$.
Note that it's an op-amp, so as long as it's stable, \$V_+ = V_-\$.
Write out \$V_{in} = V_-\$ with the function for \$V_-\$, for your low and high voltages (130mV and 0V for one, 500mV and 5V for the other).
You have two equations in three unknowns (R1 through R3).  Solve them for \$R1\$ and \$R3\$ as a function of \$R2\$.
Choose a sensible value for \$R2\$.  This depends on your amp; if you use a low-power rail-rail it'll be 10 to 100 kilo-ohms (don't use that video amp).
Unless you're using a FET-input amp, choose R4 to equal the parallel combination of R1, R2 and R3.
Use the resulting resistor values to find catalog values, and simulate the circuit until it stays in bounds.


I suggest that if your ADC range is 0 to 5V that you choose limits of 100mV to 4.9V, to account for part-part variations in voltage offset in your circuit.







simulate this circuit &ndash; Schematic created using CircuitLab