Try CircuitLens

Calculators

BJT base resistor calculator

A transistor used as a switch is not an amplifier — you deliberately throw its gain away. The mistake is dividing the load current by the datasheet hFE: that gives the least base current that can carry the load, it lands the part right on the edge of saturation, and there Vce is volts rather than millivolts and the transistor cooks. Force the beta down instead — run at a gain of hFE divided by an overdrive factor k (5–10 is normal) and size the base resistor for that: IB=k×IChFE, then RB=Vdrive−VBEsatIB.

Vbe is not 0.7 V here either. A saturated small-signal BJT sits at 0.85–1.0 V, and using the familiar 0.7 makes Rb come out too big — the one direction that quietly gives back the saturation you were buying.

Related

More calculators