A FET (Field Effect Transistor) controls current flow using an electric field rather than current injection. For 95% of maker DC switching tasks, an N-channel enhancement-mode MOSFET is the right tool. Unlike BJTs that require continuous base current to stay on, a FET transistor only requires a voltage potential at the gate, drawing virtually zero steady-state current. If you need a safe default part for 5V or 3.3V microcontroller switching, buy the IRLB8721 (30V, 62A, 8.7mΩ Rds(on)) or the IRLZ44N (55V, 47A, 22mΩ Rds(on)). Both cost around $1.50 to $2.50 and are fully enhanced by logic-level GPIO pins.

FET Transistor Pinout, Symbol, and Operation Regions

Before wiring anything, you need to know the physical layout and the theoretical operating states. In the standard TO-220 through-hole package, holding the FET with the text facing you and the pins pointing down, the pinout from left to right is Gate (G), Drain (D), and Source (S). The metal mounting tab on the back is almost always internally connected to the Drain.

On a schematic, the N-channel enhancement MOSFET symbol features a broken channel line between the Drain and Source, indicating it is normally off. The Gate is drawn as a parallel line separated by a gap (representing the silicon dioxide insulator). An arrow on the Source lead points inward toward the channel, and a separate line connecting the substrate to the Source implies the internal body diode.

MOSFET Operation Regions (N-Channel)
Region Condition Behavior Typical Use
Cutoff Vgs < Vgs(th) Channel is closed. Id = 0 (except nanoamp leakage). Switch OFF state.
Linear (Ohmic) Vgs > Vgs(th) AND Vds < (Vgs - Vgs(th)) Acts as a voltage-controlled resistor. Current flows freely based on Rds(on). Switch ON state, PWM control.
Saturation (Active) Vgs > Vgs(th) AND Vds > (Vgs - Vgs(th)) Acts as a constant current source. Current is independent of Vds. Analog amplifiers, current mirrors.

How to Select and Bias a FET Transistor for the Job

Selecting the right FET transistor requires looking past the headline current rating on the first page of the datasheet. You must evaluate three critical parameters:

  1. Vds (Drain-Source Voltage): Must be at least 20% higher than your maximum supply voltage. For a 12V system, a 20V or 30V rated FET is sufficient.
  2. Rds(on) (On-Resistance): This is the resistance between Drain and Source when fully turned on. Lower is better. A 10mΩ (0.010Ω) Rds(on) passing 10A will dissipate only 1W of heat (P = I²R).
  3. Vgs(th) vs. Vgs(max): This is where most hobbyists fail. Vgs(th) is the threshold voltage where the FET *barely begins* to conduct (usually defined at a mere 250µA). It is NOT the voltage required to turn it fully on.
Bench Rule: Never use a standard-level FET (like the IRF520 or IRF540) with a 5V Arduino or 3.3V ESP32. They require 10V at the gate to achieve their rated Rds(on). Always select a 'Logic-Level' FET (usually denoted by an 'L' in the part number, like IRLZ44N) which guarantees low Rds(on) at Vgs = 4.5V or 2.5V.

Biasing the Gate: Because the gate is essentially a small capacitor (often 1000pF to 3000pF), it requires a burst of current to charge and turn the FET on, and a path to discharge to turn it off. To bias it correctly for a microcontroller, place a 10kΩ pull-down resistor between the Gate and Source (Ground). This prevents the FET from turning on erratically when the MCU pin is floating during boot. Add a 100Ω to 330Ω series resistor between the MCU pin and the Gate to limit the inrush current and protect the GPIO from the initial capacitive short.

Real-World Scenario: The Melted Motor Driver (What Went Wrong)

To understand why datasheet parameters matter, let us look at a common bench failure. A maker was building an automated garden watering system using an ESP32 (3.3V logic) to switch a 12V, 5A DC water pump via PWM. They grabbed a popular, cheap 'MOSFET Switch Module' off Amazon, which was built around the IRF520.

The Setup: ESP32 GPIO pin connected directly to the IRF520 gate. Pump connected to the drain. 12V supply to the pump.

The Numbers: The IRF520 datasheet lists a Vgs(th) of 2.0V to 4.0V. Since 3.3V is within this range, the maker assumed it would work. However, the datasheet's Rds(on) spec of 0.27Ω is only guaranteed at Vgs = 10V. At Vgs = 3.3V, the FET is only partially enhanced, operating in the linear region. The effective Rds(on) spiked to roughly 2.5Ω.

The Outcome: With 5A flowing through 2.5Ω, the power dissipation was P = I²R = 25 × 2.5 = 62.5 Watts. A bare TO-220 package can only dissipate about 1W before requiring a heatsink. The silicon junction hit 175°C in under four seconds, resulting in thermal runaway, a shattered plastic casing, and a dead ESP32 GPIO pin.

What Went Wrong: Confusing the threshold voltage (Vgs(th)) with the full enhancement voltage. The fix was swapping the IRF520 for an IRLB8721. At 3.3V Vgs, the IRLB8721 has an Rds(on) of about 12mΩ (0.012Ω). The new power dissipation dropped to 0.3W, running completely cool to the touch.

Complete Application Circuit: 12V PWM Motor Control

Here is a robust, battle-tested circuit for driving a 12V DC motor or solenoid from a 3.3V or 5V microcontroller using an IRLB8721 N-channel FET transistor.

Component List & Values:

  • Q1: IRLB8721 (N-Channel Logic-Level MOSFET)
  • R1 (Gate Series): 330Ω (limits GPIO inrush current)
  • R2 (Gate Pull-down): 10kΩ (ensures FET stays off during MCU reset)
  • D1 (Flyback Diode): 1N5819 Schottky Diode (rated 40V, 1A)

Wiring Steps:

  1. Connect the microcontroller PWM pin to one leg of R1 (330Ω).
  2. Connect the other leg of R1 to the Gate (Pin 1) of Q1.
  3. Connect R2 (10kΩ) between the Gate of Q1 and Ground.
  4. Connect the Source (Pin 3) of Q1 directly to Ground.
  5. Connect the negative terminal of the DC Motor to the Drain (Pin 2) of Q1.
  6. Connect the positive terminal of the DC Motor to the 12V Power Supply.
  7. Place D1 (1N5819) in parallel with the motor. The cathode (stripe end) connects to the 12V positive, and the anode connects to the Drain of Q1.
Why a Schottky Diode? Standard PN junction diodes (like the 1N4007) have a slow reverse recovery time. If you are running PWM at 1kHz or higher, the 1N4007 will not turn off fast enough, causing shoot-through current and excessive heat. The 1N5819 Schottky has virtually zero reverse recovery time, making it mandatory for PWM FET circuits.

Bench Testing: How FETs Fail and Multimeter Diagnostics

FET transistors typically fail in three ways: Gate oxide puncture from ESD or exceeding the ±20V Vgs(max) limit, thermal runaway resulting in a Drain-Source short, or avalanche breakdown from inductive voltage spikes when a flyback diode is omitted. When a FET fails, it almost always fails 'short' (Drain to Source conducts permanently), which can inadvertently turn on your load and cause a fire hazard.

You can diagnose an N-channel MOSFET right on the bench using a standard digital multimeter (DMM) in Diode Test mode. According to All About Circuits, the internal body diode provides a reliable way to verify the junction integrity.

Step-by-Step DMM Test Procedure:

  1. Discharge the Gate: Touch your finger across all three pins (Gate, Drain, Source) simultaneously, or use a piece of wire to short them. This bleeds off any residual charge in the gate capacitor.
  2. Check the Body Diode: Set your DMM to Diode mode. Place the Red probe on the Source and the Black probe on the Drain. You should read a forward voltage drop of roughly 0.4V to 0.6V. Reverse the probes (Red on Drain, Black on Source); the meter should read 'OL' (Open Loop).
  3. Charge the Gate: Keep the Black probe on the Source. Move the Red probe to the Gate for two seconds. This applies the DMM's internal ~3V battery to the gate, turning the FET on.
  4. Verify the Channel: Move the Red probe back to the Drain (Black stays on Source). The meter should now read near 0.00V (a short circuit), indicating the channel is fully enhanced and conducting.
  5. Discharge and Re-verify: Short the Gate to the Source with your finger or a wire to discharge it. Measure Drain to Source again. It should revert to reading 'OL', proving the FET can successfully turn off.

If the FET reads 'OL' in both directions during Step 2, the internal body diode is blown (thermal failure). If it reads 0.00V in both directions before you even charge the gate, the Drain-Source channel is permanently shorted. In either case, throw it in the e-waste bin and grab a fresh IRLB8721.