Hi,
Im make a simple project, but i not sure what way to take.
The goal is to make a simple RGB Lamp.
These are the components:
3.7v rechargeable battery (3000 mah)
12 RGB LEDS (common cathode)
Mini arduino Pro (3.3v/8Mhz)
The lamp will have 4 sides and for each side there are 3 RGB LEDS.
I dont need to decide the color of each LED. But i need to decide the color of each side (3 RGB).
That's all.
Now my questions:
The Mini arduino Pro have 3 PWM outputs, and each LED needs 60mah (20mah for each color).
I should put the LEDs of each side (3 Leds) in Series? But in this case i must provide 12 volts each side right?. If yes How? (i have 3.7volt battery)
Or can i put every led in parallel ?
The Mini Pro can provide all the necessary current?
To do this project what additional components i need to drive the leds??
Or can i do this project with these components that i have?
personally I would avoid connecting the leds in series, I would go for a parallel arrangement.
now with only 3 pwm's to control you may not have the level of control that you would wish for. you may want to look at investing in another board with more pwm's.
as for your current board i would hook up all twelve leds together so when you turned on say output "blue" all sides of your lamp would light blue. What is this project for exactly? With more information I might be able to provide you with the answers you need.
and Now for the math.
if you look at the leds current draw 20MA per color, in parallel the three leds per side would have a current draw of 60ma. The mini pro can supply up to 40ma per channel so i would suggest using a simple NPN transistor to keep from frying your output pins.
im sure that others here have even better ideas on how you could accomplish this.
You are right, i can put the leds only in parallel.
So you are suggesting me to use each (3) PWM output for one color and put a transistor on each color line to guarantee the needed current, right?
With this solution i will not have any problem, but all sides will have the same color. Right?
nicholai414
The project is for a Simple Lamp. Really.
I can make it "one color version" too. But deciding the color of each side will be pretty awesome for some cool effect.
So, in your opinion i need 12 PWM Outputs (3 PWM x 4 Sides) to make the multi-side-color version?
wow... do you have a link? i have over 100 common anode's ... Even though i asked for common cathode and bought common cathode! 3 lots different supplies they ALL keep sending common bloody anode!
So you are suggesting me to use each (3) PWM output for one color and put a transistor on each color line to guarantee the needed current, right?
With this solution i will not have any problem, but all sides will have the same color. Right?
Yes all the sides will be the same colour but with only three PWM outputs you don't have a choice unless you use some other chip to generate the PWM signal for you.
Other options are to go for LED drivers, I like the PCA9685 chip, that is I2C controlled and gives 16 PWM outputs so you need just the one chip to do what you want with a different colour on each side. It will drive up to 25mA per output.
Grumpy_Mike:
Yes all the sides will be the same colour but with only three PWM outputs you don't have a choice unless you use some other chip to generate the PWM signal for you.
Other options are to go for LED drivers, I like the PCA9685 chip, that is I2C controlled and gives 16 PWM outputs so you need just the one chip to do what you want with a different colour on each side. It will drive up to 25mA per output.
Woah, seem perfect this little chip.
Fast questions:
With this chip i need a resistor on each LED too?
if i will use 3 outputs of this chip to drive each R-G-B line of 2-3 RGB leds in parallel, in this case i will need a Transistor, right?
Thank you very much for your precious suggestions.
I think if you use this chip: PCA9685 chip.. you would not need to use the transistor(s) anymore...no? As the driver chip woudl supply each 'output pin' with 25mA for that 'led'...
going this route (as mentioned) gives you the flexibility to make each wall a color of your choice.. where are transistors is limiting you to the same color for ALL walls..