top of page

Fuzzy Tuned PI Speed Control of BLDC Motor

Fuzzy Tuned PI Speed Control of BLDC Motor


𝐅𝐮𝐳𝐳𝐲 𝐓𝐮𝐧𝐞𝐝 𝐏𝐈 𝐒𝐩𝐞𝐞𝐝 𝐂𝐨𝐧𝐭𝐫𝐨𝐥 𝐨𝐟 𝐁𝐋𝐃𝐂 𝐌𝐨𝐭𝐨𝐫 is an intelligent MATLAB/Simulink model developed to achieve accurate and stable speed regulation under changing load and reference-speed conditions.

The system combines a conventional 𝐏𝐈 𝐜𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫 with a 𝐟𝐮𝐳𝐳𝐲 𝐥𝐨𝐠𝐢𝐜 𝐜𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫 that continuously adjusts the proportional and integral gains. This improves speed tracking, load-disturbance rejection and the overall dynamic response of the BLDC motor.


𝐈𝐧𝐭𝐫𝐨𝐝𝐮𝐜𝐭𝐢𝐨𝐧


Fuzzy Tuned PI Speed Control of BLDC Motor


Fuzzy Tuned PI Speed Control of BLDC Motor


Fuzzy Tuned PI Speed control of BLDC motor in MATLAB
₹5,000.00₹2,500.00
Buy Now

Brushless DC motors are widely used because of their:

  • High efficiency

  • Fast dynamic response

  • High power density

  • Low maintenance requirement

  • Reliable speed-control capability

However, a conventional PI controller with fixed gain values may not provide the same performance under all operating conditions. Changes in load torque, motor speed and operating points can affect the controller response.

The 𝐟𝐮𝐳𝐳𝐲-𝐭𝐮𝐧𝐞𝐝 𝐏𝐈 𝐜𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫 solves this limitation by adjusting the values of 𝐊𝐩 and 𝐊𝐢 according to the instantaneous speed error and its rate of change.


𝐒𝐲𝐬𝐭𝐞𝐦 𝐎𝐯𝐞𝐫𝐯𝐢𝐞𝐰


The MATLAB/Simulink model contains the following main sections:

  • Reference-speed input

  • Fuzzy-tuned PI speed controller

  • Controlled DC voltage source

  • Three-phase voltage source inverter

  • BLDC motor

  • Hall-sensor measurement

  • Hall-signal decoder

  • Gate-pulse generator

  • Speed-feedback loop

  • Voltage, current, torque and back-EMF measurement blocks


𝐌𝐚𝐢𝐧 𝐒𝐲𝐬𝐭𝐞𝐦 𝐏𝐚𝐫𝐚𝐦𝐞𝐭𝐞𝐫𝐬

Parameter

Value

BLDC motor power rating

1 kW

Rated motor speed

3000 rpm

Initial load torque

0 N·m

Applied load torque

3 N·m

Load application time

0.1 s

Fuzzy-controller inputs

2

Fuzzy-controller outputs

2

Approximate fuzzy-rule count

24

Inverter switches

6


𝐒𝐲𝐬𝐭𝐞𝐦 𝐂𝐨𝐦𝐩𝐨𝐧𝐞𝐧𝐭𝐬

Component

Main Function

Reference-speed block

Provides the required motor-speed command

Speed-feedback block

Measures the actual rotor speed

Fuzzy-tuned PI controller

Generates the required control signal

Controlled voltage source

Adjusts the inverter input voltage

Voltage source inverter

Supplies three-phase voltage to the motor

BLDC motor

Converts electrical energy into mechanical motion

Hall sensors

Detect rotor-position information

Decoder

Converts Hall signals into commutation information

Gate-pulse generator

Produces switching pulses for the inverter

Measurement blocks

Record voltage, current, speed, torque and back EMF


𝐖𝐨𝐫𝐤𝐢𝐧𝐠 𝐏𝐫𝐨𝐜𝐞𝐬𝐬


The complete speed-control process is performed in the following sequence:

  1. The required speed is entered through the reference-speed block.

  2. The actual BLDC motor speed is measured in rpm.

  3. The reference speed is compared with the measured speed.

  4. The difference between the two values is provided as the speed error.

  5. The fuzzy controller receives:

    • Speed error

    • Change in speed error

  6. Based on the fuzzy rules, the controller generates suitable values of:

    • Proportional gain 𝐊𝐩

    • Integral gain 𝐊𝐢

  7. The tuned PI controller produces the modulating signal.

  8. The modulating signal adjusts the DC voltage supplied to the inverter.

  9. The inverter generates the required three-phase voltage for the BLDC motor.

  10. The motor speed is continuously measured and returned to the controller through the feedback loop.


𝐇𝐚𝐥𝐥-𝐒𝐞𝐧𝐬𝐨𝐫 𝐃𝐞𝐜𝐨𝐝𝐢𝐧𝐠


The BLDC motor uses Hall sensors to identify the rotor position. Three Hall signals are obtained from phases A, B and C.

These signals are converted into back-EMF switching states through a decoder. The decoded signals are then used to generate the six inverter gate pulses.


𝐂𝐨𝐦𝐦𝐮𝐭𝐚𝐭𝐢𝐨𝐧 𝐏𝐫𝐨𝐜𝐞𝐬𝐬


  • Hall signals identify the rotor position.

  • The decoder converts the Hall pattern into phase information.

  • Each phase signal is compared with zero.

  • Positive and negative states are identified.

  • Six switching commands are produced for switches Q1 to Q6.

  • The inverter performs electronic commutation.

  • The required motor phases are energised in the correct sequence.

This electronic commutation eliminates the need for mechanical brushes and improves motor reliability.


𝐂𝐨𝐧𝐭𝐫𝐨𝐥 𝐒𝐭𝐫𝐚𝐭𝐞𝐠𝐲

The main advantage of the proposed controller is the real-time adjustment of PI gains.


𝐅𝐮𝐳𝐳𝐲 𝐂𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫 𝐈𝐧𝐩𝐮𝐭𝐬

Input

Description

Speed error

Difference between reference and actual speed

Change in error

Variation of the speed error between sampling intervals


𝐅𝐮𝐳𝐳𝐲 𝐂𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫 𝐎𝐮𝐭𝐩𝐮𝐭𝐬

Output

Purpose

Kp

Controls the immediate response to speed error

Ki

Reduces steady-state error through integral action

The fuzzy rule base determines suitable gain values for different operating conditions.

For example:

  • A large speed error requires stronger controller action.

  • A small speed error requires smoother correction.

  • A rapidly changing error requires careful gain adjustment.

  • A nearly zero error requires stable operation with minimum oscillation.


𝐖𝐡𝐲 𝐔𝐬𝐞 𝐅𝐮𝐳𝐳𝐲 𝐓𝐮𝐧𝐢𝐧𝐠?


A conventional PI controller uses fixed values of Kp and Ki. These fixed gains may work well at one operating point but may provide slower or more oscillatory responses under different conditions.

The fuzzy-tuned PI controller provides:

  • Adaptive gain adjustment

  • Improved speed tracking

  • Faster disturbance recovery

  • Reduced steady-state error

  • Better response during load changes

  • Stable operation over a wider speed range


𝐒𝐢𝐦𝐮𝐥𝐚𝐭𝐢𝐨𝐧 𝐓𝐞𝐬𝐭 𝐂𝐨𝐧𝐝𝐢𝐭𝐢𝐨𝐧𝐬

The controller is evaluated under load variation and reference-speed variation.

Test

Operating Condition

Purpose

Rated-speed test

Reference speed set to 3000 rpm

Verify rated-speed tracking

Load-disturbance test

Torque changes from 0 to 3 N·m at 0.1 s

Check disturbance rejection

Reduced-speed test

Speed command reduced from rated value

Evaluate low-speed tracking

Speed step-up test

Speed increased from approximately 1500 to 3000 rpm

Test acceleration and reference tracking


𝐌𝐞𝐚𝐬𝐮𝐫𝐞𝐝 𝐎𝐮𝐭𝐩𝐮𝐭𝐬

The model provides detailed observation of the electrical and mechanical responses.

Output Signal

Information Provided

DC-link voltage

Input voltage supplied to the inverter

Line-to-line voltage

Inverter output-voltage waveform

Stator current

Motor phase-current response

Back EMF

Motor electromagnetic voltage waveform

Rotor speed

Actual motor speed in rpm

Electromagnetic torque

Developed motor torque

Kp variation

Dynamic proportional-gain adjustment

Ki variation

Dynamic integral-gain adjustment

Controller output

Modulating signal supplied to the plant


𝐒𝐢𝐦𝐮𝐥𝐚𝐭𝐢𝐨𝐧 𝐑𝐞𝐬𝐮𝐥𝐭𝐬

𝐒𝐩𝐞𝐞𝐝 𝐑𝐞𝐬𝐩𝐨𝐧𝐬𝐞


The motor tracks the reference-speed command and reaches the required operating speed. During rated operation, the controller maintains the speed close to 3000 rpm.

When the reference speed changes:

  • The actual speed follows the new command.

  • The controller automatically changes Kp and Ki.

  • The motor accelerates or decelerates according to the reference.

  • The steady-state speed error is reduced.


𝐋𝐨𝐚𝐝-𝐓𝐨𝐫𝐪𝐮𝐞 𝐕𝐚𝐫𝐢𝐚𝐭𝐢𝐨𝐧


Initially, the motor operates without mechanical load. At 0.1 seconds, a load torque of 3 N·m is applied.

The simulation shows that:

  • The speed experiences only a temporary disturbance.

  • The electromagnetic torque increases to meet the load demand.

  • The controller restores the motor speed.

  • Stable operation is maintained after the disturbance.


𝐒𝐭𝐚𝐭𝐨𝐫 𝐂𝐮𝐫𝐫𝐞𝐧𝐭


The stator current changes according to the motor operating condition.

  • Higher current is observed during starting.

  • Current increases when load torque is applied.

  • The waveform settles after the transient period.

  • The current frequency changes with motor speed.


𝐁𝐚𝐜𝐤-𝐄𝐌𝐅 𝐑𝐞𝐬𝐩𝐨𝐧𝐬𝐞


The BLDC motor produces a trapezoidal back-EMF waveform.

When the motor speed changes:

  • Back-EMF frequency changes.

  • Back-EMF magnitude also varies.

  • Higher speed produces a higher-frequency waveform.

  • The waveform follows the electrical commutation sequence.


𝐄𝐥𝐞𝐜𝐭𝐫𝐨𝐦𝐚𝐠𝐧𝐞𝐭𝐢𝐜 𝐓𝐨𝐫𝐪𝐮𝐞


The electromagnetic torque contains a high starting transient because the motor must accelerate from rest.

After the motor reaches the desired speed:

  • Torque settles near the required operating level.

  • Torque rises when the external load is applied.

  • The developed torque balances the applied mechanical load.


𝐏𝐞𝐫𝐟𝐨𝐫𝐦𝐚𝐧𝐜𝐞 𝐒𝐮𝐦𝐦𝐚𝐫𝐲

Performance Condition

Observed Controller Response

Motor starting

Fast acceleration toward the reference speed

Rated-speed operation

Speed maintained near 3000 rpm

Sudden load application

Temporary disturbance followed by recovery

Reference-speed reduction

Controlled deceleration

Reference-speed increase

Accurate acceleration and tracking

Steady-state operation

Low speed error and stable response

Parameter variation

Kp and Ki adjusted by fuzzy logic


𝐊𝐞𝐲 𝐅𝐞𝐚𝐭𝐮𝐫𝐞𝐬


  • MATLAB/Simulink-based BLDC motor model

  • Fuzzy-assisted tuning of PI-controller gains

  • Hall-sensor-based rotor-position detection

  • Six-step electronic commutation

  • Voltage source inverter control

  • Closed-loop speed-feedback system

  • Variable reference-speed operation

  • Sudden load-torque testing

  • Dynamic Kp and Ki monitoring

  • Stator-current and back-EMF analysis

  • Rotor-speed and electromagnetic-torque analysis

  • Clear scope-based simulation outputs


𝐀𝐝𝐯𝐚𝐧𝐭𝐚𝐠𝐞𝐬


  • Better adaptability than a fixed-gain PI controller

  • Improved response under changing load conditions

  • Accurate tracking of variable speed commands

  • Reduced steady-state speed error

  • Faster disturbance compensation

  • Simple and understandable control structure

  • Suitable for MATLAB/Simulink learning and controller analysis


𝐀𝐩𝐩𝐥𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬


This BLDC motor speed-control system can support the study and development of:

  • Electric vehicle drive systems

  • Robotic actuators

  • Industrial automation systems

  • Electric pumps

  • Cooling fans and blowers

  • Conveyor systems

  • Aerospace actuators

  • Household appliances

  • Precision motion-control systems

  • Battery-powered electric drives


𝐖𝐡𝐨 𝐂𝐚𝐧 𝐔𝐬𝐞 𝐓𝐡𝐢𝐬 𝐌𝐨𝐝𝐞𝐥?


The model is suitable for:

  • Electrical engineering students

  • Power-electronics learners

  • Motor-control researchers

  • MATLAB/Simulink users

  • Control-system engineers

  • Electric-drive developers

  • Academic trainers and educators


𝐂𝐨𝐧𝐜𝐥𝐮𝐬𝐢𝐨𝐧


The 𝐅𝐮𝐳𝐳𝐲 𝐓𝐮𝐧𝐞𝐝 𝐏𝐈 𝐒𝐩𝐞𝐞𝐝 𝐂𝐨𝐧𝐭𝐫𝐨𝐥 𝐨𝐟 𝐁𝐋𝐃𝐂 𝐌𝐨𝐭𝐨𝐫 provides an effective method for improving the dynamic performance of a brushless DC motor.

By using speed error and change in error, the fuzzy controller continuously tunes the proportional and integral gains. The controller maintains the required speed during load disturbances and accurately tracks changes in the reference-speed command.

The MATLAB/Simulink model also provides detailed analysis of stator current, back EMF, rotor speed, electromagnetic torque, inverter voltage and controller-gain variation. It is a useful learning and simulation platform for understanding intelligent BLDC motor control, fuzzy logic, PI tuning and electronic commutation.

Comments


bottom of page