主要内容

LLC Resonant Converter Controller Design Workflow

R2026b

This project walks through the end-to-end workflow for designing, validating, and deploying a voltage controller for an LLC resonant DC-DC converter, starting from a set of converter parameters and ending with a compensator that is validated in simulation, robust across the operating envelope, and deployable to a Texas Instruments(R) C2000(TM) F28379D LaunchPad(TM) running against a Speedgoat(R) real-time plant.

The workflow is arranged in six stages: model components and desktop simulation, controller tuning with frequency response estimation (FRE), stability and robustness analysis, hardware-in-the-loop (HIL) testing, a hardware FRE refinement pass, and algorithm export. These stages share a common set of parameters and gains that flow through subsystem references and MAT-file data stores, so a single edit in the plant or controller definition propagates automatically into every downstream stage.

LLC Resonant Converter Control Design Steps

This example series shows how to design, validate, and deploy a voltage controller for an LLC resonant DC-DC converter across desktop simulation, robustness analysis, HIL testing, and portable-C-code export. Each stage is a separate live script, accessible from a project shortcut on the MATLAB(R) toolstrip. Use the shortcuts in order. Later stages consume artifacts produced by earlier stages, so run them sequentially the first time through.

The example series consists of these steps:

  • Model and Simulate LLC Resonant Converter Controller

  • Tune the Controller with Online FRE

  • Verify Stability and Sensitivity

  • Validate the Controller on Hardware in the Loop

  • Refine Controller Gains with Hardware FRE

  • Export the Controller Algorithm for Custom Targets

Open the LLC Resonant Converter Project

The LLCExample.prj project file contains the reference application, which consists of the Simscape(TM) Electrical(TM) plant subsystem reference, the voltage controller subsystem reference, the ctrlData.mat gains data store, all supporting utilities, and the toolstrip project shortcuts that open the live script for each stage of this workflow. Open the project file by running this code.

prj = openProject("ResonantConverterRefEx");

Open the ResonantConverterSim.slx Simulink(R) model.

open_system("ResonantConverterSim");

The ResonantConverterSim.slx model is the entry point for the closed-loop desktop simulation and contains the following top-level components, which you can customize in accordance with your design:

  • Resonant converter plant. Subsystem reference that models the LLC tank, transformer, rectifier, and output filter using Simscape Electrical. Configurable to half-bridge or full-bridge topology through the PlantConfig property of the ResonantConv structure.

  • Voltage controller. Subsystem reference at ~\ModelComponents\Controller\VoltageController.slx that implements direct frequency control of the resonant tank. Supports proportional-integral (PI) and 3-pole 3-zero (3p3z) compensators, selectable through the GainsSelector mask parameter.

  • Controller gains data store. ctrlData.mat in ~\Data\ stores the default gains produced by the analytical design and any custom gains tuned by hand or refined through FRE, so every downstream stage reads from the same file.

  • Project shortcuts. Toolstrip buttons that open the live script for each stage of the workflow, along with supporting shortcuts for parameterization and post-processing.

For the first stage of the workflow, which configures the converter parameters and controller gains and runs the closed-loop simulation, see the Model and Simulate LLC Resonant Converter Controller example.

To learn more about each step in the workflow, open the corresponding stage script in the MATLAB Editor.

edit("GettingStarted.m");
edit("OnlineFRE.m");
edit("StabilityAndSensitivityAnalysis.m");
edit("HilWorkflow.m");
edit("LLCC2000FREWorkflow.m");
edit("AlgorithmExport.m");