2
\$\begingroup\$

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?

\$\endgroup\$
  • \$\begingroup\$ An opamp using V- as its -ve supply and V+ as its +ve supply can accept inputs and provide outputs across most of the total supply range (limited by input common mode voltage.) Dpot Vout that is +ve wrt ground can be amplified - still positive and then either translated by a fixed amount to below ground (subtract a constant voltage) OR (better) invert and set relative to ground so for Vpot = 0 to +Vpmax wrt ground the opamp outputs 0 to -Vpmax below ground. This takes a single differential amplifier with unity gain. OR you can roll the gain stage and inverting amp into one. \$\endgroup\$ – Russell McMahon Oct 12 '16 at 11:45
  • \$\begingroup\$ @Russell McMahon - As I understand, you offer to set inverting opAmp for negative reference ping? Would it be hard for you to paint schematic by hand or provide a link from in internet? I would appreciate it. Thank you \$\endgroup\$ – Dmitrij Kirikil Oct 12 '16 at 11:57
  • 2
    \$\begingroup\$ You might look here: hackaday.io/project/4154-bench-power-supply/log/… as it's not too difficult to follow. Just keep in mind that his schematic shows a (+) regulator, but that the design can be flipped to use the LM337 instead for a negative supply rail. There's some text there explaining that fact, but you do have to use your head as well. \$\endgroup\$ – jonk Oct 13 '16 at 9:13
  • 1
    \$\begingroup\$ If you're interested in a start to end video tutorial on basically this exact project, EEVBlog Power Supply Design #1-8 might be a good resource if you run into any "traps for young players." \$\endgroup\$ – Phil C Apr 26 '18 at 4:14
  • 1
    \$\begingroup\$ Just so that you know, there is a much better way to do this which is to use an adjustable SMPS IC like LM2586. Although even the simplest designs are potentially difficult to get right as these are essentially high frequency power circuits which are sensitive. \$\endgroup\$ – squarewav Jun 30 '18 at 5:00
0
\$\begingroup\$

@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

\$\endgroup\$
  • \$\begingroup\$ Just comment about Digital potentiometers. They have limitation for 5V. So I can't use it as ADJ reference more than 5V. (tested yesterday) This means, that I need use digital pot, gain it via opAmp up to 30V, and then apply to ADJ. for negative voltage I must use inverting gain and apply it to LM337. \$\endgroup\$ – Dmitrij Kirikil Oct 14 '16 at 7:33
  • 1
    \$\begingroup\$ LM358 running from 60V total supply? I spy Magic Smoke! You need something like LM344, and even then there's not much safety margin. \$\endgroup\$ – henros Nov 5 '18 at 9:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.