N-Channel MOSFET

An N-Channel MOSFET is a voltage-controlled switch — applying a gate voltage above its threshold lets current flow from drain to source, with essentially zero gate current (unlike a BJT's…

N-Channel MOSFET

At a glance

Pins and properties exactly as the circuit editor and simulator define this part. The text below explains how to use them.

Pinout

Pinout of the N-Channel MOSFET, drawn as in the circuit editor. Select a label to see that pin in the table below.

Pins

Pins of this part
PinLabelType
GATEGSignal in
DRAINDSignal in
SOURCESSignal out

Properties

What you can change in the Property Inspector.

Properties of this part
PropertyRange or choicesDefault
Gate Threshold (Vgs_th)1V (ultra logic-level), 2V (logic-level — IRLZ44N), 4V (standard — IRF540N)2V (logic-level — IRLZ44N)
Max Drain Current0.5 to 100 A30 A
Max Gate-Source V8 to 30 V20 V

An N-Channel MOSFET is a voltage-controlled switch — applying a gate voltage above its threshold lets current flow from drain to source, with essentially zero gate current (unlike a BJT's base current). In Open Maker Studio, it does not have Blockly code blocks — it interacts directly with the real-time SPICE analog simulator, commonly for driving motors, relays, and high-current loads directly from a GPIO pin.


1. Schematic Symbol

Standard enhancement-mode N-Channel MOSFET symbol:

G D S

2. Real Model & Characteristics

OMS's N-Channel MOSFET is calibrated against real logic-level small-signal parts (BSS138-class KP, 2N7000/BSS138/2N7002-derived channel-length modulation) — genuinely re-audited values (2026-07-12), not textbook defaults: the previous KP predicted an implausible ~15.6A at Vgs=Vds=5V, two to three orders of magnitude beyond what a real small-signal part could survive.


3. Component Properties (Property Inspector)

When you select an N-Channel MOSFET on the canvas, you can modify the following parameters in the Property Inspector panel:

  • Gate Threshold — Vgs_th (thresholdVoltage): Sets the gate-source voltage needed to turn the channel on.
    • Default: 2 V (logic-level — IRLZ44N)
    • Options: 1 V (ultra logic-level), 2 V (logic-level — IRLZ44N), 4 V (standard — IRF540N)
  • Max Drain Current (Id_max): Sets the maximum safe continuous drain current.
    • Default: 30 A
    • Range: 0.5 A to 100 A (step size 0.5 A)
  • Max Gate-Source Voltage (Vgs_max): Sets the maximum safe gate-source voltage before the gate oxide punctures.
    • Default: 20 V
    • Range: 8 V to 30 V (step size 1 V)

4. Programming Notes

MOSFETs have no associated Blockly blocks. They only influence the electrical behavior of connected components — e.g. a MOSFET switching a motor's power line determines whether current actually flows when a board_digital_write block sets its driving GPIO pin HIGH.


5. Simulator Behavior

  • Real-time Drain Current Readout & ON/OFF Label: While a simulation is running, OMS shows Id=…mA and labels the part ON/OFF based on whether Vgs exceeds the threshold voltage. It glows while conducting, with an orange warning at 80%+ of either rating below.
  • Two Real Fault Conditions:
    • OVERCURRENT: drain current exceeds Id_max — "MOSFET will overheat and fail."
    • BREAKDOWN: gate-source voltage magnitude exceeds Vgs_max — "gate oxide has punctured (component destroyed)," a genuinely separate, permanent failure mode distinct from thermal overcurrent.
N-Channel MOSFET — OMS Parts