Electronic – Arduino controlled bench power supply

powerpower supply

I'm looking for a schematic to control LM317 and LM337 from Arduino via digital Pots MCP42010.
I'd like to build this schematic (input dual 30V, 500mA transformer per coil)

this schematic
However, with digital pots instead, so it will allow me to control voltage from a microcontroller.
However, I must add opAmp in order to use digital pots and I can do it only for positive voltage

enter image description here

But for negative voltage, I didn't find any schematic yet.
Could anyone post me a link for schematic where could I control LM337 and LM317 at once with digital pots or opAmps?

Best Answer

@Russell McMahon - Circuit with inverted opAmp worked. At the moment I can't do full test, but with voltage converter (+30 and -7, basically no load only oscilloscope test), values moves full range up and down. I need to set proper resistor values and use proper transformer. But I think it will work anyway. And I came to idea to use as reference source digital pots them-self. So simply replace opAmp outputs to digital pots. But this needs to be tested later on. If you'll get other useful links to related topic, please post those as well. Thank you. :)

enter image description here