Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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


Questions to Ask when Sizing

  • Can your transistor handle the load through the collector? Does it exceed Ic(max)?
  • Can the transistor handle supply voltage? Vcc > Vce (max) ?
  • Find the worst case current gain during saturation. Ic
  • Calculate the minimum base current. Ib
  • Compare base current Ib max current your micro controller can deliver.
  • Find worst case (highest) Vbe
  • Calculate voltage drop across base resistor using Vbe and micro controller output
  • Calculate required base resistor Rb.
  • Calculate collector power dissipation.


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 = 12v11.3v/155Ω = 78mA73 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 = 7873/10 = 7.8mA3mA  

Rb = Vb/Ib = 2.1/0.0078 = 269 Ω0073 = 288 Ω


Confirm: Can the micro controller deliver Ib current required?


Tested with 220 Ω and it worked.

...

hFE=100 (@100mA)

Ib = Ic/Hfe = 7873/100 = 0.78mA73mA

Rb = Vb/Ibx3 = 2.1/(0.00078x300073x3) =  897 959 Ω


This would be the max value for Rb.

Calculating using the online calculator

...


hFE=100

Rb = 960 Ω Why are these all so different??? I gues it would work from 200 to 1KΩ.

This would be the max value for Rb.


Formulas

Ic=(V-Vce)/RL

Ib=Ic/hFE

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


References