Diode

A diode is a semiconductor component that conducts current in one direction only (from anode to cathode) once its forward voltage threshold is exceeded.

Diode

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 Diode, drawn as in the circuit editor. Select a label to see that pin in the table below.

Pins

Pins of this part
PinLabelType
ANODEASignal in
CATHODEKcathode

Properties

What you can change in the Property Inspector.

Properties of this part
PropertyRange or choicesDefault
Model1N4007 (Silicon rectifier), 1N4148 (Signal), Schottky (Low Vf)1N4007 (Silicon rectifier)
Forward Voltage0.1 to 1.5 V0.7 V
Breakdown Voltage10 to 2000 V1000 V

A diode is a semiconductor component that conducts current in one direction only (from anode to cathode) once its forward voltage threshold is exceeded. In Open Maker Studio, it does not have Blockly code blocks — it interacts directly with the real-time SPICE analog simulator to rectify AC, protect against reverse polarity, and clamp voltage spikes.


1. Schematic Symbol

Standard diode symbol — a triangle (anode) and a bar (cathode), current flows in the direction of the arrow:

A K

2. Real Model Presets

OMS's Diode is modeled against three real, named parts, each with its own forward voltage and reverse breakdown voltage:

  • 1N4007 (Silicon rectifier): Vf≈0.7V_f \approx 0.7V, breakdown ≈1000\approx 1000V — the general-purpose rectifier diode most commonly used for AC-to-DC power supplies.
  • 1N4148 (Signal): Vf≈0.6V_f \approx 0.6V, breakdown ≈100\approx 100V — a small-signal switching diode, much faster than a rectifier but rated for far less voltage/current.
  • Schottky: Vf≈0.3V_f \approx 0.3V, breakdown ≈40\approx 40V — the lowest forward drop of the three, commonly used where minimizing voltage loss matters (e.g. reverse-polarity protection on low-voltage rails).

3. Core Calculations & Math

  • Forward Conduction: once the anode-to-cathode voltage exceeds VfV_f, the diode conducts and current flows essentially unimpeded (aside from its small internal series resistance).
  • Reverse Breakdown: exceeding the diode's breakdown voltage in reverse allows a large reverse current to flow — this is destructive for a normal rectifier/signal diode (unlike a Zener, which is designed to operate safely in this region — see the Zener Diode article).

4. Component Properties (Property Inspector)

When you select a Diode on the canvas, you can modify the following parameters in the Property Inspector panel:

  • Model (model): Selects one of the 3 real presets above, which sets the underlying SPICE model parameters.
    • Default: 1N4007 (Silicon rectifier)
    • Options: 1N4007, 1N4148, SCHOTTKY
  • Forward Voltage (forwardVoltage): Overrides the preset's forward voltage.
    • Default: 0.7 V
    • Range: 0.1 V to 1.5 V (step size 0.05 V)
  • Breakdown Voltage (breakdownVoltage): Overrides the preset's reverse breakdown voltage.
    • Default: 1000 V
    • Range: 10 V to 2000 V (step size 10 V)

5. Programming Notes

Diodes are purely passive analog components and have no associated Blockly blocks. A diode only influences the electrical behavior of connected components — for example, a diode used for reverse-polarity protection determines whether a board_analog_read block downstream ever sees power at all.


6. Simulator Behavior

  • Real-time Current Readout: While a simulation is running, OMS renders a live text overlay directly on the diode body — not a hover-only tooltip — showing the forward current through it whenever it exceeds ~0.01mA.
  • Two Real Fault Conditions: exceeding a hardcoded 1A forward current limit (not tied to any prop — the same 1A ceiling applies regardless of which preset you pick) triggers an OVERCURRENT fault. Exceeding the diode's Breakdown Voltage in reverse triggers a separate reverse-breakdown fault condition, shown as a warning state on the canvas.
Diode — OMS Parts