Author Topic: 4 Quadrant power supply design and output protection  (Read 5381 times)

0 Members and 1 Guest are viewing this topic.

Offline DumberThanUsualTopic starter

  • Newbie
  • Posts: 3
  • Country: gb
4 Quadrant power supply design and output protection
« on: March 07, 2021, 04:20:28 pm »
Hello!

I am trying to design a four quadrant power supply based on Dave Erickson's PSLoad design. http://www.djerickson.com/ps-load/



I plan to have the supply isolated and do low side current sensing instead of the high side in the picture.

I modelled the circuit in the falstad simulator and it works great but when an inductive load is connected and the output is disabled the voltage on the output jumps. A voltage source such as a battery that is above the supply voltage does the same.
In the schematic, diodes are used to block the energy from going into the positive rail but I am puzzled as to why the same is not done for the negative rail, and how best to protect the power supply from overvoltages.

I dont believe a crowbar circuit would be the best solution as it shorts the outputs and could damage the DUT/battery but im not sure what would work best.

Thanks
 

Online mawyatt

  • Super Contributor
  • ***
  • Posts: 5287
  • Country: us
Re: 4 Quadrant power supply design and output protection
« Reply #1 on: March 07, 2021, 05:07:38 pm »
I would think that high current Schottky diodes to the + and - rails would provide some protection.

This is an interesting project. Since this is basically a DC coupled power amp, have you considered something like the LM1875, LM3886, OPA541 or the TDA 7293? These could be directly driven from a SPI or I2C interfaced DAC used in an 2 quadrant offset fashion, think Microchip has a DAC that you can set the output to produce "zero" when used as an offset fashion. A normal DAC will produce the -Vout at startup with the bits going to all 0 as default when used in offset, I'm sure other DACs have a feature for offset use too.

You might be able to use the "mute" function, like with the LM3866, for some level of output limit control.

Best,
« Last Edit: March 07, 2021, 06:11:04 pm by mawyatt »
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 
The following users thanked this post: DumberThanUsual

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22435
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: 4 Quadrant power supply design and output protection
« Reply #2 on: March 07, 2021, 07:31:22 pm »
So, you're saying it's not supposed to be 4 quadrant after all?  'Cuz that's the behavior you describe... :)


Switched drive to the output looks really sketchy.  I guess that works to stop output current (for output voltages within the rails), but ehh...  And the output is class C, so it's going to perform very poorly for small signals, or at AC.  And why not use U10 for the error amp, or, replace it with a discrete level shifter (faster, lower cost).  And U6.2 and U6.3 can fight each other through the diodes, assuming the inputs can be anywhere.

The feedback decision logic is really weird, too.  Does he mean that the current limit should depend on output voltage?  Because that's what it looks to be doing.


The traditional way to implement CC/CV, is to use independent error amps, preferably clamped in some way to avoid integrator windup.  There are ways to hack that onto conventional op-amps:



Doing it over a full four quadrants is harder.  I've designed a two quadrant controller with operating mode switchable between CC/CV and CV/CC behavior; it took a good, I forget how many exactly like, three quad op-amps plus some analog switches to pull off -- without the switchable requirement, it would simplify of course, but do expect to need more hardware than shown here, to fully circumscribe the 4-quadrant operating range.  Take the time to think very carefully and deeply about what it means to limit current and voltage, which ones should take priority, and over which range each limit should be adjustable (e.g., voltage over the full +/- range, currents only +max and -min with no overlapping range to fight over; or +/-max with sign set by the sign of voltage; or..).  Then breadboard it and test out how it actually behaves.  For every single edge case, contrive a test, and write them all down, and perform every test.  Anything unexpected, go back to the drawing board and figure out how to resolve that edge case, then test again.  Finally, it will be worthwhile to draw schematic and PCB layout, and order boards.


Oh, and that attachment is not even the final schematic, it's copied from a transitional representation on the website.

This is apparently the final schematic:
http://www.djerickson.com/ps-load/files/ps-load1.pdf
though it still has a diode on Q2 but not Q3...

So yeah, it's a weird design.  I don't think the full schematic addresses the feedback logic issue.  But it's hard to tell, it's... sausage.  Badly drawn.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 
The following users thanked this post: DumberThanUsual

Offline DumberThanUsualTopic starter

  • Newbie
  • Posts: 3
  • Country: gb
Re: 4 Quadrant power supply design and output protection
« Reply #3 on: March 07, 2021, 09:29:36 pm »
Thanks for the suggestion.
No, I havent really considered those ICs. They look a bit overcomplicated, probably because im not that experienced, especially with audio :-[, and I'm not sure how to implement one as a plain power amplifier so I think I'd prefer to stay with the discrete amplifier.
Thanks for pointing out the issues with the DAC, I think that Ill disable the output on boot so that the controller has time to set the DAC to half output.
 

Offline DumberThanUsualTopic starter

  • Newbie
  • Posts: 3
  • Country: gb
Re: 4 Quadrant power supply design and output protection
« Reply #4 on: March 07, 2021, 09:53:18 pm »
So, you're saying it's not supposed to be 4 quadrant after all?  'Cuz that's the behavior you describe... :)

if youre talking about the voltage spikes, I wanted to know the best way to protect the output of the supply against exsessive voltages.

(for output voltages within the rails)

Yep i found that issue and couldn't really find a good way to deal with it

And the output is class C

Please forgive my inexperience but what makes it a class C amp instead of an AB amp.

With the diodes, I found a sort of 'dead zone' in the voltage control (if i remember correctly) because of the voltage drop. edit: the negative current limit output from the dac is inverted and the two opamps dont seem to fight eachother.

Thank you very much for your help, Ill have a long and hard think about the CC/CV behaviour and the project as a whole. I'm sure it wont be an easy project but a challenge is always fun. ;D
« Last Edit: March 07, 2021, 10:54:31 pm by DumberThanUsual »
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22435
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: 4 Quadrant power supply design and output protection
« Reply #5 on: March 07, 2021, 11:03:40 pm »
if youre talking about the voltage spikes, I wanted to know the best way to protect the output of the supply against exsessive voltages.

All a matter of what you intend to do -- by switching it off, you're literally commanding current to zero.  Well, an inductor can't go to zero instantly, the rate of change is given by dI/dt = V/L.  The voltage must rise (or fall, whatever the direction of initial current was) in order for current to return to zero.

If it's acceptable that the voltage be clamped to the supply rails, then, do that.  Let the body diodes do their job, don't put a diode in series with it, that'll blow something up.

You could allow the output voltage to swing outside the rails in this specific case; indeed, this was done in CRT vertical deflection amps, they were essentially audio amps with really special controls (since they just need handle a current ramp waveform) and a diode in the output to allow flyback (retrace).  In this case however, that energy still needs to go somewhere, and you can't simply disconnect the control circuit, it needs to continue tracking.  What would happen is, the opposite side transistor conducts (at great expense in power dissipation: it's dropping not just the flyback voltage, but half the supply voltage on top of it!).  The diode allows the voltage to rise outside the rails in this particular case, and prevents backfeeding in case of excessively high load voltages (say, accidentally connecting a 48V battery when the rails are +/-30V), but the downside is all that extra power dissipation in the opposing transistor.

Now, power dissipation may be high under such conditions, but it may not last long, that's the key.  Transitors can handle some amount of energy over time, just so long as junction temperature doesn't exceed limits.  Using this thing actually as a vertical deflection amp, maybe not a great idea, that's a lot of reactive power, i.e. driving a highly inductive load with substantial AC.  But just on/off into stray wiring inductance, or even a motor's winding inductance, not at all an impossible challenge.  The point is to understand the scope of the problem, and implement controls to support it.

So, it's not out-and-out wrong to put diodes there (but, just one is obviously inconsistent), but it needs to be managed properly.  Disconnecting drive, means the flyback voltage rises until whatever limit it accidentally hits -- avalanche breakdown of the transistor or diode.  The diode probably doesn't have much avalanche energy rating, that should definitely be avoided.  The transistor likely has generous avalanche capacity: but it must also be avoided under repetitive duty.  MOSFET avalanche causes cumulative damage, and eventually will destroy the device.  They publish single-pulse ratings, under the consideration that it is exactly that, a one-time event.  It might fail after two, or a dozen, or a hundred, no idea, but it's not going to last forever at that level.  Smaller transients cause less damage, but it's still cumulative as far as I know, and using avalanche breakdown as a design feature, is putting a limited lifetime on the product.

So, the way to handle that, is to:
- Clamp it to the supply, assuming that
1. this is enough voltage to meet whatever inductance and dI/dt load spec you require;
2. the supply either has positive average load so it doesn't ride up from the injected current, or has something to dissipate the excess in (e.g. a shunt regulator or TVS diodes; or maybe a battery or other large reservoir; or in the extreme: perhaps a grid-tie inverter, so the excess received power can be dumped into the grid entirely -- a very efficient option for high power SMPS loads!); or
- Clamp it at the output, using a TVS diode perhaps; or
- Clamp it at the output, using the opposite side transistor, conducting current in the normal way (through the channel).

Yes, you can dissipate precisely the same voltage, current, power and energy, through normal (channel) current flow, or as avalanche; and the one is reliable, while the other accumulates damage.

Well, you still have the possible problem of thermal cycling, that may be a good reason to use lower peak power levels or redundant devices, when targetting high reliability.  But until such a failure occurs, the semiconductor itself won't fail due to normal channel current flow.

Also, in terms of abnormal current flows, body diode current -- it's fine (I_SD).  The voltage drop isn't enough to cause the problems that avalanche causes.  So, just to fill out all two quadrants of device operation; this one is okay, don't worry about it. :)

Also also, the power and energy handling assumes operation within the SOA, including down to DC.  If this isn't specified -- keep shopping.  Old transistors tend to be surprisingly good at this (like the hulking old IRFP here), and many of them, even if they leave off the DC SOA curve, they may still operate down there.  Or maybe they don't because of a die shrink or some other process change over the years, who knows, but maybe it's worth testing to see.

Amazingly enough, newer transistors (Superjunction), despite having higher power density than ever (smallest die area for Vds(max) * Ids(max)), often come with DC SOA.

And, SOA limitations are exacerbated by high voltages (more power density per ampere), so this is more of an issue for high voltage parts.  You rarely see BJTs capable of nominal power dissipation above 200V (which is coincidentally about where product lines end, for linear amplifier BJTs); MOSFETs you quite often can find, however.  (We aren't even talking enough voltage to need Superjunction type MOSFETs: under 200V or so, they're just ordinary -- albeit still very highly optimized -- VDMOS types.)

And that's another thing, BJTs may prove more friendly here, because the supply voltage is low, the voltage offset (Vbe) is much lower, and the gain is quite high (namely transconductance, dI_c / dV_be).  hFE is the downside, you may need a relatively strong gain stage to drive them (10s of mA I_b).  You're basically making an audio amp and wiring it for DC coupled output, and adjustable up/down current limits.  The, at least the basic skeleton of that, is an extremely well studied subject.

Quote
Please forgive my inexperience but what makes it a class C amp instead of an AB amp.

With the diodes, I found a sort of 'dead zone' in the voltage control (if i remember correctly) because of the voltage drop.

Thank you very much for your help, Ill have a long and hard think about the CC/CV behaviour and the project as a whole. I'm sure it wont be an easy project but a challenge is always fun. ;D

Class means:
As the setpoint voltage varies, and assuming a resistive load:
Over most of the half-cycle, one transistor conducts, then {both|partially|neither}, then the other during the other half-cycle.

Class A is both 100% of the time.  Both transistors remain on (Ic or Id > 0).  Conduction is 100%.
Class AB: conduction between 50-100% of the time.  For small signals of course, operation is fully class A, but as signal level increases, the devices approach and pass into cutoff during part of the cycle.
Class B: conduction about 50% of the time.
Class C: conduction less than 50% of the time.

Class B isn't a great definition, because no linear device turns on and off suddenly; semiconductors in particular have an exponential cutoff.  A more specific definition might be used, like quiescent current some small fraction of peak current, like, 0.1% or something I don't know?

Anyway, this is class C, because for gate voltages between +/- Vgs(th), drain current is zero -- both are off, thus conduction is below 50%.  It's not much below, maybe that's a dead-band of 4V out of a total swing of 50V or something -- but it is definitely there.

(A more typically "class C" amplifier might have a conduction angle of 25-40%, giving good efficiency (60-80%?) near maximum power output, but very high distortion -- when that distortion can be filtered off, it's quite effective.  Hence the use in RF amplifiers, particularly for FM, or AM with "plate modulation".)

Anyway anyway, the consequence here is the dead zone that the control circuit has to wrangle, destroying small-signal and AC performance.  The cure is to insert a voltage between gates, that is somehow exactly the sum of both Vgs(th)'s, and therefore biases the transistors into conduction a specified and stable amount.  Trouble is, Vgs(th) has a negative tempco, so as the transistors heat up, they explode... this is approximately half the science of audio amp design, getting stable biasing through clever circuit and thermal design.

And BJTs are, I think, more straightforward on this, with Vbe also having a negative tempco but a rather well defined one; -2mV/C isn't it?  The usual strategy being, put a stack of diodes inbetween, pass a bias current through them, and stick 'em on the same heatsink as the outputs so their Vf tracks Vbe.  There's a bit more to it than that, but that's the basic starting point.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline Medved

  • Contributor
  • Posts: 30
  • Country: cz
Re: 4 Quadrant power supply design and output protection
« Reply #6 on: March 09, 2021, 05:39:45 pm »
Is this supposed to be a lab instrument or some source to given fixed application?
Because for a lab instrument I'm missing there some fast acting real overcurrent protection (like bipolars sensing by their Vbe directly the drop across the sense resistor and directly shunting the MOSFET gates). It does not have to be accurate in any means (1.5..2x the max rated current is stil OK), but it needs to be fast.
Otherwise first hard short on the output (it will happen with a lab instrument way more often than you would think of) and bye-bye MOSFETs.
Don't ask me how do I know... :-)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf