Hi! I’m working on an arduino project that has a -12v/0v/+12 psu. +12 is fed directly into arduinos voltage regulator, so there’s also a +5v line available. I need to convert a -5v+5v signal to 0v+5v to feed it into arduinos analogue input and I’ve already mocked up a schematic in circuitjs based on an opamp that seems to do what I want. The only problem is that it needs -5v to shift the signal to be unipolar. I know that I can invert +5v using another opamp, but maybe there’s some simpler way? I’d really like to avoid adding another opamp just for this? In this schematic I used simple voltage divider to get the needed voltage, but I guess that’s not the best approach?
TLDR: I have -12v, 0v, +12v and +5v, what’s the easiest way to get -5v?
You’re right of course. Two more questions if you don’t mind:
At the moment you’re also mixing up your + input. 10V AC + 5V DC result in 7.5V input in your sim.
I already ordered PCB for the prototype. I hope it’ll work fine. Thanks a lot for your help :)