Overview

We will calculate the value of Rb based on the following circuit:


Questions to Ask when Sizing


Calculating the Rb Value


PreconditionValue
Vcc12v
Vi3.3v
RL155Ω
NPN BC337
Vbe(sat)1.2v
Vce(sat)0.7v
hFE (@100mA)100


Calculations for Ic:

Ic = (Vcc-Vce)/RL = 11.3v/155Ω = 73 mA


Calculation for Vb

Vb = Vi - Vbe(sat) = 3.3 - 1.2 = 2.1v


Calculating using Ib=Ic/10 (*** Best Approach)

It is common to assume that base current is 1/10 of the collector current.


Ib = Ic/10 = 73/10 = 7.3mA  

Rb = Vb/Ib = 2.1/0.0073 = 288 Ω


Confirm: Can the micro controller deliver Ib current required?


Tested with 220 Ω and it worked.


Calculating using hFE

To guarantee that the transistor operates in the saturation region, we multiply the base current by a factor of three.


hFE=100 (@100mA)

Ib = Ic/Hfe = 73/100 = 0.73mA

Rb = Vb/Ibx3 = 2.1/(0.00073x3) =  959 Ω


This would be the max value for Rb.

Calculating using the online calculator


hFE=100

Rb = 960 Ω 

This would be the max value for Rb.


Formulas

Ic=(V-Vce)/RL

Ib=Ic/hFE

Rb=(Vi-Vbe)/(3*Ib)


References

ReferenceURL
Base Resistor Calculatorhttps://www.petervis.com/GCSE_Design_and_Technology_Electronic_Products/transistor_base_resistor_calculator/transistor_base_resistor_calculator.html
Discussion Forumhttps://forum.allaboutcircuits.com/threads/calculating-base-resistor-for-transistor.78483/