Developing DC-DC Converter Control With Simulink
Developing DC-DC Converter Control With Simulink
Vasco Lenzi
Senior Application Engineer
▪ Find design errors early and cut down development cost while increasing
delivered quality.
2
Our Project Today
DC/DC LED Developer's Kit
3
ZKW Lichtsysteme GmbH
https://www.youtube.com/watch?v=wAk9e5w0dSg
4
Developing DC-DC Converter Control with Simulink
▪ Model the converter and calculate the most efficient operating region
5
6
Developing DC-DC Converter Control with Simulink
▪ Model the converter and calculate the most efficient operating region
7
Modeling the converter
SEPIC
Load (LEDs)
Power Supply
8
Modeling Approaches
9
Simscape Products
▪ Simscape platform
– Simulation engine and custom diagnostics
– Foundation libraries in many domains
– Language for defining custom blocks
10
What’s new in Simscape Electrical
▪ Faults
– Dynamic Load from DC or AC supply
– Constant Power Load
– Delta-Connected Load, Wye-Connected Load
11
Developing DC-DC Converter Control with Simulink
▪ Model the converter and calculate the most efficient operating region
15
ee_switching_power_supply_thermal
Recap: What have we seen?
ee_getpowerlossSummary
16
Convert SPICE models into Simscape components
Netlist
subcircuit2ssc
17
Simscape Electrical
SPICE Models
▪ Manufacturer-specific MOSFETs
▪ Model the converter and calculate the most efficient operating region
19
Voltage Controller Design
▪ Requirement
– Implement voltage controller and tune it
▪ Approach
– Create transfer function equivalent model
– Tune controllers based on requirements
20
What have we seen?
21
Average switch option for converters and choppers
22
Developing DC-DC Converter Control with Simulink
▪ Model the converter and calculate the most efficient operating region
23
Recap: What have we seen?
Stateflow
24
Recap: What have we seen?
Simulink Test
✓ Execute individual or
batch
✓ Analyze results
25
Developing DC-DC Converter Control with Simulink
▪ Model the converter and calculate the most efficient operating region
26
Automatic Code Generation
▪ Requirement
– Generate target-aware, efficient C-code
▪ Approach
– Model elaboration for C-code generation
– Create a first configuration set with Embedded Coder Quick Start
– Build the code, automatically generate reports
27
Deploy to Any Processor with Best-in-Class Performance
Models in MATLAB and Simulink can be deployed on embedded devices, edge
devices, enterprise systems, the cloud, or the desktop.
Deployment CPU
Embedded devices
Automatic
Code
Generation
GPU
Enterprise systems
Edge, cloud,
desktop FPGA
PLCs
28 28
MATLAB Connects to Your Hardware Devices
Instrument Control
Oscilloscopes, Signal Generators,
Lab Instruments
Data Acquisition
Plug-in data acquisition devices, I/O
boards and sound cards
Digital Networks
OPC, CAN, J1939, and XCP protocol
devices
30
In-the-Loop Verification Methodologies
Software-in-the-Loop
Is the generated
Compiled
Algorithm Environment code functionally
SIL equivalent to the
model ?
31
In-the-Loop Verification Methodologies
Processor or FPGA-in-the-Loop
Is the generated
Algorithm Environment code functionally
equivalent to the
model ?
Non-Real-Time functional
verification of the algorithm
component, C or HDL
32
In-the-loop verification methodologies
Hardware-in-the-Loop: “HIL”
Does algorithm
perform well on
Algorithm Plant Model actual device
with true
latencies?
Code Code
33
About Speedgoat
34
Hardware-in-the-Loop Simulation of SEPIC Converter
Linearized SEPIC used to
deploy to FPGA I/O module
Target Computer via Simcape HDL Workflow
Development with FPGA I/O Module
Computer
Model sample time = 500 nanoseconds (2 MHz)
100 kHz
35
Hardware-in-the-loop simulation of SEPIC converter
36
37
With Simulink and Model-Based Design
Use Simulation Models to Generate Production Ready Code
38
Key Takeaways
▪ Find design errors early and cut down development cost while increasing
delivered quality.
39
Visit the Power Electronics Control Community on
MATLAB Central to find Models, Answers, and How-to Videos
https://www.mathworks.com/matlabcentral/topics/power-electronics-control.html
40
Q&A and Conclusion
▪ Questions: [email protected]
41