Diy Lm317 Drivers For Mac
. If this is your first visit, be sure to check out the by clicking the link above. You may have to before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. DIYC is in need of your help.
If you have received help or insight from anything here at DIYC or you enjoy the site please consider supporting DIYC with a Supporting Membership. As little as 20 dollars per year will help ensure DIYC is here for years to come and continue to be the largest and most helpful Christmas Light Community in the World! You can learn more about Supporting Memberships. Ok I have pieced together a lot of posts and here is what I have come up with. An LM317 can be used as a source of constant current. A simple constant current circuit looks like this. An example in the national data sheet includes this logic driven circuit.
So I thought why not feed a ULN2803 with a constant current to feed a pair of LEDs and eliminate the dropping resistors. I want to drive 8 pairs of 3.3v LEDs at 15ma from a stand alone PIC.
The power supply will be a 9Volt battery. A voltage regulator will drop the voltage for the PIC. Its not a real practical application but it is more about learning PIC programming and driving individual LEDs. Later this will be adapted to renard and other drivers.
Someone calculated the resistor at 80 ohm. Formula is R= E/I or 1.2V/.015 = 80 Ohms Does this change if the input voltage changes? Is this a good way to drive lots of individual LEDs at constant current? Is there a better way?
That I can understand. I have a different circuit in mind for the high power ones. Someone calculated the resistor at 80 ohm. Formula is R= E/I or 1.2V/.015 = 80 Ohms Does this change if the input voltage changes? Ok, a LM317 is actually a 'voltage regulator', however you can use it as a current source as well, as you have found out. The LM317 will 'regulate' itself, by making sure that the voltage between Vadj and Vout is always 1.25V. Effectively meanign that the voltage drop across the series resistor is 1.25V The current flowing in that resistor is for all practical purposes the ratio between Voltage and Resistane ( I = V/R ).
In your case 1.2/80 or 15mA. The input voltage does not affect the current. The LM317 and the resistor are going to drop quite a bit of power, often much more that you will use in the powered device. Not sure what LED's you are using, but say they drop 1.5V. The LM317 and the reistor have to drop 9-1.5V ( 7.5V )., ie, 7.5V x 0.015mA or 0.11W. If you moved that up to say.5A or even 1A, you'll be dropping lots of power and things will get hot.
While this works, you need to be careful about applying it to the right situation. I 'm sure in the application notes for the IC, there will be lots of helpful notes on this. Hi Joel I don't think it will quite work as you have laid it out. You have constant current there. But its being split between 2 parallel lines of LEDs. Won't each of the LED's only be getting half the constant 15ma current that you want?
Not sure why you'd want to use resistors in this config though (other than just experimenting)? The constant current circuit would be good if you were using different combinations of leds in series or different coloured leds which drop different voltages but it doesn't seem to add much here you couldn't do without simpler, cheaper parts for the config you have here. The second circuit you posted form the national datasheet does make use of constant current, but for a different purpose to what you need here. As the logic turns on those transistors it creates parallel paths for the constant current to flow through which changes Vout. So it looks like a Digital to Analogue convertor cct.
It converts a digital signal into an analogue (voltage) - as you change the digital signal the voltage changes. Dmc Just trying to explore alternatives for a universal circuit that does not require setting each individual resistor by LED color. They are cone top whites that I have measured at 3.3v so 2 would be 6.6vAt 3.3V each, with a 9V battery, you'll run into a different problem. The LM317 will drop at least 3V across itself. 9V-3.3 = 5.8. You'lve got to drop another 1.25V across teh reistor.
Ie; 5.8 - 1.3 = 4.5V. You're not going to have enough forward voltage to turn them on. I'd still suggest you try this out, theres a lot you can learn by trying it. A LM317 is a $1 or so, and resistors are cheap enough. If your looking for a multi channel constant current LED driver, theres some more modern chip sets that will do exactly what you want ( 4/8/16 addresable channels as well ), and very efficently.
Diy Lm317 Drivers For Macbook Pro
Heres just one example. That woudl be easy to interface to a PIC micro, and you coudl dim up to eight channels as well. If your looking for a multi channel constant current LED driver, theres some more modern chip sets that will do exactly what you want ( 4/8/16 addresable channels as well ), and very efficently. Heres just one example.
That woudl be easy to interface to a PIC micro, and you coudl dim up to eight channels as well.Nice chip. More to learn. If the renard or pixel program could be modified to output the SPI protocol (I know the PIC16F688 does not support SPI but lots of others do.) the MAX6969 starts to look real good for low power LEDs and they can be ordered direct from Maxim. Ok have a look at step #8 photo 2 for circuit diagram for computer controlled. Parts list and explanation are in step #6 Its only a power NFET and a small NPN transistor and two resistors for a constant current circuit.
Would you use it to drive high power LEDs? Still learning all this stuff. Three years ago I had never picked up a Soldering iron or programmed a PIC. The instructables circuit is a pretty text book circuit. And its a good one to learn about how and why it works. Woudl i use it to drive high power LEDs. Theres other ways of doing this as well.
For only a fraction more cost, you can make much more efficent Switching Supply's, however this circuit is ncie because its simple to understand and a valuable buiding block for many other Basically what happens is when the voltage drop across R3 0.7V, Transistor Q1 turns on, and pulls the input to the FET (Q2) low, turning it off. The voltage then drops across R3 to below 0.7V and the fet turns on again. Because we know what voltage will drop across the resistor we can set the value to pick the right current. A more modern way is to use something like a LM3404 or simlar.
Are you building a pointer or labby? The LM317 are perfect for labbies. (actually, in a labbie I'd use the LM350 because it's rated up to 3A) They are good for pointers too but I think the biggiest drawback is that it can be difficult to find a host to fit the completed driver. The LM317 has a reference voltage of 1.25V but once you add a resistor, diode, and cap, you are looking at about 2.5V-3.0V as reference. So your host would need to be able to hold enough batteries to supply enough voltage for the diode and the reference voltage which is about 8V. A host that holds 2 Li Ions would most likely be OK.
2 Li Ions charged up is about 8.4V. That doesn't give much run time once you put a load on them.

Diy Lm317 Drivers For Mac
Just my honest opinion.:yh.