Author Topic: PSU design question (analog vs. digital control)  (Read 2648 times)

0 Members and 1 Guest are viewing this topic.

Offline homebrewTopic starter

  • Frequent Contributor
  • **
  • Posts: 293
  • Country: ch
PSU design question (analog vs. digital control)
« on: January 04, 2014, 10:40:58 pm »
Perhaps a stupid question but why are Dave and other Lab-PSU designers using analog control circuits for voltage and current regulation? In all designs that I am aware of, the microcontroller 'only' sets the desired voltage and current through DACs and the actual regulation part is done in analog hardware.

Why not just do proper PID control in software? The uC could sense current and voltage and drive the series pass transistor through a single DAC (or even PWM).
The big advantage would be that the system could be parameterised completely in software for both accuracy as well as stability. And it might also even be cheaper ...

I don't like to believe that this is a safety thing. If the controller goes bust in the traditional circuit, it could also set an undesired voltage to the output ...

Is there any real reason?
 

Offline Dave

  • Super Contributor
  • ***
  • Posts: 1356
  • Country: si
  • I like to measure things.
Re: PSU design question (analog vs. digital control)
« Reply #1 on: January 04, 2014, 10:48:58 pm »
Not fast enough. An analog feedback loop will always be faster than an ADC + data processing + DAC.
<fellbuendel> it's arduino, you're not supposed to know anything about what you're doing
<fellbuendel> if you knew, you wouldn't be using it
 

Offline homebrewTopic starter

  • Frequent Contributor
  • **
  • Posts: 293
  • Country: ch
Re: PSU design question (analog vs. digital control)
« Reply #2 on: January 04, 2014, 10:55:21 pm »
An analog feedback loop will always be faster than an ADC + data processing + DAC.

That's certainly right but what is fast enough? 0.5MSPS + Processing for example seems very doable on nearly any modern uC ...
What would your estimate for a minimum sampling and update rate?
 

Offline Dave

  • Super Contributor
  • ***
  • Posts: 1356
  • Country: si
  • I like to measure things.
Re: PSU design question (analog vs. digital control)
« Reply #3 on: January 04, 2014, 11:06:23 pm »
A few microseconds, tops.
That would have to be the time from measuring a change, to applying the appropriate correction to the DAC.
« Last Edit: January 04, 2014, 11:08:04 pm by Dave »
<fellbuendel> it's arduino, you're not supposed to know anything about what you're doing
<fellbuendel> if you knew, you wouldn't be using it
 

Online tszaboo

  • Super Contributor
  • ***
  • Posts: 7940
  • Country: nl
  • Current job: ATEX product design
Re: PSU design question (analog vs. digital control)
« Reply #4 on: January 05, 2014, 12:24:23 am »
Why not just do proper PID control in software? ...
Is there any real reason?
Yes, the reason is that it is way too easy to solve the problem with two resistors. There are countless analog power supplies, which have everything built it, and I can design a new power supply in an hour if I really want. With a microcontroller, you need an external switching device, usually a driver for it, voltage sensing for the feedback, programming port for your micro. Also, you need to take care, so a breakpoint doesnt blow up your carefully designed power supply, or it doesnt blow up the first time you power it.
And then you also need an extra power supply, just for the microcontroller.
Besides, digital control is slower than analog. And you can make a decent PID with 3 resistors, capacitors and an opamp basically.
And after you designed it, you need to characterize your supply, which is already done if you use an off the shelf IC.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf