Using a 2N7002 as a Small-Signal Switch: Gate Voltage, Load Current and PCB Checks
A small N-channel MOSFET can be a convenient way for a microcontroller to switch an indicator or pull a signal low. The 2N7002 is a familiar example, but its small package and low threshold voltage do not make it a universal replacement for a power transistor.
The right approach is to match the complete switching task: load current, available gate voltage, acceptable voltage drop and board temperature. PMD Way's SMD N-channel MOSFET collection includes parts for different jobs. This guide uses the 2N7002 SOT-23 pack as a small-signal example.
Start with the load, not the transistor headline
Write down what the output must do. An open-drain signal pulling a few milliamps is a different task from powering a motor. Record the normal current, startup current if relevant, supply tolerance and how often the load switches.
Also decide the maximum voltage drop you can tolerate across the transistor. A logic input needs a sufficiently low voltage to meet its guaranteed low-level threshold. A lamp or other load may work with some drop, but that lost voltage becomes heat in the switch.
Read the datasheet for the supplied manufacturer and version. Parts sharing a basic number can have different guaranteed characteristics and test conditions. The Diodes Incorporated 2N7002 datasheet and Nexperia 2N7002 datasheet illustrate why the manufacturer's identity matters.
Threshold voltage is not the recommended gate drive
Gate-source threshold voltage describes the point where a specified small drain current flows under the stated test conditions. It does not mean the MOSFET is fully on at that voltage.
For example, the Diodes datasheet measures threshold at only 250 µA, while its on-resistance guarantees use different conditions. It specifies up to 7.5 Ω at a 5 V gate-source drive and 50 mA drain current at the stated temperature. Those conditions are far more useful for evaluating a switch than the threshold number alone.
Nexperia's gate-drive reliability application note explains the distinction between initial conduction, full enhancement and the maximum permitted gate voltage. More gate voltage is helpful only within the device's limits and the available circuit design.
A 3.3 V microcontroller therefore does not automatically provide a guaranteed low-resistance drive for every 2N7002 version. Look for an on-resistance specification at a gate voltage the controller can reliably deliver. If that guarantee is absent, select a part characterised for the required drive rather than relying on a typical graph.
Calculate the drop and heat
For a well-enhanced MOSFET operating as a switch, estimate conduction loss using:
Voltage drop ≈ load current × on-resistance.
Power loss ≈ load current² × on-resistance.
Using the 7.5 Ω example at its 50 mA test current gives approximately 0.375 V drop and 18.75 mW loss. This is an illustration at the cited conditions. Resistance changes with temperature, and the calculation does not establish operation at a different gate voltage or current.
Check the thermal assumptions behind package ratings. A power-dissipation value associated with a particular copper layout or temperature does not automatically apply to a tiny adapter board inside a warm enclosure. Allow margin rather than designing against an absolute maximum.
Wire a simple low-side test circuit
For an ordinary low-side arrangement, the source connects to the circuit return, the drain connects to the load's low side, and the load's high side connects to its supply. The controller drives the gate relative to the source. The controller and load circuit need the intended common reference for this non-isolated arrangement.
Confirm the SOT-23 pin assignment from the actual manufacturer's top-view drawing. It is easy to mirror the package when moving from a schematic to a footprint or looking at the underside of an adapter. Do not assume that every three-pin SOT-23 device has the same terminal functions.
Begin with a modest resistive load or an LED with its own current-limiting resistor. A MOSFET used as a switch does not regulate LED current by itself. Keep the supply current limited while checking the first assembly.
Give the gate a defined off state
A microcontroller pin may be an input during reset. Provide a gate-to-source pull-down when necessary to hold the transistor off while that control signal is undriven. Select its value by considering leakage, noise susceptibility, controller loading and required turn-off time.
A series gate resistor and a pull-down have different purposes. The series resistor affects charging current and switching behaviour; the pull-down establishes a discharge path when the controller is not driving. Neither should be added with an arbitrary value and then treated as proof that startup is safe.
The gate draws little steady-state current, but switching requires charge to move. Nexperia's gate-driver fundamentals explains the role of gate charge and switching losses. A circuit that works when toggled once per second may behave differently under fast PWM.
Recognise the limits of low-side switching
When a low-side switch opens, the load's return is disconnected from ground. This can be unsuitable for a sensor or module that also connects to other grounded equipment. Signal wires may provide an unintended return path, leaving the supposedly disconnected device partly powered.
The MOSFET also contains a body diode. Reversing drain and source is not equivalent to rotating an ideal mechanical switch, and a single MOSFET does not provide bidirectional isolation in every off-state condition.
Inductive loads require a deliberate turn-off energy path and a suitable switch rating. Do not move from an LED test to a relay or motor without redesigning that part of the circuit. Use a transistor and suppression arrangement intended for the actual coil current and stored energy.
Measure the finished switch
- With power disconnected, check orientation and continuity against the schematic.
- Apply a limited supply and verify that reset leaves the load in the intended state.
- Measure gate-to-source voltage in both commanded states.
- Measure drain-to-source voltage and load current while on.
- Test the real switching rate and expected supply range.
If the drain voltage remains too high, investigate gate drive and load demand before blaming the software. If the load never fully turns off, check wiring, body-diode direction and alternate current paths. Record the measurements for a known-good board so future repairs begin with a concrete comparison.