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
- What is the external supply model or control-interface datasheet, and what load will it drive?
- What must be isolated from what, and what isolation rating is required?
- Are 0.01 A and 0.005 V resolution targets only, or also accuracy targets?
- Is 1 kHz a logging/update requirement or a required closed-loop bandwidth?
- 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.