Simulink Control Design™ - MathWorks

(Tuis.) #1

Tune PID Controller in Real Time Using Closed-Loop PID


Autotuner Block


This example shows how to use the Closed-Loop PID Autotuner block to tune a PID
controller for a boost converter plant in both simulation and real time.

Introduction of Voltage-Mode Controlled Boost Converter

In this example, a voltage-mode boost converter is modeled in Simulink® using
Simscape™ Electrical™ components. The parameters of these components are based on
[1].

mdl = 'scdboostconverterPIDTuning';
open_system(mdl)

A boost converter circuit converts a DC voltage to another, typically higher, DC voltage by
controlled chopping or switching of the source voltage. In this model, a MOSFET driven
by a pulse-width modulation (PWM) signal is used for switching. A digital PID controller
adjusts the PWM duty cycle to maintain the load voltage at its reference.

At the nominal operating point, the load voltage is at 18 volts and the duty cycle is about
0.74. Duty cycle can vary from 0.1 to 0.85 during boost converter operation.

Tune PID Controller in Real Time Using Closed-Loop PID Autotuner Block
Free download pdf