DIY LED driver for reef lighting

Milled the board

Milled the board

So, the boards will be in the post to DWZM on Monday morning. Hopefully it'll not take too long for them to get all the way across the country [grin]

For those that are interested, I put a pic of the board up ...

IMG_0444.JPG


Simon.
 
SC that is sweet!
Really nice job.
Very impressive.
Nice of you too.


Hot twezzers: I don't use them much either. I got a standalone model at a factory auction. I purchased a storage cabinet and they were in it. LOL. I have only actually turned them on about 3 times. They're very nice for removal of parts.
 
Looks fine!! The only thing... Not serious, but you were supposed to Back Annotate when you're all done.

I'll do just that. Good idea.


Good job DWZM! Looks pretty nice. When does it go in mass production? :D

Never? :lol: I am going to be ordering a vast number of these, to get the cost down to a reasonable number, so PM me if you're interested.

On a side note, I'm probably the only one, but I'd remove the blue plane from the corners just to make all corners look the same (like the bottom left one) :)

I think the routine it runs to draw the polygon fills is just off a bit. Looking at the gerbers, both ground planes go all the way around the mounting holes, and both are identical. That bothered me too, but it didn't make it into the gerber files so I'm not worried.

Can you do a Black & White art of the traces ONLY?

You might want my version of DWZM's circuit, which reverses the main signal layers (putting all but 3 of the traces on the solder-side). This makes it a *lot* easier to do the soldering if you're home-brewing the circuit.

Lemme look at Simon's version and I'll get something out to you, Stu.

if the circuit diagram is put somewhere public

Once we're all done ruminating tweaks and there's one or more working prototypes (board-specific, since I know the circuit works in general for single instances) I'll put the Eagle files plus whatever else people would need on Google Code or something else public.

So, the boards will be in the post to DWZM on Monday morning.

Woo hoo!
 
A question for other people who might be interested in building these. Are surface mount components really that scary? What if two of the resistors were big, easy to handle SMT resistors instead of through hole?

I'm asking because I'm looking through digikey to re-do the BOM so it matches up with some of the tweaks. I'd like to get to the point where there was "one stop shopping" such that you could get all the parts you needed in one order from one vendor. As it is right now, digikey isn't a good source for the low-resistance, high-wattage components - the resistor on the IPK pin for instance. However, if we allow that part to be SMT, they have plenty of resistors that would work fine, and are actually cheap. I got a bag of suitable resistors on eBay for my prototypes, but it bugs me that we can't order the whole BOM (it's not THAT long!) from a single source.

So - a question to the people who are thinking about doing this - especially if you want to hitch-hike on my board design - would it be OK if some of the resistors were SMT? It would let you order everything from digikey, and it would save a few cents per board.

I suppose I could just put SMT pads next to the through-hole pads and let people do whichever one they wanted. . .
 
A question for other people who might be interested in building these. Are surface mount components really that scary?
Not that scary at all. I wouldn't mind having the entire project surface mounted. It just takes some patience as you have to go slowly.

it bugs me that we can't order the whole BOM (it's not THAT long!) from a single source.
Did you check mouser and newark as well?

Again, I really think people are too scared of surface soldering for no reason. As long as you have a good fine soldering tip it is really not that bad. Here is a really nice tutorial that I used when I started doing SMD:
http://tangentsoft.com/elec/movies/tt03.html
 
A question for other people who might be interested in building these. Are surface mount components really that scary? What if two of the resistors were big, easy to handle SMT resistors instead of through hole?

Depends. If you are talking just 1206 resistors, they're a cake-walk - easier than thru hole.
If you're talking 0603 or smaller. You need special soldering tools and crazy fine solder to do them well.


im a big fan of lifting pads.. so having spares is nice..

LOL!



Not that scary at all.

You have to qualify that.
I've just spent the last three days on a design;
Do I spend a full extra day on software writing a bit banging serial port and using a large pitch device, or do I use a processor with a second serial port?
All I have to do to get the second port is use a part that has pins that are nine thousandths of an inch wide. The pins are only separated by ten thousandths of an inch. Keep in mind the smallest solder you can get is 15 thousandths!

Sometimes surface mount is scary. :lol:
 
Depends. If you are talking just 1206 resistors, they're a cake-walk - easier than thru hole.

Agreed - I wouldn't mind big SMT stuff in the design, but I know several of the "followers" of this design have expressed that they like the all-through-hole aspect. I'll probably add pads for 1206 resistors on those parts between the through-hole pads. I suppose I'm going to have to write some notes explaining all these oddities for people who didn't follow the whole thread.

And, yeah, I checked digikey, mouser, arrow, and newark. NO ONE has reasonable 1/2w resistors at such low values (.22, .15, etc) in a through hole package, except the occasional wirewound 1w or 2w at like $1.50 or $2 each or something. And correct me if I'm wrong, but I think wirewound would be a bad choice in this application (high frequency, and we need stability.) As opposed to a surface mount part made from a more appropriate material at like 25 cents!
 
A question for other people who might be interested in building these. Are surface mount components really that scary? What if two of the resistors were big, easy to handle SMT resistors instead of through hole?. . .


so long as your driver is still within your orginal goal ,
efficient simple to build and is not expensive i think those resistors will be fine

Marc
 
Agreed - I wouldn't mind big SMT stuff in the design, but I know several of the "followers" of this design have expressed that they like the all-through-hole aspect. I'll probably add pads for 1206 resistors on those parts between the through-hole pads. I suppose I'm going to have to write some notes explaining all these oddities for people who didn't follow the whole thread.

And, yeah, I checked digikey, mouser, arrow, and newark. NO ONE has reasonable 1/2w resistors at such low values (.22, .15, etc) in a through hole package, except the occasional wirewound 1w or 2w at like $1.50 or $2 each or something. And correct me if I'm wrong, but I think wirewound would be a bad choice in this application (high frequency, and we need stability.) As opposed to a surface mount part made from a more appropriate material at like 25 cents!

I'm the last person to promote through-hole, it's much faster to do SMT when you have the tools [grin], however, it is possible to get the values you need at Digikey (these are all in stock):

0.22 ohm, 1W, 5%, $0.48 in 1's, metal-film RSF1.22JRCT-ND
0.33 ohm, 1W, 5%, $0.32 in 10's, metal-film 0.33WCT-ND
0.27 ohm, 1W, 5%, $0.32 in 10's, metal-film 0.27WCT-ND

You'd have to combine the 0.33/0.27 ohm resistors in parallel to get 0.1485 ohms (or you could use 2 of the 0.33 ohm resistors to get 0.165 ohms of course), but you're already doing that...

Or was the purpose of the SMT parts to get rid of the ganged resistors ?

Simon.
 
Last edited:
Wow, somehow I'd missed those parts in my searching. Thanks for finding them. :D Probably because of the 10-count minimum quantities. I was looking at 1's and 5's for minimums, not thinking of the obvious fact that I need more than 10 anyways.

Still the surface mount parts are cheaper, and you can get them in all these values and not need to gang them up. I just edited the board layout to have the SMT pads in addition to the through-hole pads so I guess people can just do whatever the heck they want. :D
 
Important update - read this!

Thanks to all the changes in components, board layout, etc over the last few pages, I can imagine it would be hard to piece this design together. I appreciate all the input I've had. This morning I tried to clean things up and make a single post collecting all the changes, updates, etc. I also updated the BOM, got all the part numbers from digikey, and did some other housekeeping. If you've been following along in the thread, or are new to this thread and are considering trying these drivers, please feel free to ignore the previous information and just work from THIS post. Besides some tweaks and improvements, there are some outright errors earlier in the thread. Read on. . .

First, a recap of the goals:

1) A DIY driver similar to buckpucks, but more efficient, cheaper, and with capacity for a higher number of LEDs.
2) The option to do all through-hole parts if the builder desires.
3) The option to customize for different drive currents.
4) PWM dimming, as from an Arduino or other source.

I've had about half a dozen prototypes working over the last 4 or 5 months. The prototypes I've built to date were run at 350mA or 500mA, with a 24v power supply, running 8 LEDs each.

The prototypes were built on protoboard as individual drivers (i.e. one driver per circuit). The new approach, outlined below, puts TWO drivers on ONE circuit, so you can drive 16 LEDs from each PCB, with "two channels" of LEDs. This makes for a smaller footprint, slightly less wiring, and slightly lower cost. This concept of doubling up is untested but we'll have prototypes soon.

Next, another rev of the board, including the SMT parts, and re-numbered. I'm going to (hopefully!) consider this the final version of the board. Besides the changes discussed so far, I increased the pad spacing for two of the diodes because when I double-checked the package specs, it would have been tight.

driver11.gif


Also, a revised BOM. This is with the SMT resistors, but includes through-hole resistors if you want them. Also, this includes the "better" caps discussed a page or two back.

BOM2.gif


Also, an important note. Earlier in the thread I was calling the PWM resistor a 1k resistor. That is incorrect. It should be 10k, according to the datasheet and the prototypes I have on protoboard. My mistake.

Another important note, if you have not been following along. The four "tricky" resistors (R1, R4, R5, R8) have multiple options. You can get an SMT resistor, or one or two through-hole resistors. This should let you parallel two through-hole parts to get the correct value if you need to. The pads you don't use are simply left unused. In other words, there will likely be unused pads on your driver, don't worry that you missed something - it's supposed to be that way.

The above BOM is for a 500mA driver. If you want other values, change:

1) Rsense (R4 and R8). Common values would be: .68ohm for 350mA, .33ohm for ~700mA.

2) The inductor (L1 and L2.) If you want 700mA, I would probably try for a bigger inductor. It should have at least 1A current rating, preferably more, and you might want to look for a value around 120 - 150uH.

Download the design spreadsheet for the NCP3065 from OnSemi's website if you want to play with the values and see the math.

I will be ordering the above BOM and building some prototypes of the double-driver within the next week or two, then doing a batch order of the PCBs. If people want to try this instead of waiting to see me do it, PM me and I'll email you the Eagle files.
 
Regarding cost.

As you can see, the cost is around $9 - $10 for the double-driver version, in parts. The PCB should be less than $2. You'll also need a header (not included in the BOM to let you pick your own). Total cost for the double-driver should be around $12. This means you'll be spending around 75 cents per LED for a driver. Compare that to buckpucks, which are around $2.50 per LED to drive.

To compare to a meanwell, you need to load the cost with the power supply, which is around 20 cents a LED (for buckpucks or this driver, it's the same). So let's round up to $1/LED for this driver, or $3.50/LED for a buckpuck. A meanwell ELN60-48 is around $3.25 per LED.

So if you're crazy like me and planning on building a fixture with 200 - 250 LEDs, this is roughly a $500 savings.

Of course, if I were to pay myself for the hours I've put in to this at the same rate I make at my day job, it would have been VASTLY cheaper to just buy the COTS stuff. But I really like DIY, and I've learned a LOT. :D
 
For everyone who wants access to the project files:

http://code.google.com/p/hpled/

There's not much there yet, but check out the downloads tab. I put up the library, CAM, and DRU files I used, plus two versions of the driver:

1) dual_driver0_1.zip is the version I've posted about here, meant for manufacture in a board house.

2) dual_driver_homebrew0_1.zip is the version Simon made from my schematic, meant for people who want to etch or mill a PCB at home. He re-did most of the traces such that they're not on the component side, making assembly easier on a homebrew board that won't have through-plated holes.

(Simon, for your reference, I changed the part names on your version to reflect the updated BOM I posted above, plus I swapped out the two diodes that needed more room.)

To create these files, I've used the Eagle CAD software, available here:

http://www.cadsoft.de/

I have an older version (5.6.0) but it should be compatible. The free version of this software is more than powerful enough for this project. Also, to inspect the gerber files generated from the project, I used Viewplot, available here:

http://www.viewplot.com/

Again, the free version is fine. You don't strictly need this package, but if you'll be making any changes to the board you probably want to use some sort of gerber viewer before you turn the files into a physical product.

If anyone needs anything else, lemme know. Stu, I know you wanted B&W images of the copper, I'll get something out later.
 
(Simon, for your reference, I changed the part names on your version to reflect the updated BOM I posted above, plus I swapped out the two diodes that needed more room.)
Cool! Thanks :)
Also, to inspect the gerber files generated from the project, I used Viewplot, available here:

http://www.viewplot.com/
Just a small note - if you're using a Mac (or a PC for that matter), there's a similar program at http://gerbv.sourceforge.net/ which is open source so works on anything - I don't have a PC :)

Oh, and I meant to add: Well done, DWZM :) This is really, *really* cool.
Simon
 
Just a small note - if you're using a Mac

Good point. My main home computer is a Mac, but I end up doing a lot of development work on my laptops, which are both Windows PCs.

And thanks for the Kudos. I had a lot of help over the last month. I'm going to be happy to get this whole thing out the door so I can start work on an Arduino thread!
 
Back
Top