EPE  Vol.13 No.11 , November 2021
Comparative Study between the PID Regulator and the Fuzzy Regulator Applied to the Operation of a Brushless DC Motor
Abstract: This paper presents the results of research on speed regulation of a brushless DC motor. This is mainly a comparative study between a PID regulator and a fuzzy regulator applied to the operation of this type of engine in order to find the best control. The BLDC engine must operate under various speed and load conditions with improved performance and robust and complex speed control. Because of this complexity, the traditional PID command encounters difficulties in controlling the speed of a BLDC. Another control technique is currently developing and is producing good results. This is the fuzzy controller that handles process control problems, that is, managing a process based on a given set point per action on the variables that describe the process. To achieve the desired results, the brushless DC machine model will be studied. With the model obtained, both types of regulator will be tested. A synthesis of the observed comparison results will enable a conclusion to be drawn on the performance of the two types of regulators driving a BLDC (Brushless DC).

1. Introduction

Industrial processes require precise regulation of the speed of the drive motors. To achieve this objective, a control based on electronic semiconductor variators was used for the DC motors. This technique consisted of varying the speed in proportion to the voltage. Due to the complexity of maintaining DC motors, recent applications rarely use this system. Thanks to advances in electronics, the development of brushless motors is booming in many fields of application and for powers up to a few tens of kilowatts. These permanent magnet synchronous type motors eliminate the drawbacks associated with the collector of direct current motors, and their performance surpasses that of asynchronous motors [1].

In many industrial applications of BLDCs, it is essential to know certain physical parameters (speed, torque, position, current, etc.) for proper speed regulation. For this, it is therefore necessary to have recourse to a PID type control, fuzzy, variable speed drive... Through the existing research work in the literature, the PID control is probably the most widely used in industrial control direct current motors [2]. At the same time, the fuzzy logic control is a non-linear control having robustness properties. It is very interesting to explore its potential for controlling the brushless DC machine [3]. The main objective of this work is to compare the PID control to the fuzzy control for driving the brushless DC machine and thus determine the most robust control. The work presented in this article is structured as follows: the first part presents the operating principle of the BLDC, the second part presents the modelling of the machine and the last part presents the results obtained after a simulation on MATLAB Simulink and the discussions.

2. Principle of Operation of Brushless Motors

The brushless motor works from three variable voltage sources, supplied by an inverter, and allowing to generate a rotating magnetic field. The rotor, generally equipped with a permanent magnet, tends to follow the rotating magnetic field. Figure 1 shows the architecture of the motor and its inverter.

In the simple case of the BLDC motor, at each switching, two phases are respectively connected to the supply voltage and to the ground, and one phase is not connected. Let us take the example of Figure 2, phase A is not connected, phase B is connected to the supply voltage and phase C is connected to ground.

Figure 1. Operation of the inverter and brushless motor.

Figure 2. Example of switching situation.

A current flows through the coils from B to C and generates a stator magnetic fiel B in the next steered motor y S . The rotor supports a magnet whose magnetic moment m , oriented from south to north, tends to align with the stator magnetic field by rotating counter clockwise.

As soon as the rotor approaches y S , the commutation will be modified to make the current flow from B to A, the stator magnetic field B rotates by π/6, so as to attract the rotor and continue the rotation in the counter clockwise direction. The angle between m and B leads to a magnetic torque C m = m Λ B [4].

3. Modelling

The modeling of a BLDC motor can be developed in the same way as a three-phase synchronous machine. As its rotor is mounted with a permanent magnet, these dynamic characteristics remain different. The flux due to its rotor depends on the magnet, which is why the saturation of the magnetic flux is typical for these motors. A BLDC motor is powered by a three-phase voltage source, as shown in Figure 1. The source does not need to be sinusoidal. A square wave or other waveform can be applied as long as the peak voltage is less than the maximum voltage of the motor. Likewise, the armature winding scheme of the BLDC motor is represented in Figure 3 [5] [6].

3.1. Electrical Equations

3.1.1. Expressions of the Voltages

By applying the mesh law to the BLDC, we obtain the following system [7]

V a ( t ) = R i a ( t ) + L a d i a ( t ) d t + e a ( t ) (1)

Figure 3. BLDC’s motor supplied by a three-phase voltage source.

V b ( t ) = R i b ( t ) + L b d i b ( t ) d t + e b ( t ) (2)

V c ( t ) = R i c ( t ) + L c d i c ( t ) d t + e c ( t ) (3)

With R, L and ( i a , i b and i c ) are respectively: the resistor, inductance and currents of stator’s phase.

e a = f a ( θ ) K e ω r , the electromotive force of phase A (4)

e b = f b ( θ 2 π 3 ) K e ω r , the electromotive force of phase B (5)

e c = f c ( θ 4 π 3 ) K e ω r , the electromotive force of phase C (6)

Ke: is the coefficient of force electromotive; f a ( θ ) , f b ( θ 2 π 3 ) and f c ( θ 4 π 3 ) : are the functions whom depend only on the position of the rotor; ω r : is the rotation speed θ : is the electrical angle which is calculated as follows θ = p ω r with p the number of pole.

The Writing voltage’s matrix is written:

[ V a V b V c ] = [ R 0 0 0 R 0 0 0 R ] [ i a i b i c ] + d d t [ L a 0 0 0 L b 0 0 0 L c ] [ I a I b I c ] + [ e a e b e c ] (7)

By applying the transform of Laplace we get:

[ V a V b V c ] = [ R + L p 0 0 0 R + L p 0 0 0 R + L p ] [ I a I b I c ] + [ E a E b E c ] (8)

The Equations (1)-(3) allow determining the voltage’s expressions between phases:

V a b ( t ) = V a ( t ) V b ( t ) = R [ i a ( t ) i b ( t ) ] + L [ d i a ( t ) d t d i b ( t ) d t ] + e a ( t ) e b ( t ) (9)

V b c ( t ) = V b ( t ) V c ( t ) = R [ i b ( t ) i c ( t ) ] + L [ d i b ( t ) d t d i c ( t ) d t ] + e b ( t ) e c ( t ) (10)

(6) and (7) give: V c a ( t ) = V b c ( t ) V a b ( t ) (11)

3.1.2. Expressions of the Currents

We get the expression of the currents below from Equations (9)-(11)

d i a ( t ) d t = 2 3 L V a b ( t ) + 1 3 L V b c ( t ) R L i a ( t ) 1 3 L e b c ( t ) 2 3 L e a b ( t ) (12)

d i b ( t ) d t = 1 3 L V b c ( t ) 1 3 L V a b R L i b ( t ) 1 3 L e b c ( t ) + 1 3 L e a b ( t ) (13)

d i c ( t ) d t = ( d i a ( t ) d t + d i b ( t ) d t ) (14)

3.1.3. The Electromagnetic Torque

The electric torque generated by the BLDC is given like this:

T e = e a i a + e b i b + e c i c ω r (15)

By replacing the Equations (4)-(6) within (15) we have:

T e = K e [ f a ( θ ) i a + f b ( θ 2 π 3 ) i b + f c ( θ 4 π 3 ) i c ] (16)

3.2. Mechanical Equation

The dynamics of the rotor is defined as see:

d Ω d t = 1 J ( T R T e + f Ω ) (17)

3.3. Model of Hall Effect Sensors

When the rotor poles pass next to the hall effect sensors, the latter give 1 or 0

Table 1. Hall effect sensor model.

only to indicate that the north or south pole is seen by the sensors. Based on this switching logic of the hall effect sensors, we have the switching sequence of the transistors according to Table 1 [8].

3.4. The Inverter Model

The inverter is a static converter able to transform the electrical energy from a DC voltage source into AC, the use of inverters is very wide in industry, such as variable speed drives for three-phase motors, emergency power supplies, etc.

By the technological development of semiconductors, and the appearance of new control techniques, inverters have become more efficient. On the other hand, the output voltage form of an inverter must be closer to a sinusoid for which the harmonic rate is as low as possible, the latter largely depends on the control technique used [9]. We can see in Figure 4 the three-phase inverter model.

The switches Q1 and Q2, Q3 and Q4, Q5 and Q6 must be complementary whatever the control law that is adopted. And whatever the currents, the switches give the voltages between the output terminals A, B, C and the (fictitious) midpoint “O” of the voltage source [10].

V a V o = V s 2 ; if Q1isclosed and V a V o = V s 2 ; if Q2isopened V b V o = V s 2 ; if Q3isclosed and V b V o = V s 2 ; if Q4isopened V c V o = V s 2 ; if Q5isclosed and V c V o = V s 2 ; if Q6isopened (18)

The equilibrium of the system entails:

{ I a + I b + I c = 0 V a + V b + V c = 0 (19)

{ V a = 1 3 ( U a b U c a ) = 1 3 [ ( V a V b ) ( V c V a ) ] V b = 1 3 ( U b c U a b ) = 1 3 [ ( V b V c ) ( V a V b ) ] V c = 1 3 ( U c a U b c ) = 1 3 [ ( V c V a ) ( V b V c ) ] (20)

Figure 4. Inverter.

According to the circuit in the figure below, the three-phase voltages can be calculated using the following formulas

{ V a = Q 1 V s 2 Q 2 V s 2 V b = Q 3 V s 2 Q 4 V s 2 V c = Q 5 V s 2 Q 6 V s 2 (21)

3.5. BLDC Transfer Function

Considering a motor winding seen in Figure 5, we can write the following relations

V = R i + L d i d t + e (22)

which give:

e = V R i L d i d t (23)

The transfer function is finally written:

G ( P ) = 1 K e R J K t K e L R P 2 + R J K t K e P + 1 (24)

The following constants are acquired:

· Electric constant τ e = L R

· Mechanical constant τ m = R J K t K e

In the BLDC motor, it has 3 phases, i.e. the mechanical and electrical constants are written like this: τ e = L 3 R and τ m = 3 R J K t K e .

Therefore, the transfer function of the BLDC motor can right now be obtained as the following equations:

G ( P ) = 1 K e τ e τ m P 2 + τ m P + 1 (25)

With the engine parameters we have

Figure 5. Model of phase.

G ( P ) = 331 0.0058 P 2 + 0.250 P + 1

4. Comparative Study and Simulation

4.1. Simulation with the PID Regulator

Figure 6 shows the model of the closed loop PID regulator from this model the equation below is drawn

u = K P e ( t ) + K i e ( t ) d t + K d d e ( t ) d t (26)

Figure 7 and Figure 8 show the results of simulation obtained with the PID

Figure 6. Closed loop PID controller.

Figure 7. Rate of speed.

Figure 8. Rate of electromagnetic torque.

controller. When starting, the speed reaches the imposed value with a response time Trep = 0.029 seconds and an overshoot of 5.85%, at the moment 0.06 seconds, the speed decreases towards the set point (2000 rpm) that it attends to the after 0.351 seconds then it perfectly follows the imposed instruction.

The application of a torque of 1 Nm implies a disturbance of 15% at the instant 2 seconds which corresponds to a speed of 1699 rpm; then returns to the set point after 2.43 seconds.

4.2. Simulation with Fuzzy Logic

Fuzzy logic is widely used in machines for control purposes. The term fuzzy designates the logic which deals with the concept which expresses that the value is true or false. Fuzzy logic has many advantages as it gives a solution to a problem in such a way that a human operator can easily understand it and can use it to design a better controller. The design of such a controller makes the process faster and it has become easy to implement it in the system [6] [7] [9].

The internal structure of this fuzzy regulator is shown in the following functional diagram of Figure 9.

The rules used are:

1) IF E is GN and de is GN THEN control is GN

2) IF E is MN and de is MN THEN control is GN

The fuzzy rules are built manually in Table 2.

Figure 9. Synoptic overview of a fuzzy system.

Table 2. Table of fuzzy rules.

Z: zero, MP: positive mean and GP: large positive.

The diagram below (Figure 10) shows the Simulink model of BLDC motor control with fuzzy logic.

Figure 11 and Figure 12 show the results of simulation obtained with the fuzzy logic. When starting, the speed reaches the imposed value with a response time Trep = 0.0051 seconds and an overshoot of 0%, and it perfectly follows the imposed set point (2000 rpm). The application of a torque of 1 Nm implies a disturbance of 15% at the instant 2 seconds which corresponds to a speed of 2020 R/s; then returns to the set point after 2.4 seconds.

Comparison of the two commands

Below (Figure 13) are the speed curves for the two types of control. By observing the results of these curves, we see that the behavior of the two regulators is identical during permanent modes, but the Flou regulator has a clear advantage:

Figure 10. BLDC model with the BLUR command.

Figure 11. Pace of speed.

Figure 12. Pace of torque.

Figure 13. Speed response.

-Better climb time.

-A quick response without overspending.

-The disturbance peaks are much less important with the Flou regulator.

5. Conclusions

In this study, the PID regulation method and the Fuzzy logic regulation method were applied to a brushless DC motor. This is in order to compare the robustness of these two types of control. After study and simulation on Matlab/Simulink, we obtained very satisfactory results. These show that the fuzzy regulator gives better responses compared to the PID regulator, namely a shorter rise time, no overshoot. Despite its performance, the fuzzy regulator is still little used in industry compared to the PID regulator; this is due to the problems associated with its implementation.

However, it is worth highlighting the perspectives that remain open by studying the system, namely, pushing further reflection on the implementation of these two regulators on the same microcontroller or an Arduino Board.

Cite this paper: Sall, M. , Kebe, A. , Gueye, I. and Diop, M. (2021) Comparative Study between the PID Regulator and the Fuzzy Regulator Applied to the Operation of a Brushless DC Motor. Energy and Power Engineering, 13, 365-376. doi: 10.4236/epe.2021.1311025.

[1]   Koteich, M., Onera-DCSD, A.J. and Onera–DCSD, T.L.M. (2012) Commande vectorielle sensorless des moteurs brushless de mini-drones. Mém. Master Supélec-Dép. DCSD à GIF-Sur-Yvette.

[2]   Cherid, B. and Belbahri, F. (2018) Etude et Conception d’un Robot Cartésien à deux degré de Liberté. Thesis, Université Akli Mouhand Oulhadj-Bouira, Bouira.

[3]   Laroussi, K. and Zelmat, M. (2009) Implementation of a Fuzzy Logic System to Tune a PI Controller Applied to an Induction Motor. Advances in Electrical and Computer Engineering, 9, 107-113.

[4]   Guepratte, K. (2011) Onduleur triphasé à structure innovante pour application aéronautique. Phdthesis, Université Grenoble Alpes, France.

[5]   Eltoum, M.A.M., Hussein, A. and Abido, M.A. (2021) Hybrid Fuzzy Fractional-Order PID-Based Speed Control for Brushless DC Motor. Arabian Journal for Science and Engineering, 46, 9423-9435.

[6]   Patel, Ms.P. (2019) Speed Control of BLDC Motor Using Fuzzy Logic Controller and Comparing It with PID Controller. Journal of Advances and Scholarly Researches in Allied Education, 16, 269-276.

[7]   Cheng, G.Q. (2012) Brushless DC Motor Speed Control System Based on Fuzzy PID Controller. 2nd International Conference on Network Computing and Information Security (NCIS 2012), Shanghai, 7-9 December 2012, 287-294.

[8]   Obulesh, Y., Ch, S.B. and Rao, A. (2012) Mathematical Modeling of BLDC Motor with Closed Loop Speed Control Using PID Controller under Various Loading Conditions. Journal of Engineering and Applied Sciences, 7, 1321-1328.

[9]   Jing, J.L., Wang, Y.C. and Huang, Y.H. (2016) The Fuzzy-PID Control of Brushless DC Motor. 2016 IEEE International Conference on Mechatronics and Automation, Harbin, 1 August 2016, 1440-1444.

[10]   Huang, J.G., Jie, W. and Hui, F. (2017) An Anti-Windup Self-Tuning Fuzzy PID Controller For Speed Control of Brushless DC Motor. Automatika, 58, 321-335.