LM317 dual rail power supply
Mar 24, 2010 at 3:31 PM Post #16 of 33
Beware that if you use the LM317 that way, you need to use a dual-secondary transformer or two independent transformers. I point this out only because it's not shown, and thus might not be obvious.

Regarding your layout, some comments:

1. Your bottom-side traces are fairly thin. This is a power supply, remember. Stiffen those up where you can.

2. The whole-top ground plane is probably a mistake, electrically. You'd have to build it and measure to be sure, but that's my sense from just looking at it. It's providing a coupling path between what you should be thinking of as three separate circuits: AC, unregulated DC, and regulated DC. It might be better to split the plane into those three separate parts, put a good 100 mils or more of space between them, and join them by short trace jumps.

EDIT: I say three circuits, but you only need two planes, unreg and reg DC. Get the plane entirely away from the purely AC side of things. This probably means rotating the bridges, and maybe running a short trace from the one grounded pin into the larger plane.

3. It looks like you're using the official EAGLE mounting hole parts in the corners, so you don't actually need to make those notches in the plane. EAGLE will flood the plane tightly around them, going no nearer than is safe, since it knows the size of typical mounting bolt heads for the shaft diameter you've selected. If you want more space, play with the DRC settings. You have been running DRC, right?

4. R5 and 6 might need to go to 1/2 W. Do the math.

5. The big C7/8 probably isn't very helpful. This is especially true if you're going to have a longish DC cable on the output of this thing, wiping out the low ESR you're buying with that part. Big caps here are only helpful if the downstream circuit doesn't have its own big power rail cap(s). I'd go with the lower values recommended in the LM317 datasheet. If you do, C11/12 go away, too, since lowering the ESR of this cap is again pointless. We're just optimizing local regulator performance here. The downstream circuit has to fend for itself unless you're using very short wire jumps to it so that the output ESR of the regulator actually matters.

6. Speaking of hookup wires, you're only allowing for about 22 ga here. If you can move to the 156 mil pitch Molex KK variant, you can use up to 18 ga, better for low impedance.

EDIT 7. Consider snubbing all of the diodes in your bridges, rather than just across the +/- pads as you're doing now. 10pF ceramics are cheap and may give a measurable improvement in noise.
 
Mar 24, 2010 at 4:34 PM Post #17 of 33
Quote:

Originally Posted by tangent /img/forum/go_quote.gif
5. The big C7/8 probably isn't very helpful. This is especially true if you're going to have a longish DC cable on the output of this thing, wiping out the low ESR you're buying with that part. Big caps here are only helpful if the downstream circuit doesn't have its own big power rail cap(s). I'd go with the lower values recommended in the LM317 datasheet. If you do, C11/12 go away, too, since lowering the ESR of this cap is again pointless. We're just optimizing local regulator performance here. The downstream circuit has to fend for itself unless you're using very short wire jumps to it so that the output ESR of the regulator actually matters.


Kinda agree. I did not build that myself, just bought it. It's a general design i guess, and it's good if you build both boards into the same chassis, then you don't need big caps on the other board.
 
Mar 24, 2010 at 4:49 PM Post #18 of 33
Thanks for all the info. I will change the design accordingly tomorrow.

It will be used in the same chassis so the boards will be quite close together so I think c7/8 will be very usefull especially since i'm not planning on having big supply caps on those boards.

regarding 7, do you mean putting 4 ceramics across B1. one for each diode and the same for B2.

I also just noticed that C2 and C8 are switched.
redface.gif


and as far as hookup wires are concerned bigger is always better
wink_face.gif
 
Mar 24, 2010 at 8:46 PM Post #19 of 33
Quote:

Originally Posted by steven2992 /img/forum/go_quote.gif
do you mean putting 4 ceramics across B1.


Yes. See the TREAD schematic.
 
Mar 25, 2010 at 5:38 PM Post #20 of 33
OK, this is just my opinion, and based on first-hand experience. I don't think the large output caps C7 and C8 are necessary for audio. I prefer a smaller (~100 uF) high-grade cap like an Elna Silmic II or a Nichicon FG.

Also I don't think the heatsinks are large enough for more than 100 ma.

Otherwise an excellent design.
 
Mar 25, 2010 at 8:08 PM Post #21 of 33
Quote:

Originally Posted by joe_cool /img/forum/go_quote.gif
Also I don't think the heatsinks are large enough for more than 100 ma.


While he could reserve more space on the board for bigger heat sinks, he can fix it more easily by moving the regulators right to the board edge. This lets you use much larger heat sinks.

With the current design, where the regulators are slightly in-board, you can still do that to some extent, but you'll run into trouble if the required mounting for the heat sinks means they extend below the board level. You could "form" the leads a bit to fix that, though.
 
Mar 26, 2010 at 4:15 PM Post #22 of 33
I've made the traces bigger, increased the space for R5/R6, added the caps C11-C18, put screw screw terminals instead of molex, moved the lm317 to the board edge and fixed the ground plane.

R5/6 only have to be 0.5W when the output voltage from a single rail is more than 28V. and they actually burn 0.5W when the output voltage is 40V(again, just one rail), and that is the regulator limit so more than 0.5W should never be necessary.

when a temperature rise of 95 C (203 F) is allowed, the maximum current with a 7v voltage difference between input and output is 200mA per rail without a heatsink.
The max package temp is 125 C and with an ambient temp of 30 C the max current is around 240mA per rail so 200mA would be a safe margin.


So even with the small onboard heatsinks a a few hundred mA can be drawn without extreme temperatures

4464379495_b86f35fa91_o.png


4464339701_5f4bf5e469_o.png
 
Mar 26, 2010 at 7:17 PM Post #23 of 33
Quote:

Originally Posted by steven2992 /img/forum/go_quote.gif
The max package temp is 125 C and with an ambient temp of 30 C the max current is around 240mA per rail so 200mA would be a safe margin.


Not unless you're using forced-air cooling or leaving these things uncased. If you rely on passive cooling inside an enclosure, the power supply will heat up the air inside the case, probably past 30C. That's only about 5C above room temp.

Besides which, going right to the regulator's max recommended temp still shortens its life. A rule of thumb I heard once, and try to stick to, is to never go past 85C for semiconductors. If we assume the temp inside the case get to 45C before it stabilizes through radiation from the enclosure itself, that puts the max current you can safely get without a heat sink at 114 mA. I'd say Joe nailed it.

Getting back to the layout:

- I'd increase the trace-to-plane spacing in the DRC. It'll get rid of those filaments at the bottom edge where the unreg DC trace invades the top-side plane. It's a little tight around other components, too.

- The bridge snubber caps have no feng shui.
smily_headphones1.gif
I'd try to distribute them evenly around the bridge, maybe put them on 45s like on the TREAD. The traces to these caps can be pretty thin, since they aren't passing power.

- The AC traces to the bridges seem to be taking more circuitous paths than is necessary. Have you tried all possible 90 degree rotations? Maybe even 45?

- I'd move the right edge of the unreg DC plane back even with the thermals on C1.
 
Mar 27, 2010 at 10:47 AM Post #24 of 33
The power output without heatsinks was just an example to show how much one could theoreticaly draw without heatsinks. I don't think anyone would run power supplys like this without heatsinks, especially not us DIY folkes. Since we tend to go more for overkill than enything else.

I've rotated B1 and B2 and went all feng shui on the snubbers
ph34r.gif
.

4466133223_eb4188d30e_o.png
 
Mar 27, 2010 at 12:12 PM Post #25 of 33
It is getting to the point where you have almost exactly recreated the LCBPS from Twisted Pear. Don't get me wrong, I'm all for DIY, but there's a point where recreating the wheel seems like more effort than it is worth
smily_headphones1.gif
 
Mar 27, 2010 at 5:57 PM Post #26 of 33
Quote:

Originally Posted by Beefy /img/forum/go_quote.gif
It is getting to the point where you have almost exactly recreated the LCBPS from Twisted Pear. Don't get me wrong, I'm all for DIY, but there's a point where recreating the wheel seems like more effort than it is worth
smily_headphones1.gif



Twisted Pear is always out of stock, and this is more like LCDPS since it uses two LM317 regulators. I think the dual 317s sound better especially compared to 78xx regulators.

devast: I bought one of those also, and the sound was unexpectedly crappy. All the aluminum caps were Rubycon except the main filter caps (ICICC 4700 @ 50VDC). I changed those to Nichicon FX (FW) 2200 @ 63VDC and the sound improved immediately. Then I replaced the output caps 1000 @ 35VDC with Nichicon FG 220 @ 50VDC and now it sounds MUCH better.
smile.gif


PS: I'm powering a Dynalo (Gilmore Dynamic) for comparison purposes.
 
Mar 29, 2010 at 12:00 PM Post #27 of 33
Quote:

Originally Posted by joe_cool /img/forum/go_quote.gif
devast: I bought one of those also, and the sound was unexpectedly crappy. All the aluminum caps were Rubycon except the main filter caps (ICICC 4700 @ 50VDC). I changed those to Nichicon FX (FW) 2200 @ 63VDC and the sound improved immediately. Then I replaced the output caps 1000 @ 35VDC with Nichicon FG 220 @ 50VDC and now it sounds MUCH better.
smile.gif



A little offtopic, but maybe that's why i feel that my amp is lacking at the lowend spectrum, and feels a bit bright. I'll try replacing those caps, in the near future.
 
Mar 29, 2010 at 3:23 PM Post #28 of 33
Quote:

Originally Posted by devast /img/forum/go_quote.gif
A little offtopic, but maybe that's why i feel that my amp is lacking at the lowend spectrum, and feels a bit bright. I'll try replacing those caps, in the near future.


Sorry, my point is that circuit topology is very important but even after the PCB is fabricated there may be opportunities to improve the sound quality by subjective parts selection.
smile.gif
 
Mar 31, 2010 at 1:11 PM Post #29 of 33
Quote:

Originally Posted by Beefy /img/forum/go_quote.gif
It is getting to the point where you have almost exactly recreated the LCBPS from Twisted Pear. Don't get me wrong, I'm all for DIY, but there's a point where recreating the wheel seems like more effort than it is worth
smily_headphones1.gif



I know there are a lot of power supply designs and with the lm317 you can't really do anything else than this.

Another main aspect of diy is learning. And that's exactly what this was for. I could have just bought a power supply. But by doing it myself, and with your help, I noticed details I had never noticed before and I learned from them. It also provides a way to get into design without doing something outragously expensive or exotic that no one can help with. This isn't the only thing I'm planning to make, and every mistake I made here I won't make in those projects.

And it's cool to have your name on a circuit board.
ph34r.gif
k701smile.gif
 

Users who are viewing this thread

Back
Top