A field-effect transistor (FET) controls current flow through a semiconductor channel using an electric field, rather than the current injection used by Bipolar Junction Transistors (BJTs). For hobbyists and DIY builders, the Metal-Oxide-Semiconductor FET (MOSFET) is the undisputed workhorse. Because the gate is electrically insulated from the channel, a MOSFET draws virtually zero steady-state gate current, making it the perfect interface between low-power microcontrollers (like an ESP32 or Arduino) and high-power loads like motors, LED strips, and heating elements.

However, grabbing a random FET from a bin and wiring it up is a fast track to melted silicon and bricked microcontrollers. This guide covers the practical realities of selecting, biasing, and testing field-effect transistors on the bench, stripping away the abstract physics to focus on what you actually need to build reliable circuits.

Pinout, Symbols, and Safe Default Part Numbers

Before wiring anything, you must understand the physical pinout and the schematic symbol. The standard N-channel enhancement MOSFET symbol features three main terminals: Gate (G), Drain (D), and Source (S). Crucially, the symbol also includes an arrow pointing from the body to the channel, and a parallel line indicating the intrinsic body diode. This diode is a byproduct of the manufacturing process; it allows current to flow from Source to Drain (in an N-channel device) even when the transistor is turned off. You must account for this diode in your circuit design.

For the ubiquitous TO-220 through-hole package, holding the component with the pins pointing down and the text facing you, the pins from left to right are Gate, Drain, Source. The metal tab on the back is internally connected to the Drain. For surface-mount SOT-23 packages, pin 1 is Gate, pin 2 is Source, and pin 3 is Drain.

When stocking your bench, rely on these proven, safe default part numbers rather than hunting for obscure surplus parts:

Table 1: Safe Default Field-Effect Transistor Part Numbers
Part Number Type V_DS (Max) I_D (Continuous) R_DS(on) @ V_GS Package
2N7000 N-Channel 60V 200mA 5.0Ω @ 10V TO-92
IRLZ44N N-Channel (Logic) 55V 47A 22mΩ @ 5V TO-220
AO3400A N-Channel 30V 5.7A 26mΩ @ 4.5V SOT-23
IRF9540N P-Channel 100V 23A 117mΩ @ 10V TO-220
Bench Tip: Always check the R_DS(on) specification at the exact gate voltage your microcontroller provides. A datasheet might boast a 10mΩ on-resistance, but if that spec is measured at V_GS = 10V and you are driving it with a 3.3V ESP32, the actual resistance will be much higher, leading to excess heat.

Operation Regions and Biasing for the Job

The most common trap for engineers transitioning from BJTs to FETs is the terminology for operation regions. In a BJT, "saturation" means the switch is fully ON. In a field-effect transistor, saturation means the device is acting as a constant-current source (amplifier mode), while the triode (or ohmic) region is where it acts as a fully closed switch. According to All About Circuits, misunderstanding these regions is the primary cause of thermal failure in DIY switching circuits.

Table 2: MOSFET Operation Regions and Typical Applications
Region Bias Condition (N-Channel) Behavior Typical Application
Cutoff V_GS < V_th Channel is closed. I_D ≈ 0. Switch OFF state.
Triode (Ohmic) V_GS > V_th AND V_DS < (V_GS - V_th) Acts as a voltage-controlled resistor. Low V_DS drop. Switch ON state, PWM motor control.
Saturation (Active) V_GS > V_th AND V_DS > (V_GS - V_th) Acts as a constant current source. High V_DS drop. Linear amplifiers, active loads, current mirrors.

How to Bias for Switching: To use a FET as a switch, you must drive it deep into the triode region. This requires a Gate-to-Source voltage (V_GS) significantly higher than the threshold voltage (V_th). A common mistake is looking only at V_GS(th) on the datasheet. The threshold voltage is merely the point where the device begins to conduct a tiny leakage current (usually 250µA). To achieve the low R_DS(on) required for switching high currents without a heatsink, you must apply the V_GS listed in the R_DS(on) table—typically 4.5V for logic-level FETs and 10V for standard FETs.

When wiring the gate, always include two resistors: 1. A gate series resistor (typically 47Ω to 100Ω) placed close to the gate pin to dampen high-frequency ringing caused by parasitic trace inductance and the FET's gate capacitance. 2. A pull-down resistor (typically 10kΩ) between Gate and Source to ensure the FET remains off during microcontroller boot-up when GPIO pins are floating.

Practical Application: 12V PWM Motor Control Circuit

Let's build a complete, robust circuit to drive a 12V, 2A DC motor using an ESP32 (3.3V logic) and an IRLZ44N logic-level N-channel MOSFET. This setup handles PWM speed control safely.

Bill of Materials:

  • 1x IRLZ44N N-Channel MOSFET (TO-220)
  • 1x 12V DC Motor (rated ~2A continuous)
  • 1x 12V DC Power Supply
  • 1x 100Ω 1/4W Resistor (Gate series)
  • 1x 10kΩ 1/4W Resistor (Gate pull-down)
  • 1x SS34 Schottky Diode (Flyback)
Safety Warning: Never omit the flyback diode when switching inductive loads like motors or relays. When the MOSFET turns off, the collapsing magnetic field generates a massive voltage spike (inductive kickback) that will instantly punch through the MOSFET's gate oxide or avalanche the drain-source junction, destroying the silicon and potentially feeding lethal voltage back into your microcontroller.

Wiring Steps:

  1. Connect the ESP32 GND pin to the common ground rail of your breadboard/perfboard.
  2. Connect the 12V Power Supply ground to the same common ground rail.
  3. Place the IRLZ44N on the board. Connect the Source pin to the common ground rail.
  4. Connect the 10kΩ pull-down resistor between the Gate pin and the Source pin (ground).
  5. Connect the 100Ω series resistor from the ESP32 PWM GPIO pin to the Gate pin.
  6. Connect the Motor's negative terminal to the Drain pin of the MOSFET.
  7. Connect the Motor's positive terminal to the 12V Power Supply positive rail.
  8. Place the SS34 Schottky diode in parallel with the motor. The cathode (stripe) connects to the 12V positive rail, and the anode connects to the MOSFET Drain. (We use a Schottky diode instead of a standard 1N4007 because its faster reverse-recovery time handles high-frequency PWM much better, reducing EMI and heat).

When the ESP32 drives the GPIO HIGH (3.3V), the V_GS exceeds the IRLZ44N's threshold, pulling it into the triode region. The R_DS(on) drops to roughly 22mΩ, and the motor runs. At 2A, the power dissipated by the FET is I² × R = 4 × 0.022 = 0.088W, meaning it will run completely cool without a heatsink.

Failure Modes and Multimeter Testing Steps

Field-effect transistors typically fail in three ways on the bench: Gate oxide puncture from ESD or overvoltage (gate shorts to source), thermal runaway from insufficient gate drive causing high R_DS(on), and avalanche breakdown from inductive kickback exceeding the V_DS rating. According to Texas Instruments application notes on Power MOSFETs, a failed MOSFET usually shorts all three pins together, taking the microcontroller down with it.

You can definitively test an N-channel MOSFET using a standard digital multimeter (DMM) without removing it from the circuit (provided it is unpowered and capacitors are discharged). Use the Diode Test mode on your DMM.

  1. Discharge the Gate: Briefly short the Gate and Source pins with a piece of wire or your finger. This bleeds off any parasitic charge that might be holding the channel open.
  2. Test the Body Diode (Forward): Place the Red (positive) probe on the Source and the Black (negative) probe on the Drain. The meter should read a standard diode voltage drop, typically between 0.400V and 0.600V.
  3. Test the Body Diode (Reverse): Swap the probes (Red on Drain, Black on Source). The meter should read OL (Open Loop), confirming the diode blocks reverse current and the channel is off.
  4. Charge the Gate: Keep the Black probe on the Source. Briefly touch the Red probe to the Gate pin for one second. This applies the DMM's internal ~3V battery to the gate, charging the gate capacitance and turning the FET on.
  5. Test Channel Conduction: Move the Red probe back to the Drain (Black remains on Source). The meter should now read a very low voltage drop, typically 0.000V to 0.050V, or beep if your DMM has a continuity mode. This proves the channel has enhanced and is conducting.
  6. Verify Turn-Off: Short the Gate to Source again to discharge it. Check Drain-to-Source with the Red probe; it should revert to OL, proving the device isn't internally shorted.

If the device reads OL in both directions in Step 2 and 3, the body diode is blown (usually from reverse polarity). If it reads near 0V in both directions, the drain-source junction is shorted (avalanche failure). If it fails to turn on in Step 5, the gate oxide is punctured.

Frequently Asked Questions

Why does my field-effect transistor get hot even when fully turned on?

If your FET is hot to the touch while switching a load, it is almost certainly operating in the saturation (linear) region rather than the triode (switch) region. This happens when your gate drive voltage is too low. For example, driving a standard IRF520 with a 5V Arduino will only partially open the channel, resulting in an R_DS(on) of several ohms instead of milliohms. The resulting I²R losses generate massive heat. Always use "Logic Level" FETs (denoted by an 'L' in the prefix, like IRLZ44N) for 5V or 3.3V microcontrollers, and verify the datasheet's R_DS(on) table specifically lists a test condition at V_GS = 4.5V or lower.

Can I use a standard IRF520 with a 5V Arduino or 3.3V ESP32?

Technically, it will partially turn on, but practically, it is a terrible idea for any load over 100mA. The IRF520 has a V_GS(th) of 2.0V to 4.0V. While 5V exceeds the threshold, the datasheet specifies its R_DS(on) of 0.27Ω at V_GS = 10V. At 5V, the on-resistance is significantly higher and poorly characterized, leading to unpredictable voltage drops and thermal failure at high currents. Swap it for an IRLZ44N or a STP16NF06L, which are guaranteed to fully enhance at logic-level voltages.

What is the difference between a MOSFET and a JFET?

While both are types of field-effect transistors, their default states and gate structures differ fundamentally. A MOSFET (Metal-Oxide-Semiconductor FET) features an insulated gate and is normally-off (enhancement mode); it requires a voltage applied to the gate to create a conductive channel. A JFET (Junction FET) uses a reverse-biased PN junction for the gate and is normally-on (depletion mode); it conducts by default and requires a gate voltage to "pinch off" and stop the current. For 99% of DIY switching, PWM, and power control applications, you want an enhancement-mode MOSFET. JFETs are largely reserved for specialized low-noise audio amplifiers and analog switching circuits.