Skip to content
View pwr-control's full-sized avatar
:atom:
:atom:

Highlights

  • Pro

Block or report pwr-control

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
pwr-control/README.md

pwr-control logo

pwr-control

Power Electronics & Control Systems Laboratory

Open MATLAB / Simulink / Simscape models of power converters, electrical machines and their control,
built to reproduce real operating conditions — from system level down to the switching devices.

MATLAB, Simulink, Simscape C code in C-Caller blocks LaTeX documentation Website LinkedIn

Start here  ·  Repositories  ·  Gallery  ·  Videos  ·  Technical notes  ·  About


The repositories in this account share one idea: a control strategy should be judged on realistic waveforms, not on idealised blocks. The models are therefore built in Simscape with custom components (semiconductors, magnetics with saturation, machines, batteries, fuel cells) and the control code is written in C where it would run on a real target. Every repository has its own README with setup instructions; the theory behind the models is collected in the technical notes below.

Start here

Every model depends on the shared library repository: Simscape components, masked Simulink blocks and the C code used by the C-Caller blocks. Set it up once and all the other repositories work out of the box.

  1. Clone library and add it to the MATLAB path with subfolders.
  2. Clone the repository you are interested in and run its setup script (each README says which one).
  3. Open the Simulink model and simulate.
git clone https://github.com/pwr-control/library.git
git clone https://github.com/pwr-control/<repository>.git
addpath(genpath('path/to/library'));   % once per session, or savepath to make it permanent

Requirements: MATLAB with Simulink, Simscape and Simscape Electrical.

Repositories

Area Repository What you will find
Foundations library Simscape components, masked blocks and C code shared by all the other repositories. Add it to the MATLAB path first.
DC/DC converters advanced-dcdc-converters Single-phase DAB, three-phase DAB (DAB3) and resonant CLLC for the 250 kW class: Simscape benches, loss and harmonic analysis, resonant-tank optimisation.
Solid-state transformers solid-state-transformers Modular SST made of isolated DC/DC stages (DAB or CLLC) and three-level T-type single-phase inverters, paralleled on the DC side and series-connected on the AC side; synchronised modulators with local time bases.
Power quality left-shunt-unified-power-quality-conditioner Flipped UPQC (F-UPQC): the shunt converter provides grid services, the series converter stabilises the load voltage. Simscape bench plus the IEEE-format paper deriving model and control.
Grid-forming grid-forming Grid-forming control architectures, starting from how a grid-tied active front end behaves on progressively weaker grids.
Electrical machines control-of-electrical-machine Sensorless PMSM control: SVPWM with dq PI or model-predictive current control, combined with a back-EMF observer, an EKF or a nonlinear observer. Induction machine to follow.
Adaptive control adaptive-control Compact MATLAB/Simulink projects: MRAC on an active suspension and on textbook cases, harmonic-tracker analysis for grid signals, a coupled PDE/ODE thermal model.
Teaching lectures-on-advanced-control-engineering Worked lecture examples (MCI, 2019–2023, still updated): state-space design, observers, Kalman filtering, MPC and adaptive control applied to converters, drives, mechatronics and hydrostatic drivelines.
Teaching advanced-control-engineering LaTeX sources and compiled PDFs of the two companion textbooks, Advanced Control Engineering and Electromechanical Devices.

Gallery

Flipped UPQC
Flipped UPQC — shunt converter for ancillary services, series converter for load-voltage stability
Three-phase dual active bridge
Three-phase dual active bridge (DAB3) — 250 kW class isolated DC/DC stage
Bidirectional CLLC
Single-phase bidirectional CLLC — resonant alternative to the DAB
Solid-state transformer modules
Solid-state transformer — master/slave modules with Ethernet-based distributed control
Flying-capacitor multilevel inverter
Flying-capacitor multilevel inverter — single-phase, with pre-charge and modulation study
First-harmonic-tracker dq-PLL
First-harmonic-tracker dq-PLL — single-phase grid synchronisation with an adaptive-filter VCO

Videos

Three-phase DAB simulation
Three-phase DAB
UPQC simulation
Flipped UPQC
First-harmonic-tracker dq-PLL simulation
First-harmonic-tracker dq-PLL

Technical notes

Self-contained PDF notes (LaTeX) that document the models: derivations, control design and simulation results. They are the reference for the blocks in library and for the benches in the repositories above.

Topic Note Pages
Power electronics Flying Capacitor Multilevel Single-Phase Inverter 22
Power electronics Solid State Transformers: architecture, control and simulation results 31
Power electronics Modularity: model and control architecture — paralleled AFE drives, grid filter and power quality 54
Power electronics Single-Phase Lock Loop 10
Power electronics Three-Phase Inductors: mathematical model and construction — with saturation effects 8
Electrical machines PMSM: model and control strategies — vector control and state observers 29
Electrical machines PMSM: vector control, EMF-based observer and parameter-mismatch analysis 10
Electrical machines Induction Motor: modelization and parameter estimation 49
Energy sources Lithium-ion Battery — equivalent-circuit model 12
Energy sources PEM Fuel Cell — Simscape model 26
Control theory Nonlinear Observers: application to hydrostatic transmissions and electrical machinery 55
Mechatronics Electrification of Heavy Duty Vehicles 77
Mechatronics Hydrostatic Fluid Power Modelization 85
Mechatronics Control of String-Actuated Systems — following Wang/Krstic 31
Mechatronics Moving Coil: mathematical model and control 17
Mechatronics Flexible Shaft Model — torsional oscillations of a driveline 8

About

Davide Bagnara — 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 (STM32, TI C2000). Papers at PCIM Europe and ISIEA; patent on active damping for ropeway drive systems. Based in South Tyrol, Italy.

Everything here is personal research work, shared as is. If a model or a note is useful to you, a star helps others find it; questions and suggestions are welcome through the issues of the relevant repository.

pwr-control.com  ·  LinkedIn  ·  info@pwr-control.com

Pinned Loading

  1. adaptive-control adaptive-control Public

    some projects on adaptive control

    MATLAB 1

  2. lectures-on-advanced-control-engineering lectures-on-advanced-control-engineering Public

    This repository contains lectures on advanced control engineering and hydrostatic machines modelization and control.

    MATLAB 1