Speed control of BLDC motor using H Infinity Controller in MATLAB
Speed control of BLDC motor using H Infinity Controller in MATLAB
𝐈𝐧𝐭𝐫𝐨𝐝𝐮𝐜𝐭𝐢𝐨𝐧
The Speed Control of BLDC Motor Using H Infinity Controller in MATLAB demonstrates an advanced control technique for achieving accurate and smooth speed regulation of a Brushless DC (BLDC) motor.

BLDC motors are widely used in electric vehicles, robotics, industrial automation, and high-performance motor drive systems because of their high efficiency, reliability, and low maintenance requirements.
The 𝐇-𝐈𝐧𝐟𝐢𝐧𝐢𝐭𝐲 (𝐇∞) 𝐂𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫 is a robust control technique designed to maintain satisfactory system performance in the presence of modeled disturbances and uncertainties.
This MATLAB/Simulink implementation focuses on:
BLDC motor speed regulation using H∞ control.
Transfer function identification using input-output data.
H∞ controller design and synthesis.
Hall sensor-based inverter switching.
Reference speed tracking under changing operating conditions.
Analysis of motor speed, torque, current, back EMF, and voltage.
𝐒𝐲𝐬𝐭𝐞𝐦 𝐎𝐯𝐞𝐫𝐯𝐢𝐞𝐰
The proposed system consists of a controlled DC voltage source, three-phase voltage source inverter, BLDC motor, Hall sensor-based commutation system, and H∞ speed controller.
Main Components
Component | Function |
BLDC Motor | Converts electrical energy into mechanical rotation |
Controlled Voltage Source | Regulates the DC input voltage |
Three-Phase Inverter | Supplies the required phase voltages to the motor |
Hall Sensor Decoder | Identifies rotor position for electronic commutation |
Gate Pulse Generator | Produces inverter switching signals |
H∞ Controller | Regulates motor speed through feedback control |
Speed Measurement | Provides actual rotor speed for feedback |
Measurement Blocks | Monitor motor current, back EMF, torque, and voltage |
The H∞ controller continuously compares the reference speed with the actual motor speed and adjusts the controlled voltage source to reduce the speed error.
𝐒𝐲𝐬𝐭𝐞𝐦 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬
The following parameters are used in the demonstrated MATLAB/Simulink implementation.
Parameter | Value |
Motor Type | Brushless DC Motor |
Simulation Software | MATLAB/Simulink |
Speed Controller | H Infinity (H∞) |
Initial Reference Speed | 3000 RPM |
Final Reference Speed | 2000 RPM |
Speed Change Time | 1 second |
Total Simulation Time | 2 seconds |
Initial DC Bus Voltage | Approximately 480 V |
DC Bus Voltage After Speed Change | Approximately 330 V |
Initial Speed Settling Time | Approximately 0.4 seconds |
Speed Settling After Reference Change | Approximately 1.3 seconds (absolute simulation time) |
Inverter | Three-Phase Voltage Source Inverter |
Commutation Method | Hall Sensor-Based Electronic Commutation |
Values are based on the demonstrated simulation. The DC bus voltages and settling times are approximate observations rather than specified controller guarantees.
𝐖𝐨𝐫𝐤𝐢𝐧𝐠 𝐏𝐫𝐨𝐜𝐞𝐬𝐬
The BLDC motor speed control system operates through a closed-loop control structure.
Reference Speed (RPM)
Speed Error Calculation
Reference Speed − Actual Speed
H∞ Speed Controller
Controlled DC Voltage Source
Three-Phase Inverter and Hall Sensor Commutation
BLDC Motor
Actual speed is measured and fed back to the controller
Step-by-Step Operation
Reference Speed: The required motor speed is set to 3000 RPM initially.
Speed Comparison: Actual rotor speed is measured and compared with the reference.
H∞ Control: The controller processes the speed error and generates a voltage control command.
Voltage Regulation: The controlled voltage source adjusts the DC voltage supplied to the inverter.
Electronic Commutation: Hall sensor signals determine the appropriate inverter switching sequence.
Motor Operation: The BLDC motor responds to the applied voltage and inverter commutation.
Feedback Regulation: The controller continuously adjusts the voltage to track the reference speed.
𝐓𝐫𝐚𝐧𝐬𝐟𝐞𝐫 𝐅𝐮𝐧𝐜𝐭𝐢𝐨𝐧 𝐈𝐝𝐞𝐧𝐭𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧
Before designing the H∞ controller, the dynamic behavior of the BLDC motor must be identified.
MATLAB provides the System Identification tools to estimate a transfer function using measured or simulated input-output data.
Data Collection
The motor model is simulated by applying a varying input voltage to the controlled voltage source and recording the corresponding motor speed.
Parameter | Value |
Input Variable | Controlled DC Voltage |
Output Variable | Rotor Speed |
Initial Identification Voltage | 300 V |
Final Identification Voltage | 500 V |
Input Voltage Change Time | 1 second |
Data Collection Duration | 2 seconds |
Number of Samples | 40,000 |
Sampling Time | 5 × 10⁻⁵ seconds |
Input Data Variable | in |
Output Data Variable | out |
Identification Procedure
Open the MATLAB System Identification app using ident.
Import the motor input and output data from the MATLAB workspace.
Select time-domain data.
Specify the sampling time.
Apply mean removal when appropriate.
Select transfer function estimation.
Specify the required poles and zeros.
Estimate the motor transfer function.
Compare the estimated model response with the collected output.
Transfer Function Estimation
Parameter | Selected Value |
Number of Poles | 2 |
Number of Zeros | 1 |
Initial Estimation | Discrete-Time Model |
Final Estimation | Continuous-Time Model |
Reported Model Fit | Approximately 93.19% |
The estimated transfer function represents the input-voltage-to-motor-speed relationship for the operating conditions used during identification.
The reported 93.19% model fit indicates agreement between the identified model and the identification dataset. Separate validation is necessary to establish its accuracy under different operating conditions.
𝐇-𝐈𝐧𝐟𝐢𝐧𝐢𝐭𝐲 𝐂𝐨𝐧𝐭𝐫𝐨𝐥 𝐒𝐭𝐫𝐚𝐭𝐞𝐠𝐲
The H∞ controller is designed to improve the speed regulation performance of the BLDC motor.
Unlike a conventional controller tuned mainly for nominal operation, H∞ control provides a mathematical framework for addressing disturbance sensitivity and robustness.
Controller Design Procedure
Obtain the BLDC motor transfer function from system identification.
Represent the motor dynamics in MATLAB.
Define suitable disturbance and performance weighting models.
Construct a generalized plant.
Perform H∞ controller synthesis.
Obtain the controller in state-space representation.
Convert the controller into a transfer function representation when appropriate.
Implement the controller using the MATLAB/Simulink Transfer Function block.
Test the closed-loop motor response for different reference speed commands.
Role of the H∞ Controller
Control Objective | Description |
Speed Tracking | Follow the required motor speed |
Disturbance Attenuation | Reduce the influence of modeled disturbances |
Overshoot Reduction | Limit excessive speed excursions |
Settling Performance | Achieve the commanded speed with suitable transient behavior |
Robustness | Maintain performance over modeled plant variations |
Closed-Loop Stability | Support stable motor operation through suitable controller synthesis and validation |
The quality of H∞ control depends on the accuracy of the identified plant model and the selection of performance weighting functions.
𝐌𝐀𝐓𝐋𝐀𝐁/𝐒𝐈𝐌𝐔𝐋𝐈𝐍𝐊 𝐈𝐌𝐏𝐋𝐄𝐌𝐄𝐍𝐓𝐀𝐓𝐈𝐎𝐍
The developed H∞ controller is connected to the BLDC motor simulation through the controlled voltage source.
Implementation Steps
Create the BLDC motor and inverter model in Simulink.
Configure Hall sensor-based gate pulse generation.
Measure the actual rotor speed.
Convert motor speed from rad/s to RPM.
Compare actual speed with reference speed.
Connect the speed error to the H∞ controller block.
Apply the controller output to the controlled voltage source.
Observe speed, voltage, electromagnetic torque, current, and back EMF.
The design uses a closed-loop feedback mechanism to regulate the motor speed automatically.
𝐒𝐢𝐦𝐮𝐥𝐚𝐭𝐢𝐨𝐧 𝐑𝐞𝐬𝐮𝐥𝐭𝐬
The MATLAB/Simulink results demonstrate the response of the BLDC motor when the reference speed changes from 3000 RPM to 2000 RPM.
1. Rotor Speed Response
BLDC Motor Speed Tracking
Illustrative response based on approximate settling times described in the simulation narration; not raw simulation samples.
■ Reference speed
■ Illustrative actual speed
Illustrative visualization of the described speed response, not an exact reconstruction of exported MATLAB data.
The demonstrated simulation indicates that:
Motor speed increases smoothly from standstill to 3000 RPM.
The initial speed settles at approximately 0.4 seconds.
At 1 second, the reference speed changes to 2000 RPM.
The motor reaches the new reference at approximately 1.3 seconds.
No significant overshoot is visible in the demonstrated speed response.
2. DC Bus Voltage Response
The DC bus voltage varies according to the motor speed requirement.
Operating Condition | Approximate DC Voltage |
3000 RPM Operation | 480 V |
2000 RPM Operation | 330 V |
The controller reduces the commanded DC voltage when the required motor speed decreases.
3. Electromagnetic Torque Response
The electromagnetic torque changes during motor acceleration and speed transitions.
Observed behavior:
Initially, the motor develops torque to accelerate the rotor.
Torque approaches a steady operating value after the motor reaches its reference speed.
A transient occurs when the reference speed changes.
Torque settles as the motor reaches its new operating condition.
4. Stator Current and Back EMF
The stator current and back EMF waveforms illustrate the electrical behavior of the BLDC motor.
Stator current varies during acceleration and speed transitions.
Back EMF magnitude increases with motor speed.
When speed decreases, the back EMF magnitude also decreases.
Hall sensor-based commutation maintains the required phase switching sequence.
5. Line-to-Line Voltage
The inverter output voltage responds to changes in the controlled DC input.
Higher speed operation corresponds to a higher voltage envelope in the demonstrated system.
The voltage envelope decreases after the speed reference is reduced.
The inverter continues supplying electronically commutated phase voltages.
Overall Performance Summary
Performance Parameter | Observed Result |
Initial Speed Reference | 3000 RPM |
Final Speed Reference | 2000 RPM |
Initial Settling Time | Approximately 0.4 s |
Settling Time After Step Change | Approximately 0.3 s after the 1 s command |
Speed Tracking | Successful in demonstrated test |
Overshoot | No significant overshoot visible |
DC Voltage Regulation | Responds to speed reference |
Torque Response | Transient during speed change |
Back EMF | Varies with rotor speed |
Motor Operation | Stable in the demonstrated simulation |
These results demonstrate satisfactory reference-speed tracking for the simulated operating conditions. Additional load-disturbance and parameter-uncertainty tests would be required to quantify the controller's robustness.
𝐊𝐞𝐲 𝐅𝐞𝐚𝐭𝐮𝐫𝐞𝐬
𝐑𝐨𝐛𝐮𝐬𝐭 𝐇∞ 𝐂𝐨𝐧𝐭𝐫𝐨𝐥: Advanced feedback control for BLDC motor speed regulation.
𝐒𝐲𝐬𝐭𝐞𝐦 𝐈𝐝𝐞𝐧𝐭𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧: MATLAB-based transfer function estimation from input-output data.
𝐒𝐩𝐞𝐞𝐝 𝐓𝐫𝐚𝐜𝐤𝐢𝐧𝐠: Automatic adjustment to changing reference speed commands.
𝐒𝐦𝐨𝐨𝐭𝐡 𝐑𝐞𝐬𝐩𝐨𝐧𝐬𝐞: Low-overshoot speed tracking demonstrated in simulation.
𝐇𝐚𝐥𝐥 𝐒𝐞𝐧𝐬𝐨𝐫 𝐂𝐨𝐦𝐦𝐮𝐭𝐚𝐭𝐢𝐨𝐧: Rotor position-based inverter gate pulse generation.
𝐃𝐂 𝐕𝐨𝐥𝐭𝐚𝐠𝐞 𝐂𝐨𝐧𝐭𝐫𝐨𝐥: Input voltage regulation through the H∞ speed control loop.
𝐂𝐨𝐦𝐩𝐥𝐞𝐭𝐞 𝐌𝐨𝐭𝐨𝐫 𝐌𝐨𝐧𝐢𝐭𝐨𝐫𝐢𝐧𝐠: Observation of speed, electromagnetic torque, stator current, back EMF, and line voltage.
𝐀𝐩𝐩𝐥𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬
BLDC motor speed control using H∞ techniques can be investigated for several applications.
Application | Relevance |
Electric Vehicles | Traction motor speed regulation |
Industrial Automation | Controlled-speed motor drives |
Robotics | Accurate actuator and motor speed control |
Electric Pumps | Adjustable-speed pump operation |
Cooling Fans | Speed regulation under varying demands |
Electric Compressors | Motor drive performance control |
Aerospace Systems | Robust motor drive control studies |
Research and Education | System identification and robust controller design |
𝐖𝐡𝐲 𝐔𝐬𝐞 𝐇∞ 𝐂𝐨𝐧𝐭𝐫𝐨𝐥 𝐟𝐨𝐫 𝐁𝐋𝐃𝐂 𝐌𝐨𝐭𝐨𝐫𝐬?
H∞ control is particularly useful when motor performance must be evaluated under uncertainties and disturbances.
Its main advantages include:
A systematic framework for robust controller synthesis.
Ability to incorporate disturbance attenuation objectives.
Flexibility in defining desired speed-tracking performance.
Suitability for multi-objective feedback control design.
Compatibility with MATLAB-based control analysis and simulation.
However, H∞ controller design generally requires a suitable dynamic model and carefully selected weighting functions. Its superiority over PI, PID, or other control techniques must be established through comparative testing rather than assumed.
𝐂𝐨𝐧𝐜𝐥𝐮𝐬𝐢𝐨𝐧
The Speed Control of BLDC Motor Using H Infinity Controller in MATLAB demonstrates an effective approach to closed-loop motor speed regulation using system identification and robust control synthesis.
The identified BLDC motor model is used to design an H∞ controller, which regulates the controlled DC voltage based on the difference between reference and actual motor speed.
In the demonstrated simulation, the motor successfully tracks a speed change from 3000 RPM to 2000 RPM with smooth transient behavior and no significant visible overshoot.
This implementation provides a useful foundation for students, researchers, and engineers studying BLDC motor drives, MATLAB/Simulink modeling, system identification, and advanced feedback control techniques.
Explore more MATLAB/Simulink tutorials and motor control simulations at LMS Solution.



Comments