Calculate resistor value for transistor base

currentresistorssaturationtransistorsvoltage

Below is a circuit where S1 is the output of a 555 IC timer (S1 switch for simplicity). I need to invert the output which I have done so in another project using the circuit below.

Starting with transistor Q2 which is a 2N3904 (datasheet), how do you calculate the resistor R2 needed if R3 or "Load" is 180Ω. The source will be 5V.
I'm having trouble understanding why Collector-Emitter saturation voltage is .3V where IC=50mA, when below it says for hFE4, VCE=1V, IC=50mA

Secondly how do I calculate R1 for Q1, to ensure Q2 is not driven.

I've have this circuit working with 12V and a 350Ω load. I used 1K resistors for both. I can't remember how I calculated it or if I even got it right.

Sample circuit

Best Answer

The conditions for saturated operation and the various HFE line are various operating conditions. If you operate the transistor with 1V VCE and carrying 50mA you will see a minimum (worst case) HFE of 60. For saturated operation you need to guarantee that any transistor will work in a circuit and usually it is recommended to operate as if the worst case HFE was 10. If you look at the data sheet for saturated operation they show various conditions where they put 1/10 of the current into the base as the collector current (defined by the circuit). This is often referred to as a "forced hfe". The graph at the bottom of page 3 shows this also with forced HFE of 10.

In your circuit you have R3 as 180 ohm which will require ~30mA if Q2 is saturated. Taking the forced HFE as 10 we require 3mA into the base. This will therefore require 1.8k ohm resistor for R2. Similarly since Q1 will be expected to saturate with the current from R2 (~3ma) it needs at least 0.3mA from R1. R1 would need to be about 18k or lower.

The Forced HFE of 10 is a maximum and is not critical. You could use 5 or 15 for this circuit with no problem. A disadvantage of having a higher current into the base is that it consumes more power in the base resistor and also that the higher current will result in more stored charge in the base of the transistor which will take longer to dissipate and slow down the turn-off.

I would also put resistor from the base of Q1 to ground (maybe 10K) to assist in turn off and ensure that any leakage across the switch S1 does not cause Q1 to incorrectly turn-on.

kevin