0% found this document useful (0 votes)
41 views53 pages

Final Project Report

This document is a project report on speed control of a brushless DC motor using a PI controller. It was submitted by 4 students to fulfill the requirements of their Bachelor of Technology degree. The report includes an introduction to the problem, literature review on previous work, description of the proposed system model including the BLDC motor, voltage source inverter and PI controller. It then describes the methodology, software and hardware design, simulation results showing speed control both with and without the PI controller. The results demonstrate effective speed control of the BLDC motor using the PI controller.

Uploaded by

Gokul Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views53 pages

Final Project Report

This document is a project report on speed control of a brushless DC motor using a PI controller. It was submitted by 4 students to fulfill the requirements of their Bachelor of Technology degree. The report includes an introduction to the problem, literature review on previous work, description of the proposed system model including the BLDC motor, voltage source inverter and PI controller. It then describes the methodology, software and hardware design, simulation results showing speed control both with and without the PI controller. The results demonstrate effective speed control of the BLDC motor using the PI controller.

Uploaded by

Gokul Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 53

SPEED CONTROL OF BLDC MOTOR

USING PI CONTROLLER

Project Report
Submitted in partial fulfillment of the requirements for the award of Bachelor of

Technology Degree in Electrical and Electronics Engineering of the APJ Abdul

Kalam Technological University

submitted by

Akhil Johnson (TVE19EE018)

Anjali A R (TRV19EE013)

Gokul Krishna (TVE19EE051)

Sivaram R Kumar (TVE19EE108)

Guided by

Prof Julie T S

Dr Mayadevi N

DEPARTMENT OF ELECTRICAL ENGINEERING

COLLEGE OF ENGINEERING TRIVANDRUM

KERALA

December 2022
Declaration

We, undersigned hereby declare that the project report SPEED CONTROL OF

BLDC MOTOR USING PI CONTROLLER submitted for partial fullfillment of

the requirements for the award of degree of Bachelor of Technology of the APJ

Abdul Kalam Technological University, Kerala is a bonafide work done by us

under the supervision of Prof.Julie T S and Dr.Mayadevi N. This submission

represents our ideas in our own words and where ideas or words of others

have been included, we have adequately and accurately cited and referenced the

original sources. We also declare that we adhered to ethics of academic honesty

and integrity and have not misrepresented or fabricated any data or idea or fact

or source in our submission. We understand that any violation of the above will

be a cause for disciplinary action by the institute and/or the University and can

also evoke penal action from the sources which have thus not been properly cited

or from whom proper permission has not been obtained. This report has not been

previously formed as the basis for the award of any degree, diploma or similar

title of any other University

Place : Thiruvananthapuram Akhil Johnson

Date : 12/12/2022 Anjali A R

- Gokul Krishna

- Sivaram R Kumar

2
DEPARTMENT OF ELECTRICAL ENGINEERING

COLLEGE OF ENGINEERING TRIVANDRUM

THIRUVANANTHAPURAM - 16,

Certificate

This is to certify that this project report entitled “SPEED CONTROL

OF BLDC MOTOR USING PI CONTROLLER” is a bonafide record of

the project work done by Akhil Johnson, Anjali A R, Gokul Krishna,

Sivaram R Kumar of 8th semester B.Tech under our guidance towards

the partial fulfillment of the requirements for the award of B.Tech Degree

in Electrical and Electronics Engineering of the APJ Abdul Kalam

Technological University of Kerala during the year 2023.

Prof. Julie T S Dr. Mayadevi N


Assistant Professor, Guide Associate Professor, Project coordinator
Dept. of Electrical Engg. Dept. of Electrical Engg.
College of Engineering College of Engineering
Trivandrum Trivandrum

Dr. Mini V P Dr. Lakshmi A


Professor and UG Coordinator Professor and Head
Dept. of Electrical Engg. Dept. of Electrical Engg.
College of Engineering College of Engineering
Trivandrum Trivandrum
Acknowledgement

First of all, we would like to express our deepest appreciation and gratitude to

our guide Prof. Julie T S, Assistant Professor, Guide and Dr Mayadevi

N, Associate Professor, Guide, Department of Electrical Engineering, College of

Engineering Trivandrum for all their guidance and support. We could not have

completed this project if it wasn’t for their constant guidance and advice.

We gratefully acknowledge, Dr.Lakshmi A, Head of the Department,

Department of Electrical Engineering, for his wholehearted cooperation and

encouragement.

We express our gratitude to Dr. Mini V. P , Professor and UG Coordinator,

Department of Electrical Engineering, College of Engineering, Trivandrum, for all

necessary help extended to us during the evaluation process in doing the project

work.

We also acknowledge our gratitude to all other members of faculty in the

Department of Electrical Engineering, our family members and friends for their

wholehearted cooperation and encouragement. Above all, we thank GOD

Almighty, without whose help we wouldn’t have reached this far and completed

the work.

Akhil Johnson

- Anjali A R

- Gokul Krishna

- Sivaram R Kumar
Abstract

The use of brushless DC motors (BLDC) is common in appliances

like refrigerators, ceiling fans,air conditioners etc. Compared to

brushed DC motors, they have additional advantages. The drive

system implementation, which needs to be efficient and effective,

is the main problem. Therefore, it is necessary to implement an

improved technique for the speed control of BLDC motor.The aim

of the project is to use MATLAB software to study speed control

of BLDC motor using a PI controller. Then speed control of motor

is practically implemented using PWM technique. The proposed

system consist of PI controller, controlled voltage source, voltage

source inverter. Gate pulses are generated from the output of hall

effect sensors. The proportional and integral values of PI controller

are determined using Ziegler-nichols tuning method. By adjusting

the gains of proportional and integral terms, the system can be

tuned for optimal performance. Speed control of BLDC motor using

PWM technique uses ATmega328P micro-controller to generate PWM

pulses which control gates. The speed of the motor is adjusted using

a potentiometer.When loaded the change in speed of the motor is

detected using a speed sensor.


Contents

Abstract i

List of Figures iv

List of Tables vi

1 Introduction 1

1.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

1.2 Problem Statement . . . . . . . . . . . . . . . . . . . . . . . . . . 2

1.3 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

1.4 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

1.5 Outline of the Report . . . . . . . . . . . . . . . . . . . . . . . . . 3

2 Literature Review 4

3 Proposed System Model 7

3.1 System Description . . . . . . . . . . . . . . . . . . . . . . . . . . 7

3.1.1 Working of BLDC Motor . . . . . . . . . . . . . . . . . . . 9

3.1.2 Voltage Source Inverter . . . . . . . . . . . . . . . . . . . . 12

3.1.3 PI Controller . . . . . . . . . . . . . . . . . . . . . . . . . 14

4 Methodology 16

4.1 Design of Voltage Source Inverter . . . . . . . . . . . . . . . . . . 16

4.2 Design of PI Controller . . . . . . . . . . . . . . . . . . . . . . . . 16

i
4.3 Design of Commutation circuit . . . . . . . . . . . . . . . . . . . 17

5 Software Design 18

5.1 System Modelling in MATLAB . . . . . . . . . . . . . . . . . . . 18

5.1.1 Controller Parameters . . . . . . . . . . . . . . . . . . . . 18

5.1.2 Speed control . . . . . . . . . . . . . . . . . . . . . . . . . 19

5.2 Simulation Details . . . . . . . . . . . . . . . . . . . . . . . . . . 20

5.2.1 Matlab simulation of the proposed system . . . . . . . . . 20

5.3 Speed control of BLDC motor drive without PI controller . . . . . 21

5.3.1 Back emf Determination Circuit . . . . . . . . . . . . . . . 22

5.3.2 Gate signal Generation Circuit . . . . . . . . . . . . . . . 23

6 Hardware Design 24

6.1 Developed Prototype . . . . . . . . . . . . . . . . . . . . . . . . . 24

6.1.1 System Design in Eaglecad . . . . . . . . . . . . . . . . . . 24

6.2 Design of Voltage Source Inverter . . . . . . . . . . . . . . . . . . 25

6.3 Generation of PWM pulse using Microcontroller . . . . . . . . . . 25

7 Simulation and Results 27

7.1 Simulink model of BLDC motor drive without PI Controller . . . 27

7.2 Simulink model of the Proposed System . . . . . . . . . . . . . . 28

7.3 Results obtained after simulation . . . . . . . . . . . . . . . . . . 29

7.3.1 Simulation results obtained without using PI controller . . 29

7.3.2 Rotor Speed . . . . . . . . . . . . . . . . . . . . . . . . . . 29

7.3.3 Electromagnetic torque . . . . . . . . . . . . . . . . . . . . 31

7.3.4 Stator Current . . . . . . . . . . . . . . . . . . . . . . . . 33

7.3.5 Simulation results obtained using PI controller . . . . . . . 35

7.3.6 Rotor Speed . . . . . . . . . . . . . . . . . . . . . . . . . . 35

7.3.7 Electromagnetic torque . . . . . . . . . . . . . . . . . . . . 37

7.3.8 Stator Current . . . . . . . . . . . . . . . . . . . . . . . . 39

ii
8 Conclusion 41

References 42

iii
List of Figures

3.1 Speed Control of BLDC Motor Using PI Controller . . . . . . . . 8

3.2 Speed Control Of BLDC Motor Using PWM Technique . . . . . . 9

3.3 Disassembled View of a BLDC motor . . . . . . . . . . . . . . . . 10

3.4 Voltage Source Inverter Used in 120 degree Conduction Mode . . 12

3.5 Ideal current, back-EMF and line voltage difference waveforms of

a VSI fed BLDC motor drive . . . . . . . . . . . . . . . . . . . . . 13

3.6 Controller parameters . . . . . . . . . . . . . . . . . . . . . . . . . 15

5.1 Speed Control using PI controller . . . . . . . . . . . . . . . . . . 19

5.2 Simulink model of speed control of BLDC motor using hall effect

sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

5.3 Simulink model of speed control of BLDC motor without PI controller 21

5.4 Simulink block used to obtain back emf signals from hall effect

signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

5.5 Simulink block used to obtain gate signals from back emf signals . 23

6.1 Circuit Design in Eaglecad . . . . . . . . . . . . . . . . . . . . . . 24

7.1 Simulink Model of BLDC Motor Drive Without PI Controller . . 27

7.2 Complete Simulation Diagram of the Proposed System . . . . . . 28

7.3 Rotor speed vs time graph under no load condition . . . . . . . . 29

7.4 Rotor speed vs time graph under full load condition . . . . . . . . 30

7.5 Torque vs time graph under no load condition . . . . . . . . . . . 31

iv
7.6 torque vs time graph under full load condition . . . . . . . . . . . 32

7.7 current vs time graph under no load condition . . . . . . . . . . . 33

7.8 current vs time graph under full load condition . . . . . . . . . . 34

7.9 Rotor speed vs time graph under no load condition . . . . . . . . 35

7.10 Rotor speed vs time graph under full load condition . . . . . . . . 36

7.11 Torque vs time graph under no load condition . . . . . . . . . . . 37

7.12 torque vs time graph under full load condition . . . . . . . . . . . 38

7.13 current vs time graph under no load condition . . . . . . . . . . . 39

7.14 current vs time graph under full load condition . . . . . . . . . . 40

v
List of Tables

3.1 Switching Table for VSI . . . . . . . . . . . . . . . . . . . . . . . 13

5.1 Truth table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

5.2 Truth table for gate signals . . . . . . . . . . . . . . . . . . . . . . 23

6.1 Hardware equipment details . . . . . . . . . . . . . . . . . . . . . 26

vi
Chapter 1

Introduction

1.1 Background

Conventional motor drives are widely used for residential and commercial

applications. BLDC motors can be used instead of conventional motors

which have higher power conversion efficiency. They are very popular in EV

applications. Due to the nonlinear characteristics of the system, the performance

of motor controller is degraded. The main drawback is its drive system

implementation which should be effective and efficient. So implementation of

a better technique for the speed control of BLDC motor is required. A reliable

and efficient controller can be selected for the efficient working of BLDC motor

by analysing the performance of controllers.

The proportional-integral(PI) is the most widely used controller because of

its simple algorithm and stability. But PI controller cannot be applied for

controlling nonlinear systems. There it will be difficult to decide the P, I

parameters and should hardly adapt to time-varying characteristics during a large

selection. The PI controller has some drawbacks such as high starting overshoot,

sensitivity to controller gains Kp and Ki and sluggish response due to sudden

load changes. PWM technique can be used for the speed control of BLDC motor

1
which overcomes these difficulties. This technique has been widely used in power

converter control. PWM control offers a simple method for controlling the analog

system with processors digital output.

1.2 Problem Statement

The aim of this project is to design and implement a PI controller for controlling

the speed of a BLDC. A BLDC motor working under no load condition maintains

a constant speed throughout its operation. When load is applied a dip in the speed

can be noticed and it will not regain it later. The proposed system along with

the PI controller helps to regain the speed even after the application of load.

1.3 Motivation

Speed control of BLDC motor is very crucial in many applications. When load

is applied a sudden dip in the speed-time graph of the motor can be noticed.

Unless a controller is implemented the motor will not gain the speed thereafter.

The speed control is required to influence the rotational speed of motors and

machinery. This has a direct effect on the operation of the machine and is crucial

for the quality and the outcome of the work. The proposed system with PI

controller helps the motor to maintain a constant speed throughout its operation

eventhough a load is applied. The drawbacks of using a PI controller can be

overcome with PWM technique which is more better and simple. Here PWM

pulses generated by a microcontroller board controls the switching of the inverter

and the speed control can be done by adjusting a potentiometer.

2
1.4 Objectives

• To design and implement a PI controller for a BLDC motor.

• To control the speed of the BLDC motor using the PI controller.

1.5 Outline of the Report

Chapter 1 gives an introduction about the project. Literature survey is conducted

in chapter 2. Chapter 3 gives an idea about the proposed system model.

Methodology of the project is explained in chapter 4. Software and hardware

implementations are included in chapter 4 and 5 respectively. Results and

discussions are conducted in chapter 7 and the report is concluded in chapter

8.

3
Chapter 2

Literature Review

Speed control of Brushless DC (BLDC) motors is a crucial aspect in various indus-

trial applications. The ability to precisely control the motor’s speed contributes

to improved performance, efficiency, and overall system reliability. Extensive

research has been conducted to develop effective speed control techniques for

BLDC motors, leading to the emergence of various approaches and methodologies.

One common approach in speed control of BLDC motors is the Proportional-

Integral-Derivative (PID) control technique. In [2], the authors present a study

on the PID control of BLDC motors, highlighting its effectiveness in achieving

accurate speed regulation. The study discusses the design and implementation

of a PID controller and demonstrates its ability to maintain speed under varying

load conditions. The PID control technique provides a simple yet efficient method

for achieving stable speed control in BLDC motors.

Fuzzy logic control is another widely explored method for speed control of

BLDC motors. In [4], the authors propose a PI and Fuzzy Logic Controller (FLC)

approach for speed control. The combination of PI and FLC aims to improve the

motor’s response and performance in terms of speed regulation and disturbance

rejection. The paper presents simulation results showcasing the effectiveness of

the PI-FLC approach in achieving accurate speed control in BLDC motors.

4
In [3],the author explores the application of PID control to brushless DC

motors. The authors provide an overview of PID control and discuss its relevance

in regulating motor speed. They propose a PID control algorithm for brushless

DC motors and conduct experiments to evaluate its performance. The paper

concludes by emphasizing the effectiveness of PID control in improving the speed

regulation of brushless DC motors.

Additionally, the utilization of model-based control approaches has shown

promise in speed control of BLDC motors. In [1], the authors propose the use of

an Extended Kalman Filter (EKF) algorithm for speed estimation and control.

The EKF algorithm incorporates motor models and measurements to estimate

the motor speed accurately, enabling effective closed-loop control. The paper

provides experimental results highlighting the improved speed control achieved

through the EKF-based approach.

Furthermore, several papers discuss the comparison and evaluation of different

speed control strategies for BLDC motors. In [5], a comparative analysis

of various control techniques, including PID, FLC, and adaptive control, is

presented. The study assesses the performance and robustness of each approach

in terms of speed control accuracy, transient response, and disturbance rejection.

Such comparative analyses provide valuable insights into the strengths and

limitations of different control strategies, aiding researchers and practitioners in

selecting appropriate techniques for specific applications.

These advancements in speed control techniques for BLDC motors showcase

the continuous efforts to enhance performance and efficiency in various industrial

applications. The integration of advanced control strategies, optimization algo-

rithms, and machine learning techniques offers new avenues for achieving precise

and adaptive speed control. By leveraging these advancements, researchers and

practitioners can further optimize BLDC motor systems, leading to improved

overall performance and energy efficiency.

5
In conclusion, the literature review highlights the extensive research conducted

in the field of speed control for BLDC motors. Various control techniques,

including PID control, fuzzy logic control, ANN-based control, model-based

control, optimization algorithms, and machine learning approaches, have been ex-

plored. Comparative analyses and investigations into different control strategies

contribute to a comprehensive understanding of their strengths and limitations.

These advancements provide valuable insights for designing efficient and reliable

speed control systems for BLDC motors in diverse industrial applications.

6
Chapter 3

Proposed System Model

3.1 System Description

The proposed system consist of a PI controller, controlled voltage source, voltage

source inverter, hall sensors and BLDC motor. PI controller minimizes the error

between the actual output, which needed to be controlled, and the desired output,

which is called the set point. The difference between the reference speed and the

current rotor speed is the error. This error signal is fed as the input to the PI

controller. PI controller uses this error signal to adjust the output voltage of

the controlled voltage source. The proportional term of PI controller ensures

that the system responds quickly to changes in speed, while the integral term

helps to eliminate steady-state error. By adjusting the gains of proportional and

integral terms, the system can be tuned for optimal performance. The Hall effect

sensor is used to sense the position of rotor and provide feedback to the controller.

Commutation signals are generated using the output from the hall effect sensors.

These commutation signals are used to drive the gates of VSI.

7
Figure 3.1: Speed Control of BLDC Motor Using PI Controller

In the hardware model, the limitations of using a PI controller is overcomed using

PWM technique. The PWM signal is generated by the microcontroller board

using its digital output pins. The duty cycle of the PWM signal is controlled by

adjusting the potentiometer. The Arduino block in the model is used to interface

with the Arduino board and control the digital output pins. The output of the

Arduino block is the PWM signal, which is then fed to the BLDC motor driver to

control the speed of the motor. The BLDC motor driver block is used to interface

with the motor and control its speed based on the duty cycle of the PWM signal.

The input to the BLDC motor driver block is the PWM signal, and the output

is the actual speed of the motor, which can be measured using a speed sensor or

estimated using a motor model.

8
Figure 3.2: Speed Control Of BLDC Motor Using PWM Technique

3.1.1 Working of BLDC Motor

Brushless DC (BLDC) motors are used in many applications such as industrial,

automotive, aerospace etc. They have several advantages compared to brushed

DC motors. They are electronically commutated. Due to the absence of

mechanical commutator, they have low maintenance and also have a high power

density, hence makes them ideal for high torque-to weight ratio applications. On

comparing with induction motors, they have lower inertia which leads to faster

dynamic response to reference commands. BLDC motors are more effficient due

to the presence of permanent magnets which resultd in zero rotor losses.

Conventionally, BLDC motors are considered as permanent magnet syn-

chronous motors with trapezoidal back emf waveform. In the current control

loop PI controllers are used. There are two types of permanent magnet BLDC

motors. The BLDC motor has a trapezoidal back emf waveform. Another one is

that with sinusoidal back emf waveform called as permanent magnet synchronous

motor (PMSM).

9
Figure 3.3: Disassembled View of a BLDC motor

The stator windings of BLDC motors are similar to those used in polyphase

permenant motors. Unlike other motors the rotor of BLDC motors are permanent

magnents and has a fixed stator winding. Three seperate voltages are fed to the

three different stator windings.

Conventional brushed type DC motor, where the brushes make mechanical

contact with commutator on the rotor in order to form an electric path between

a DC electric source and rotor armature windings. But, BLDC motor employs

electrical commutation with permanent magnet rotor and a stator with a sequence

of coils. In this motor, permanent magnet which is the field pole, rotates and

the current carrying conductors stay fixed. The armature coils are switched

electronically by transistors or silicon controlled rectifiers at the correct rotor

position. This is made possible in such a way that armature field is in space

quadrature with the rotor field poles. Hence due to the force acting on the rotor

it begins to rotate. Hall effect sensors or rotary encoders are most commonly used

to sense the position of the rotor in BLDC motors. These sensors are positioned

around the stator.

The rotor position feedback from the sensor helps to determine when to switch

the armature current. The commutator arrangement and brushes in a DC motor

10
are eliminated because of this electronic commutation. Hence more reliable and

less noisy operation is achieved. Due to the absence of brushes, BLDC motors are

capable to run at high speeds. The efficiency of BLDC motors is typically around

85 to 90 percent, whereas brushed type DC motors have an efficiency around 75

to 80 percent.

The working principle of a BLDC motor is similar to that of a conventional

DC motor, i.e., the Lorentz force law. The law states that, whenever a current

carrying conductor placed in a magnetic field, it experiences a force. As a result

of this reaction force, the magnet will experience an equal and opposite force. In

case of a BLDC motor, the current carrying conductor is stationary while the

permanent magnet moves. When the stator coils are electrically switched by a

supply source, it becomes electromagnet and starts producing a uniform field in

the air gap. Since the source of supply is DC, switching makes to generate an AC

voltage waveform with trapezoidal shape. The rotor continues to rotate due to the

force of interaction between electromagnet stator and permanent magnet rotor.

Motor stator is excited based on different switching states. The corresponding

windings are energized as North and South poles, with the switching of winding

as High and Low signals. The permanent magnet rotor with North and South

poles align with stator poles causing motor to rotate.

The motor produces torque because of the development of attraction forces

and repulsion forces between the poles of permanent magnets. Thus the motor

moves in a clockwise direction. The continuous rotation of the motor depends

on the switching sequence around the coils. The hall-effect sensors gives shaft

position feedback to the electronic controller unit. Based on this signal from

the sensor, the controller decides particular coils to energize. Hall-effect sensors

generate Low and High level signals whenever rotor poles pass near to it. These

signals determine the position of the shaft.

11
3.1.2 Voltage Source Inverter

There are many applications which requires a wide range of speed and torque

control for the electric motors. The DC machine fulfils these requirements, and

hence it needs periodic maintenance. The AC machines, like induction motors,

and brushless permanent magnet motors do not have brushes, and their rotors

are robust because commutators do not exist. So that it requires,very low

maintenance. This also increases the power-to-weight ratio and the efficiency.

A voltage source inverter (VSI) is interfaced between the DC source and the

motor. The inverter is operated in the 120° conduction mode, with only two

phases conducting at any given point in time.

Figure 3.4: Voltage Source Inverter Used in 120 degree Conduction Mode

The flat portion of the trapezoidal back EMF waveform is 120° and hence

square-wave currents are forced in this region to produce torque. To achieve this,

the rotor position has to be sensed and is required for every commutation instant.

That means each 60 electrical degrees or 6 times in an electrical cycle.

12
Figure 3.5: Ideal current, back-EMF and line voltage difference waveforms of a
VSI fed BLDC motor drive

Voltage source works in 120 degree conduction mode based on the switching table

as follows: Usually this position determination is done by hall-effect sensors.

Line voltage difference Type of zero crossing Turn-on switches


Vab−bc +Ve SC +, SB -
Vab−bc -Ve SB +, SC -
Vbc−ca +Ve SA +, SC -
Vbc−ca -Ve SC +, SA -
Vca−ab +Ve SB +, SA -
Vca−ab -Ve SA +, SB -

Table 3.1: Switching Table for VSI

However, due to the poor ambience in the bore-well, a hall-effect position sensor-

based control of BLDC motor is very unreliable. In the proposed control scheme,

a position sensorless algorithm is used for the commutation of the motor without

the need of a hall-effect position sensor. A sensing circuit is used to obtain the

position information using a back EMF-based method. This strategy is based

on the indirect sensing of the phase back-EMF for determination of the exact

13
commutation instants. The three phase voltages of a BLDC motor are given as:

(3.1)

where ia , ib , ic , Ra , Rb , Rc , La , Lb , Lc , and ea , eb , ec are the phase current,

resistance, inductance, and back-EMF, respectively. The line voltages are given

as:

(3.2)

These line voltages are further subtracted to obtain the line voltage differences.

Hence, the difference of line voltages Vab and Vbc are given as:

(3.3)

It is assumed that the currents in the phases a and c are equal and opposite.

i.e., ia = -ic . Because the current in phase B is zero. It is evident that the line

voltage difference gives the amplified and inverted value of phase b back-EMF

in the shaded region. Similarly, the zero crossings of phase a and c are obtained

from the line voltage differences Vca−ab and Vbc−ca , respectively.

3.1.3 PI Controller

A Proportional-Integral (PI) controller is a type of feedback control system that

is commonly used to regulate a process or system. It combines proportional and

integral control actions to achieve the desired control response.

14
The control output of a PI controller is calculated using the following equation:

(3.4)

where u(t) is the control output at time t, Kp is the proportional gain, which

determines the strength of the proportional action. e(t) is the error, calculated

as the difference between the desired setpoint and the measured process variable.

KI is the integral gain, which determines the strength of the integral action.

The proportional action is proportional to the current error and helps to

correct the immediate deviation from the setpoint. A higher Kp value increases

the corrective action for a given error.

The integral action is proportional to the accumulated error over time. It

helps to eliminate steady-state errors and address any systematic biases in the

system.The integral continuously accumulates the error and drives the control

output based on the cumulative error.

The selection of Kp and KI gains is crucial in achieving a well-tuned PI

controller. The gains should be chosen based on the characteristics of the system,

such as its dynamics, response time, and stability requirements. Trial and error

or more advanced tuning methods like Ziegler-Nichols method or model-based

optimization can be used for gain selection.

Figure 3.6: Controller parameters

15
Chapter 4

Methodology

4.1 Design of Voltage Source Inverter

Designing a Voltage Source Inverter for the speed control of a BLDC motor

involves considering of several parameters.The operating voltage range, maximum

current, and speed control range for the BLDC motor is considered along with

the desired control accuracy, response time, and system efficiency.A three-phase

bridge inverter is selected as the VSI topology.The power component, MOSFETs

that have the necessary voltage and current ratings for the motor are selected.

Power losses, thermal factors and switching speed have to be considered while

selecting the power components. A gate driver circuit to provide proper voltage

and current levels to switch the power devices efficiently is designed. The gate

drive voltage, gate resistance, and gate drive current requirements are considered

for its selection.

4.2 Design of PI Controller

The desired speed control objectives, such as speed accuracy, response time,

and stability requirements are taken into consideration while designing a PI

controller.An appropriate proportional gain Kp in order to achieve the desired

16
speed response and stability is choosen. The integral gain Ki should be chosen

to minimize steady-state error while maintaining stability. PI controller can be

tuned using Ziegler-Nichols method.

4.3 Design of Commutation circuit

In a BLDC motor the motor phases are commutated to achieve rotation. The

commutation sequence and timing required to energize the appropriate motor

phases at the correct moments are determined. Commutation tables are used to

generate commuation signals. The commutation tables are reduced using K-map

and the digital circuit for generating the appropriate commutation signals are

realised.

17
Chapter 5

Software Design

5.1 System Modelling in MATLAB

In this project a Proportional and Integral (PI) controller is used as the speed

controller. The actual and reference speed of the motor is compared and the

error is passed to the PI controller to generate the current reference. This current

reference is further fed to the current controller for controlling the current.

A BLDC motor controller without a PI controller is initially created. The

speed-time characteristics, however, exhibit an abrupt dip when a load is applied.

After that, the motor is unable to return to its initial speed. Then, a motor with

PI controller is designed. As a result the motor operates at a constant speed even

when a load is applied.

5.1.1 Controller Parameters

The PI controller can be tuned for optimal performance using Ziegler-nichols

tuning method. The Ziegler-nichols approach is widely used for tuning P, PI,

and PID controllers. The integral and differential gains are initially set to zero

in this procedure, and the proportional gain is subsequently increased until the

system becomes unstable. Kmax is the value of Kp at the point of instability,

18
and fo is the oscillation frequency. In order to set the integral and differential

gains as a function of fo , the approach first backs off the proportional gain by

a specific amount. The transfer function of the basic form of a PI controller

is, C(s) = Kp + Ki /s where Kp is the proportional gain and Ki is the integral

gain. The system becomes unstable if the proportional factor is too high and will

not be able to reach the set point if it is too small. So the proportional factor

of the controller is tuned to maintain the speed at a desired level. On the PI

controller the proportional action increases the loop gain and makes the system

less sensitive to system parameter variations. The integral action eliminates the

steady state error.

5.1.2 Speed control

Figure 5.1: Speed Control using PI controller

The speed control of the motor is achieved using PI controller. The speed

controller is designed. A reference speed (required rotor speed) and speed of

motor at every instant is measured the difference between the rotor speed and

the reference is the error. The error is given as the input of the PI controller.

19
5.2 Simulation Details

5.2.1 Matlab simulation of the proposed system

Figure 5.2: Simulink model of speed control of BLDC motor using hall effect
sensor

The figure 5.1 shows the simulink model of a BLDC motor control drive using

hall effect sensor.The model consist of a DC supply, BLDC motor, PI controller

and hall-effect sensor.

20
5.3 Speed control of BLDC motor drive without

PI controller

Figure 5.3: Simulink model of speed control of BLDC motor without PI controller

21
5.3.1 Back emf Determination Circuit

Figure 5.4: Simulink block used to obtain back emf signals from hall effect signals

In figure 5.2 hall effect signals from the motor are used to obtain back emf signals

using the truth table given below.

ha hb hc emfa emfb emfc


0 0 0 0 0 0
0 0 1 0 -1 +1
0 1 0 -1 +1 0
0 1 1 -1 0 +1
1 0 0 +1 0 -1
1 0 1 +1 -1 0
1 1 0 0 +1 -1
1 1 1 0 0 0

Table 5.1: Truth table

22
5.3.2 Gate signal Generation Circuit

Figure 5.5: Simulink block used to obtain gate signals from back emf signals

The voltage source inverter is controlled by the gate signals obtained from the

block shown in figure 5.3.The gate signals are obtained from back emf signals

using the truth table given below.

emfa emfb emfc S1 S2 S3 S4 S5 S6


0 0 0 0 0 0 0 0 0
0 -1 +1 0 0 0 1 1 0
-1 +1 0 0 1 1 0 0 0
-1 0 +1 0 1 0 0 1 0
+1 0 -1 1 0 0 0 0 1
+1 -1 0 1 0 0 1 0 0
0 +1 -1 0 0 1 0 0 1

Table 5.2: Truth table for gate signals

23
Chapter 6

Hardware Design

6.1 Developed Prototype

6.1.1 System Design in Eaglecad

Figure 6.1: Circuit Design in Eaglecad

24
6.2 Design of Voltage Source Inverter

Selection of MOSFETS

Rating of the motor selected is 24V,350W therefore the Current rating of the

motor is equal to 15A. The drain current of a mosfet determines which mosfet

should be used. The drain current of the motor selected should be greater than

1.5 times the starting current, where 1.5 is the safety factor.

Here starting current of the motor is 30A. Therefore the drain current of the

selected motor should be greater than 45A. The maximum value of drain current

of a IRF3205 mosfet is 110A when gate source voltage is 10V and temperature is

25 degree celcius. Therefore IRF3205 can be chosen as mosfets for VSI.

Gate driver IC’s are selected considering voltage and current requirements,

switching frequency, output drive strength, protection features, isolation require-

ments, package and layout considerations, application-specific considerations.

FAN7392N IC is chosen as the gate driver IC considering all the above mentioned

parameters.

6.3 Generation of PWM pulse using Microcon-

troller

To control the motor operation, the Arduino uses a combination of digital output

pins and the gate driver IC. The gate driver IC controls the gates of VSI and

control the direction and speed of the motor.The digital output pins AA1, AA2,

BB1, BB2, CC1, and CC2 of arduino are connected to the corresponding input

pins of the gate driver, which controls the motor phases. The specific sequence

of turning these pins on and off determines the rotation direction and speed of

the motor.

Analog pins recieves the potentiometer values that determines the delay

25
between each phase change, the speed of the motor can be controlled. A shorter

delay will result in a faster rotation, while a longer delay will slow down the

motor. This method simulates the effect of a PWM signal by controlling the

timing of the motor phases, achieving speed control without directly generating

a PWM signal.

Table 6.1: Hardware equipment details

Item Description
BLDC motor 24V,350 W
Mosfet IRF3205
Gate driver IC FAN7392N
Microcontroller ATmega328p
Potentiometer 100kb

26
Chapter 7

Simulation and Results

7.1 Simulink model of BLDC motor drive with-

out PI Controller

Figure 7.1: Simulink Model of BLDC Motor Drive Without PI Controller

27
7.2 Simulink model of the Proposed System

Figure 7.2: Complete Simulation Diagram of the Proposed System

28
7.3 Results obtained after simulation

7.3.1 Simulation results obtained without using PI con-

troller

7.3.2 Rotor Speed

Under no load condition

Figure 7.3: Rotor speed vs time graph under no load condition

The rated speed of the bldc motor is 1850 rpm. When the motor is simulated

under no load the speed of the bldc motor reaches 1850 rpm at the begining but

the speed suddenly dips to a lower value (1700 rpm). The rated speed of the

motor is never regained. The speed of the motor can be regained by using a PI

controller.

29
Under full load condition

Figure 7.4: Rotor speed vs time graph under full load condition

The rated speed of the bldc motor is 1850 rpm. When the motor is simulated

under no load the speed of the bldc motor reaches 1850 rpm at the begining but

the speed suddenly dips to a lower value (1700 rpm). A load of 4 N-m is applied

to the motor at 0.3 seconds the speed of the motor further reduces to 1500 rpm.

The desired speed of the motor is never regained. The desired speed of the motor

can be regained by usind a PI controller.

30
7.3.3 Electromagnetic torque

Under no load condition

Figure 7.5: Torque vs time graph under no load condition

A high initial value of rotor torque is observed at the begining. This high initial

value is due to the starting torque of motor. The starting torque of a BLDC

motor is generally 2-3 times of its rated torque. The value of torque decreases to

zero as the motor and remains zero untill the motor is loaded.

31
Under full load condition

Figure 7.6: torque vs time graph under full load condition

A high initial value of rotor torque is observed at the begining. This high initial

value is due to the starting torque of motor. The starting torque of a BLDC

motor is generally 2-3 times of its rated torque. The value of torque decreases to

zero as the motor and remains zero untill the motor is loaded. A load of 4 N-m

is applied at 0.3 seconds the value of torque increases to 4 N-m and remains at

that value untill the load is changed

32
7.3.4 Stator Current

Under no load condition

Figure 7.7: current vs time graph under no load condition

A high initial value of stator current is observed at the begining. The starting

current of the motor is generally 1.5 times its rated value. Since the motor is

operated at no load condition the value of stator current decreases to zero. The

value of stator current remains zero untill the motor is further loaded.

33
Under full load condition

Figure 7.8: current vs time graph under full load condition

A high initial value of stator current is observed at the begining. The starting

current of the motor is generally 1.5 times its rated value. A load of 4 N-m

is applied to the motor at 0.3 seconds as a result the value of stator current is

increased to its rated value.

34
7.3.5 Simulation results obtained using PI controller

7.3.6 Rotor Speed

Under no load condition

Figure 7.9: Rotor speed vs time graph under no load condition

The motor runs at its maximum speed of 1850 rpm. Since there is no load on

the motor when it is operating, its speed stays constant at its rated value during

operation. Until the motor is loaded, its speed is constant.

35
Under full load condition

Figure 7.10: Rotor speed vs time graph under full load condition

The speed control of the bldc motor is achieved using a PI controller.The reference

speed given is 1850 rpm.The speed of the motor is measured at real time and the

error value generated is given to the PI controller. The value of integral given 16

and proportonal is 0.013.After simulation the speed obtained was 1850 rpm. A

load of 4 N-m is applied at 0.3 seconds. when the load toque is applied the speed

reduces from 1850 rpm to 1700 rpm.The required speed (1850 rpm) is regained

at 0.31 seconds

36
7.3.7 Electromagnetic torque

Under no load condition

Figure 7.11: Torque vs time graph under no load condition

A high initial value of rotor torque is observed at the begining. This high initial

value is due to the starting torque of motor. The starting torque of a BLDC

motor is generally 2-3 times of its rated torque. The value of torque decreases to

zero as the motor and remains zero untill the motor is loaded.

37
Under full load condition

Figure 7.12: torque vs time graph under full load condition

A high initial value of rotor torque is observed at the begining. This high initial

value is due to the starting torque of motor. The starting torque of a BLDC

motor is generally 2-3 times of its rated torque. The value of torque decreases to

zero as the motor and remains zero untill the motor is loaded. A load of 4 N-m

is applied at 0.3 seconds the value of torque increases to 4 N-m and remains at

that value untill the load is changed.

38
7.3.8 Stator Current

Under no load condition

Figure 7.13: current vs time graph under no load condition

A high initial value of stator current is observed at the begining. The starting

current of the motor is generally 1.5 times its rated value. Since the motor is

operated at no load condition the value of stator current decreases to zero. The

value of stator current remains zero untill the motor is further loaded.

39
Under full load condition

Figure 7.14: current vs time graph under full load condition

A high initial value of stator current is observed at the begining. The starting

current of the motor is generally 1.5 times its rated value. A load of 4 N-m

is applied to the motor at 0.3 seconds as a result the value of stator current is

increased to its rated value.

40
Chapter 8

Conclusion

In this project report the speed control of bldc motor using a PI controller is

proposed. The suggested method is evaluated through simulating a test set up

in MATLAB for different loads. In the absence of PI controller a sudden dip in

speed is observed when a load is applied and it continue to run at a lower speed.

This has been rectified using a PI controller. By using a PI controller the bldc

motor regains its speed. High starting overshoot and sluggish response due to

sudden load changes is observed while using a PI controller. PWM technique for

the speed control of bldc motor can overcome these difficulties.

41
References

[1] U. Neethu and V. R. Jisha, “Speed control of brushless dc motor: A

comparative study,” in 2012 IEEE International Conference on Power

Electronics, Drives and Energy Systems (PEDES), pp. 1–5, 2012.

[2] P. Pillay and R. Krishnan, “Modeling, simulation, and analysis of permanent-

magnet motor drives. i. the permanent-magnet synchronous motor drive,”

IEEE Transactions on Industry Applications, vol. 25, no. 2, pp. 265–273,

1989.

[3] A. Saleh and O. Al-Mashakbeh, “Proportional integral and derivative control

of brushless dc motor,” European Journal of Scientific Research ISSN, vol. 35,

pp. 1450–216, 01 2009.

[4] V. R. Walekar and S. V. Murkute, “Speed control of bldc motor using pi

fuzzy approach: A comparative study,” in 2018 International Conference on

Information , Communication, Engineering and Technology (ICICET), pp. 1–

4, 2018.

[5] M. B. Haynes, T. P. Etheredge, M. C. Rigney, and T. Fronckowiak,

“Holographic simulation of synthetic battlefield environments,” in 2017

Winter Simulation Conference (WSC), pp. 4560–4561, 2017.

42

You might also like