Just got my Arduino 2009 kit, and I passed the blinking led test!!! Hurray!! :
Now, I intend to use the Arduino to control multiple led arrays, with PWM fades - aquarium lighting - and I would like to know if this is doable or if I have missed something:
Single power supply 32V 500mA
Voltage divider + current regulator to power the arduino (7V - I have to check the required mA??)
The PWM outputs will connect to the base of 6 transistor or mosfets to power led arrays - 8-10 leds each, from 20mA to 300mA, individually regulated; there may be more than one array connected to each mosfets, individually regulated
This means the PWM will signal the base (at 5 volts I guess?), then the load at the collector will be at 32 volts, with mA regulated for the type of leds being driven. I know all must connect to the same ground in order to the transistors or mosfets to work.
I have LM317L and LM317T regulators available, so I can supply 7V to the arduino, plus I can regulate the current for each led array on the ground side - there will be 20mA, 100mA and 300 mA led arrays.
Each array has 8-10 leds, but 20mA for the entire array, from the 32V supply.
If my sum gets above 400-450mA (it probably will), I have a 32 or 36V power suplly with 1A, no problem there.
I'd like to get your opinion regarding the PWM - transistor base connections. Will it work?
The LM317 is a voltage regulator not a current regulator. Are you using it in a constant current configuration as described on page 19 of the data sheet?
one regulator per array.
I am not sure what you mean by array? Assuming you mean a matrix with no current limiting resistor a constant current or constant voltage regulator is not the way to drive a matrix.
Correct, I use the LM317 as constant current regulator to get whatever mA I need for each led series (this is what I mean by array) in question, i.e., 20mA, 100mA or 300mA.
Ok, the PWM can be done by putting a transistor in the ground connection. You confused me with the term array, it's not the right word, you have more of a string.
So you have
+ve supply --- LM317 current feedback resistor, LEDs, collector - emitter - ground.
Are you using it in a constant current configuration as described on page 19 of the data sheet?
Sorry to ask folks, but which copy of the datasheet are you looking at?
I don't see anything about constant current source on page 19 of http://www.national.com/ds/LM/LM117.pdf only current limiting.