If you are asking what a transistor actually does on a workbench, the short answer is this: it is a solid-state current valve. A Bipolar Junction Transistor (BJT) uses a tiny control current at one terminal (the Base) to proportionally restrict or allow a much larger current to flow between two other terminals (the Collector and Emitter). Unlike mechanical relays, it has no moving parts, switches in nanoseconds, and can operate in a partially open state to amplify signals.
While textbooks focus on electron holes and semiconductor doping, practical circuit design requires knowing how to bias the device, read its pinout, and keep it from melting. This guide skips the quantum physics and focuses entirely on how to select, wire, and test NPN BJTs—the most common type you will encounter in DIY electronics and repair.
Pinouts, Symbols, and the Three Terminals
Every standard BJT has three legs. On a schematic, the symbol is a circle (or just the legs, in modern CAD) with an arrow on the Emitter. If the arrow points outward, it is NPN. If it points inward, it is PNP. For 95% of hobbyist and low-side switching applications, you will use NPN.
- Base (B): The control terminal. A small current flowing into the Base (for NPN) turns the transistor on.
- Collector (C): The terminal where the main load current enters the transistor.
- Emitter (E): The terminal where the main load current exits, usually tied to ground in low-side switching.
Operation Regions: Cutoff, Active, and Saturation
A BJT does not just act as an on/off switch; it has three distinct operating regions. Understanding these is critical for deciding whether you are building an amplifier or a digital switch.
| Region | Base-Emitter Voltage ($V_{BE}$) | Collector-Emitter State ($V_{CE}$) | Practical Use Case |
|---|---|---|---|
| Cutoff | < 0.5V (Typically 0V) | $V_{CE} = V_{CC}$ (Open circuit) | Switch is OFF. No current flows. |
| Active (Linear) | ~0.6V to 0.7V | 0.7V < $V_{CE}$ < $V_{CC}$ | Amplification. $I_C = \beta \times I_B$. The transistor acts as a current source. |
| Saturation | ~0.7V to 0.8V | $V_{CE(sat)}$ (Typically 0.2V) | Switch is ON. Fully closed. Maximum current flows, limited only by the external load. |
When using a transistor as a switch (like turning on a motor or LED strip via an Arduino), you always want to drive it hard into Saturation. If it stays in the Active region, it acts like a resistor, dissipating massive amounts of heat ($P = V_{CE} \times I_C$) and will quickly destroy itself.
How to Bias a BJT for Switching (Application Circuit)
Let us build a complete, real-world circuit: driving a 12V, 70mA relay coil using a 5V Arduino GPIO pin and a 2N2222 NPN transistor. A microcontroller pin cannot source 70mA at 12V, but it can output 5V at a few milliamps to control the transistor.
- Calculate the required Collector Current ($I_C$): The relay coil draws 70mA. So, $I_C = 70mA$.
- Determine the Base Current ($I_B$) for hard saturation: The 2N2222 datasheet specifies a minimum $h_{FE}$ (DC current gain) of 100 at this current. However, to guarantee saturation and account for temperature drops, we use a forced $\beta$ of 10.
$I_B = I_C / 10 = 70mA / 10 = 7mA$. (This is well within the Arduino GPIO 20mA safe limit). - Calculate the Base Resistor ($R_B$): The Arduino outputs 5V. The Base-Emitter junction drops about 0.7V.
$R_B = (V_{GPIO} - V_{BE}) / I_B = (5V - 0.7V) / 7mA = 614\Omega$.
Select the next standard E12 resistor value down: 560Ω. - Add the Flyback Diode: Relay coils are inductors. When the transistor turns off, the collapsing magnetic field generates a massive reverse voltage spike that will punch through the transistor's Collector-Base junction. Place a 1N4007 diode in reverse bias across the relay coil (cathode to 12V, anode to Collector) to clamp this spike.
Wire the 560Ω resistor between the Arduino pin and the Base. Connect the Emitter to Ground. Connect the relay coil between the 12V supply and the Collector. When the GPIO goes HIGH, 7mA flows into the Base, allowing 70mA to flow through the relay coil, pulling the Collector down to ~0.2V.
Safe Default Part Numbers and Ratings
Stop buying random transistor kits without knowing their limits. Here are the four NPN workhorses you should keep in your bench drawer, along with their absolute maximum ratings. For authoritative specifications, always refer to the manufacturer datasheets, such as the ON Semiconductor PN2222A datasheet.
| Part Number | Type | Max $I_C$ (Collector Current) | Max $V_{CEO}$ (Voltage) | Typical $h_{FE}$ | Best Used For |
|---|---|---|---|---|---|
| 2N3904 | NPN BJT | 200 mA | 40 V | 100 - 300 | Low-power logic level shifting, small LED drivers. |
| 2N2222 (or PN2222A) | NPN BJT | 600 mA | 40 V | 100 - 300 | General purpose switching, relay drivers, small motors. |
| BC547 | NPN BJT | 100 mA | 45 V | 110 - 800 | Audio pre-amplification, sensor signal buffering. |
| TIP120 | NPN Darlington | 5 A | 60 V | > 1000 | High-current loads like solenoids, large LED strips, stepper motors. |
How Transistors Fail and How to Test Them
Transistors rarely fail from old age; they fail from abuse. The most common failure modes are thermal runaway (insufficient heatsinking causing current to increase until the silicon melts) and secondary breakdown (exceeding the Safe Operating Area voltage/current limits simultaneously). Inductive kickback without a flyback diode will instantly short the Collector to the Emitter.
You can test a BJT out-of-circuit using a standard digital multimeter set to Diode Test mode. A BJT is essentially two diodes back-to-back sharing an anode (for NPN).
- Test Base to Emitter: Red probe on Base, Black probe on Emitter. You should read a forward voltage drop of 0.600V to 0.750V.
- Test Base to Collector: Red probe on Base, Black probe on Collector. You should read 0.600V to 0.750V.
- Test Reverse Bias: Swap the probes (Black on Base, Red on Emitter/Collector). The meter should read OL (Over Limit) or open circuit.
- Test Collector to Emitter: Place probes across C and E in both directions. It must read OL. If it reads near 0.00V or beeps, the junction has shorted and the part is dead.
For deeper theory on semiconductor junctions and testing methodologies, the Electronics Tutorials BJT guide provides excellent schematic breakdowns of internal fault paths.
Frequently Asked Questions
What a transistor does to a voltage signal?
A transistor inherently amplifies current, not voltage. To get voltage amplification, you must place a load resistor on the Collector. As the transistor pulls more current through the resistor, the voltage drop across the resistor increases, effectively inverting and amplifying the input voltage signal at the Collector node. This is the basis of the Common Emitter amplifier.
What a transistor looks like on a schematic?
On a schematic, an NPN BJT is drawn as a vertical line (the Base) with two diagonal lines branching off it. The top diagonal is the Collector, and the bottom diagonal is the Emitter. The Emitter line has an arrowhead pointing away from the Base. If the arrow points toward the Base, it denotes a PNP transistor. Modern schematics often omit the traditional outer circle.
What a transistor's hFE or Beta rating actually means?
$h_{FE}$ (or $\beta$) is the DC Current Gain. It is the ratio of Collector current to Base current ($I_C / I_B$) when the transistor is in the Active (linear) region. If a transistor has an $h_{FE}$ of 100, feeding 1mA into the Base will allow 100mA to flow through the Collector. However, $h_{FE}$ is highly unstable—it varies wildly with temperature and Collector current. Good circuit design never relies on an exact $h_{FE}$ value; instead, it uses negative feedback or drives the base hard enough to force saturation regardless of the gain.






