Siddharth Jawahar, MathWorks
Learn how to automatically tune gains of a cascaded PID controller that controls the inner voltage and the outer speed loop of a brushless DC motor with a trapezoidal back-EMF. The three-phase BLDC motor and three-phase power inverter have been modeled in Simscape Electrical™. The goal is to tune controller gains to provide fast and stable speed response from the motor. To do that, a Closed-Loop PID Autotuner block is used. This block injects an excitation signal during closed-loop plant operation to estimate plant frequency response. The obtained frequency response is used to automatically compute PID gains. See how to use the Closed-Loop PID Autotuner on the inner voltage loop first, and then on the outer speed loop. The computed PID gains are used to update parameters of the PID controller in the model. Controller performance is verified by running closed-loop simulation.