MOSFETs
1. What Is a MOSFET?
A MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor) is a type of transistor that controls the flow of electrical current using an electric field created by a voltage applied to its gate terminal.
MOSFETs are among the most widely used semiconductor components in modern electronics. They are found in computers, mobile phones, power supplies, motor controllers, battery-management systems, and microcontroller projects.
safetyproduct.en.made-in-china.com
A MOSFET has three main externally used terminals:
- Gate (G): Controls whether the MOSFET conducts.
- Drain (D): One terminal of the main current path.
- Source (S): The other terminal of the main current path.
Many discrete power MOSFETs also have an internal body connection, commonly connected to the source.
The main advantage of a MOSFET is that its gate requires very little steady-state DC current. This makes it suitable for controlling electrical loads efficiently.
For example, an ESP32 can control a suitable logic-level MOSFET, which can then switch an LED strip or a small DC motor using a separate power supply.
2. Why Are MOSFETs Important?
MOSFETs are important because they can control current quickly and efficiently.
Their major applications include:
- Electronic switching.
- Motor speed control.
- LED brightness control.
- DC-DC converters and switching power supplies.
- Battery protection and power management.
- Digital logic circuits and computer processors.
- Audio and other signal-amplification circuits.
Billions of MOSFET-based transistors can be integrated into a single modern processor or memory chip.
3. Construction of a MOSFET
A MOSFET is built using semiconductor material, usually silicon, with a gate electrode separated from the semiconductor by a thin insulating layer.
What Is a MOSFET: Basics, Working Principle and Uses - Unikeyic
The main parts are:
1. Gate: The control terminal. Applying a suitable gate-to-source voltage creates or controls the conductive channel.
2. Gate insulator: A thin insulating layer, traditionally silicon dioxide in many designs, separates the gate from the semiconductor channel.
3. Source: Supplies or receives charge carriers through the channel, depending on the MOSFET type and operating condition.
4. Drain: The other terminal of the main current path.
5. Semiconductor substrate or body: The semiconductor region in which the channel is formed.
6. Channel: The conductive path between drain and source that is controlled by the gate voltage.
Because the gate is insulated, an ideal MOSFET draws no steady-state DC gate current. In a real MOSFET, however, the gate has capacitance that must be charged and discharged when switching.
4. How Does a MOSFET Work?
A MOSFET controls current by changing the conductivity of the channel between the drain and source.
Consider an N-channel enhancement-mode MOSFET, one of the most common types.
BJT vs MOSFET: Which Is Better for Your Circuit?
Step 1: Gate voltage is low
When the gate-to-source voltage is below the required turn-on level, the channel is not sufficiently formed. The MOSFET is normally OFF, apart from leakage.
BJT vs MOSFET: Which Is Better for Your Circuit?
Step 2: Positive gate voltage is applied
A positive gate-to-source voltage creates an electric field. When the voltage is sufficient, an electron-rich channel forms between the source and drain.
BJT vs MOSFET: Which Is Better for Your Circuit?
Step 3: Current flows
When a suitable drain-to-source voltage is present, current flows through the channel. A higher gate drive can reduce the channel resistance, within the device's specified operating conditions.
For a typical N-channel enhancement MOSFET, the gate voltage is measured relative to the source, not relative to ground in every possible circuit.
The relevant voltage is:
Where:
- = gate-to-source voltage
- = gate voltage
- = source voltage
This distinction is essential when designing MOSFET switching circuits.
5. Types of MOSFETs
MOSFETs are classified by their channel type and operating mode.
A. N-Channel MOSFET
An N-channel MOSFET uses electrons as the main charge carriers in its conducting channel.
[MOSFET Symbol Explained: NMOS, PMOS & Diagram Guide
For an enhancement-mode N-channel MOSFET:
- A sufficiently positive turns it ON.
- A sufficiently low turns it OFF.
- Conventional current in a common switching arrangement flows from drain to source when ON.
N-channel MOSFETs commonly offer lower on-resistance than comparable P-channel devices, making them especially popular in power electronics.
Applications: Low-side switching, motor controllers, DC-DC converters, and battery-powered electronics.
B. P-Channel MOSFET
A P-channel MOSFET uses holes as the main charge carriers in its conducting channel.
Metal–Oxide–Semiconductor Field-Effect Transistor (MOSFET)
For an enhancement-mode P-channel MOSFET:
- A sufficiently negative turns it ON.
- A gate voltage close to the source voltage generally turns it OFF.
- It is often used for high-side switching.
For example, if its source is connected to a 12 V supply, pulling the gate sufficiently below 12 V can turn it ON, provided the gate voltage remains within its ratings.
Applications: High-side power switching, battery circuits, and reverse-polarity protection.
N-Channel vs. P-Channel MOSFET
| Feature | N-channel | P-channel |
|---|---|---|
| Main carriers | Electrons | Holes |
| Enhancement-mode ON condition | Positive | Negative |
| Common switching position | Low-side | High-side |
| Typical on-resistance | Often lower | Often higher for comparable devices |
| Common applications | Motor drivers, converters | High-side switches, battery control |
These are common design patterns. The appropriate MOSFET depends on the circuit, ratings, and required gate drive.
6. Enhancement-Mode and Depletion-Mode MOSFETs
MOSFETs are also classified according to whether a conducting channel exists at zero gate-to-source voltage.
A. Enhancement-Mode MOSFET
An enhancement-mode MOSFET is normally OFF at .
A suitable gate voltage creates a conductive channel.
This is the most common type used in digital logic and switching power circuits.
B. Depletion-Mode MOSFET
A depletion-mode MOSFET has a conducting channel at .
Applying an appropriate gate voltage depletes the channel and reduces its conductivity.
Depletion-mode MOSFETs are used in specialized circuits, including some constant-current sources and power applications.
| Feature | Enhancement mode | Depletion mode |
|---|---|---|
| Channel at zero gate voltage | Normally absent | Present |
| Default behavior | Normally OFF | Normally ON |
| Gate function | Creates channel | Reduces or increases channel conductivity |
| Typical use | Switching and digital electronics | Specialized analog and power circuits |
7. MOSFET Operating Regions
A MOSFET's behavior depends on the gate-to-source and drain-to-source voltages.
For an N-channel enhancement MOSFET, the major operating regions are:
A. Cutoff Region
When is below the threshold voltage, the MOSFET is nominally OFF.
The drain current is very small, apart from leakage and subthreshold conduction.
B. Ohmic or Linear Region
When the gate drive is sufficient and the drain-to-source voltage is relatively small, the MOSFET behaves approximately like a voltage-controlled resistor.
This region is especially important for a fully enhanced MOSFET used as a switch.
C. Saturation Region
When the gate drive is sufficient and the drain-to-source voltage is large enough relative to the overdrive voltage, the MOSFET operates in its saturation region.
This region is commonly used for analog amplification.
Important: MOSFET saturation is not the same as BJT saturation. For a power MOSFET used as an ON/OFF switch, the desired ON state is generally in the low-resistance linear or ohmic region.
8. Understanding MOSFET Threshold Voltage
The threshold voltage, represented by , is the gate-to-source voltage at which a small specified drain current begins to flow under the datasheet's test conditions.
For example, a MOSFET might have a threshold voltage of 2 V.
That does not mean it is fully ON at 2 V. It may only conduct a very small current at that voltage.
For switching applications, examine the datasheet's:
- specification
- Gate-to-source voltage at which that resistance is measured
- Maximum gate-to-source voltage
- Maximum drain current and power ratings
A MOSFET intended for 10 V gate drive may not operate efficiently when driven directly by a 3.3 V ESP32 GPIO.
9. What Is a Logic-Level MOSFET?
A logic-level MOSFET is designed to achieve a suitably low on-resistance with a relatively low gate drive, such as 4.5 V or, for appropriate devices, 2.5 V or lower.
This makes it useful for circuits controlled by:
- Arduino boards operating at 5 V logic
- ESP32 boards operating at 3.3 V logic
- Other low-voltage microcontrollers
However, the phrase logic-level alone is not enough to guarantee compatibility.
Always confirm that the MOSFET's datasheet specifies at the actual gate voltage available from the controller.
10. MOSFET as an Electronic Switch
One of the most common uses of a MOSFET is switching an electrical load.
A low-side N-channel MOSFET can be connected as follows:
[techniken:schalten
The basic connections are:
- Connect the source to circuit ground.
- Connect the drain to the negative side of the load.
- Connect the other side of the load to the positive supply.
- Connect the control signal to the gate, often through a small gate resistor.
- Connect the controller ground to the power-supply ground.
When the gate-to-source voltage is high enough, the MOSFET turns ON and current flows through the load.
When the gate-to-source voltage is brought low, the MOSFET turns OFF.
A gate pull-down resistor can help keep an N-channel MOSFET OFF while the controller starts up or its GPIO is floating.
For inductive loads such as motors, solenoids, and relays, a suitable flyback diode or other transient-suppression circuit is often necessary.
11. Using a MOSFET with an ESP32
An ESP32 GPIO normally operates at 3.3 V logic. A suitable logic-level N-channel MOSFET can allow the ESP32 to control a higher-current load without drawing that load current directly from the GPIO.
For example, an ESP32 can control a 12 V LED strip using an appropriate MOSFET driver arrangement.
The main connections are:
- ESP32 GPIO → MOSFET gate
- MOSFET source → common ground
- MOSFET drain → negative side of the LED strip
- Positive side of the LED strip → 12 V supply
- ESP32 ground → 12 V supply ground
Use a MOSFET whose on-resistance is specified at 3.3 V gate drive, and ensure that its voltage, current, power, and thermal ratings are suitable for the load.
Never connect 12 V directly to an ESP32 GPIO. The MOSFET allows the GPIO to control the load while keeping the load supply voltage off the GPIO.
12. Gate Resistors and Pull-Down Resistors
Two common resistors are used in MOSFET switching circuits.
A. Gate Resistor
A small resistor in series with the gate can limit peak charging current and help control switching speed or ringing.
The appropriate value depends on the MOSFET gate charge, controller output, wiring, and switching frequency.
B. Gate Pull-Down Resistor
A pull-down resistor connects an N-channel MOSFET's gate to its source or ground in a common low-side circuit.
Its purpose is to keep the gate at a known low voltage when the controller is disconnected or the GPIO is not actively driving it.
A common starting range is around 10 kΩ to 100 kΩ, but the correct value depends on the circuit's leakage, noise, and switching requirements.
13. MOSFET Body Diode
Many discrete power MOSFETs contain an intrinsic diode called the body diode.
[MOSFET Symbol Explained: NMOS, PMOS & Diagram Guide
The body diode is an inherent consequence of the MOSFET's semiconductor structure.
It can conduct current in one direction between the drain and source even when the MOSFET channel is OFF.
This matters when switching:
- DC motors
- Inductive loads
- Battery circuits
- Power converters
- H-bridge motor drivers
The body diode is not a substitute for every external protection diode. Its current, reverse-recovery, and thermal characteristics must be suitable for the intended application.
14. MOSFET On-Resistance
When a MOSFET is fully enhanced, its drain-to-source path has a small resistance called .
Lower on-resistance generally means lower conduction losses for a given current.
The approximate conduction-loss formula is:
Where:
- = conduction power loss
- = drain current
- = drain-to-source on-resistance
Example
Suppose a MOSFET carries 5 A and has an on-resistance of 0.02 Ω under the actual operating conditions.
The MOSFET dissipates approximately 0.5 W from conduction losses alone.
Actual on-resistance generally increases as the device gets hotter, and switching losses may also be significant.
15. MOSFET Gate Charge and Switching Speed
Although a MOSFET requires very little steady-state gate current, its gate behaves like a capacitor.
The gate must be charged to turn the MOSFET ON and discharged to turn it OFF.
The required gate charge is represented by .
A simplified relationship is:
Where:
- = average gate current during the transition
- = gate charge
- = transition time
For example, a MOSFET with a gate charge of 20 nC that is switched in 100 ns requires an average gate current during that transition of approximately:
This is why fast or high-power switching circuits often use dedicated gate-driver ICs rather than driving the MOSFET directly from a weak GPIO.
16. MOSFET Power Dissipation and Heat
MOSFETs produce heat due to conduction losses, switching losses, and other device losses.
A MOSFET's temperature depends on:
- Current through the device
- On-resistance
- Switching frequency
- Switching transition times
- Ambient temperature
- Package and circuit-board thermal characteristics
- Heat-sink performance
Even if the rated drain current is high, the device may require a heat sink or additional cooling to operate safely.
Always check the datasheet's safe operating area, thermal resistance, maximum junction temperature, and conditions associated with its current rating.
17. MOSFET vs. BJT
| Feature | MOSFET | BJT |
|---|---|---|
| Control mechanism | Gate-to-source voltage | Base current |
| Input impedance | Very high | Lower |
| Steady-state input current | Very small ideally | Required |
| Main terminals | Gate, drain, source | Base, collector, emitter |
| Common switching losses | Conduction and gate/switching losses | Conduction and switching losses |
| Typical uses | Power switching, digital logic, converters | Amplification, switching, analog circuits |
MOSFETs are especially popular in modern switching power circuits, while BJTs remain useful in many amplifier, switching, and analog applications.
18. Advantages of MOSFETs
- Very low steady-state gate current.
- Fast switching in suitable designs.
- Low on-resistance is available in many power devices.
- High input impedance.
- Excellent suitability for digital integrated circuits.
- Widely available in small-signal and high-power packages.
- Useful for controlling loads with microcontrollers when correctly selected.
19. Limitations of MOSFETs
- Gate voltage must remain within the specified limits.
- MOSFETs can be damaged by electrostatic discharge.
- Gate capacitance requires charging and discharging during switching.
- On-resistance increases with temperature in many power MOSFETs.
- Incorrect gate drive can cause excessive heating.
- The body diode can affect circuit operation.
- High-power or high-frequency applications may require a dedicated gate driver.
20. Important MOSFET Formulas
| Quantity | Formula |
|---|---|
| Gate-to-source voltage | |
| Drain power estimate | |
| Conduction loss | |
| Average gate current during transition | |
| Electrical power |
These formulas are simplified relationships. Practical designs must use the manufacturer's datasheet and account for operating temperature, gate-drive voltage, switching behavior, and safe operating limits.
Conclusion
A MOSFET is a voltage-controlled transistor that regulates current through a channel between its drain and source. N-channel and P-channel MOSFETs are widely used for electronic switching, while enhancement-mode MOSFETs are especially common in digital and power electronics. Their high input impedance, fast switching, and potential for low on-resistance make them essential in ESP32 projects, motor drivers, switching power supplies, battery systems, and modern integrated circuits.