Simulated a circuit in LT Spice to convert +/- 10V DAC signal into a 0-3.3V signal for reading by a Teensy 3.6's ADC. Have a work project where I need to read the DAC signal to represent a test machine's spindle speeds and need to bring those into the Teensy so I can broadcast the speeds over a CAN bus.
Following advice, I used the 3.3V as my bias voltage. Can't quite seem to get it down to 0V but this would work too with minimal additional components.
@K.C. Lee suggested using a resistor divider network with a bias voltage to scale and shift the +/- 10V to 0-3.3V. Duh! Why didn't I think of that? Added a LTSpice schematic and output plots of a circuit that gets the job done. I've already ordered the uber expensive LT op-amp, switched capacitance bipolar power supply, and linear regulator for the gen 1 design. Diligently pursuing sunk cost fallacy, I will build up and use the op-amp version for now. For the cost of a semi-precision 10V linear regulator and a few resistors I could've been down the road. Live and learn I guess. Thanks again @K.C. Lee!
@K.C. Lee, been thinking... I am actually not using a differential input signal. I'm actually bringing into two single ended inputs to the Teensy. The test machine DAC is outputting two unqiue channels, representing two different speeds,
Ah. Didn't spend too much time analyzing the opamp.
BTW the 3.3V bias can be tied to the 3.3V supply from the Teensy assuming that's what used as the ADC reference source. The divider requires the antialias filter cap as it also lowers the AC impedance and supply charge to the... more
The resistor divider does the level shifting from +/- 3.3V to 0-3.3V. You can probably play around with divider values for +/-10V. I added a capacitor at the output to form a 1st order anti-alias filter for the 12-bit ADC in my STM32F030 in this project: https://hackaday.io/project/12133-automatic-audio-source-switching
It works very well. (I know you are using differential output.)
@K.C. Lee, been thinking... I am actually not using a differential input signal. I'm actually bringing into two single ended inputs to the Teensy. The test machine DAC is outputting two unqiue channels, representing two different speeds,