Pages: [1]   Go Down
Author Topic: Driving a 1W star with a L317  (Read 413 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys,

I've been using Arduino for a bit now and LOVE screwing around with flashing lights  smiley-eek

***i need to run a 1W star on a dimmer, and was thinking of using the L317 adjustable voltage regulator and a (X)ohm pot.***

I will generaly use PWM and a TIP122 to drive each channel of a 3W star LED   ( using 10K pull down resistor at the gate,  100ohm current limit for the MCU,  and a 2W-10ohm current limit for the led {5v > 3v@350 ma(ish) right?}  )

BUT i want somthing CHEEP & EASY for a single LED

I would like to regulate AND adjust both voltage and current with the L317 but i can't find the right fomula ( or maby make sence of it  lol)

OR

will i have to regulate it @ 5V, use a curent limiting resistor, and adjust the voltage with a pot?

Any reasonably simple solutions i overlooked would allso be apreciated. smiley-grin
Logged

Southern California
Offline Offline
God Member
*****
Karma: 5
Posts: 539
I like blinky lights
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Does it have to be a L317? How about something like a TLC5916?
Logged

http://en.wiktionary.org/wiki/magagna <-- My last name.  Pretty apt.

UK
Offline Offline
Faraday Member
**
Karma: 92
Posts: 3969
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you must use an LM317, then I would say run it just in constant current mode, and adjust the current.  As long as you limit the maximum current to the maximum of the LED (using a static resistance), you should be fine.  The voltage is irrelevant as it will always be the set by the LED.
Logged

Why not visit my eBay shop? http://stores.ebay.co.uk/Majenko-Technologies
Replacement for the Arduino IDE: UECIDE - Proper serial terminal, graphing facilities, plugins, overhauled internals.
Java isn't bad in itself, but it has enabled morons to write programs.

Denmark
Offline Offline
Edison Member
*
Karma: 35
Posts: 1029
Happy Hobbyist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Take a look at this schematic by BillO

http://arduino.cc/forum/index.php/topic,102101.msg767419.html#msg767419

(reply #7)

You can use this LM317 calculator to calculate the resistor

http://www.reuk.co.uk/LM317-Current-Calculator.htm
Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Take a look at this schematic by BillO

Something like that generates a fixed output current.

If you put a pot over the resistor and put the adj pin on the wiper, you get to vary the output current.
Logged

Pages: [1]   Go Up
Jump to: