When you crack open a TO-92 package and look inside a transistor, you aren't just seeing a lump of silicon; you are looking at a precisely engineered semiconductor sandwich that acts as the fundamental valve of modern electronics. For hobbyists and bench technicians, understanding the internal physics is useless unless it translates to picking the right part, biasing it correctly, and knowing why it just burned a hole in your breadboard. This guide bridges the gap between semiconductor theory and jobsite reality, giving you the exact numbers, default part numbers, and failure diagnostics you need to design reliable switching circuits.

Looking Inside a Transistor: The Silicon Sandbox

A Bipolar Junction Transistor (BJT) is essentially two diodes sharing a common central region. In an NPN transistor, you have a heavily doped N-type Emitter, a very thin and lightly doped P-type Base, and a moderately doped N-type Collector. The magic happens in the Base: because it is so thin, electrons injected from the Emitter easily sweep across it and get pulled into the Collector, controlled by the small Base current.

On a schematic, the NPN symbol features an arrow on the Emitter pointing outward (remember: "Not Pointing iN"). Physically, the most common through-hole package is the TO-92. If you hold a standard 2N2222 or 2N3904 with the flat side facing you and the pins pointing down, the pinout from left to right is:

  • Pin 1: Emitter (E) - The source of majority carriers.
  • Pin 2: Base (B) - The control valve.
  • Pin 3: Collector (C) - The output drain.

Note: Always verify with a datasheet. European BC547 transistors use a Collector-Base-Emitter (CBE) pinout in the exact same physical package.

Operation Regions: Cut-off, Active, and Saturation

To use a BJT effectively, you must know which region it is operating in. Digital logic and power switching rely on bouncing between Cut-off and Saturation, while audio amplifiers live in the Active region. Here is how the internal voltages and currents behave in a standard small-signal NPN silicon transistor:

RegionBase-Emitter Voltage ($V_{BE}$)Collector-Emitter Voltage ($V_{CE}$)Collector Current ($I_C$)Primary Use
Cut-off< 0.5VEqual to Supply ($V_{CC}$)~0 A (Leakage only)Open Switch (OFF)
Active~0.6V to 0.7V> 0.3V (Typ. 1V to $V_{CC}$)$I_B \times h_{FE}$Linear Amplification
Saturation~0.7V to 0.8V< 0.2V (Typ. 0.05V to 0.2V)Limited by external loadClosed Switch (ON)

The critical takeaway for switching applications is that you must drive the Base hard enough to force the transistor into Saturation. If you linger in the Active region while passing high collector current, the transistor will dissipate massive amounts of heat ($P = V_{CE} \times I_C$) and fail.

Safe Default Part Numbers and Ratings

Stop guessing which transistor to pull from your parts bin. These are the safe, industry-standard defaults for 95% of hobbyist and prototyping tasks. Keep them stocked in your lab.

Part NumberTypeMax $V_{CEO}$Max $I_C$Max $P_D$Typical $h_{FE}$Best For
2N3904NPN40V200mA625mW100 - 300Logic level shifting, small signal switching
2N2222NPN30V600mA500mW100 - 300Driving small relays, LEDs, low-power motors
2N3906PNP-40V-200mA625mW100 - 300High-side switching (complement to 2N3904)
TIP120NPN Darlington60V5A65W1000+High current loads (Note: high $V_{CE(sat)}$ drop)

According to All About Circuits, the Darlington pair (like the TIP120) offers massive current gain but suffers from a double base-emitter voltage drop (~1.4V) and a high saturation voltage (~2V), making it inefficient for high-current battery-powered designs compared to logic-level MOSFETs.

Biasing for the Job: A Complete 12V Relay Switching Circuit

Let's bias a 2N2222 to switch a 12V relay coil that draws 80mA, controlled by a 5V Arduino GPIO pin. The goal is to guarantee saturation so the transistor runs cool.

The Math:
1. Target Collector Current ($I_C$) = 80mA.
2. Assume a conservative $h_{FE}$ (gain) of 100.
3. Minimum Base Current ($I_B$) = $I_C / h_{FE}$ = 80mA / 100 = 0.8mA.
4. Apply a 2x overdrive factor to guarantee saturation: $I_{B(sat)}$ = 1.6mA.
5. Calculate Base Resistor ($R_B$): The Arduino outputs 5V. The Base-Emitter junction drops 0.7V.
$R_B = (5V - 0.7V) / 1.6mA = 2,687\Omega$.
6. Select the nearest standard lower resistor value: 2.2k$\Omega$.

Bench Tip: Never drive an inductive load like a relay coil without a flyback diode. When the transistor turns off, the collapsing magnetic field generates a high-voltage spike that will instantly avalanche and destroy the BJT. Place a 1N4007 or 1N4148 diode in reverse bias across the relay coil (cathode to 12V, anode to the Collector).
  1. Connect the Load: Wire one side of the 12V relay coil to your 12V power supply positive terminal.
  2. Wire the Flyback Diode: Connect the 1N4148 diode across the coil. The silver stripe (cathode) points toward the 12V positive.
  3. Connect the Collector: Wire the other side of the relay coil to the Collector (Pin 3) of the 2N2222.
  4. Wire the Base Resistor: Connect a 2.2k$\Omega$ resistor from the Arduino 5V GPIO pin to the Base (Pin 2) of the 2N2222.
  5. Ground the Emitter: Connect the Emitter (Pin 1) of the 2N2222 to the common ground shared by the Arduino and the 12V power supply.
  6. Verify: Set the GPIO HIGH. The relay should click. Measure the voltage between Collector and Emitter with a multimeter; it should read less than 0.2V, confirming deep saturation.

Bench War Story: When the Magic Smoke Escapes

Theory is clean; the workbench is not. A classic mistake is confusing a BJT's saturation voltage with a MOSFET's $R_{DS(on)}$. I learned this the hard way while designing a 12V automotive solenoid driver.

The Setup: I needed to switch a 12V solenoid drawing 1.5A. I chose a TIP31C NPN power transistor in a TO-220 package, assuming that because it was rated for 3A continuous collector current, it would handle 1.5A easily without a heatsink.

The Numbers: The datasheet for the TIP31C specifies a Collector-Emitter Saturation Voltage ($V_{CE(sat)}$) of typically 1.2V at 1.5A. Unlike a MOSFET which acts like a tiny resistor (e.g., 0.02$\Omega$), a saturated BJT still drops a fixed voltage. The power dissipated by the transistor was $P = V_{CE(sat)} \times I_C = 1.2V \times 1.5A = 1.8W$.

The Outcome: A bare TO-220 package has a junction-to-ambient thermal resistance ($R_{\theta JA}$) of roughly 62°C/W. The temperature rise above ambient was $1.8W \times 62°C/W = 111.6°C$. On a 25°C bench, the silicon junction hit 136°C, exceeding the 150°C absolute maximum once enclosed, and the transistor thermally runaway and failed short-circuit, locking the solenoid on.

What Went Wrong: I treated a BJT like a MOSFET. For high-current, low-duty-cycle switching where you don't want to bolt on a massive heatsink, a logic-level MOSFET (like the IRLZ44N with an $R_{DS(on)}$ of 0.022$\Omega$) is the correct choice. At 1.5A, the MOSFET would have dissipated only $I^2R = (1.5)^2 \times 0.022 = 0.049W$, running completely cool to the touch. For further reading on switching topologies, Electronics Tutorials provides excellent breakdowns on when to cross over from BJTs to MOSFETs.

Multimeter Autopsy: How Transistors Fail and How to Test Them

Transistors generally fail in three ways: Thermal runaway (junction gets too hot, leaks more current, gets hotter until it melts), Secondary breakdown (localized hot spots inside the silicon due to high voltage and high current simultaneously), and Avalanche breakdown (exceeding the $V_{CEO}$ rating, often from inductive spikes).

When a BJT fails, it almost always fails short (Collector to Emitter), rather than open. You can diagnose a suspect transistor right on the bench using your multimeter's Diode Test mode.

  1. Set the Meter: Turn your multimeter dial to the Diode Test setting (the symbol with an arrow and a line).
  2. Test Base-to-Emitter (Forward): Place the red probe on the Base and the black probe on the Emitter. A healthy silicon NPN will read between 0.55V and 0.75V.
  3. Test Base-to-Collector (Forward): Place the red probe on the Base and the black probe on the Collector. You should see a similar 0.55V to 0.75V drop.
  4. Test Reverse Bias: Swap the probes (black on Base, red on Emitter, then red on Collector). The meter should read "OL" (Over Limit / Open) on both junctions.
  5. Test Collector-to-Emitter: Place probes across the Collector and Emitter in both directions. Both must read "OL". If you read a short (0.00V or a beep) here, the internal silicon has melted and the part is dead.

By mastering what happens inside a transistor, you stop treating them as magic black boxes and start treating them as predictable, measurable components. Keep your flyback diodes close, respect the saturation math, and always verify your pinouts before applying power.