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:
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:
2V (logic-level — IRLZ44N) - Options:
1V (ultra logic-level),2V (logic-level — IRLZ44N),4V (standard — IRF540N)
- Default:
- Max Drain Current (
Id_max): Sets the maximum safe continuous drain current.- Default:
30A - Range:
0.5A to100A (step size0.5A)
- Default:
- Max Gate-Source Voltage (
Vgs_max): Sets the maximum safe gate-source voltage before the gate oxide punctures.- Default:
20V - Range:
8V to30V (step size1V)
- Default:
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=…mAand labels the partON/OFFbased 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 exceedsId_max— "MOSFET will overheat and fail."BREAKDOWN: gate-source voltage magnitude exceedsVgs_max— "gate oxide has punctured (component destroyed)," a genuinely separate, permanent failure mode distinct from thermal overcurrent.

