Bottom line up front: Need some help figuring out how to proceed with my project, and how to size a base resistor for a 2N3904 to drive multiple LEDs off one arduino pin. Or possibly ideas I might not have thought of.
Verbose issue: I have a costume project I'm working on, basically it is a glove with lilypad LEDs running along the front of my fingers, hopefully in red, yellow, and purple. I'm kind of at am impasse, I've made some purchases already, but unfortunately I didn't notice the 40mA/3.3V limit on output PWM pins before purchasing the Lilypad Arduino USB.
I got the Lilypad Arduino USB to keep components down since all the hardware needs to fit on the back of the hand and it connects directly to the 1000mAh 3.7V lipo battery I bought. I also purchased 20 of the leds (10 red/5 yellow/5 purple), and I intended to either drive 5 leds on 4 pins (4 fingers) or 4 on 5. Either way there is going to be too much current draw for them to be very bright. I plan to just have the 4/5 LEDs on each finger pulse/fade/flash etc out of sync with the other fingers, I don't need individual control, but I do want each finger to have at least one of each color LED.
I saw some suggestions online about using some 2N3904 transistors to get the required current, but I am unsure as to how to size the base resistor. The lilypad LEDs all have 100ohm resistors already attached (too big IMO), so that variable is fixed. With 3.3v that gives me a pretty lame 13mA on the reds/yellows, and <6 mA on the purples giving me about 45mA draw for the 4 on 5pins configuration.
I've tried this calculator, specifically the calculation at the bottom (vbe=0.95, hFE = 50, Ic = .045, Vi = 3.3, Rb result 870ohms) but I'm not sure if I trust the calculation. How accurate do I have to be with the ohms? Should I go under or over? Also, can I just run the Vcc off the 3.3V pins from the Arduino?
Since with 3.3V the purples will barely show up (might even remove them) another possibly I was mulling over was purchasing the full Lilypad arduino with the 3.7 to 5V step up secondary circuit so I can do 5V instead of 3.3V, I'd still need to do a transistor circuit, but the issue with this is I am worried about blowing out the red and yellow LEDs since with 100ohm resistors, they would see the datasheet-stated maximum 30mA current.
I've already spent quite a bit on this, but I want to do it right, but on the gloves there is not a lot of real estate, between the battery, the arduino, and the 5 transistor circuits (I'll be making them on 1" proto boards 2-3 per board). Brightness is key as they have to illuminate semi-transparent objects I will be holding in my hand. My fallback is to drop the arduino, and just hook the lipo through a switch directly up to all the leds, forgoing the "sfx."
Sorry for the novel, I just wanted to make sure I touched on all points. Thank you for any help you can provide.