Design new 0 to 30V power supply.

Hero999

Oct 28, 2007
2,433
Joined
Oct 28, 2007
Messages
2,433
As you all probably know, the 30V power supply project on this site has many errors and design flaws.

I'm thinking about designing a new one from scratch but before I do, I'd like to know whether anyone will test it for me?

It's not something I want to build myself because I don't need it. I could breadboard parts of the design but I won't be able to completely test because I don't have all the components so I can't fully test it.

I've already nearly designed it in my head but I haven't committed anything to paper so I'll write a list of decisions I've made so far:

The design shall use a 12-0-12V transformer, when operating at voltages below 13V the power will be taken from the centre tap in a bid to save power thus cutting the heatsink size in half.

It will be a LDO regulator with a couple of N-channel MOSFETs (e.g. IRL540) used as output transistors, I thought about using P-channel devices but gain stability can be a problem and they're more difficult to get hold of.

The current sense resistor will be a very low value <50Ohm to minimise the voltage loss.

The bridge rectifier will consist of Schottky diodes to minimise the voltage losses.

Because the output device is an N-channel, the gate voltage will need to be higher than 30V. This requirement will be met by using a voltage doubler and zener regulator to power the op-amp.

I have decided to use an MC34074 op-amp because: it can be operated from a single supply, has a high voltage rating (44V), is easy to get hold of and cheap.

Perceived risks:
The current sense resistor might prove difficult to get hold of. This can be overcome by paralleling several higher value resistors.

The filter capacitor will need to be very large 22,000

 

Alex Tsekenis

Nov 29, 2009
299
Joined
Nov 29, 2009
Messages
299
What would you like to have tested Hero?

I would like to see a setting for the attack time of the current limiter, a feature not found on cheap or DIY power supplies.

50 Ohm still sounds large to me, how about something in the 10's of milliohms range and a low input voltage offset differential amplifier? LT does such ICs, maybe it is worth having a look there.

 
Last edited by a moderator:

Hero999

Oct 28, 2007
2,433
Joined
Oct 28, 2007
Messages
2,433
I meant 50mOhm  ;D

I like the timer on the current limiter. It's probably easier to implement it as a simple RC time constant in the feedback rather than a timer.

A low offset amplifier sounds like a good idea but I would rather have something pretty standard, rather than a proprietary IC only made by one manufacturer. Perhaps I could start with Linear and find other ICs from other suppliers to suggest as substitutes.

Are you saying it doesn't need to be tested and that me designing it, simulating it and submitting it to a peer review on this site should be enough?

Ideally I would say, yes it doesn't need to be tested but I know from experience about how unpredictable things can be, especially when you factor in people building it with different components from different manufacturers.

 
Last edited by a moderator:

Alex Tsekenis

Nov 29, 2009
299
Joined
Nov 29, 2009
Messages
299
OK, 50mOhm is not tragic. I agree with standard components for this project. RC constant is the first thing that comes in mind here too. I dont think more than two settings will be needed, one slow and one very fast, so maybe a simple SPDT switch that connects a resistor in parallel will be sufficient.

No, it needs testing no matter who designed and reviewed it. What I meant was, what will you need for your testing? Are you going to built it on a breadboard/perfboard and have someone else test it? Submit a schematic, someone builds it and tests it? etc.

As long as people use the components in the BOM and havent messed up, it must work, and that is what we should aim for. Now, if there are some non 555-like parts, you could offer an alternative and test that config too. But you cant test every possible config. You will invest time developing the circuit around some specific parts therefore whoever builds it must invest time in finding the parts, possibly with help from us. Otherwise your efforts are in vain.

Have a look on Maxim-IC, their sampling system is like Santa Claus these days.

 
Last edited by a moderator:

Hero999

Oct 28, 2007
2,433
Joined
Oct 28, 2007
Messages
2,433
I agree, it needs testing, as well as a peer review.

There are other components such as a large 24V transformer or a 3A 35VDC power supply.

I could test it at lower currents and voltages using my 1.5A 30VDC PSU but it't probably isn't worth it.

My intention is to build it, post the schematic and BoM, you lot can review it and one of you can test it, then it can become an official project or at least be put on Silicon tronics.

 

Alex Tsekenis

Nov 29, 2009
299
Joined
Nov 29, 2009
Messages
299
I have a dual 36V, 4A PSU that can be used to simulate the transofrmer and PSU. However, we will be deviating from the idea of testing the whole prototype.

Don't worry about testing, you have me willing to do it if noone else is keen, so I would tick that on your list. I would like to test the entire prototype if possible, maybe help with PCB design?

 

PicMaster

Feb 18, 2009
90
Joined
Feb 18, 2009
Messages
90
I'm willing to give it ago and help in testing, and help out with the PCB design if needed, I've got most of the parts but depending what parts are used, I have a 30V 600Va transfomer and a 12+12V 300Va tansformer, The only parts I may need to get are the op-amps

 

Hero999

Oct 28, 2007
2,433
Joined
Oct 28, 2007
Messages
2,433
Alex,
The trouble with using a stabilised supply is it won't test the ripple rejection.

PicMaster,
That looks like it aught to do the job.

Attached is revision 1, it's not finished.

As you can see, the power supply for the op-amps is taken from a voltage doubler. This is required because the gate voltages for the MOSFETs need to be above the supply to turn them fully on.

U1 is configured as a non-inverting amplifier with a gain of 5.1, M2 and M3 connected in the feedback loop.

U2 is a differential amplifier with a gain of 66 2/3, the output voltage is equal to 1V for every Amp of current drawn.

U3 is an error amplifier which is responsible for the current limiting, when the voltage from U2 exceeds 3V, the gate signal to M2 and M3 is diverted to 0V, D10 prevents the U2 from trying to turn on M2 and M3 more when the current is under the limit. C5 and R18 provide phase conpensation to prevent oscillation.

U4 is a comparator, it's responsible for switching to the higher input voltage as explained below.

When the Vout is under about 14V, the power is taken from the transformer's (simulated by V1 and V2) centre tap via D5. When the output voltage rises above around 14V, U4 turns on M1 which connects C1 to the higher voltage side of the rectifier. R11 provides some hysteresis which prevents oscillation.

The circuit is not finished. It needs some of resistors replacing with potentiometers and a way to delay the current limiting.

What sort of delay do you thing would be acceptable?

Maybe the compensation capacitor could be moved to the differential amplifier and another capacitor added U3. A pot. could be used to adjust the delay.

View attachment 40785

 

PicMaster

Feb 18, 2009
90
Joined
Feb 18, 2009
Messages
90
It's looking vey nice,  ;D
What op-amps are you thinking of using ?

Where does IOUT go that feeds the op-amp ?
Aslo which one aught to do the job 15 + 15V(sorry I put this down has 30V) or the 12+12V ?

Has for the delay I would think it should be fast enough to trip If I understand it correct, I let you guys think that one out.  

EDIT: I 've just reread the topic and I think I know which op-amp and transformer needed but just like to make sure

 
Last edited by a moderator:

Alex Tsekenis

Nov 29, 2009
299
Joined
Nov 29, 2009
Messages
299
What sort of delay do you thing would be acceptable?
A few 10s of ms I would think.
How about a capacitor between the output pin of U2 and ground through a variable resistor? No further modifications needed.

You can cover a huge range with a reasonably sized capacitor as you can always set R=0 with the variable resistor. Wiper debouncing will be taken care of by the capacitor following it.


 

Hero999

Oct 28, 2007
2,433
Joined
Oct 28, 2007
Messages
2,433
It's looking vey nice,  ;D
What op-amps are you thinking of using ?
I haven't decided yet.

At the moment I've used the generic op-amp model found on LTSpice.

Where does IOUT go that feeds the op-amp ?
Guess.

Hint: it isn't an input, it's an output.

Has for the delay I would think it should be fast enough to trip If I understand it correct, I let you guys think that one out. 
As drawn the RC time constant is 10
 
Last edited by a moderator:

Alex Tsekenis

Nov 29, 2009
299
Joined
Nov 29, 2009
Messages
299
My main concern was latch-up of switch-mode PSU controllers when a bath-tub voltage input is applied, hence the delay. I think that the actual delay time will require experimentation in the particular application. Most circuits will not mind whatsoever, maybe a few MCU design will fail to reset. A setting could exist that applies a delay as a function of current drawn, like in an inverse time overcurrent relay. Maybe this is an overkill as the currents involved are rather small and ultimately limited by the transformer.

An adjustable 0-100ms adjustable rise time on the output of the current sensing dif. amp should be enough for most applications. I expect the output resistance to be too low to allow for a reasonably small capacitor, but you can subtract it from the resistor value (tolerances?) There is a compromise here, how much time your tank caps take to charge and how much time an IC or transistor at 3A takes to blow up.

I did look at the schematic, particularly interested in topology. Would you share the LTSpice file? I can have a block-by-block look then.

How does the PSU behave with a step on it's output, say 10% to 100% current and back? How about adding some resistance/capacitance to the sine sources?

 

Hero999

Oct 28, 2007
2,433
Joined
Oct 28, 2007
Messages
2,433
Here's the .asc file and .asy file, just remove the .txt extension.

I realised that adding a potential divider or switch to the summing junction of an op-amp is probably a bad idea unless it's directly mounted on the PCB or connected with screened cable.

I haven't simulated any transients yet or changed the internal resistance of the sine wave generator.

0_to_30V_3A.asc.txt

Upside_dwn_Universal_opamp_.asy.txt

 

Attachments

  • 0_to_30V_3A.asc.txt
    8.6 KB · Views: 27
  • Upside_dwn_Universal_opamp_.asy.txt
    1.2 KB · Views: 17
Last edited by a moderator:

Alex Tsekenis

Nov 29, 2009
299
Joined
Nov 29, 2009
Messages
299
Ok, we need the universal op-amp asy and the sub file it points at.
Also, the upside-down op-amp asy and the sub file it points at if different.

Zip and attach if possible.

 
Last edited by a moderator:

Hero999

Oct 28, 2007
2,433
Joined
Oct 28, 2007
Messages
2,433
Ok, we need the universal op-amp asy and the sub file it points at.
Also, the upside-down op-amp asy and the sub file it points at if different.

Zip and attach if possible.
Both the upside down and universial op-amp symbols point to UniversalOpamps.sub which should already by in the sub directory, it's a standard LTSpice library which should already be there.

I got the file name wrong earlier, it's Upside dwn Universal opamp .asy I missed the space which was probably a mistake in the first place but I'm not going to rename the file because lots of other schematics use it.

Yes zipping is probably better for large files, code tags are only good for very small files. I've renamed them to .txt and edited my previous post.
 

Alex Tsekenis

Nov 29, 2009
299
Joined
Nov 29, 2009
Messages
299
Right, I will give them a try. In the meanwhile, what are the output specs of the project? 0-30V 0-3A? I was thinking, since you have engaged into designinmg a new one why not juice it up a little bit, say 50V 5A?

I was also thinking how nice a digital front-end would look like, a small LCD with up/down buttons to set current limit, attack time and output voltage. I am very keen on a portable powerful psu with a fancy front panel.

 

Alex Tsekenis

Nov 29, 2009
299
Joined
Nov 29, 2009
Messages
299
I have associated all the file names and all the symbols load correctly. However I get the following error. See attached. Any ideas? Could you post your universalopamp.sub file?

View attachment 40788

 

Hero999

Oct 28, 2007
2,433
Joined
Oct 28, 2007
Messages
2,433
Right, I will give them a try. In the meanwhile, what are the output specs of the project? 0-30V 0-3A? I was thinking, since you have engaged into designinmg a new one why not juice it up a little bit, say 50V 5A?
30V@3A was the original design spec.

Increasing the current capacity won't be a problem but the a voltage would be. The op-amp needs to be powered from the output voltage plus 6V to turn the output MOSFET on. The trouble is most op-amps are rated for 44V or less.

I'm sure it's possible to increase the voltage to 50V but it'll need a total re-design: a 40V centre tapped transformer (does such a beast exist?), P-channel MOSFETs (this will make it less stable), and moving the current sensing resistor to the low side.

I was also thinking how nice a digital front-end would look like, a small LCD with up/down buttons to set current limit, attack time and output voltage. I am very keen on a portable powerful psu with a fancy front panel.
Unfortunately I don't have enough experience with micro-controllers to do that but adding such an interface shouldn't be hard for someone with the know how.

At the moment, the regulator uses a 5V voltage reference, see Vref on the schematic I haven't decided on an IC yet.

The output voltage is simply Vref*5.1 giving a voltage of 30.5V. I was intending to use a potentiometer but there's no reason why the Vref can't be the output of a DAC.

The curent limit is set by R14 and R15 which form a potential divider and is simply equal to the voltage across R15. At the moment it's set for 3A, I'll probably increase the maximum current limit to just above 3A to allow for tolerances. Again, I was intending to use a potential divider and it'll be easy to connect to a DAC.

Iout outputs a voltage proportional to the current, just connect it to an ADC.

A programmable current limit delay will probably me more tricky, maybe you could use a digital pot. but I don't know if you can get them which can be interfaced with an MCU?

I have associated all the file names and all the symbols load correctly. However I get the following error. See attached. Any ideas? Could you post your universalopamp.sub file?
See attached.UniversalOpamps.sub.txt

 

Attachments

  • UniversalOpamps.sub.txt
    3.5 KB · Views: 11

Alex Tsekenis

Nov 29, 2009
299
Joined
Nov 29, 2009
Messages
299
How much current can you draw without a total redesign of the topology? By upgrading all components in the main current path we can easily get >5A. This will be very useful. 10A would be ideal.

I think you meant Vout = Vref*5.1 + Vref = 6.1*Vref = 30.5V

I was thinking of digipots as a retrofit but DACs will probably be cheaper.

I have noticed you changed all op-amp supplies to +V+6V. Are you considering using a quad op-amp to keep the pcb compact?

I still get the SPICE error. Not sure what is wrong.

 
Top