@PinkDuck@kbin.social avatar

PinkDuck

@PinkDuck@kbin.social

This profile is from a federated server and may be incomplete. Browse more on the original instance.

What's a simplest way to get -5v from +/-12v?

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...

PinkDuck,
@PinkDuck@kbin.social avatar

ah, a little bit of thinking helped me realize that I don't need 1k in inverting loop and then I'll get 5v instead of 5.05v :) and 100k can also be replaced by 1k

PinkDuck,
@PinkDuck@kbin.social avatar

thanks! gonna give it a try tomorrow. I'm pretty new to this, and never used opAmps in non-inverting configuration, so I missed this option

PinkDuck,
@PinkDuck@kbin.social avatar

it worked! (at least in the sim)
thanks a lot!
I'm not sure I got all the math right, since I get 0 - 5.05V on the output, but it's not a deal breaker for me.
I attached the schematics, but not sure that images in comments federate from kbin to lemmy, so if you don't see it, try opening an original link to this comment.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #