A periodic adaptive controller for the torque loop of variable speed brushless DC motor drives with non-ideal back-electromotive force

In this paper, an adaptive current controller is proposed for variable speed brushless direct current (BLDC) motor drives to minimize the output torque ripples caused by parametric and periodically varying uncertainties. Phase-to-phase non-ideal back-electromotive force (back-EMF) in BLDC motor changes periodically with respect to the shaft angle, and hence the period of these signals alters depending on the rotor frequency. To address these problems, the uncertain current dynamics of the BLDC motor is reformulated by transforming the time variable, then the periodic adaptive controller employing the instantaneous estimation values of the unknown periodic signal is developed to achieve the torque ripple reduction. The periodic estimation of the non-ideal back-EMF waveform is achieved considering the switching between conduction and commutation periods. Also, the update rules based on direct adaptation for parametric uncertainties are derived, and thus, hybrid differential-periodic adaptation rules are obtained considering the switching phenomenon. Asymptotic convergence of the phase currents to the reference values is proven by an appropriate Lyapunov–Krasovskii function depending on the angular position. Comprehensive numerical simulation studies have been successfully carried out to verify the performance and the effectiveness of the proposed controller for variable speed applications.


Introduction
In recent years, there has been a sustained increase in demand for brushless direct current (BLDC) motor drives for industrial application areas such as automotive, aerospace, medical equipment, home appliances. Their increasing popularity is due to their high efficiency and reliability, as well as other attractive features including long life, higher power-torque density, and drive simplicity. Generally, the differences of brushless motors from brushed motors can be listed as high speed and high torque efficiency, quiet operation, and ease of maintenance. The BLDC motor is a type of synchronous motor with permanent magnets on the rotor and with trapezoidal-like back-EMF.
In the conventional control of BLDC motors, backelectromotive force is assumed trapezoidal. Therefore, to produce desired constant output torque, the phase currents have to be in the form of a square wave. Nevertheless, this assumption cannot be achieved in practice, owing to design trade-offs, manufacturing limitations, and the non-uniformity of magnetic material. Besides these reasons, the back-EMF signal form can differ from one motor to another with variations in their border values. So that, many unpredicted pulsations occur in the output torque caused by the imperfectness of the non-ideal back-EMF signals and the phase currents. On the other hand, necessary current signals cannot be generated in the commutation period because of the limitations of the drive and such undesired issue causes the commutation torque ripple [1,2]. Torque ripples in the BLDC motor are unavoidable, and it is a significant point that the advanced control approach is required to minimize the torque pulsations to perform the sensitive and precise motion in relevant applications.
The effects of the non-ideal back-EMF waveforms have been considered extensively in the literature. Many different controller methods have been proposed to minimize the torque ripple in BLDC motor drives taking non-ideal back-EMF signals into account [3][4][5]. In [3], a torque controller for the torque ripple minimization in BLDC motor drives is proposed with an estimation of non-ideal back-EMF signals obtained by a look-up table and linear interpolation. In another study, phase currents for torque ripple reduction in BLDC motors are regulated by measuring the waveforms of non-ideal back-EMF [4]. The torque reduction control for BLDC motor drives is achieved by injecting the phase currents as per the instantaneous magnitude values of non-ideal back-EMF signals obtained by on-line phase-to-phase estimation utilizing measured rotor mechanical speed values [5]. In the aforementioned papers, the waveform of the back-EMF signals is assumed to be known or measured during the operation, however this approach is not convenient since non-ideal signals are not known in advance and/or not measurable precisely in practical applications.
In order to achieve optimal line-to-line current waveforms with non-ideal back-EMF harmonics, various current regulation approaches have been developed for BLDC motor drives based on numerical solutions. Besides, it should be noted that the non-ideal back-EMF signals contain harmonics depending on the rotor position and these signals can be expanded to a function approximation using the Fourier series. In [6], an adaptive torque controller for BLDC motors is presented based on the estimation of Fourier coefficients of the periodic functions. In [7], an adaptive controller reducing the torque ripple harmonics for variable speed AC motors is proposed with known harmonic contents of back-EMF. The optimal commutation controller with non-ideal back-EMF obtained through performing Fourier decomposition in BLDC motor drives is proposed [8]. Nevertheless, all the above approximations for the non-ideal back-EMF forms do not guarantee the convergence of the estimations to the actual waveform since they contain many harmonics in practical applications and the number of the selected coefficients is constrained to an arbitrarily higher harmonic order due to the calculation burden.
The essential control objective of the BLDC motor drive is to control the current to regulate the generated torque. In the literature, diverse current control approaches for BLDC motor have been presented to minimize torque ripples, such as adaptive and slidingmode control with switching-gain adaptation [9], integral sliding-mode control [10], optimization-based control with switching vector selection [11], robust control [12], predictive control [13], model predictive control [14,15]. In these references, the undesired ripples on the output torque caused by the non-ideal back-EMF signals are directly attenuated by proposed controller structures. On the other hand, a reference current optimization with an integral variable structure controller is presented with a Luenberger full-order observer in order to estimate back-EMF waveforms [16]. In [17], phase-to-phase back-EMF signals under a faulty condition are estimated, and a fault-tolerant controller based on the currents injected into motor phases is proposed.
In practical applications, non-ideal back-EMF waveforms, which can have the form of quasi-trapezoidal or sine-like waves, generally include high order harmonics that are uncertain quantities changing with the rotor position. The unknown form of the back-EMF signals and the harmonics existing in them make the regulation of phase currents more difficult, and the torque ripples occur accordingly. To minimize the effects of these issues and to attenuate periodic uncertainties, iterative learning and repetitive control methods have been carried out [18]. A repetitive current control scheme with non-ideal back-EMF waveform is proposed for the permanent magnet synchronous motor (PMSM) drives reducing the torque pulsations [19]. Iterative learning controller which modifies the controller input is introduced in PMSM drives aiming to reduce periodic torque fluctuations due to harmonic flux [20]. However, these types of controllers targeting to reduce the effect of unknown signals in the feedback loop are not modified for BLDC motor drives.
The philosophy of direct adaptive control which is generally implemented in dynamical systems having constant and linearly parametrized uncertain parameters is based on a sequential and pointwise update mechanism. However, the standard direct adaptive control method is not applied in the presence of timevarying unknown signals in the system even if the uncertain signal is periodic with a known period. The unknown periodic signals are expanded to the Fourier series, the uncertain signal with known periodicity can be adapted by infinite numbers of integrator operators. Since this approximation is not convenient in practice, the periodic adaptive control structure based on the difference type pointwise integration for periodic uncertain signals through each period is introduced for continuous-time systems [21] and discrete-time design [22]. Thereafter, the periodic updating in mechanical systems is developed for the rotary systems to overcome spatially periodic parameter uncertainties/disturbances [23,24]. However, a priori knowledge about the structure of uncertain periodic parameters is required due to the structure of the dynamical model. In the constant speed BLDC motor drives, variants of the periodic adaptive controller with constant periodicity are presented for continuous-time [25] and for discretetime [26] cases to estimate only the unknown non-ideal back-EMF signals accurately.
In this paper, a nonlinear controller based on a periodic adaptation mechanism estimating non-ideal phase-to-phase back-EMF signals for mitigating electromagnetic torque pulsation in a variable speed BLDC motor drive is proposed. Some additional constant uncertainties affecting the system output are included in the adaptive controller design procedure as well. Furthermore, the switching phenomenon existing in BLDC motor drives is accounted for in the control scheme and the proposed adaptation structure is modified accordingly considering the practical issues. The estimated values of back-EMF signals are employed in the feedback, thus the effect of non-ideal back-EMF signals in the output torque is attenuated. The differences from the existing results and the contributions of this study can be summarized as follows: (1) The form of the nonideal back-EMF signals is considered entirely unknown in the dynamical model of the variable speed BLDC motor drive, and the only knowledge utilized in the feedback is their periodicity with respect to the angular position of the rotor. A change on the time variable is carried out accordingly in order to synchronize the estimation frequency with rotor frequency under varying rotor speed. (2) Apart from the existing studies, the torque ripples caused by non-ideal back-EMF signals as well as the commutation are dealt with only one adaptive controller. In other words, the proposed control structure is able to reduce the fluctuations over the output torque during both conduction and commutation periods. (3) Considering the switching occurring in the dynamical model, the controller is constructed based on a modified hybrid adaptation scheme containing a switch mechanism, then the practical issues in BLDC motor drives are particularly reflected in the proposed controller. Moreover, the proposed adaptive controller is tested under different speed trajectories comprehensively via simulations containing all the practical details and the properties of BLDC motor drives.
This paper is organized as follows. After the dynamical model of BLDC motor drives is introduced, the motor current dynamics are re-evaluated by changing the time variable to the rotor displacement in the current dynamics. In the following section, the hybrid differential-periodic rules-based adaptive controller considering the commutation switching phenomenon is established. Then the asymptotic convergence analysis employing a Lyapunov-Krasovskii function of the proposed controller is presented. Subsequently, detailed simulation studies are performed to show the performance of the proposed controller structure. At last, the paper is concluded.

Dynamical model of brushless DC motor
The equivalent circuit of a BLDC motor drive is depicted in Figure 1. The typical mathematical representation of the current dynamics in a BLDC motor drive is given by [2]: , v c denote the phase voltages, R and L stand for the resistance and inductance for each of the three phases, respectively, and e a , e b , e c are non-ideal back-EMF signals induced for each phase in the stator windings. Note that, the following assumptions are considered in modelling of the BLDC motor drive [27]: Mutual inductance is zero for each winding, the phase resistances and the phase inductances are equal, and the motor neutral voltage is neglected. Those assumptions are quite common in control-oriented dynamical models of the electrical equivalent of the BLDC motor, and they are generally utilized to reduce the number of terms in the dynamical equations. The mechanical motion of the BLDC motor is expressed by where T e denotes generated torque, T l denotes the load torque, β stands for the viscous friction coefficient, J and ω denote the inertia moment and the rotor angular velocity, respectively. In the BLDC motor, the electromagnetic torque is given by the following expression: The amplitude of the back-EMF signals is proportional to the rotor speed while the form of the ideal back-EMF is usually considered to be trapezoidal in BLDC motors. Accordingly, the desired phase currents should have a rectangular form in order to generate a constant output torque in the ideal case. In the non-ideal case, the back-EMF signals have the form of quasi-trapezoidal or close to a sine-wave containing many harmonics. Therefore, it is not possible to obtain a constant torque output when the phase currents are in a rectangular waveform. As a result, fluctuations in output torque occur when a current controller is designed with the assumption that the back-EMF signals are trapezoidal since the output torque is directly related to the back-EMF signals and phase currents. The variation of the ideal back-EMF signals and the change of corresponding phase current to obtain a constant output torque in ideal case is depicted in Figure 2. The amplitude of the back-EMF signals changes proportionally with the motor speed, so these signals alter in both frequency and amplitude with the rotor speed. The voltage variation in the back-EMF signals can be formulated as [8]: where k e is the back-EMF constant, θ e is the electrical angle of the rotor, f a (θ e ), f b (θ e ) and f c (θ e ) are the normalized auxiliary functions having the same waveform as the back-EMF signals and changing between −1 and 1. Besides, the relation between electrical and mechanical angles is defined by where P is the number of pole pairs. Utilizing (7)- (10) in (6), one can obtain the expression for the torque output as Unlike DC motors having mechanical commutator and brush gear, the commutation occurs electronically in every 60 electrical degrees in the BLDC motor drives.
All three phases are conducted during the commutation period while only two phases are active during the conduction period (see Chapter 10 in [28] for details). The commutation brings a sudden and unexpected fluctuation in the phase currents directly acting on the output torque called the commutation torque ripple. In addition, as a result of the commutation, the BLDC motor drive dynamics is switched 12 times in one electrical cycle. Hence a strategy should be provided to cope with the model switching in order to reduce the adverse effects of the commutation.
In order to simplify further analysis and design procedure, suppose that the subscript x denotes the phase index with positive current and the subscript y is used for the phase having the negative current in the conduction period. Considering the balanced drive circuit given in Figure 1, the current dynamics of BLDC motor ((1)- (3)) can be rewritten as Note that (12) gives the equivalent BLDC motor drive circuit model for a conduction period with two active phases assuming the remaining phase current is zero. For the sake of simplicity, f xy is defined as a combination of back-EMF signals of the conducting phases, and it is a periodic signal with 60 electrical degrees period as the conducted phases are switched in every 60 electrical degrees. Based on the dynamics introduced in (12), only two phases are assumed to be conducted in the controller design procedure as well. The periodic adaptation existing in the control structure has the ability of reducing the effects of the commutation period even though its effect is not included in the model. The proposed controller also deals with periodic uncertainties existing in the back-EMF signals as well as the other constant uncertainties available in the drive model. Note that since the back-EMF signals of all three phases are considered to be the same, the dynamic equations are quite similar for every 60 • and the only change is the phase indices.
In this paper, the phase resistance and inductance values are considered uncertain, and the form of the back-EMF signals, corresponding to f xy in (12), is considered non-ideal with time-varying periodic uncertainties. In order to overcome periodic uncertainties, a periodic update mechanism is proposed using only the previous period data. Unlike the constant uncertainties, since f xy is a periodic function with respect to the rotor displacement and since the rotor angular velocity changes by time in a variable-speed motor, the period of these signals is not constant. For this reason, the periodic adaptive controller identifying uncertain periodic signals with a constant period is not convenient for this problem. To overcome this issue, the time variable is changed in the current dynamics of the BLDC motor drive. Assuming ω = 0, suppose Utilizing that into, (12) can be reconstructed as In the next section, an adaptive current controller with a periodic adaptation rule is designed to reduce output torque fluctuation considering the switching phenomenon for the variable speed BLDC motor drives in the presence of constant and periodically varying uncertainties.

Controller structure
The controller design procedure for the minimization of the output torque fluctuations caused by parametric and time-varying uncertainties is described in this section. Note that the controller is designed based on the electrical equivalent of BLDC drive as the controller manipulates the torque output in order to reduce the effect of the uncertainties in terms of torque fluctuations. Although the mechanical part is not considered in the controller design scheme, that does not mean the mechanical part is completely ignored. This is a general approach in output torque control (see i.e. [1][2][3][4][5]) and the reference smooth torque signal should be generated before modifying the control structure properly in case of speed control. To begin with the procedure, the phase current error is defined as where i x d is the desired phase current which is directly related to desired output torque. Taking the derivative of (15) with respect to angular displacement and substituting this result into (14), the phase current error dynamics can be derived as where v x is the control input. The estimation error signals for the constant uncertain parameters (θ 1 , θ 2 ) and the periodic uncertain signal (f xy ) are defined as wheref xy ,θ 1 andθ 2 stand for the adapted signals of f xy , θ 1 and θ 2 , respectively. At this point, the control signal is introduced as with hybrid differential-periodic adaptation ruleŝ where q 1 , q 2 and q 3 are positive constant adaptation gains, κ is a controller gain, and q 0 is a function of θ e with the property given by q 0 (2π) = q 1 . It should be noted that the periodic adaptation mechanism (21) is updated with 2π periodicity due to the fact that f xy (θ e ) = f xy (θ e − 2π). Taking into account the real-time implementation of BLDC motor drives based on digital data measurements, the proposed adaptive controller with hybrid differential-periodic adaptation rules cannot be applied directly as the periodic adaptation rule and control signal is designed in continuous time. Therefore, a practical modification is needed in the periodic adaptation rule. In order to solve this problem, the same number of samples in each period is used. For uncertain signal waveform, if the number of measured points in one period is N, then the periodic adaptation rule given in (21) can be modified tô where k = 0, 1, 2, . . . denotes the instantaneous sampling points. Note here that N gives number of samples for each period of the uncertain signal, and it is a constant regardless of the period. Such a practical solution is necessary since the period changes with the motor speed, and N should be chosen depending on the drive specifications.
The periodic adaptation mechanism in the proposed controller has utilized the current error measurements collected in the previous period. Although the unknown signal form is assumed to be smooth, the current error measurements are critically affected by the commutation switching of the dynamical model occurring every 60 electrical degrees. As a result of this, undesired error on the related phase current gives rise to deterioration of the actual adapted values. Therefore, the adaptation approach needs further modifications in order to be convenient for practical applications. In this paper, the periodic adaptation is paused and the adapted signals are kept constant in the sampling period containing a model switch, and values obtained in the previous sample are utilized. After that modification, (24) can be rearranged aŝ whereσ = 0 means that there is no model switching due to the commutation between the two sampling instants k − 1 and k, whileσ = 1 means the occurrence of a model switching between the two sampling instants k − 1 and k. Note thatσ = 1 occurs twice only in every 60 electrical degrees as the commutation occurs only once every 60 electrical degrees. The reflection of undesired pulsation into the adapted parameters is avoided with the modification introduced in (25) by means of the switching signalσ .
The system dynamics given in (16) turns out to be after plugging in the adaptive controller (20) with adaptation rules given by (17)- (19). This control signal ensures the asymptotic convergence of the error signal to zero. In order to prove that a Lyapunov-like approach is utilized which is given in detail in the next section.

Convergence analysis
The convergence analysis of the phase current error signals in the closed-loop system is presented in this section. Consider the positive definite function given by The difference of the positive-definite function V(θ e ) over one period can be obtained employing Using the error dynamics in (26), the difference of the first item on the right-hand-side of (27) over one period can be derived as The difference of the second term on the right-hand side of (27) over one period can be arranged using (17) as Using the fact that f xy (τ ) = f xy (τ − 2π) and employing Then, substituting the periodic adaptation rule given in (21) into (31) and utilizing (17), the difference can be obtained as The difference of the third and fourth terms on the right-hand side of (27) over one period can be obtained utilizing the differential adaptation rules (22) and (23) as considering the fact that θ 1 and θ 2 are constantor changing very slowly (i.e. dθ 1 /dθ e ≈ 0 and dθ 2 /dθ e ≈ 0 ). If the difference of the positive-definite function (27)  This result shows that the difference defined in (28) which corresponds to the difference of (27) for each consecutive period is negative in terms of the current tracking error. Since this result is valid for every period where θ e ∈ [2π , ∞), defining θ e 0 = θ e − 2π i and utilizing one can obtain In order to show the boundedness of the positivedefinite function (27) in the interval θ e ∈ [0, 2π), the derivative of (27) with the respect to θ e in θ e ∈ [0, 2π) can be determined as can be obtained. Since the uncertain periodic function is bounded, it can be concluded that dV(θ )/dθ e takes negative values outside of a compact set defined as implying that the positive-definite function V(θ e ) is bounded for θ e 0 ∈ [0, 2π). Consequently, as the assumption on the boundedness of V(θ e )) is relaxed, the tracking errors for the phase currents tend to zero asymptotically as θ e tends to infinity which completes the proof.

Simulation results
In order to demonstrate the performance of the proposed controller structure for the torque loop of the BLDC motor drives, several simulations have been performed in MATLAB, and the results are presented in this section. The mechanical part of the BLDC motor drive is ignored, but the shaft speed has been varied to emphasize its effects. Note that, in order to control the output torque of a BLDC motor, considering only the electrical equivalent is sufficient since the torque output can be manipulated by the phase currents which is clearly stated in (11). The phase inductance and the phase resistance parameters are assigned as L = 2.5 mH and R = 0.58 . The rated phase-to-phase voltage value of the BLDC motor is set to 24 V, and the supply voltage of the 3 phase voltage-fed inverter is taken 24 V, thus the maximum voltage of the motor is saturated with 24 V accordingly. The switches of the inverter are considered ideal, and the frequency of PWM signals is assigned as 10 kHz. Hence, the sampling period of the controller is 100 μ s. The mathematical model is solved numerically using Euler approximation with 0.5 μ s fixed steps. The BLDC motor drive's nominal values utilized in the numerical simulations are adopted from [2].
The parameters existing in the current dynamics have been considered uncertain taking into account the natural characteristics of the system parameters. 80% of the actual values of constant parameters (L, R) are used in the controller as their initial values. The periodic auxiliary signals f a , f b , f c including un-identified harmonics are considered to be non-ideal. Auxiliary signals used in the simulations are illustrated in Figure 3 for all phases. In the simulations, these auxiliary signals are assumed to be completely unknown, and their initial values in the controller are assigned as zero for the entire period. In addition to the completely unknown harmonics on the unknown auxiliary waveforms, the value of the constant term (k e ) in back-EMF signals is also not known by the controller. On the other hand, in order to produce the constant output torque, the reference currents are considered to be known by the controller.
In simulations, the initial electrical angle is assigned as π/6(rad). The controller and the adaptation gains are set to κ = 0.001, q 1 = 0.01, q 2 = 10 −5 and q 3 = 20 for all simulation cases. The fixed period for adaptation has been taken as 60 electrical degrees. The signals have been sampled with 1 μs, and N = 5000 giving the number of samples recorded in every adaptation period in the variable rotor speeds. The variable adaptation gain in the first adaptation period is considered a linear function of time and it has been set to which is equal to 0 initially, and equal to q 1 at the end of the first adaptation period for each simulation case. It is worth to mention here that there is no general rule for the tuning of the controller and adaptation gains to design the transient response since the closed-loop dynamics contains high order nonlinearities. Those parameters are adjusted to their given values based on simulation studies and practical concerns. A high-frequency PWM switching also causes noise in the current samples and this phenomenon adversely affects the output torque. To minimize this effect, the current error signal (i e ) utilized in adaptation is filtered with a low pass filter. On the other hand, this filter may not be sufficient for many undesired pulsations caused by unstructured dynamics and unpredictable disturbances encountered in practical motor drive applications. For instance, inverters used in the BLDC motor drive to produce the control signal can be considered as a disturbance source, as well as the noises existing in the measured signals. They lead to affect the adaptation procedure in practice. Some practical methods have been proposed in the literature to overcome these influences. For example, in [21], a band interval with lower and upper boundaries which is known in advance is proposed. Once the estimated waveforms enter this band, the adaptation procedure is terminated. Since this method depends on a prior knowledge, the approach may not be convenient in case of a lack of knowledge about the limits of the actual uncertain signal. In this paper, to address this problem, the difference between the root-mean-square (RMS) values of the phase current errors for the last two consecutive periods is employed. Adaptation values are retained when the absolute value of the difference of RMS values calculated for the last two periods is lower than an arbitrarily determined bound. This limit value has been assigned as 10 −4 in this study. It should be noticed that the bound value can be calibrated regarding different signals such as the output torque and adapted signals.
Various numerical simulations have been carried out to test the proposed periodic adaptive control structure under different conditions. Particularly, these simulations have been implemented for different shaft speeds and adaptation gains. Conducted numerical simulations are named differently depending on the simulation specifications introduced as follows: Sim #1: This simulation has been run for ω r = 750 + 75 sin(40πt) rpm with the proposed controller. Sim #2: Different from Sim #1, the shaft speed is given by ω r = 1200 + 120 sin(40πt) rpm. Sim #3: In order to demonstrate the effect of the periodic adaptation gain, the adaptation gain is assigned as q 1 = 0.03 which is the only difference of this case from Sim #1. Sim #4: Different from Sim #1, the controller implemented in this simulation has no adaptation in order to show the contribution of the adaptation. 80% of the real values of R, L have been used in the controller, and back-EMF signals are considered unknown. Sim #5: The controller applied in Sim #4 is implemented in this simulation for ω r = 1200 + 120 sin(40πt)rpm. Hence, this simulation is a version of Sim #2 without adaptation. The initial values of the uncertain parameters used in this simulation are the same as the ones used in Sim #4.
Figures 4(a) and 5(a) depict the change of the torque output (T m ), the change of the reference conducting phase current and the change of the conducting phase current, the change of the applied voltage to the conducting phases and the change of the adapted signals obtained in Sim #1 and Sim #2 . The simulation results confirm that the average phase current error decreases monotonically in each period of adaptation and phase currents are successfully track the reference current signals regardless of the rotor speed.
In Figures 4(b) and 5(b), change of the time-varying adaptation (f xy ) and the adapted constant parameters (θ 1 ,θ 2 ) are given, respectively. The convergence of the estimated signal (f xy ) to the actual signal can be observed in the results. Considering the periodic adaptation, the simulation results validate that the undesired effect of sudden changes on adapted signals is solved with the proposed modification despite the existence of instantaneous commutation which has an adverse effect in the output torque and current signals. This result reveals further the performance of the proposed adaptive controller under model switching as well as in driving the phase current errors to zero under the existence of unstructured dynamics and time varying or time invariant uncertainties. Another important outcome of the proposed adaptation method is that the adapted signals converge to the real structure of original signals without any prior knowledge about the form of the periodic unknown signal.
Sim #3 is performed to illustrate the effect of the periodic adaptation gain that is set as q 1 = 0.03 which is the only difference between Sim #1 and this simulation. Similar to the presentation of the previous simulation results, results of Sim #3 is depicted in Figure 6. Comparing Sim #1 and Sim #3 in terms of the output torque and conducting phase current, a faster convergence can be noted which is a direct result of the convergence   speed in the adapted periodic signal. Hence, the convergence rate can apparently be adjusted utilizing the adaptation gain properly.
To demonstrate the contribution of the proposed controller further, the same controller structure without any adaptation has been performed in two simulations (Sim #4 and Sim #5). Note that, both the form of the back-EMF signals and the harmonics existing in these signals directly affect system performance. The desired phase currents, variable speed trajectories, and all controller parameters used in the simulations of the proposed controller are employed as they are in the simulations without adaptation mechanism. The results of the Sim #4 and Sim #5 are presented in Figure 7(a,b), respectively. According to the results of these simulations and the results of the proposed controller (given in Figures 4 and 5), the contribution of the proposed adaptation mechanism is evident. Note also that, the phase current errors and accordingly the torque output error do not converge to zero because of the constant uncertain parameters and periodic unknown signals that are compensated when the proposed controller is applied. Moreover, the torque ripples caused by uncertain signals can also be observed in the output torque and the conducting phase current which are clearly reduced with the proposed control structure.
The RMS values of the output torque and the phase currents calculated for each period are given in Figure 8 for Sim #1-4. Notice that the decision on the termination of the adaptation has been employed considering the obtained RMS values of phase currents in Sim #1-3. The main contribution of the proposed controller in terms of torque ripple reduction can be noted from the RMS values of the output torque error and phase current errors. The RMS of the current error converges to the values very close to zero in Sim #1-3 complying with the theoretical result (see Figure 8(a,c)). The reason for not having ultimate zero values is the PWM switching which does not allow the currents to be constant on or around the desired value. On the other hand, the current error  does not converge to zero when the adaptation is not active (see Figure 8(d)). It is worth also mentioning that the conducting current fluctuates as a result of the unknown time-varying back-EMF signals which do not exist when the proposed controller is applied.
Consequently, comprehensive simulation studies indicate the success of the proposed periodic adaptive controller aiming to regulate the phase currents in variable speed BLDC motor drives under different operation conditions.

Conclusion
This paper addresses an adaptive controller based on periodic updating to minimize the torque ripples in variable speed uncertain BLDC motor drives. In order to regulate the phase currents, the electrical dynamics under parametric and time-varying uncertainties are introduced firstly by transforming the time coordinate into angular displacement. In this way, the variable frequency in the time-domain of unknown periodic waveform is fixed to one cycle angular displacement. Then, the hybrid adaptation laws have been introduced for the torque loop of BLDC motor drive considering the switched model leading to undesirable torque ripples. By injecting all adapted parameters into the control law, torque ripple rejection is realized. The convergence of the signals in the closed-loop system has been proven with the employment of a Lyapunov-Krasovskii functional. Detailed simulations taking into account all the issues in the practical applications have successfully been carried out to demonstrate the effectiveness and robustness of the proposed control scheme against the parameter changes in uncertain BLDC motor drives.