One idea might be to use an op-amp, like LMC662, and raise the negative voltage with the offset fed into the op-amp. But since the span is |-2-12|=14 volts you will need a divider too. So I would use a divide first to down scale the voltage range with a 2 resistor divider and obtain maximum 3 volts when the input will reach 12. That is because the op-amp would have an offset of 2 volts,so the output would be raise to 5Volts.
The divider should be a divide by 4, like 3K from input to common node and 1K down to earth.
The common node is going to feed the +input of the op-amp and the - input of the op-amp would get -2 offset voltage (with a low Z source). The output should be connected to the -input (follower). Now the power supply should be +/- 5 volt at least (sorry...).
Ioannis
Bookmarks