I need to control about 6 RGB Led Strips from an Arduino Board. The problem is that i need 3 PWM outputs for each led strip, but each will have probably the same colors. I was wondering if i could put two strips receiving a signal from the same PWM output, then i would have to use half the PWM outputs but send the same signal for each pair of strips.
The scheme i found is this one:
And what i want is something like this: enter image description here
Is this possible? What should i modify to make it work?
Thanks in advance.
1 Answer 1
You have few options:
do as you represented in the drawing: it should work, as I expect the transistors to not load too much the input.
add a logic buffer inbetween the arduino and the driver stage
use other pins from the arduino for driving the additional strips and bitbang the PWM, instead of using the HW blocks
Whether the solution you propose (1) will work or not depends entirely on the max current that each PWM pin can output vs the total load from the 3 transistors it will have to drive.
-
That was very helpful, i was afraid about this current thing, but apparently each 1 meter uses 20mA, and a pin can output 40mA, so 2 strips would be the perfect amount.George Rappel– George Rappel09/23/2015 22:04:21Commented Sep 23, 2015 at 22:04
-
1Did you check that 20mA is the Max Value, rather than Typical? You might have some unpleasant surprise, if you take chances and do not plan for the worst case. Same goes for the Arduino/Atmega: is 40mA the Min Value or the Typical? You should match Min from the source vs Max from the drain and confirm that they are compatible.Igor Stoppa– Igor Stoppa09/23/2015 23:52:15Commented Sep 23, 2015 at 23:52
-
That's true. But the max that the strip uses is 20mA at full bright, and the typical that arduino provides is 40mA. Since i'm never gonna use it at full bright i think it should work.George Rappel– George Rappel09/24/2015 01:44:22Commented Sep 24, 2015 at 1:44
-
5v with a 220ohm resistor will result in about 20mA of current. Depending on the gain of the transistors and the amount of current the strips use (i.e. depending on their length) 20mA might not be enough to fully saturate the transistor. In that case the leds won't be as bright, and the transistor will get pretty hot. Using MOSFETs will prevent this problem.Gerben– Gerben09/24/2015 14:32:45Commented Sep 24, 2015 at 14:32