I am sure this is a very basic question, but I just want to be sure to not make any mistakes. I am using a transistor S8050 D331 to switch leds. So the base is connected with 1K resistor to the Arduino Due (3,3V) outputs. The emitter is connected to ground. The collector is connected to 1 led and a series 220Ohm resistor. The collector voltage is a seperate 5V supply.
Now the leds are too bright. What base resistor do I need to use if I increase the led resistor value? How are those related?
No, don't. 1k on the base saturates the transistor nicely, don't mess with it. The relationships you mention, mostly dictate minimum values not nominal values.
You can reduce the collector current by reducing the base current also, but that requires that you operate the transistor in its linear region. There, is not good for a driver because it requires the transistor to dissipate a lot more heat. It also forces the current to depend on transistor beta and thermally sensitive parameters, which makes the circuit unstable and unpredictable unless feedback is applied.
With a 1kOhm led resistor at 5V, I get approx 2mA current. If I assume the base current to be 1/10 of the collector-emitter current, I need an R = (3.3V-0.7V)/0.0002A = 13000Ohm resitor at the base side. So they cant be the same I think. But I might be wrong.
You want the transistor saturated in a switching application like this.
If you measure the Vce voltage and it is less than ≈ 0.7v (for a low power transistor) the transistor is saturated.
If a 1k series LED resistor gives a good intensity, that’s just fine.
Let’s say you increased the value of the base resistor; if the Vce ON voltage goes above .7v the base resistor needs to be decreased until the Vce voltage goes to .7v or less.
Please correct me if I am wrong: As far as I understand, for the switching application, it is important that the transistor is saturated, which can only be the case if the transistor base-emitter current is sufficient. So increasing the base resistor might block the current to much and the transistor will not fully switch. It also seems to be important that decreasing the base resistor must be done carefully, to not exceed the max pin current on the Arduino.
So basically, is there a region in which increasing the base resistor does not change the behavior of the switch as long a the base resitor is not too small (Arduinopin current safety) and not too large (not fully switched)?