If you are searching for "transistor what is it", the most practical answer is that it is a three-terminal semiconductor valve. It uses a small input signal (current or voltage) to control a much larger output current. Think of it like a municipal water valve: a small turn of the handle (the input) controls a massive flow of water through the pipe (the output). In electronics, we use this mechanism to do two main jobs: switching (turning loads fully on or off) and amplification (scaling up a weak analog signal).
There are two primary families you will encounter on the bench: the Bipolar Junction Transistor (BJT) and the Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET). A BJT is current-controlled and has three pins: Base (B), Collector (C), and Emitter (E). Its schematic symbol features an arrow on the emitter leg that points outward for NPN types and inward for PNP types. A MOSFET is voltage-controlled, features pins named Gate (G), Drain (D), and Source (S), and its symbol shows a physical gap between the gate and the channel, representing the insulated oxide layer that gives it near-infinite input impedance.
BJT vs. MOSFET: Safe Default Part Numbers and Ratings
When prototyping, you do not need to scour distributor catalogs for every single build. Keeping a few "safe default" transistors in your parts drawer covers 90% of hobbyist and DIY switching needs. Below is a data-dense reference table of the most reliable, widely available default part numbers, complete with their absolute maximum ratings and key performance metrics.
| Type | Part Number | Package | Max Voltage (V) | Max Current (A) | Max Power (W) | Key Metric | Best Application |
|---|---|---|---|---|---|---|---|
| NPN BJT | 2N2222A / PN2222A | TO-92 | 40V ($V_{CEO}$) | 0.6A ($I_C$) | 0.625W | $h_{FE}$ (Gain): 100-300 | Low-power switching, LED drivers, 5V/3.3V logic level translation |
| PNP BJT | 2N2907A / PN2907A | TO-92 | 40V ($V_{CEO}$) | 0.6A ($I_C$) | 0.625W | $h_{FE}$ (Gain): 100-300 | High-side switching, sourcing current to loads tied to ground |
| N-Channel MOSFET | IRLZ44N | TO-220 | 55V ($V_{DSS}$) | 47A ($I_D$) | 45W | $R_{DS(on)}$: 22mΩ @ $V_{GS}$=5V | High-current loads, motors, solenoids, PWM dimming from 5V logic |
| P-Channel MOSFET | IRF9540N | TO-220 | -100V ($V_{DSS}$) | -23A ($I_D$) | 79W | $R_{DS(on)}$: 117mΩ @ $V_{GS}$=-10V | High-side switching for high-current loads (requires gate driver) |
Operation Regions and Biasing Basics
How you bias a transistor dictates how it behaves in your circuit. Biasing simply means applying the correct DC voltages and currents to the pins to establish a specific operating point. For BJTs, the relationship between the Base-Emitter voltage ($V_{BE}$) and the Collector-Emitter voltage ($V_{CE}$) defines three distinct operation regions.
| Operation Region | Base-Emitter Voltage ($V_{BE}$) | Collector-Emitter Voltage ($V_{CE}$) | Collector Current ($I_C$) | Practical Use |
|---|---|---|---|---|
| Cutoff | < 0.6V | $\approx V_{CC}$ (Supply Voltage) | 0A (Leakage only) | Switch is OPEN (Off state) |
| Active (Linear) | $\approx$ 0.65V - 0.7V | > 0.3V (Typically $V_{CC}/2$) | $I_C = \beta \times I_B$ | Amplifiers, audio pre-amps, linear regulators |
| Saturation | $\approx$ 0.7V - 0.8V | $\approx$ 0.2V ($V_{CE(sat)}$) | $I_C < \beta \times I_B$ | Switch is CLOSED (On state), minimal power dissipation |
How to Select and Bias for Switching
When using a transistor as a switch (the most common DIY application), your goal is to drive it deep into saturation. In saturation, the voltage drop across the transistor ($V_{CE(sat)}$) is minimal (usually ~0.2V for a BJT), meaning it dissipates very little heat ($P = V \times I$).
A common beginner mistake is using the datasheet's maximum $h_{FE}$ (current gain, or $\beta$) to calculate the base resistor. The $h_{FE}$ value in the ON Semi PN2222A datasheet is specified for the active region. To guarantee saturation under all temperature and load variations, use a "forced beta" of 10. If your load requires 100mA of collector current, you must supply at least 10mA of base current, regardless of what the datasheet's typical gain chart says.
For MOSFETs, biasing is simpler but has a hidden trap: gate capacitance. A MOSFET gate acts like a small capacitor. When you switch it with a microcontroller GPIO pin, the pin must source a brief spike of current to charge this capacitor. If you are switching at high PWM frequencies (above 5kHz), a simple GPIO pin might struggle to charge the gate fast enough, leaving the MOSFET in the linear region where it will rapidly overheat. In those cases, use a dedicated gate driver IC or a push-pull BJT totem-pole circuit.
A Complete Switching Circuit: Driving a 12V Relay
Let us put this theory into practice. We will use an ESP32 (which operates at 3.3V logic) to switch a 12V automotive-style relay coil that draws 75mA. We will use our default NPN BJT, the 2N2222A.
Component Values and Math
- Load Current ($I_C$): 75mA
- Forced Beta: 10
- Required Base Current ($I_B$): $75mA / 10 = 7.5mA$
- ESP32 GPIO Voltage ($V_{GPIO}$): 3.3V
- Base-Emitter Drop ($V_{BE}$): 0.7V
- Base Resistor ($R_B$): $(3.3V - 0.7V) / 0.0075A = 346\Omega$
We will select the next lower standard E12 resistor value to ensure we slightly overdrive the base: 330Ω.
Wiring Steps
- Connect the Emitter: Wire Pin 1 (Emitter) of the 2N2222 (flat side facing you) directly to the system Ground (GND).
- Connect the Base: Wire the 330Ω resistor between the ESP32 GPIO output pin and Pin 2 (Base) of the 2N2222.
- Connect the Collector and Load: Wire Pin 3 (Collector) to one terminal of the 12V relay coil.
- Power the Load: Wire the other terminal of the relay coil to your 12V power supply positive terminal.
- Install Flyback Diode: Place the 1N4148 diode directly across the relay coil terminals. The silver band (cathode) must face the 12V positive side.
- Common Ground: Crucially, ensure the 12V power supply ground and the ESP32 ground are tied together. The transistor needs a shared reference potential to function.
Failure Modes and Multimeter Testing
Transistors do not usually fail gracefully. Understanding how they break helps you diagnose blown circuits and verify salvaged parts. For deeper theory on semiconductor junctions, the All About Circuits BJT chapter provides excellent foundational physics.
Common Failure Modes
- Thermal Runaway: As a BJT heats up, its current gain increases, which draws more current, creating more heat. Without proper heatsinking or emitter-degeneration resistors, the silicon junction melts, resulting in a dead short between Collector and Emitter.
- Avalanche Breakdown: Exceeding the maximum Collector-Emitter voltage ($V_{CEO}$) causes the depletion region to break down. The transistor punches through and shorts out permanently.
- Bond Wire Melt: Exceeding the absolute maximum continuous current ($I_C$ or $I_D$) physically vaporizes the microscopic aluminum wire bonding the silicon die to the external metal leads. The device fails open-circuit.
- Gate Oxide Puncture (MOSFETs only): Exceeding the maximum Gate-Source voltage (usually ±20V) or exposing the gate to electrostatic discharge (ESD) punctures the insulating oxide layer, destroying the component.
How to Test a BJT with a Digital Multimeter
You can verify the health of a BJT using the Diode Test mode on your digital multimeter (DMM). A healthy BJT behaves exactly like two diodes sharing a common anode (for NPN) or cathode (for PNP).
- Set your DMM to the diode test setting (symbolized by a diode icon).
- Test Base-to-Emitter: Place the red probe on the Base and the black probe on the Emitter (assuming NPN). You should read a forward voltage drop between 0.55V and 0.75V.
- Test Base-to-Collector: Place the red probe on the Base and the black probe on the Collector. You should read a similar forward voltage drop (0.55V to 0.75V).
- Test Reverse Bias: Swap the probes (black on Base, red on Emitter/Collector). The meter should read "OL" (Open Loop / Over Limit), indicating the junction is blocking current.
- Test Collector-to-Emitter: Place probes across the Collector and Emitter in both directions. Both readings must be "OL". If you read a short (0.00V or a beep) here, the transistor has suffered thermal runaway or avalanche breakdown and is in the trash.
For MOSFETs, testing is slightly more complex due to the insulated gate. You can check for a short between Drain and Source (which indicates a blown device), but verifying the gate capacitance requires a specialized component tester or an oscilloscope to observe the charge/discharge curve. When in doubt with a suspect MOSFET, consult the manufacturer datasheet for the specific gate charge parameters and replace it with a known-good default part.






