Maker Pro
Maker Pro

Making an adjustable power supply

I want to make an adjustable power supply based on the LM317 voltage regulator, to use with various small electronics projects. I've found numerous designs that use it in the common arrangement of a 240ohm (or thereabouts) resistor paired with a 5K linear potentiometer and a couple of capacitors to output between 1.2 and 37v at up to 1.5A.

Most people seem to power these from "Wall Wart" type plug in power supplies no larger than 12v at 1A, but as one of my projects needs 15v at 1A, I was going to use a spare Dell Power supply that outputs 19.5v at 4.65A as my input supply.

Cards on the table - i'm a n00b :D, so before I barbecue some innocent components can someone tell me if this approach is valid or if the current being supplied by the Dell PS is too high to use in this kind of circuit, or maybe it's not if I modify the circuit? I'm all ears!

Thanks in advance for any helpful advice.
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
You need to consider the amount of power that could be dissipated in the LM317 and plan your thermal strategy to cope with that.

Basically speaking, the power dissipated is the difference between the input and output voltage multiplied by the output current.

So if you want 15V 1A from an input voltage of 19.5V then the power dissipated will be (19.5 - 15) * 1 = 4.5W. This will need a moderate sized heatsink. Something rated at 10 degrees C per Watt would be fine.

Heatsinks are rated by their increase in temperature for each watt of heat put into them. Larger heatsinks have a lower rise in temperature because they (amongst other things) have a larger surface area to radiate heat from. So 10 20degC/Watt heatsink is smaller than a 10degC/Watt heatsink, and a 4degC/Watt heatsink is much larger. This is a case where bigger is typically better.

The idea is to keep the temperature on the chip inside the device from exceeding its maximum temperature (preferably we try to keep it substantially cooler than this). A 10degC/W heatsink will increase in temperature by about 45 degrees and the chip inside the LM317 by maybe 10 degrees more. Assuming a max temperature of 30C, everything stays well below the max temperature (although you might burn yourself on the heatsink on a bad day).

However, the situation becomes far worse if you're operating the device at 2V and 1A. In this case the power dissipated rises to about 17.5W and a 10degC/Watt heatsink will increase in temperature by 175degC. Assume an ambient temperature of 30C and you are over 200C. You can check the specs if you wish, but this is going to be way over the max temp of the LM317.

Fortunately the LM317 will detect this and shut down, but it won't be doing it any good. Off the top of my head, I'd be looking at something rated at about 5 degrees C per watt, but things are still going to be getting quite warm.

There's lots more than this to thermal design, but this is a start.

Apart from that, Yes, an LM317 is ideal for this. It doesn't have a variable current limit, but that's generally more complex to build. Running it from a switchmode power supply means that the input ripple will be low, but also high in frequency. You may have to consider using additional relatively small value, but low ESR capacitors on the input and output to help reduce this.

Current is not supplied, but demanded. Your house is connected to a power supply capable of delivering at the very least several hundred amps (although there may well be a pole fuse that will blow as you approach this) yet your iPod charger (which requires milliamps is not overloaded. Why? Because it is the device which imposes a load that determines the current required. The power supply merely supplies the current demanded by the load (or at least up to the point that it can supply no more). When you switch on a toaster, the load your house represents becomes larger, and more current is supplied, but again, only as much goes to the iPod charger as required, and as much to the toaster as required. The same happens with any other power supply.
 
Thanks Steve. Heatsinks are often mentioned in the context of voltage regulator circuits, but your detailed explanation has helped me understand why and when they are needed. Thanks too for clearing up my confusion about the power supply Amp rating - the quoted 4.65A will be the current demanded by the appliance it was intended to be plugged into, I suppose.
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Yes. It's peak demand (charging the battery and running flat out with the screen at full brightness and the drive spinning, and the USB ports all providing max power, etc, etc.

And even then it may be a little less. It's never a good idea to run things right to their limits if you don't have to. (But I bet they get really close)
 
Yeah, I understand that I could easily source a 15v 1A plug in power supply for my needs, but I want to build a voltage regulator circuit as a project in itself. I can understand that this might sound a bit "lame" to someone with a background in electronics or several years experience in hobby electronics, but i'm an Artist not an Engineer so this is all still relatively new and interesting, however trivial the project.
 
Never mind neon, he's harmless but can be confusing(/-ed) when he comes buzzing by the forums once in a while.. He spent 7 minutes reading & replying to this thread..

How's it going with the project?
 
It's going fine thanks - all breadboarded up and tested (quickly) without the heatsink, which hopefully will drop through my letterbox tomorrow.
 
Top