Author Topic: ADjust voltage with DAC?  (Read 5646 times)

0 Members and 1 Guest are viewing this topic.

Offline echen1024Topic starter

  • Super Contributor
  • ***
  • Posts: 1660
  • Country: us
  • 15 yo Future EE
ADjust voltage with DAC?
« on: September 22, 2013, 11:01:03 pm »
So, I have the circuit below:

And I would like to know how to implement a DAC, such as the MSp4725, to adjust the voltage. I know that the LM317 tries to form a 1.25v reference between the Vout and the ADJ pin, but how would I emulate this digitally. Also, as far as I know, I would need an Op=Amp to amplify the signal of the DAC. Circuit diagrams are very much appreciated, as well as any other help

Cheers,
Eric
I'm not saying we should kill all stupid people. I'm just saying that we should remove all product safety labels and let natural selection do its work.

https://www.youtube.com/user/echen1024
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: ADjust voltage with DAC?
« Reply #1 on: September 22, 2013, 11:48:53 pm »
Sum the DAC output + PS output to the ADJ pin: increasing the DAC output will lower the output voltage, and vice versa.
================================
https://dannyelectronics.wordpress.com/
 

Offline kizzap

  • Supporter
  • ****
  • Posts: 477
  • Country: au
Re: ADjust voltage with DAC?
« Reply #2 on: September 23, 2013, 01:48:26 am »
Just use an op-amp at the adj pin of the LM 317, with the op-amp out to the adj pin, the voltage out to the inverting pin, and the wanted voltage reference fed into the non-inverting pin(+). The op-amp will do the job of offsetting the 1.25V (or whatever it will be) to drive the 317 correctly.

-kizzap
<MatCat> The thing with aircraft is murphy loves to hang out with them
<Baljem> hey, you're the one who apparently pronounces FPGA 'fuhpugger'
 

Offline echen1024Topic starter

  • Super Contributor
  • ***
  • Posts: 1660
  • Country: us
  • 15 yo Future EE
Re: ADjust voltage with DAC?
« Reply #3 on: September 23, 2013, 02:03:36 am »
Ok. What type of Op-Amp would I need. A precision, speed, etc...
I'm not saying we should kill all stupid people. I'm just saying that we should remove all product safety labels and let natural selection do its work.

https://www.youtube.com/user/echen1024
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: ADjust voltage with DAC?
« Reply #4 on: September 23, 2013, 04:48:08 am »
Ok. What type of Op-Amp would I need. A precision, speed, etc...

The LM317 doesn't care if its adjust pin is driven directly by a DAC or an OpAmp. It cares that whatever it drives can sink (not source) the current established by the resistor between out and adjust.

If the common 120 Ohm are used that would be 10 mA. And sinking 10 mA is a problem. One way to solve this is to reduce the current. The price to pay for this is that the minimum LM317 current needs to be established in another way, an additional load on the output. Another one would be to drive the adjust pin with a transistor, introducing more non-linearity.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline kizzap

  • Supporter
  • ****
  • Posts: 477
  • Country: au
Re: ADjust voltage with DAC?
« Reply #5 on: September 23, 2013, 05:36:26 am »
Ok. What type of Op-Amp would I need. A precision, speed, etc...

The LM317 doesn't care if its adjust pin is driven directly by a DAC or an OpAmp. It cares that whatever it drives can sink (not source) the current established by the resistor between out and adjust.

If the common 120 Ohm are used that would be 10 mA. And sinking 10 mA is a problem. One way to solve this is to reduce the current. The price to pay for this is that the minimum LM317 current needs to be established in another way, an additional load on the output. Another one would be to drive the adjust pin with a transistor, introducing more non-linearity.

As Bored@Work said, it doesn't really matter too much as to the speed, as ideally the power supply will not need to react too much to changes (unless of course you have a Constant Current mode tied into the amplifier as well). The more important thing that you will need to consider is that you will need to power the op-amp from a voltage source that will be able to go above the required output voltage, so that the upper extent will need to go to Vout -1.25 at a minimum, you should be able to simply tie this to the input voltage of the LM317, and if you want to be able to drive the voltage down to zero volts, you will need to provide a negative rail. And one final trick you will have to worry about is the voltage differential between the rails, most Op-amps don't have that great of a voltage range. I'm thinking something like one of the TL07x or TL08x series might be ok.

-kizzap
<MatCat> The thing with aircraft is murphy loves to hang out with them
<Baljem> hey, you're the one who apparently pronounces FPGA 'fuhpugger'
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf