- Mon May 28, 2012 4:41 pm
#145094
so i finally decided to learn how to code/build electronics.
i am trying to figure out the best way to do this, as what i am currently doing now isnt working out too well.
this is powered with an arduino nano, got the code all figured out for now, untill i get a microphone so the controller can be sound activated.
the rgb leds i got are common cathode, which it seems right now was a bad move, as they have to be downstream from the transistors.
really i would really like some input on what would be the best way of doing this without using multiplexing. the colors are the same on all leds.
i have the circuit working right now with 9.6 volt supply, but the problem is when the voltage goes down, the leds get dimmer.
basically i have arduino pwm pin > 1k resistor > 2n2222 transistor> 47ohm resisor > 6 leds in parallel(single color)
pretty much that repeated for every 6 leds of one color, so 3 transistors per 6 rgb leds.
my new plan was to rebuild same circuit, but with the power going through a 5 volt regulator, and dropping the supply to 7.2 volts (6 AA cells, would go down to ab out 6volts as batteries die)
any input greatly appreciated
edit: i guess i cant use generic voltage regulators as they wont operate properly below 7 volts, and if i stick with 8 cells (9.6 volts), the regulator will be wasting quite a bit of power(if my understanding of this is correct).
i am trying to figure out the best way to do this, as what i am currently doing now isnt working out too well.
this is powered with an arduino nano, got the code all figured out for now, untill i get a microphone so the controller can be sound activated.
the rgb leds i got are common cathode, which it seems right now was a bad move, as they have to be downstream from the transistors.
really i would really like some input on what would be the best way of doing this without using multiplexing. the colors are the same on all leds.
i have the circuit working right now with 9.6 volt supply, but the problem is when the voltage goes down, the leds get dimmer.
basically i have arduino pwm pin > 1k resistor > 2n2222 transistor> 47ohm resisor > 6 leds in parallel(single color)
pretty much that repeated for every 6 leds of one color, so 3 transistors per 6 rgb leds.
my new plan was to rebuild same circuit, but with the power going through a 5 volt regulator, and dropping the supply to 7.2 volts (6 AA cells, would go down to ab out 6volts as batteries die)
any input greatly appreciated
edit: i guess i cant use generic voltage regulators as they wont operate properly below 7 volts, and if i stick with 8 cells (9.6 volts), the regulator will be wasting quite a bit of power(if my understanding of this is correct).