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 →
Three-phase dual active bridge (DAB3)
750 kW three-phase DAB — AC-side waveforms, spectrum and animated transformer quantities.

Solid-state transformers
Modular SST — DAB or CLLC stages feeding T-type inverters, parallel on DC, series on AC, master/slave distributed control.

Flipped unified power quality conditioner (F-UPQC)
Left-shunt UPQC — shunt converter for grid services, series converter for load-voltage stability; bench and paper.
Areas
Isolated DC/DC converters
Bidirectional isolated stages for the 250 kW class, 690 V AC application: the building blocks of the solid-state transformers and of the storage interfaces.
02Inverters and solid-state transformers
Single-phase inverters, multilevel topologies and the modular SST that is built from them.
03Power quality and grid interface
Converters that face the grid: what they can offer to the network and how they synchronise to it.
04Electrical machines and control
Observers and controllers for machines and for distributed-parameter systems, plus compact adaptive-control projects.
05Teaching
Lecture material and textbooks from the Advanced Control Engineering course.
LIBFoundations: the library ↗
Simscape components, masked Simulink blocks and the C code shared by every model. Add it to the MATLAB path first.
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 →About
More →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.