Ok, I’m back. Hehe. After studying op amps and learning LTSpice, I came up with this cv input to micro-controller circuit. It uses a rail-to-rail op amp (inverting setup) with a single 3.3V supply and a 1.65V virtual ground.
It has a jack for cv input and two pots. One pot is the offset and the other is for attenuation of the input.
I simulated and studied 4 scenarios and they seem to work :
1) For manual control :
nothing plugged into the input
attenuation pot turned all the way up in the schematic
offset pot=0 to 3.3V
output=0 to 3.3V
2) For -10V to 10V input :
offset pot all the way up in the schematic (3.3V)
attenuation pot turned to .165 ratio. This scales the input down to -1.65V to 1.65V
output=0 to 3.3V
3) For 0 to 10V input :
turn the offset pot halfway (1.65V)
turn the attenuation pot to .33 ratio. This scales the input down to 0 to 3.3V
output=0 to 3.3V
4) For 0 to 5V input :
turn the offset pot halfway (1.65V)
turn the attenuation pot to .66 ratio. This scales the input down to 0 to 3.3V
output=0 to 3.3V
* Here is the issue. I faked the potentiometers in LTSpice with sinusoidal volt sources, thinking that it would represent the full motion of the pots. In real life will these changing impedances at the pots mess with my op amp calculations? I'm thinking they will. Any ideas? Thanks for the help!

It has a jack for cv input and two pots. One pot is the offset and the other is for attenuation of the input.
I simulated and studied 4 scenarios and they seem to work :
1) For manual control :
nothing plugged into the input
attenuation pot turned all the way up in the schematic
offset pot=0 to 3.3V
output=0 to 3.3V
2) For -10V to 10V input :
offset pot all the way up in the schematic (3.3V)
attenuation pot turned to .165 ratio. This scales the input down to -1.65V to 1.65V
output=0 to 3.3V
3) For 0 to 10V input :
turn the offset pot halfway (1.65V)
turn the attenuation pot to .33 ratio. This scales the input down to 0 to 3.3V
output=0 to 3.3V
4) For 0 to 5V input :
turn the offset pot halfway (1.65V)
turn the attenuation pot to .66 ratio. This scales the input down to 0 to 3.3V
output=0 to 3.3V
* Here is the issue. I faked the potentiometers in LTSpice with sinusoidal volt sources, thinking that it would represent the full motion of the pots. In real life will these changing impedances at the pots mess with my op amp calculations? I'm thinking they will. Any ideas? Thanks for the help!
