A bench power supply is an adjustable DC source with a settable output voltage and current limit — the standard lab tool for powering and testing circuits at any voltage/current combination, instead of being locked to a fixed-voltage battery. In Open Maker Studio, it does not have Blockly code blocks — it interacts directly with the real-time SPICE analog simulator, and is genuinely interactive on the canvas.
1. Schematic Symbol
Adjustable DC source symbol (circle with an arrow through it, indicating variability):
2. Real CC/CV Behavior
This is a genuinely realistic Constant-Voltage / Constant-Current (CV/CC) simulated bench supply, not just a fixed source with a cutoff:
- Constant-Voltage (CV) mode: while the load draws less current than the Current Limit setting, the supply holds its set Voltage steady (minus a small drop from Internal Resistance).
- Constant-Current (CC) mode: if the load tries to draw more current than the Current Limit,
the real SPICE engine detects the overcurrent condition and automatically switches the supply's
internal resistance so the current is held at the limit instead — the output voltage sags
instead of cutting to 0V, matching how a real bench supply protects itself. This shows as a
CCstatus and anOVERCURRENTfault, but the supply stays "alive" at reduced voltage. - Trip/latch state: the component's code has a separate
TRIP-status concept (fully latched off, distinct from CC mode) — but nothing in the current codebase ever actually triggers it, so in practice you'll only ever seeOKorCC, never a hardTRIP, when using this component today.
3. Interactive Controls
Real, verified interactive controls exist directly on the canvas graphic (not just the Property Inspector):
- Power Switch: click to toggle the whole supply on/off (also clears any latched trip state).
- Output Enable: click to enable/disable the output independent of the power switch.
- Fine Tuning Mode: click to toggle a finer adjustment step for the voltage/current sliders.
- Quick Presets: three one-click presets set both voltage and current limit together: 3.3V / 1.0A, 5.0V / 2.0A, and 12.0V / 3.0A — common logic-level supply rails.
- Decorative-only Earth terminal: the canvas graphic draws an "EARTH" terminal alongside the
real
OUT +/GND −pins, but it is not wired as a real pin in the component definition — it's visual only and can't be connected to anything.
4. Component Properties (Property Inspector)
When you select a Bench Power Supply on the canvas, you can modify the following parameters in the Property Inspector panel:
- Voltage (
voltage): Sets the target output voltage.- Default:
5.0V - Range:
1.5V to30V (step size0.1V)
- Default:
- Current Limit (
currentLimit): Sets the CC-mode current ceiling.- Default:
2.0A - Range:
0.1A to5.0A (step size0.1A)
- Default:
- Internal Resistance (
internalResistance): Models real supply non-ideality (output sag under load).- Default:
0.1Ω - Range:
0.01Ω to10.0Ω (step size0.01Ω)
- Default:
- Power Switch (
isPowerOn): toggle, defaulttrue. - Output Enabled (
isOutputEnabled): toggle, defaulttrue. - Fine Tuning Mode (
isFineTuning): toggle, defaultfalse.
5. Programming Notes
Power supplies are purely passive-source components and have no associated Blockly blocks. A bench PSU only supplies power to the rest of your circuit — its Voltage/Current Limit settings determine what a downstream board_analog_read block on a voltage-divider circuit would actually read.
6. Simulator Behavior
- Real-time Voltage/Current/Power Readout: While a simulation is running, OMS parses a live
telemetry string and displays actual output voltage, actual output current, power dissipation,
and status (
OK/CC/TRIP) directly on the canvas graphic. - Overcurrent → CC Mode, Not a Hard Cutoff: as described in Section 2, exceeding the Current
Limit switches the supply into Constant-Current mode rather than dropping output to 0V —
a real
OVERCURRENTfault fires, but the supply keeps supplying current at the limit.

