I am quite new to electronics. I am trying to control three LEDs with an Arduino using a transistor.
I was wondering what the base current limiting resistor value should be.
I looked around the internet and some YouTube videos and came up with these calculations, but I don't know if I am correct or not.
I am using a 2N2222 NPN transistor and I am taking 100 as GAIN (B).I came up with 1.4K. Am I right or am I missing something?
LED Resistors are 220Ohm
Best Answer
Actually, with \$\beta\$ = 100 you would end up with an \$I_B\$ of 0.3 mA (not 3 mA).
BUT as you want to switch the NPN fully on, it is actually a good choice to assume a much lower \$\beta\$, like \$\beta\$ = 10 like you did (by mistake).
Why?
Because you want the NPN to operate in saturation (not active mode). So you do end up with a correct answer. Any value for R between 1 kohm and 5 kohm would be correct in my view.