If you need to switch a high-current DC load with a low-voltage microcontroller, the transistor FET (Field Effect Transistor) is your workhorse. Unlike Bipolar Junction Transistors (BJTs) that require continuous base current to stay on, a FET is voltage-controlled. Once the gate capacitance is charged, it draws virtually zero steady-state current. For 95% of modern DIY and hobbyist switching applications, an N-channel enhancement-mode MOSFET is the default choice.
The direct answer for most 12V/24V switching tasks up to 20A: use a logic-level N-channel MOSFET like the IRLZ44N or IRLB8721. They fully turn on with the 3.3V or 5V logic outputs from an ESP32 or Arduino, avoiding the thermal failures common with older, non-logic-level parts.
The Transistor FET at a Glance: Pins, Symbols, and Safe Defaults
Before wiring anything, you need to read the schematic symbol and the physical package. The standard symbol for an N-channel enhancement MOSFET features three terminals: the Gate (G), Drain (D), and Source (S). The Gate is drawn as a line perpendicular to the channel, separated by a gap representing the silicon dioxide insulator. The Source is identified by an arrow pointing inward (for N-channel) or outward (for P-channel).
On the bench, the most common power package is the TO-220. Hold the component with the metal tab facing you and the pins pointing down. The pinout from left to right is Gate (1), Drain (2), Source (3). The metal tab is internally connected to the Drain, which is critical to remember when mounting it to a grounded heatsink.
| Part Number | Type | Vds (Max) | Id (Max) | Rds(on) @ Vgs | Best Use Case |
|---|---|---|---|---|---|
| 2N7000 | Small Signal N-Ch | 60V | 200mA | 1.2Ω @ 10V | Level shifting, driving small relays/LEDs |
| IRLZ44N | Logic-Level N-Ch | 55V | 47A | 0.022Ω @ 5V | High-power 12V/24V loads, PWM motor control |
| IRF520 | Standard N-Ch | 100V | 9.2A | 0.27Ω @ 10V | Legacy 10V+ gate drive circuits (Avoid for 5V logic) |
| AO3400A | SMD N-Ch (SOT-23) | 30V | 5.8A | 0.035Ω @ 4.5V | Compact custom PCBs, low-profile switching |
Operation Regions and Biasing for the Job
A common trap for engineers transitioning from BJTs to FETs is the terminology of the operation regions. In a BJT, 'saturation' means the switch is fully ON. In a transistor FET, 'saturation' means the device is acting as a constant-current source (the active region for amplifiers). When you want a FET to act as a closed switch, you must bias it into the Ohmic (or Linear) region.
| Region | Bias Condition | Behavior | Typical Application |
|---|---|---|---|
| Cutoff | Vgs < Vgs(th) | No current flows (Switch OFF) | Digital logic '0', sleep modes |
| Ohmic (Linear) | Vgs > Vgs(th) AND Vds < (Vgs - Vgs(th)) | Acts as a low-value resistor (Switch ON) | Power switching, PWM load control |
| Saturation (Active) | Vgs > Vgs(th) AND Vds > (Vgs - Vgs(th)) | Current is constant, independent of Vds | Audio amplifiers, constant current LED drivers |
How to bias it for switching: You must drive the Gate-to-Source voltage (Vgs) well above the threshold voltage (Vgs(th)). A datasheet might list Vgs(th) as 1.0V to 2.0V, but this is merely the voltage where the FET begins to conduct a tiny leakage current (usually 250µA). To achieve the low Rds(on) specified in the datasheet, you typically need to apply 4.5V or 10V to the gate. Always check the 'Rds(on) vs Vgs' graph in the manufacturer's datasheet, not just the threshold spec.
Building a Real-World FET Switching Circuit
Let's build a robust PWM dimming circuit for a 12V, 5A LED strip using an ESP32 (3.3V logic). We will use the IRLZ44N. According to electronics-tutorials.ws, a proper gate drive network is essential to prevent oscillation and ensure fast switching.
Component List:
- Q1: IRLZ44N N-Channel MOSFET
- R1: 100Ω Gate Resistor (limits inrush current into gate capacitance)
- R2: 10kΩ Pull-down Resistor (keeps gate low during MCU boot)
- D1: 1N5819 Schottky Diode (flyback protection for inductive wiring)
- Connect the Load: Wire the 12V positive supply to the LED strip's positive input. Wire the LED strip's negative input to the Drain (Pin 2) of the IRLZ44N.
- Ground the Source: Connect the Source (Pin 3) of the MOSFET directly to the system ground (12V negative and ESP32 GND must share this ground).
- Build the Gate Network: Solder the 10kΩ pull-down resistor (R2) between the Gate (Pin 1) and the Source (Pin 3). This ensures the FET stays off if the microcontroller pin floats.
- Wire the Logic Signal: Connect the 100Ω series resistor (R1) between the ESP32 GPIO pin and the Gate (Pin 1). This resistor prevents the ESP32 from browning out when it sources current to charge the FET's gate capacitance.
- Add Flyback Protection: Place the 1N5819 diode in reverse bias across the LED strip (cathode to 12V positive, anode to the MOSFET Drain). This absorbs voltage spikes from the parasitic inductance of the LED strip wires when the FET switches off.
Bench Scenario: When the Magic Smoke Escapes
Theory is clean; the workbench is unforgiving. Here is a real-world failure analysis that highlights why understanding Vgs(th) versus full enhancement is critical.
The Setup: A hobbyist wanted to switch a 12V, 10A water solenoid valve using a 5V Arduino Uno. They grabbed an IRF520 from their parts bin because the datasheet said Vgs(th) was 2.0V to 4.0V. They wired the Arduino 5V pin directly to the gate, assuming 5V was safely above the 4.0V maximum threshold.
The Numbers: The IRF520 datasheet specifies an Rds(on) of 0.27Ω, but only at Vgs = 10V. At a Vgs of 5V, the FET is only partially enhanced. Looking at the transfer characteristic curve, the effective Rds(on) at 5V was roughly 0.8Ω. With 10A flowing through the solenoid, the voltage drop across the FET was V = I × R = 10A × 0.8Ω = 8V. The power dissipated as heat in the silicon was P = I² × R = 100 × 0.8 = 80 Watts.
The Outcome: A bare TO-220 package can only dissipate about 1.5W to 2W in free air before reaching its maximum junction temperature. Within three seconds, the FET tab reached 150°C, the internal silicon melted, and the device failed in a short-circuit state. The solenoid remained permanently locked on, and the Arduino's 5V regulator was back-fed and destroyed when the gate oxide ruptured.
What Went Wrong: The builder confused the threshold voltage (where the FET barely starts to turn on) with the full enhancement voltage (where it acts as a low-resistance switch). The Fix: Swap the IRF520 for a true logic-level FET like the IRLB8721, which guarantees an Rds(on) of 0.011Ω at Vgs = 4.5V. At 10A, dissipation drops to a manageable 1.1W.
How FETs Fail and How to Test Them with a Multimeter
Transistor FETs generally fail in three ways: Gate punch-through (ESD or overvoltage breaches the thin gate oxide, shorting Gate to Source), Thermal runaway (excessive I²R heating melts the die, usually resulting in a Drain-Source short), and Avalanche breakdown (exceeding Vds max, punching through the channel).
Because the Gate is insulated, a healthy FET will show infinite resistance between the Gate and the other pins. You can verify a FET's health using a standard digital multimeter (DMM) in Diode Test mode. For authoritative testing procedures, refer to All About Circuits' semiconductor guide.
- Discharge the Gate: FETs hold charge like tiny capacitors. Before testing, touch all three pins simultaneously with your finger or a piece of bare wire to drain any residual gate charge. If you skip this, your DMM readings will be erratic.
- Test Body Diode (Drain to Source): Set DMM to Diode mode. Place the red probe on the Source and the black probe on the Drain. You should read a standard silicon diode drop (typically 0.4V to 0.6V). Reverse the probes (red on Drain, black on Source); the meter should read 'OL' (Open Line). If it reads 0.00V or a dead short in either direction, the FET is blown.
- Test Gate Isolation: Switch DMM to Resistance (Ohms) mode. Measure between Gate and Source, then Gate and Drain. Both must read 'OL'. Any finite resistance means the gate oxide is punctured. Discard the part.
- Test Switching Action: Keep the DMM in Diode mode. Red probe on Source, black on Drain (reading OL). Now, briefly touch the red probe to the Gate while keeping the black probe on the Drain. This charges the gate with the DMM's internal battery. Move the red probe back to the Source. The meter should now read a very low voltage drop (near 0.00V), indicating the FET has turned ON. Touch the Gate and Source together to discharge it, and the reading should revert to 'OL'.
Understanding the transistor FET goes beyond memorizing datasheet acronyms. By respecting the difference between threshold and enhancement voltages, properly sizing your gate resistors, and verifying your parts with a multimeter before soldering, you will build power circuits that survive long past the initial smoke test.






