I am trying to add a custom LED lighting setup to my desktop gaming computer. In this setup I want small sets of LEDs to be able to be turned on separate of other sets. This is so that I can turn on different sets at different times to make a "light show".
I am using an Arduino's digital I/O pins to control a transistor (BC547B) which will supply power from a 9-volt battery to the LEDs. The LEDs are rated at 1.9v and I have multiple sets of 5 LEDs (5 * 1.9 = 9.5 -- no need for a resistor... right?) connected in series and those "multiple sets" are to be connected in parallel.
However, due to a simple lack of transistors, I am temperarily (until I get more transistors) connecting 2 sets of the 5 LEDs per transistor. Confused? Let me put this together in a schematic using only 1 transistor (in the final version there will be more):
simulate this circuit – Schematic created using CircuitLab
So, basically the problem is, when I turn on pin 5 on my Arduino, the LEDs do not light up. Why is this?. I may be doing something wrong here, but, if I am, I cannot figure it out.
Here is the temporary code for the Arduino I am using, just in case someone wants to see it:
void setup() {
pinMode(5, OUTPUT);
}
void loop() {
digitalWrite(5, HIGH);
delay(1000);
digitalWrite(5, LOW);
delay(1000);
}
All it does is turn pin 5 on, wait a second, turn it off, wait a second, and repeat.
Thanks in advance.
P.S. Apologies for awkward title.
EDIT:
I should also note that I'm very new to this kind of stuff. I'm doing this for a sort of learning project (and so my computer can look cool).