MOSFETs
N-channel / P-channel, gate drive, switching applications
Theory
š§ Listen to this lesson
What is a MOSFET?
A MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor) is a voltage-controlled switch. Unlike a BJT, which needs continuous base current, a MOSFET is controlled by voltage at the gate terminal ā it draws virtually no steady-state current. This makes MOSFETs ideal for power switching, motor control, and anything driven by microcontrollers.
The Three Terminals
- ā¢Gate (G) ā the control terminal. Voltage here turns the MOSFET on or off. Draws almost no current (just charges the gate capacitance).
- ā¢Drain (D) ā where current enters (N-channel) or exits (P-channel). Connects to the load.
- ā¢Source (S) ā output terminal. Usually connected to ground (N-ch) or V_CC (P-ch).
N-Channel vs P-Channel
- ā¢N-channel (most common) ā turns ON when V_GS > V_th (gate is positive relative to source). Used for low-side switching (load between V_CC and drain, source to ground).
- ā¢P-channel ā turns ON when V_GS < āV_th (gate is more negative than source). Used for high-side switching (source to V_CC, load between drain and ground).
- ā¢N-channel MOSFETs generally have lower R_DS(on) and are cheaper, so they're preferred whenever possible.
Threshold Voltage (V_th)
The threshold voltage is the minimum gate-to-source voltage needed to start turning the MOSFET on. For standard MOSFETs, V_th is typically 2ā4 V. For logic-level MOSFETs, V_th is lower (~1ā2 V), allowing them to be driven directly by 3.3 V or 5 V microcontroller pins.
On-Resistance: R_DS(on)
When fully on, the MOSFET acts like a small resistance between drain and source called R_DS(on). Lower R_DS(on) means less power wasted as heat. For a logic-level MOSFET like the IRLZ44N, R_DS(on) is about 22 mΩ at V_GS = 10 V. The power dissipated is P = I_D² à R_DS(on).
Using a MOSFET as a Switch
- ā¢Connect the load between V_CC and the drain.
- ā¢Connect the source to ground.
- ā¢Apply a voltage > V_th to the gate to turn on. Connect gate to ground to turn off.
- ā¢Add a 10 kĪ© pull-down resistor from gate to source to ensure the MOSFET stays off when no signal is applied.
- ā¢For fast switching (PWM), add a gate driver or low-value gate resistor (100ā470 Ī©) to charge/discharge the gate capacitance quickly.
MOSFET vs BJT ā When to Use Which
- ā¢MOSFETs: high-current switching (motors, LED strips, heaters), PWM control, battery-powered devices (no gate current wasted).
- ā¢BJTs: small-signal amplification, simple low-current switches, when you need a linear amplifier.
- ā¢MOSFETs scale better: switching 10 A with a BJT requires a large base current from the controller. A MOSFET does it with almost zero steady-state current.
- ā¢MOSFETs have a parasitic body diode (drain ā source in N-ch), which can be useful or problematic depending on the application.
Popular MOSFET Types
- ā¢IRLZ44N ā logic-level N-ch, 55V / 47A, R_DS(on) = 22 mĪ©. Great for 5 V Arduino projects.
- ā¢IRLB8721 ā logic-level N-ch, 30V / 62A, R_DS(on) = 8.7 mĪ©. Excellent for high-current LED strips.
- ā¢IRF540N ā standard N-ch, 100V / 33A. Needs ~10 V gate drive, not suitable for direct 3.3 V/5 V driving.
- ā¢AO3401 ā small P-ch SOT-23, 30V / 4A. Popular for high-side switching in battery circuits.
Formulas
Interactive Diagram
Interactive Circuit Diagram
Calculator
Enter any 2 values to calculate the rest
Circuit Challenges
An IRLZ44N (R_DS(on) = 22 mΩ) is switching 8 A for an LED strip. How much power does the MOSFET dissipate?
Calculate & fill in: