Amazing. KJ, just one uped on that. although i made a mistake that it needs to be -10mV to +10mV output instead of -20mV to +20mV. Since i use an amplifier by 1000 gain. with a maxium limit of -10V to +10V.hi ff,
Check out the circuit that 'Kj' has posted in Post #16, its another option.
That's the method I would suggest.
E
But when i change the resistor from 11k to 22k i get a simulation error. which is weird. since 11k simulated results work. but not for 22k. I find that quite weird.
Here is my schematic



