← Back to work

Bench PSU firmware

Placeholder case study — to be replaced with the real write-up.

Overview

Firmware for a programmable bench power supply: stable closed-loop voltage control with hard current-limit protection, driven over a simple serial command set.

Approach

  • Implemented a PI control loop on the regulated output with anti-windup.
  • Added a hardware-bounded current limit checked before every setpoint write — the supply refuses any command that would exceed safe limits.
  • Flagged the timing-sensitive control path so the loop period stays constant.

Results

The supply holds its setpoint under step loads and trips cleanly into current-limit without overshoot, recovering as soon as the fault clears.

What I’d do next

Add a small display UI and log fault events to non-volatile memory.