What's new

pc psu to power diy led light?

Voidling

Member
I picked up two PC psu today. It seems like a waste of power to just run 2-4 fans. Can they be used to power a DIY panel?
 

T_B_M

Member
Yes, but you would need more driver circuits because you are limited to 12V DC max. The cheapest driver I built using wire wrap was with the LM317 IC, a capacitor, and a power resistor.

Here is the data sheet: LM317. Page 18 gives the circuit. To figure out what size resistor you need, use the following:

The reference voltage on the Adj. pin is 1.25V. That never changes. So we use Ohms Law to figure out the resistance based on the current we want. For my case I ran 700mA, or .7A. So if I want .7 Amps based on a reference voltage of 1.25V, I would use the formula:

E = I x R (Voltage = Current x Resistance)

We want to solve for R, so:

R = E / I
R = 1.25V / .7A
I = 1.78 Ohms

Pick a value that is close to this one. A larger valued resistor will give less current. A smaller resitance will give more current.
I will go with 2 Ohms for convenience sake.

So 2 Ohms will result in:

E / R = I
1.25V / 2Ohm = .625A or 625mA (This is the actual current using a 2 Ohm resistor)

What power rating will the resistor need?

Power = V x I
Power = 1.25V x .625A = .781W

Shoot for a 1W to 1.5W resistor. You want to go at least 25% more.

Calculating LEDs strings:

Blues/Whites:
12V / 3.3V = 3.6 LEDs. You can bump to 4, they will just run a tad less current. Usually they will only draw 3.2, but I calculate using a slightly higher operating voltage to account for irregularities.

For Reds:
12V / 2.3 = 5.21 LEDs. I would run 5. Running 6 would drop the total power for each LED.

You should now see how you would need multiple driver circuits using 12V. I used 24V with my LM317 to power 12 LEDs. Two parallel strings of 6 each running on them.

So lets say you decide to run 4 white LEDs at 625mA using the 2 ohm resistor.

4LEDs x 3.3V each = 13.2V.

This is higher than 12V supply, so you wind up with (13.2V - 12V) / 4LEDs = .3V/LED.

So there will be a .3V loss per LED unless you can adjust the output of your supply over 12V. Most PC supplies have internal potentiometers that you can set adjust the voltage with. Bump it up as high as you can.

Now onto power loss in the LM317:

P = power
Vs = supply voltage
Vd = voltage drop of LEDs (measure the output pin to ground to get actual value)
I = current

P = ( Vs - Vd ) x I
P = ( 12V - 12.9V) x .625A
P = -.5625W

This isn't the actual power loss, your output will just be the maximum allowed by the LM317, and you will have very little power loss. It is most efficient to use up all the voltage you can to eliminate power losses
. Since your output can't be larger than your input...To solve the right way you would use (12V - 12V) x .625A = 0W. This isn't possible and you will always have a little loss.

If you only use 3 white LEDs, it would look like this:

3LEDs x 3.3V each = 9.9V.
P = ( 12V - 9.9V) x .625A
P = 1.31W

Assuming the ambient temperature doesn't exceed 90F / 32C, the maximum allowable temp. rise would be 93C.

The maximum junction to ambient thermal resistance that the LM317 would see is:

θJA = [Tr(MAX) / P]
θJA = 93C / 1.31W
θJA = 70.99 degrees C per Watt

The spec sheet states a max Junction to Ambient rating of 50 degrees C per Watt.

This would require a heat sink. I would try to boost your PSU 12V rail up through the potentiometer if it has one. You would rather not dissipate more than 1W through the LM317, it will get quite hot. I am right around .5W power loss on mine and had to add a small DIY aluminum heat spreader for them. Calculating for the size heat sink you need is another thing all together. I just add a small piece of aluminum until its no longer too hot to touch. Yeah, there are ways to solve for it, but I like to take the shortcut and ball park it.

This is a lot to take in, but there are readings all over the web on constant current sources.

You usually lose a little output voltage from the LM317, so your power loss on the LM317 would be negligible since you are using as much of the voltage on the output as you can. The LEDs won't be as bright, but at 625mA it will most likely not be noticeable.

Real world scenarios will vary, but this is the jist of it. The LM317 is a good place to start for a constant current source. Can't really beat the three components involved. I also feel how hot the IC gets after running. I usually add a small heat sink to them to keep em warm rather than hot.

Wow, this got wordy. Sorry if its confusing, but all the math is here.
 

Voidling

Member
Thanks for all that detail.

I saw on instructables where they combined the 12v rail and -12 volt rail to make a 24 v. I'm not sure how many amps that'd give as +12 is 15a and -12 is 1a. Might not be able to run fans then.

Looks like I'd be better off getting a meanwell or other such driver doesn't it?
 

T_B_M

Member
Thanks for all that detail.

I saw on instructables where they combined the 12v rail and -12 volt rail to make a 24 v. I'm not sure how many amps that'd give as +12 is 15a and -12 is 1a. Might not be able to run fans then.

Looks like I'd be better off getting a meanwell or other such driver doesn't it?


You can run fans on the +12V and GND with no effects on the -12V rail. It does limit you to only a 1 amp string though when using the -12V rail.

Yes, a Meanwell would save you time. Calculate your total voltage you need for your strings to see what size you need. The ELN-60 series would be good for you if you are only planning 50W of LEDs.

Here is some math examples on figuring all this out.

If you want to run red and blue together in the same strings, keep the quantities per string the same.

Assuming I want to run 6 red and 4 white/blue per string at 500mA, this gives me:

(6 x 2.2V) + (4 x 3.2V) = 13.2V + 12.8V = 26V total string voltage.

The ELN-60-27 would be perfect for this. Since it has 2.3A available, you can run multiple strings in parallel. Just use a 700-750mA fuse in line with each string in case something happens to one string, the fuse(s) blow(s), and not the other string(s).

The estimated power for this string would be:
26V x .5A = 13W total string power

Since the driver has 60W available, I could run 4 strings in parallel. The math is:

60W / 13W = 4.6

Since you have some extra power, you could boost them up some if you wanted. The internal Pot. SV2 will let you adjust the current. Start at 500mA and increase a little to use up the extra power. It shouldn't go much over 550mA max with this setup.
 

Voidling

Member
Thanks. I did some sidework 4 months ago with plans to put the money to building a light. So if I ever get paid I'll get to put this to use
 

tiltbit

New member
.............
................

Since you have some extra power, you could boost them up some if you wanted. The internal Pot. SV2 will let you adjust the current. Start at 500mA and increase a little to use up the extra power. It shouldn't go much over 550mA max with this setup.

This seams like an ideal setup for some Osram Dragon Plus's...

:tiphat:
 
T

trem0lo

I think if you wired up directly to the PSU you'd run into problems with current, as LEDs need a constant one to run at peak efficiency. LBM explained it better with his example using resistors.

It's the reason I just used meanwells in my case. I have the PSU running but it just powers the fans and fan controller/temp sensor.
 
T

trem0lo

Yes, I would recommend it. It got pretty toasty without fans drawing air through it somehow. Plus it's keeping my odor control going so i wouldn't want it to fail. My psu fan is not loud, so I guess it depends on the model.*
 

Voidling

Member
These are quite old. I scratched it and using a single wallwart for a single fan at the moment. Not worried about odor as they've popped over the last 4days.
 

Voidling

Member
So this is what I came up for this

6 red and 4 white/blue per string at 500mA
4 strings
24 red 16 w/b total


660nm Red
Mouser part#: 720-LHW5AM1T3T1LZ
Stock: 2,970
Price: $5.61 @ 10 qty.

625nm Red
Mouser part#: 720-LRW5AMHZJZ1Z
Stock: 1,149
Price: $3.13 @ 10 qty.

455nm Blue
Mouser Part#: 720-LDW5AM3T3U35Z
Stock: 145
Price: $6.35 @ 10 qty.

Ultra Whites ~5700K
Mouser Part#: 720-LUWW5AMLXLY6P7RZ
Stock: 400
Price: $6.20 @ 10 qty.


24 Red
14 660nm 78.54
10 625nm 31.30

16 w/b
10 W 62.00
6 b 40.00

$212
Just for the LEDs alone, plus few extra for accidents.

Plus another 85 for driver and pads, then heatsink.

Is that worth it for a 50w light?
Considering that Gotham and HTG all sale lights that are more powerful for same price


And a 50w light in 18"x20" only gives me 20w per square foot. Is that enough for flower?
 

T_B_M

Member
Its expensive when not getting quantity. Mouser and Cutter are my resources.

I like the Osram 660nm. But I use Cree for the other colors. Call me a Cree fanboy, but I like their output.

Alternates to yours:

XPERED - Link
$3.16 @ 10 Qty.
10 Red = $31.60

XPGWHT-R5 - Link
$5.69 @ 10 Qty.
10 WHT = $56.90

XTEROY - Link
$3.20 @ 10 Qty.
10 ROY = $32.00

You may want to try getting the 660nm from Arrow.
LH W5AM - Link
$4.67 @ 10 Qty.
14 D-RED = $65.38

Total is $185.88

When I order I try to get as many as I can fit into my budget so the cost is less. Extras come in handy also because sometimes you will fry one if you aren't careful with the soldering. Cutter has decent prices and the parts I link include the MCPCB for ease of installation. You don't want to solder Crees to the MCPCB by hand, its nearly impossible unless you are good at reflow soldering and have the right tool(s).

You should save some money getting the Crees. Especially the royal blue. The XTE is their newest bin and it is relatively cheap in comparison to other royal blues.
 

Voidling

Member
Awesome. Thank you much. Looked at cutter and looked like it was outside of the US. And was trying to get everything in one place to save shipping.

Does cree not have a 660nm or is it just not worth it compared to the parameters?

How many Watts per square foot for bloom with leds? I saw one person say 40 but this will only give me 20 on my small side
 

T_B_M

Member
Cutter did have a special going on with orders over $100 get free shipping. Maybe they stopped doing that now.

Cree does not make the 660nm. Osram has probably the most efficient 660 out right now. LEDEngin has a higher power 5W 660nm, but they are pricey. Philips/Luxeon Rebel series also has 660nm, but buying them pre-mounted is pricey also since you can only buy them on MCPCBs from Luxeon Star directly.

Osrams are the best price/value when doing DIY so far.

I would recommend 30W per square foot but 20 should do something. Bump up to 75W maybe?

Also, how are you calculating the total power? What I do to estimate is look at the data sheet and determine the voltage they will run at the current I want them to run at. My reds are about 1.25W each and blue/whites are 2.1W each.

So you want to use 24 red and 16 w/b. That give you (24 x 1.25) + (16 x 2.1) = 30W Red + 33.6W B/W = 63.6W total, approximately.

Not too bad. Maybe boost it by one more string?
 

Voidling

Member
I was going by your calculation you put up above, I think it came to 60w instead of 50w.

Does meanwell have a driver that'd support a 5th string of those?

Sorry, I took electronics a long time ago, but I went to mechanical systems. Was told all electronics work by magic black smoke inside them
 

Latest posts

Latest posts

Top