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:
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): V, breakdown V — the general-purpose rectifier diode most commonly used for AC-to-DC power supplies.
- 1N4148 (Signal): V, breakdown V — a small-signal switching diode, much faster than a rectifier but rated for far less voltage/current.
- Schottky: V, breakdown V — 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 , 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
- Default:
- Forward Voltage (
forwardVoltage): Overrides the preset's forward voltage.- Default:
0.7V - Range:
0.1V to1.5V (step size0.05V)
- Default:
- Breakdown Voltage (
breakdownVoltage): Overrides the preset's reverse breakdown voltage.- Default:
1000V - Range:
10V to2000V (step size10V)
- Default:
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
OVERCURRENTfault. Exceeding the diode's Breakdown Voltage in reverse triggers a separate reverse-breakdown fault condition, shown as a warning state on the canvas.

