Bench Power Supply

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…

Bench Power Supply

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

Pins

Pins of this part
PinLabelType
VCCOUT +Power out
GNDGND −Ground

Properties

What you can change in the Property Inspector.

Properties of this part
PropertyRange or choicesDefault
Voltage1.5 to 30 V5 V
Current Limit0.1 to 5 A2 A
Internal Resistance0.01 to 10 Ω0.1 Ω
Power SwitchOn or offon
Output EnabledOn or offon
Fine Tuning ModeOn or offoff

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):

GND +

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 CC status and an OVERCURRENT fault, 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 see OK or CC, never a hard TRIP, 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.0 V
    • Range: 1.5 V to 30 V (step size 0.1 V)
  • Current Limit (currentLimit): Sets the CC-mode current ceiling.
    • Default: 2.0 A
    • Range: 0.1 A to 5.0 A (step size 0.1 A)
  • Internal Resistance (internalResistance): Models real supply non-ideality (output sag under load).
    • Default: 0.1 Ω
    • Range: 0.01 Ω to 10.0 Ω (step size 0.01 Ω)
  • Power Switch (isPowerOn): toggle, default true.
  • Output Enabled (isOutputEnabled): toggle, default true.
  • Fine Tuning Mode (isFineTuning): toggle, default false.

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 OVERCURRENT fault fires, but the supply keeps supplying current at the limit.
Bench Power Supply — OMS Parts