Isolated Power Controller Design


A power meter capable of outputting isolated 0-5V PID output to control the voltage of external power supply.
A power meter that measures Current (0-20A, resolution 0.01A) and Voltage (0-70V, resolution 0.005V) at 1kHz at least. Than it calculates the power and compares it with a setpoint - set by potentiometer - and outputs the PID output to an isolated voltage in the range 0 to 5V (this voltage controlls the voltage of external power supply).
What do you think? Did I miss something? Obvious way is to use esp32 and INA229AIDGSR. I also want a screen and some human IO - potentiometer, buttons, maybe a touchscreen?
How difficult is it to make it from parts available on JLC assembly? So that they can assemble the whole board
Created a project doc

Power Controller Requirements and Open Questions

View Document

Power Controller Requirements and Open Questions User-proposed product
A power meter and closed-loop constant-power controller for an external power supply. Measure voltage and current, compute power, compare against a potentiometer-defined setpoint, and generate an isolated 0–5 V analog command to the supply.
Requested targets (not yet verified)
  • Current: 0–20 A; displayed/measured resolution 0.01 A.
  • Voltage: 0–70 V; resolution 0.005 V.
  • Measurements: at least 1 kHz. Clarify whether this requires 1,000 fresh voltage/current pairs per second and a 1 kHz control update.
  • Isolated analog command: 0–5 V.
  • Display and human controls: potentiometer, buttons, optionally touchscreen.
  • Candidate parts suggested by user: ESP32 and INA229AIDGSR.
This is a plausible constant-power controller, but the difficult parts are measurement accuracy, isolation, and stable control of the external supply—not the display or MCU. ESP32 + INA229 is a candidate, not yet a verified selection; fresh voltage/current measurements at 1 kHz need a datasheet timing check, and 1 kHz sampling does not imply 1 kHz control bandwidth.
The main missing requirements are the supply’s control-interface specifications, what must be isolated from what, accuracy versus resolution, and safe behavior during startup or faults. JLCPCB assembly may be practical, but I haven’t checked current part availability or assembly eligibility; displays, terminals, and panel controls also need separate consideration.
I saved your requirements and the engineering questions in Power Controller Requirements and Open Questions; no circuit has been built. Datasheet verification, live JLCPCB sourcing, and design work remain for Agent mode, starting with the external supply model and intended load. Execution stopped because your ACUs ran out.

Waiting for input

No schematic yet

Talk to Flux to get started.

Power Controller Requirements and Open Questions
User-proposed product
A power meter and closed-loop constant-power controller for an external power supply. Measure voltage and current, compute power, compare against a potentiometer-defined setpoint, and generate an isolated 0–5 V analog command to the supply.
Requested targets (not yet verified)
  • Current: 0–20 A; displayed/measured resolution 0.01 A.
  • Voltage: 0–70 V; resolution 0.005 V.
  • Measurements: at least 1 kHz. Clarify whether this requires 1,000 fresh voltage/current pairs per second and a 1 kHz control update.
  • Isolated analog command: 0–5 V.
  • Display and human controls: potentiometer, buttons, optionally touchscreen.
  • Candidate parts suggested by user: ESP32 and INA229AIDGSR.
  • Goal: PCB fully assembled by JLCPCB.
Preliminary engineering considerations
These are conceptual considerations, not a datasheet-verified design or a live sourcing check.
  • Resolution is not accuracy. Specify allowable error, noise, drift, calibration conditions, and usable measurement bandwidth separately.
  • Size the ADC conversion schedule for fresh current and voltage data at the required rate; account for sequential sampling, averaging, bus latency, and filtering. A fast MCU alone does not establish loop bandwidth.
  • Define shunt placement, dissipation, temperature coefficient, Kelvin sensing, connector ratings, and copper current capacity for 20 A.
  • Define voltage transients and reverse-polarity conditions, not only nominal 70 V. Protection and monitor common-mode limits require datasheet checks.
  • Define which domains are isolated: measured circuit, MCU/user interface, external supply control return. An isolated output normally needs isolated power and a signal crossing as well as an analog output stage.
  • External supply model, command input impedance, command polarity, control-return relationship, response time, and remote-enable behavior determine output electronics and PID feasibility.
  • Include hardware-safe startup, watchdog handling, output clamping, emergency disable, current/voltage limits, anti-windup, and behavior on disconnected sensors or loss of power. A zero-volt command is not inherently a guaranteed off state.
  • Constant-power control must account for the load and supply dynamics. Use a deterministic acquisition/control task separate from display, touch, and radio work; derive PID tuning from the actual plant.
  • Define required isolation working voltage, withstand voltage, environment, creepage/clearance, and any user-accessible hazardous voltage requirements.
  • JLCPCB assembly feasibility depends on current stock and assembly eligibility of every exact part, footprints, connectors, display, and mechanical controls. A fully assembled PCB is not necessarily a fully assembled finished product; shunts, terminals, displays, and panel controls may require special handling or manual assembly.
Next questions
  1. What is the external supply model or control-interface datasheet, and what load will it drive?
  2. What must be isolated from what, and what isolation rating is required?
  3. Are 0.01 A and 0.005 V resolution targets only, or also accuracy targets?
  4. Is 1 kHz a logging/update requirement or a required closed-loop bandwidth?
  5. Are measurements unidirectional only, and what transients/fault conditions must be survived?
Session state
No components, wiring, layout, simulations, datasheet research, or live JLCPCB stock checks have been performed. The project remains an empty board plus this requirements note. Execution stopped because the account ran out of ACUs. Resume by clarifying the supply/interface and isolation requirements, verifying the proposed monitor against range and timing, then checking current JLCPCB assembly availability before selecting a topology and BOM.
  • User-proposed product

  • Requested targets (not yet verified)

  • Preliminary engineering considerations

  • Next questions

  • Session state