Calculate the base resistor needed to drive a BJT transistor into saturation for switching applications.

Inputs
GPIO/logic level driving the base
From transistor datasheet
Overdrive factor (typically 2-10)
Results
Base Resistor (Rb)
Base Current (Ib)
Power in Rb
Vce(sat) drop
~0.2 V