top of page
Writer's pictureLMS RS

MATLAB Implementation of Speed Control for BLDC Motor Using H-Infinity Controller

MATLAB Implementation of Speed Control for BLDC Motor Using H-Infinity Controller

Setting Up the Simulation Model

To begin with, we need to create a simulation model of the BLDC motor control system in MATLAB. The model consists of several key components:

  • Controlled Voltage Source: Supplies the necessary voltage to the motor.

  • Voltage Source Inverter: Converts DC voltage to AC voltage for the motor.

  • BLDC Motor: The motor itself, which is the system under control.

  • Sensor Measurements: These sensors measure critical parameters like motor speed, stator current, back electromotive force (EMF), and electromagnetic torque.

This simulation environment forms the foundation for speed control using the H-infinity controller.

Estimating the Transfer Function of the BLDC Motor

Before applying the H-infinity controller, it's crucial to determine the motor's transfer function. The transfer function characterizes the relationship between the input (control voltage) and output (motor speed) of the system.



To obtain the transfer function, we first collect input and output data from the simulation. The control voltage is varied, and the corresponding motor speed is measured. By running the simulation and using MATLAB’s system identification tools, we can estimate the motor's transfer function.

  1. The ident function in MATLAB is used for system identification.

  2. Input data (control voltage) and output data (motor speed) are imported into the system identification toolbox.

  3. The sample time and number of samples are specified to accurately capture the system's behavior.

Once the data is processed, MATLAB estimates the transfer function, which can then be used for further system analysis and control design.

Designing the H-Infinity Controller

The next step is to design the H-infinity controller, which will regulate the motor speed. An H-infinity controller is a robust control strategy that minimizes the worst-case gain (i.e., the system's sensitivity to disturbances) and ensures stability even in the presence of modeling errors or external disturbances.

To create the controller, the transfer function of the BLDC motor is used as the plant model. The plant includes both the transfer function of the motor and disturbance inputs. With the help of MATLAB’s hinfsyn command, the H-infinity controller is synthesized.

This command generates a controller that minimizes the effect of disturbances and ensures the system remains stable and responsive to changes in the input.

Simulation and Performance Evaluation

Once the H-infinity controller is designed, it's time to simulate the system and evaluate its performance. The motor speed is controlled by the voltage applied to the motor, and the controller adjusts this voltage based on the reference speed command.

In the simulation, we start by setting an initial reference speed, say 3000 RPM. The input voltage is adjusted to maintain this speed, and the response is observed. After one second, the reference speed is changed to 2000 RPM, and the controller adjusts the voltage to bring the motor speed to the new setpoint.

Key observations from the simulation:

  • The system responds smoothly without any overshoot or undershoot when changing the reference speed.

  • The H-infinity controller quickly adjusts the motor speed to track the reference command, demonstrating its robustness.

  • The voltage applied to the motor changes accordingly, with smooth transitions from one set point to another.

Conclusion

In this blog post, we've demonstrated how to design and implement an H-infinity controller for speed control of a BLDC motor using MATLAB. Through the simulation process, we estimated the transfer function of the motor, designed the controller, and simulated its performance. The results show that the H-infinity controller successfully maintains smooth speed control and effectively tracks the reference speed, even when subjected to changes in set speed.

1 view0 comments

Comments


bottom of page