P
Paul
Michael said:But you don't need a 317 to make a current source. If we're talking
average LEDs, then one can use an FET (depending on the current,
sometimes a resistor isn't even needed) or a small signal bipolar with a
few resistors.
If I needed a higher current source, I'd go with the 317, but if I
needed a small current source, I'd be looking at other things, which I
could throw together with junk parts.
Michael
I wrote that up in an original draft of my reply, but threw it
away (reply was getting too long). A zero bias JFET can make a
constant current source in the 10mA range, and I used such a
thing when I was younger (for some hobby project). But the JFETs
I'm used to, they don't span a very large range, whereas the LM317
covers 10mA to 1000mA at least (with a heatsink).
The constant current source can also help, in situations where
the input power is somewhat variable. You get a relatively
constant light output (with the light level perhaps
being affected by the LED getting too hot).
As a hobbyist now, you can find all sorts of info on building
small LED circuits. And some of those will include application
information, on why you'd want to do it a particular way and
so on.
Constant current sources can also be constructed with opamps,
so there are other families of components that could be considered.
The reason I like the LM317, is the thing has three legs, the math
is simple, and the results are acceptable. I have one set up right
now in my breadboard, for sorting LEDs by Vfb. In my last project,
I bought LEDs that were binned (sorted for similar characteristics),
and you can do a final sort on Vfb when building arrays, and get
a pretty good result (equal intensity over array, no hot spots).
Paul