When you move from blinking LEDs to switching motors, solenoids, and high-power loads, you need muscle. That muscle comes from transistors. But staring at a distributor catalog reveals hundreds of types of transistors, from tiny signal BJTs to massive IGBT modules. Choosing the wrong one doesn't just mean your circuit won't work—it usually means a melted component, a bricked microcontroller, or a destroyed power supply.
This guide cuts through the semiconductor physics and focuses on bench-ready application. We will cover how to identify, bias, test, and select the right transistor for your next build, complete with the exact part numbers you should keep in your shop.
The Big Three: BJT, MOSFET, and IGBT Pinouts and Symbols
While there are many specialized semiconductor devices, 95% of maker and DIY electrical projects rely on three main types of transistors. Understanding their pinouts and schematic symbols is the first step to wiring them correctly.
Bipolar Junction Transistor (BJT)
BJTs are current-controlled devices. A small current flowing into the base controls a much larger current flowing from collector to emitter. They are ideal for low-power signal amplification and switching loads under 1A.
- Pins: Base (B), Collector (C), Emitter (E).
- Symbol: A circle with a vertical line and three branches. The arrow is always on the Emitter. For NPN, the arrow points out (Not Pointing iN). For PNP, it points in.
- Physical Pinout (TO-92 package, flat side facing you): Left to right is typically Emitter, Base, Collector (always verify the datasheet, as European BC547s differ from US 2N3904s).
Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET)
MOSFETs are voltage-controlled devices. They draw virtually zero continuous gate current, making them perfect for microcontroller GPIO pins. They excel at high-speed switching and high-current DC loads.
- Pins: Gate (G), Drain (D), Source (S).
- Symbol: A vertical channel line with a separate parallel Gate line. The arrow is on the Source, pointing inward for N-Channel and outward for P-Channel.
- Physical Pinout (TO-220 package, tab facing away): Left to right is Gate, Drain, Source. Note: The metal tab is almost always internally connected to the Drain.
Insulated-Gate Bipolar Transistor (IGBT)
IGBTs combine the voltage-controlled gate of a MOSFET with the high-current, low-saturation-voltage output of a BJT. You will rarely use these for 12V DC projects; they dominate in high-voltage AC/DC motor drives, induction heaters, and welding inverters.
- Pins: Gate (G), Collector (C), Emitter (E).
- Symbol: Looks like a MOSFET, but the Drain is replaced with a Collector, and a BJT-style arrow is added to the Emitter.
Safe Default Part Numbers and Ratings
Stop buying random assortments and stock your bench with these proven, high-availability defaults. These parts cover nearly all hobbyist and light-industrial switching needs.
| Type | Part Number | Max Current | Max Voltage | Key Characteristic |
|---|---|---|---|---|
| NPN BJT | 2N3904 | 200 mA | 40V | General purpose low-power switching. |
| NPN BJT | 2N2222A | 800 mA | 40V | Higher current signal switching. |
| Darlington BJT | TIP120 | 5 A | 60V | High gain, but high saturation voltage (~2V drop). |
| N-CH MOSFET | IRLZ44N | 47 A | 55V | Logic-level. Fully turns on at 3.3V/5V gate drive. |
| N-CH MOSFET | IRF520 | 9.2 A | 100V | Standard level. Requires 10V gate drive. Avoid for 3.3V logic. |
Operation Regions and Biasing for the Job
To use a transistor as a switch, you must drive it fully into its "on" region. If you leave it in the middle (linear/active region), it acts as a resistor, dissipating massive heat and destroying itself.
| Device | Region | Condition (Voltage/Current) | Primary Use |
|---|---|---|---|
| BJT (NPN) | Cutoff | Vbe < 0.6V, Ib = 0 | Open Switch (OFF) |
| BJT (NPN) | Active / Linear | Vbe ≈ 0.7V, Ic = β * Ib | Amplification (Audio/RF) |
| BJT (NPN) | Saturation | Vbe ≈ 0.7V, Vce < 0.2V | Closed Switch (ON) |
| MOSFET (N-CH) | Cutoff | Vgs < Vgs(th) | Open Switch (OFF) |
| MOSFET (N-CH) | Ohmic / Linear | Vgs > Vgs(th), Vds is high | Variable Resistor / PWM Heating |
| MOSFET (N-CH) | Saturation (Fully ON) | Vgs >> Vgs(th), Rds(on) reached | Closed Switch (ON) |
How to Bias for Switching
For BJTs: You must limit the base current with a resistor. Calculate the required base current using Ib = Ic / β (where β or hFE is the DC current gain, typically 100). To guarantee saturation, multiply your calculated Ib by a safety factor of 2 to 5. For example, switching a 200mA relay with a 2N3904 (β=100) requires 2mA minimum. Use a 1kΩ resistor on a 5V GPIO to provide ~4.3mA, pushing it deep into saturation.
For MOSFETs: Biasing is about voltage, not current. Ensure your GPIO voltage exceeds the Vgs(th) (Gate-Source Threshold Voltage) listed in the datasheet. More importantly, look at the Rds(on) chart to see what gate voltage is required to achieve the lowest on-resistance. Always use a 10kΩ pull-down resistor between Gate and Source to prevent the gate from floating and accidentally turning on during microcontroller boot-up.
Real-World Scenario: Driving a 12V Solenoid with an ESP32
Let's walk through a complete application circuit and a common failure mode you will inevitably encounter on the bench.
The Application Circuit
Goal: Use an ESP32 DevKit v1 (3.3V logic) to trigger a 12V, 1.5A door-lock solenoid.
- Transistor: IRLZ44N (Logic-level N-Channel MOSFET).
- Gate Resistor: 100Ω (limits inrush current to the gate capacitance, preventing GPIO damage and high-frequency ringing).
- Pull-down Resistor: 10kΩ between Gate and Source.
- Flyback Diode: 1N4007 placed in reverse bias across the solenoid coils (cathode to 12V, anode to Drain).
The Walkthrough: Setup, Numbers, and Outcome
Setup: The ESP32 GPIO pin is set HIGH (3.3V). The voltage passes through the 100Ω resistor to the Gate of the IRLZ44N. The Source is tied to the common ground shared by the ESP32 and the 12V power supply.
The Numbers: The solenoid draws 1.5A. According to the IRLZ44N datasheet, at a Vgs of 3.3V, the Rds(on) is approximately 0.035Ω. The power dissipated by the MOSFET is calculated as P = I² × R. Therefore, 1.5² × 0.035 = 0.078 Watts. The TO-220 package can dissipate up to 2W in free air without a heatsink. The transistor stays at room temperature, and the solenoid snaps shut instantly.
What Went Wrong (The Failure Scenario):
Imagine you didn't have an IRLZ44N in your bin, so you grabbed an IRF520. Both are N-channel MOSFETs in TO-220 packages. Both are rated for well over 1.5A. You wire it up exactly the same way.
When the ESP32 sends 3.3V to the gate, the IRF520 barely turns on. Its Vgs(th) is up to 4V, and it requires 10V to reach its rated Rds(on) of 0.27Ω. At 3.3V, the IRF520 gets stuck in the Ohmic/Linear region. Its effective resistance might be 3Ω.
Now, run the math: P = 1.5² × 3Ω = 6.75 Watts. Without a massive heatsink, the TO-220 package will exceed its 175°C maximum junction temperature in under three seconds. The silicon die thermally destructs, the plastic package cracks, and the magic smoke escapes. Worse, if it fails short-circuit (Drain to Gate), the 12V rail will feed directly back into your ESP32 GPIO, instantly frying the microcontroller.
Bench Testing: How Transistors Fail and Multimeter Diagnostics
Transistors fail primarily through three mechanisms: thermal runaway (exceeding junction temperature), overvoltage punch-through (exceeding Vceo or Vds breakdown ratings), and ESD damage (specifically blowing the microscopic gate oxide layer on a MOSFET). Here is how to test them on your bench using a standard digital multimeter.
Testing a BJT with a Multimeter
Set your multimeter to Diode Test mode. A BJT is essentially two back-to-back diodes (Base-Emitter and Base-Collector).
- Place the red probe on the Base and the black probe on the Emitter. You should read a forward voltage drop between 0.600V and 0.750V.
- Move the black probe to the Collector. You should read a similar 0.6V - 0.75V drop.
- Reverse the probes (black on Base, red on Emitter/Collector). The meter should read "OL" (Open Loop / Infinite resistance).
- Test Collector to Emitter in both directions. Both should read "OL". If you get a short (near 0.00V) or a low resistance in either direction, the BJT has suffered a thermal short and is dead.
Testing a MOSFET with a Multimeter
MOSFETs are trickier because the Gate is capacitively coupled and isolated. You can test the internal body diode and "charge" the gate to prove it switches.
- Set the meter to Diode Test mode. Touch the black probe to the Source and the red probe to the Drain. You should read a diode drop of roughly 0.4V to 0.6V (this is the internal body diode conducting).
- Reverse the probes (red to Source, black to Drain). It should read "OL".
- The Gate Charge Test: While keeping the black probe on the Source, briefly touch the red probe to the Gate. This uses the multimeter's internal 3V battery to charge the gate capacitance, turning the MOSFET on.
- Move the red probe back to the Drain. The meter should now read near 0.00V (a short), indicating the channel is fully conducting.
- To turn it off, touch your finger across the Gate and Source pins to discharge the capacitance. Re-test Drain to Source; it should revert to the 0.5V body diode reading. If it stays shorted, the gate oxide is punctured.
For authoritative deep-dives into MOSFET gate charge characteristics and BJT saturation curves, refer to the ON Semiconductor BJT discrete guide and the All About Circuits MOSFET introduction. Always pull the specific datasheet from the manufacturer before finalizing your PCB layout or breadboard wiring.






