If you are switching loads greater than a few hundred milliamps with a microcontroller, MOS transistors (MOSFETs) are your default tool. Unlike bipolar junction transistors (BJTs) that require continuous base current to stay on, a Metal-Oxide-Semiconductor Field-Effect Transistor is voltage-controlled. Once the gate capacitance is charged, it draws virtually zero steady-state current from your GPIO pin. However, treating them like ideal switches is the fastest way to melt a TO-220 package on your workbench.
This guide skips the deep semiconductor physics and focuses on what you actually need to know at the bench: how to read the datasheet, how to bias the gate properly, which part numbers to keep in your bins, and how to test a suspect component with a multimeter.
Decoding the Symbol and Pinout
Before wiring anything, you must understand the schematic symbol and the physical package. For an N-channel enhancement-mode MOS transistor—the most common type used for low-side switching—the schematic symbol features three main terminals: the Gate (G), Drain (D), and Source (S).
The Gate is separated from the channel by a thin layer of silicon dioxide insulation. This is why the input impedance is nearly infinite, but it also means the gate is highly susceptible to electrostatic discharge (ESD). The arrow on the symbol points inward on the Source pin for an N-channel device. Crucially, the symbol also includes an intrinsic body diode pointing from Source to Drain. This diode is a byproduct of the manufacturing process; it will conduct if the Drain voltage drops below the Source voltage, which is a vital consideration in motor and relay switching.
Physically, power MOS transistors usually come in a TO-220 package. Looking at the front of the package (the side with the text) with the pins pointing down:
- Pin 1 (Left): Gate
- Pin 2 (Center): Drain
- Pin 3 (Right): Source
The large metal tab on the back is internally connected to the Drain. If you are mounting the transistor to a heatsink, you must use an insulating pad and shoulder washer if the heatsink touches the chassis ground, otherwise you will short your Drain directly to the chassis.
The Three Operation Regions
Unlike BJTs, the terminology for MOS transistor operating regions can be deeply confusing because 'saturation' means something entirely different here. When using a MOSFET as a switch, you want it in the Triode (or Linear/Ohmic) region, not the Saturation region. Here is how the regions break down with typical operating parameters for a standard logic-level power device like the IRLZ44N.
| Region | Gate-Source Voltage ($V_{GS}$) | Drain-Source Voltage ($V_{DS}$) | Behavior & Application |
|---|---|---|---|
| Cutoff | $V_{GS} < V_{GS(th)}$ (e.g., < 2.0V) | Any | Device is OFF. Only micro-amps of leakage current flow. Used for the 'open switch' state. |
| Triode (Linear) | $V_{GS} > V_{GS(th)}$ (e.g., 5V) | $V_{DS} < (V_{GS} - V_{GS(th)})$ | Device is fully ON. Acts as a low-value resistor ($R_{DS(on)}$). Use this region for switching. |
| Saturation | $V_{GS} > V_{GS(th)}$ (e.g., 5V) | $V_{DS} > (V_{GS} - V_{GS(th)})$ | Current is constant regardless of $V_{DS}$. Acts as a current source. Use this region for amplification. |
The critical takeaway for makers: $V_{GS(th)}$ (Gate Threshold Voltage) is merely the voltage where the device begins to turn on (usually allowing just 250µA of current). It is not the voltage required to fully enhance the channel and achieve the low $R_{DS(on)}$ listed on the front page of the datasheet. For full enhancement, you typically need 4.5V to 5V for 'logic-level' parts, and 10V for 'standard-level' parts.
Selecting and Biasing for the Job
Selecting the right MOS transistor comes down to three parameters: maximum Drain-Source voltage ($V_{DSS}$), continuous Drain current ($I_D$), and Gate-Source threshold voltage relative to your microcontroller's logic level.
Keep these in your component bins to cover 95% of hobbyist and prototyping needs:
- Signal Level (Low Power): 2N7000 (N-ch, 60V, 200mA, TO-92). Perfect for driving small relays or LEDs from 5V logic.
- Power (5V/3.3V Logic): IRLZ44N (N-ch, 55V, 47A, $R_{DS(on)}$ = 22mΩ @ 5V). The 'L' stands for Logic-level. It will fully turn on from an ESP32 or Arduino.
- Power (10V+ Drive): IRFZ44N (N-ch, 55V, 49A). Requires a dedicated gate driver or 12V supply to bias the gate fully.
- High-Side Switch: IRF9540N (P-ch, 60V, 23A). Use for high-side loads where the ground must remain common.
Complete Application Circuit: 12V Motor PWM via ESP32
Here is a robust, real-world circuit for driving a 12V DC motor using a 3.3V ESP32 GPIO pin and an IRLZ44N.
- Q1: IRLZ44N (N-channel Logic-Level MOSFET)
- R1 (Gate Resistor): 100Ω. Placed in series between the ESP32 GPIO and the Gate. This limits the inrush current into the gate capacitance, protecting the ESP32's delicate silicon from current spikes.
- R2 (Pull-down Resistor): 10kΩ. Placed between Gate and Ground. This ensures the gate is pulled low if the ESP32 pin floats during boot-up, preventing the motor from spinning out of control.
- D1 (Flyback Diode): 1N4007 or 1N5819 (Schottky). Placed in reverse bias across the motor terminals (cathode to 12V, anode to Drain). This absorbs the inductive kickback when the MOSFET turns off.
- Load: 12V DC Motor connected between the 12V supply and the Drain pin.
- Source: Connected directly to system Ground.
For a deeper look at how these components interact in switching applications, the All About Circuits semiconductor textbook provides excellent foundational theory on MOSFET switching dynamics.
Real-World Scenario: The Melted Motor Driver
To understand why datasheet reading is critical, let us walk through a classic bench failure.
The Setup: A maker wants to drive a 12V windshield wiper motor that draws 5A continuously and stalls at 15A. They wire up an IRF520 (a very common, cheap standard-level N-channel MOSFET) on a TO-220 package without a heatsink. They drive the gate directly from an Arduino Uno's 5V digital pin.
The Numbers: The maker looks at the IRF520 datasheet and sees $V_{GS(th)}$ is listed as 2.0V to 4.0V. They assume 5V from the Arduino will turn it on fully. The datasheet lists an $R_{DS(on)}$ of 0.27Ω. However, if you read the test conditions for that 0.27Ω spec, it requires $V_{GS} = 10V$. At $V_{GS} = 5V$, the device is only partially enhanced. The actual $R_{DS(on)}$ at 5V might be closer to 0.6Ω.
The Outcome: Using Joule's law ($P = I^2R$), the power dissipated as heat in the silicon is $5A^2 \times 0.6\Omega = 15W$. A bare TO-220 package has a junction-to-ambient thermal resistance ($R_{\theta JA}$) of about 62°C/W. This means the silicon temperature will rise by $15W \times 62°C/W = 930°C$ above ambient. The silicon hits its 175°C maximum junction temperature in milliseconds, enters thermal runaway, and the package literally melts the solder and vents magic smoke.
What Went Wrong: The maker confused the threshold voltage with the enhancement voltage. The fix is twofold: either swap the IRF520 for a logic-level IRLZ44N (which guarantees low $R_{DS(on)}$ at 5V), or use a dedicated gate driver IC (like the TC4420) to boost the 5V Arduino signal up to 12V to properly drive the IRF520's gate. For more on calculating thermal limits, refer to Infineon's MOSFET application notes on power dissipation.
Bench Testing: How MOS Transistors Fail and How to Test Them
MOS transistors generally fail in three ways: gate oxide puncture from ESD (resulting in a dead gate), avalanche breakdown from inductive spikes exceeding $V_{DSS}$, or thermal runaway causing the Drain and Source to short together. When they fail due to heat, they almost always fail 'short'—meaning the load stays on permanently.
You can test an N-channel power MOSFET right on the bench using a standard digital multimeter in Diode Test Mode. Follow these numbered steps:
- Discharge the Gate: With the component out of the circuit, touch a piece of wire or your multimeter probe across the Gate and Source pins to drain any residual charge in the gate capacitance.
- Check the Body Diode: Place the red (positive) probe on the Source and the black (negative) probe on the Drain. You should read a standard diode voltage drop (typically 0.4V to 0.6V). Reverse the probes (Red on Drain, Black on Source); the meter should read 'OL' (Open Loop / Infinite resistance).
- Charge the Gate: Keep the black probe on the Source. Momentarily touch the red probe to the Gate pin. This applies the multimeter's internal ~3V battery to the gate, charging the capacitance and turning the channel on.
- Verify the Channel: Move the red probe back to the Drain (keeping black on Source). The meter should now read a near-short (close to 0.00V or a very low resistance), indicating the channel is conducting.
- Discharge and Re-verify: Short the Gate to the Source again to discharge it. Check Drain to Source once more; it should revert to the 'OL' reading (or the body diode drop, depending on probe orientation). If it remains shorted after discharging the gate, the device has suffered thermal damage and belongs in the trash.
By understanding the distinction between threshold and enhancement voltages, respecting the intrinsic body diode, and knowing how to verify a part with a multimeter, you will eliminate the most common points of failure in your power electronics projects. Always default to logic-level 'IRL' series parts when interfacing directly with 3.3V or 5V microcontrollers, and never trust a TO-220 package without doing the thermal math first.






