Power Electronics & Control Systems Laboratory

Power converters, electrical machines and their control — modelled as they really behave.

Open MATLAB / Simulink / Simscape models built to reproduce real operating conditions, from system level down to the switching devices, with the control code written in C as it would run on the target. Personal research work by Davide Bagnara, shared as is.

Featured work

All projects →

Areas

How the models are built

Simscape components

Semiconductors with loss and thermal models, magnetics with saturation, machines, batteries and fuel cells are custom Simscape components, so a control strategy is judged on realistic waveforms rather than on idealised blocks.

Control code in C

Controllers, observers, PLLs and modulators run inside the models through C-Caller blocks. The same source is the code that runs on the target: simulated and deployed from one place.

Documented in LaTeX

Every model has a technical note behind it: derivations, control design and simulation results, published as PDF next to the sources.

Everything depends on the shared library repository. Clone it, add it to the MATLAB path with subfolders, then clone the repository you are interested in and run its setup script. Requirements: MATLAB with Simulink, Simscape and Simscape Electrical.

Technical notes

All notes →

Davide Bagnara is a power electronics and control systems engineer with twenty years of industrial R&D on high-power drives and grid-tied converters (250 kW – 1 MW), wide-bandgap devices, PMSM control and embedded firmware. Papers at PCIM Europe and ISIEA; patent on active damping for ropeway drive systems. Based in South Tyrol, Italy.