Thursday, 2 June 2016

First Power Supply Project - pt1: spec, design and testing theory


So I finished my first Power supply based project the other day and thought I'd start with a modest one. Here's how it came out:


I've decided I'm going to split this one up into 3 or 4 parts as its quite long winded for one sitting! so first off I'd thought I'd cover the design considerations, some specifications and testing.

I wanted a power supply that:
  • have an adjustable output that went as close to 0V as possible and have a maximum output of 20V
  • have current limiting
  • Could fit in the small aluminium enclosure in my parts bin
  • Be constructed and designed out of as many salvaged parts as possible
  • Be based round 1x quad packed op-amp - why make it easy yeh?
Now there are loads of designs out there, so picking is as easy as punching the right terms into google. The most popular of which seemed to be Dave Jones +EEVblog based design, which is based round an LT3080.
A popular design but I wanted to tweak it a little

Not having one of those in my box I decided to base it on an op-amp and pass transistor instead. So you could say a less polished version of the EEVBlog design.

Hunt for parts

After a rummage round my parts bin I found a 18V 20VA transformer which would be perfect to power my design. I needed an enclosure and the enclosure I was going to use for my Load project seemed to tick all the boxes: light, small, robust and the transformer fit inside! So that put 2 high value components off the shopping list!
Remember this?
Pass transistor: found a TIP3055. Seemed to be up to the task. The next high-ish value item was the heatsink. The transistor may have to dissipate up to 25W (18x1.41 = 25.38V x 1A = 25W and a bit, I'm assuming full load at near 0V output).

Then looking at the enclosure, the answer was staring me in the bleedin' face! I know working out the case thermal resistance was going to be a brain ache, so I didn't bother! Its a big chunk of metal with a large-ish surface area on the top! I just went with my gut - admittedly that's really not what your supposed to do, but if it didn't work then I was confident I could figure something out!

Other parts: well there are always resistors and caps, but I need a quad packed op-amp: LM324 - yep got one of those! Also a good power supply is based on a decent voltage reference. I didn't want to use a Zener as a reference as their temp coe. and initial accuracy can be poor and after some careful sorting of my parts I found a couple of AD680's. Very nice! Good temp coe. and initial accuracy!

The temperature in my garage can range from bloody freezing to quite comfortable in the space of a day and I'd rather not have my output be dictated by the weather!

Testing the theory

As with all designs, you first get some testing done. Using SIMETRIX I started testing some designs and observing their performance.
I went through loads of versions - this is version 5


My main hurdle was figuring out why my output voltage was so noisy. Then it became apparent I'd not thought about how my voltage feedback was working. Originally the feedback to my voltage error amp (X2) came directly from the output of the supply. When running the simulation and observing the output I first thought that I needed some filtering in my voltage feedback (C3) as from the response I got:
When you think your on the right track, you sometimes find yourself still going in the wrong direction!
But after looking at the design I was basing mine on, it was clear what I had done wrong! So corrected the feedback and removed C3. I then found that the output became much more stable!

Further simulation also showed that my output needed some regulation current at low voltages and some damping in the voltage amp feedback. Below is a revision of schematic version 5 (above) with the constant current source I1 set to step through  different values of regulation current (0-10mA) and C3 is now a 47uF cap connected to the non-inverting input of X4:
V5 rev1, C3 is now 47uF and position moved and I1 will step through on simulation
Firstly I wanted to see how the output voltage responded to different regulation currents. So I firstly I ran a transient simulation without C3 and set the source V4 (my reference) so that I would get approximately 1V output, and obtained the following:

As it can be seen, that having even a small regulation current on your output means your output voltage will regulated properly, it can be seen at no regulation current that it never reaches its set output voltage!

Obviously the rate at which it falls towards its set point is proportional to the amount of capacitance on the output and the regulation current (falls faster at higher reg currents). My design has quite a bit as you can see (880uF = 4x 220uF) as I would like as little ripple as possible on my output under max current output.

As it can also be seen there is a lot of overshoot! The transient response shoots up to 1.5V and then slowly falls. This is NOT IDEAL. At higher voltages above 1.5V, this overshoot was not as obvious, but voltages below 1.5V it was very apparent! Not good for testing low voltage, sensitive devices.

This is where C3 47uF cap comes in. I added this cap to the feedback loop for X2 and there was a vast improvement in overshoot:

So as it can be seen, with no reg current it still doesn't regulate the output properly, but is not as high. As reg current increases, the recovery from overshoot is quicker, however, too much reg current and there is a tiny bit of undershoot too, so you get some oscillation, but its hardly noticeable.

The overshoot is much less: <100mV.

Feeling devil-may-care I increased C3 to 470uF to to see what happens on the output:

All the different traces for the output for different reg currents are on top of each other, except the case where there is no reg current. You can see the again the overshoot is less (nearly 0 in fact) and that the 0 reg current output is also less. But look how slow the output takes to respond to the transient! That too is not ideal.

One thing that is also apparent with no regulation current is that the output when the set point is 0, is floating about 100mV above 0V, which can be seen in all simulations; another non-ideal case.

I tested the current limiting circuit and the response was as below:
V2 is the set-point of the current limit amp X1, again I ramped I1 (now acting as load current), for each step of V2.

Its a bit strange as 2 of the traces go below 0V, but still they are roughly what I was expecting, but a bit off. I'm not too concerned about how well it current limits.

I don't tend it use constant current mode an awful lot, I'll be mainly use it to ensure that the device I'm powering doesn't overload. So so long as the output voltage goes down once current limit is reached these results are acceptable.

Conclusions

So I settled on 47uF for C3 and a reg current of 10mA. So armed with this schematic and data I moved into CAD.

Goes to show that testing does help refine your design, help understand what's going on and also learn a little bit about the process. I learnt that small amount of regulation current is important and why. Doing it in a SPICE environment also takes the pain out of getting things wrong and having to replace parts on a bread board for example.

I must admit that most of my simulations were based on suck-it-and-see testing, but that's sometimes a good way and if you have some idea of how it works then understanding what's going on becomes apparent.

So in the next part I'll go into the CAD and  what further design considerations I chose.

take it easy!

1 comment:

  1. Find informative this one. Check migatronic products online at wholesale price.

    ReplyDelete