File Exchange

image thumbnail

Speed Control of Brush-less DC motor

version (20.1 KB) by Syed Abdul Rahman Kashif
This model presents speed control of BLDC motor.


Updated 03 Jun 2013

View License

The model presents speed control of brushless DC motor. There is complete dynamic model of brushless DC motor. Actual speed of motor is compared with reference speed to control three phase inverter to adjust the terminal voltage. This model of BLDC motor can be used in sensorless control of BLDC motor as well.

Cite As

Syed Abdul Rahman Kashif (2021). Speed Control of Brush-less DC motor (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (32)

Nafees Ahamad

It is working.

Howard Labido

Thanks buddy.
I am running the code on my plastic crusher. Is torque a feedback control variable?

Thomas Vermet

We would like to use this system to control a BLDC motor avoiding the sensors and just using a back-emf observer to define the rotor position. We are using a Solidworks assembly to modelise the motor but we don’t succed in linking the solidwork assembly to the system of « Brush-less control of DC motor » given here. Can someone help us?
If you want you can write me at

thaethae mon

sir while running this model a error is occurred like this"undefined function or method emfg for input arguments type double" please help me to rectify this error. mail me on

fuad sharaf

rasool alturfi

Yi Liu

sina ghadiri

rasool alturfi

Sam Maxi

akram h.a

do you use fuzzy logic method in this model please tell me

ajith madhu

how to working matlab

keltoum loukal

keltoum loukal

aqib wazeer

ramil p p

hai ,

i have a quick doubt. What kind of commutation you have used here?

Jain Mundassery

ankit rawat

hello sir, your model give a great insight to state space representation of the machine can you please tell, why this model should preferred over phase variable model of machine? and different parameter values you considered for the machine?

vipul waghmare

respected sir ,
am interested in reference file of speed control of bldc motor how can i get it please reply me

Vanchinathan K


ravi biradar

Mahmoud Hassanien

please can you help me with fully m-file program for control of BLDC motor.

naidu talada


ahmet nas

I wonder how you could obtain Ia current by using Vab and Vbc voltage values. Please kindly let me know this approximation.



hello ,
I am working with a PWM-Duty cycle controlled model of BLDC. I saw your model and I am confused by the way you have modelled it. the input to the BLDC block is supposed to be a 3 phase DC voltage and you have made it with a 2-line DC input.
will you be kind enough to explain me and help me understand the idea behind this model.

thanking you


hi sir
Just wondering, what is the physical parameters for this example that you used?

Anandraj selva

Sir, i am just beginner. i went throught the simulation but i dont know what controller you have used.. have you used fuzzy logic PI controller technique?

Rashed Meer

Just wondering why you have used the word "elseif" in your code.


Here is the code of function emfg. It works fine at Matlab 2012/2013.

function y=emfg(u)
if (u>-180)&&(u<=-120)


sir while running this model a error is occurred like this"undefined function or method emfg for input arguments type double" please help me to rectify this error. mail me on thanx

ahsan Kashif

Very good work.

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!