Abstract

The hybrid recurrent fuzzy neural network (HRFNN) control for permanent magnet synchronous motor (PMSM) drive system using rotor flux estimator is developed to control electric scooter in this paper. First, the dynamic models of a PMSM drive system were derived in according to electric scooter. Owing to the load of electric scooter exited many uncertainties, for example, nonlinear friction force of the transmission belt, and so forth. The electric scooter with nonlinear uncertainties made the PI controller to disable speed tracking control. Moreover, in order to reduce interference of encoder and cost down, an HRFNN control system using rotor flux estimator was developed to control PMSM drive system in order to drive electric scooter. The rotor flux estimator consists of the estimation algorithm of rotor flux position and speed based on the back electromagnetic force (EMF) in order to supply with HRFNN controller. The HRFNN controller consists of the supervisor control, RFNN, and compensated control with adaptive law is applied to PMSM drive system. The parameters of RFNN are trained according to different speeds in electric scooter. The electric scooter is operated to provide disturbance torque. To show the effectiveness of the proposed controller, comparative studies with PI controller are demonstrated by experimental results.

1. Introduction

In recent years, for the purpose of reducing air pollution and enhancing environmental protection, quite a few countries require their automotive industries to develop electric vehicles in place of gasoline-powered automobiles gradually. Here we put our attention on the development and research of electric scooters since scooters are much more widespread than automobiles for individual transportation in Asia. The AC servo drives, including PMSMs (both trapezoidal and sinusoidal types), switched reluctance motors, and induction motors, have been widely used in robotics, computer-numerically-controlled (CNC) machine tools, elevators, and many other applications in the area of mechatronics [1, 2] for decades.

To achieve fast four-quadrant operation and smooth starting and acceleration, the field-oriented control [1–3], or vector control, is used in the design of AC servo drives. Compared with induction servo motors, a PM synchronous motor has such advantages as higher efficiency owing to the absence of rotor losses and lower no-load current below the rated speed; moreover, its decouple control performance is much less sensitive to the parameter variations of the motor [1, 2].

Recently much research has been done on the applications of fuzzy neural network (FNN) systems, which have the advantages of both fuzzy systems and neural networks, in the control fields to deal with nonlinearities and uncertainties of the control systems [4–15]. Moreover, the FNNs are universal approximators [6, 7], which can approximate any dynamics to a prespecified accuracy by the learning process [6]. The fuzzy neural approximator presented in Leu et al. [8] tuned on line to approximate the unknown nonlinear dynamic systems for adaptive control. The supervisory FNN controller proposed in Lin et al. [9] comprised a supervisory controller, which is designed to stabilize the system states around a defined bound region, and an FNN sliding-mode controller, which combines the advantages of the sliding-mode control with robust characteristics and the FNN with online learning ability. Kung [10] proposed an adaptive fuzzy controller to cope with the friction and external load effect of a permanent magnet linear synchronous motor (SM) drive. Kim and Lee [11] presented a fuzzy disturbance observer to achieve good trajectory tracking for permanent magnet linear SM drives in the presence of external disturbance and internal parameter uncertainties. The key method of the proposed intelligent control is that system uncertainty is approximated by a fuzzy system and the fuzzy system is used to counteract the effect of the lumped disturbance in the design of control systems. Though the favorable control performance was achieved, some constrained conditions and prior system information were required in the intelligent control system. Fuzzy neural network (FNN) is multilayered connectionist network, which brings the learning abilities of neural networks to realize the elements and functions of fuzzy systems. The FNN possesses the merits of low-level learning and computation power of neural networks, and the high-level human-like thinking and reasoning of fuzzy theory. In [12, 13], an adaptive FNN control scheme is proposed for the position tracking control of permanent magnet linear SM drives. The robust control performance is achieved when uncertainties occur including a nonlinear friction force. The FNN is a feedforward network structure, which performs well on algebraic mapping of input-output training data. However, the FNN is being used to model dynamic structures. It is not more suitable to describe the system with dynamic behavior. On the other hand, a recurrent FNN (RFNN) has superior dynamic capability than the FNN [14, 15]. Since the RFNN has an internal feedback loop to capture system dynamics, the dynamic response of a system can be captured without using external feedback through delays. The RFNN is a dynamic mapping and usually obtains good control performance in the presence of system uncertainties. Lin et al. [16] proposed an RFNN controller for the trajectory tracking of a permanent magnet linear SM drives with structure and parameter learning phases concurrently. Wang and Lee [17] designed a self-adaptive RFNN control scheme for controlling an autonomous underwater vehicle. The RFNN was trained to model the inverse dynamics of the vehicle and then utilized as a feedforward controller to compute the nominal torque of the vehicle along a desired trajectory. Lin et al. [18] addressed the application of a recurrent functional link-based FNN control to the periodic reference trajectory tracking issue for permanent magnet linear SM servo drives. Although these RFNN techniques can incorporate fuzzy rules with dynamic elements for better approximation of nonlinear dynamics, how to build a suitable-sized network structure and develop online training algorithms for the RFNN is the major challenging problem. Moreover, the tuning of controllers should also be considered for achieving more robust control. Su and Liaw [19] combined a mixed feedforward/feedback controller and a disturbance observer for the adaptive position tracking control of permanent magnet linear SM drives. In [20], a robust feedforward/feedback control scheme was proposed to address the sensitivity of control performance of permanent magnet linear SM drives to external disturbances. Though the favorable tracking performance was guaranteed, the proposed control approach needs to know the system dynamics. One approach in dealing with major changes and uncertainty in nonlinear dynamical processes is through neural modeling and control. Nho and Meckl [21] incorporated a neural-network identifier and a simple PD controller to control an articulated robot. The neural-network identifier was trained to represent the inverse dynamics of the robot and then was used in the computed torque control architecture. Lee and Teng [22] proposed a novel RFNN control structure for identifying and controlling nonlinear dynamic systems. In the control scheme, an unknown system was identified by the RFNN identifier to provide the sensitivity information about the system to a RFNN controller, while the RFNN controller generated a control signal to minimize the error between actual system output and desired output. Although these approach are very effective, one of the important problems is how to design a powerful network with a simple structure and less time in training. Therefore, this paper presents hybrid recurrent fuzzy neural network (HRFNN); control PMSM drive system using rotor flux estimator is developed to control electric scooter in this paper. The method is not dependent upon the predetermined characteristics of the motor and can adapt to any change in the motor characteristics. Owing to PI controller cannot process with nonlinear uncertainties such as electric scooter. Therefore, a HRFNN control system using rotor flux estimator was developed to control PMSM drive system in order to drive electric scooter. The rotor flux estimator consists of the estimation algorithm of rotor flux position and speed based on the back electromagnetic force (EMF) in order to supply with HRFNN controller. The HRFNN controller consists of the supervisor control, RFNN, and compensated control with adaptive law is applied to PMSM drive system. The parameters of RFNN are trained according to different speeds in electric scooter. The electric scooter is operated to provide disturbance torque. Finally, to show the effectiveness of the proposed controller, comparative studies with PI controller are demonstrated by experimental results.

2. Configuration of PMSM Drive System

For convenient analysis, the electric-magnet torque 𝑇𝑒 equation of PMSM drive electric scooter can be described as [1–3]𝑇𝑒=32𝑃2ξ€ΊπΏπ‘šπ‘‘πΌπ‘“π‘‘π‘–π‘žπ‘ +ξ€·πΏπ‘‘βˆ’πΏπ‘žξ€Έπ‘–π‘‘π‘ π‘–π‘žπ‘ ξ€».(1) The equation of the motor dynamics is𝑇𝑒=𝑇𝐿+π΅πœ”π‘Ÿ+π½Μ‡πœ”π‘Ÿ.(2) In (1) and (2), 𝑖𝑑𝑠 and π‘–π‘žπ‘  are 𝑑 and π‘ž axis stator current 𝐿𝑑 and πΏπ‘ž are 𝑑- and π‘ž-axis stator inductance, πœ”π‘Ÿ is the rotor speed, 𝑃 is the number of poles, 𝑇𝐿 stands for the load torque (external load disturbance, e.g., electric scooter), 𝐡 represents the viscous frictional coefficient, and 𝐽 is the moment of inertia. The basic principle in controlling a PM synchronous motor drive is based on field orientation. In (1) and (2), if 𝑖𝑑𝑠=0, the 𝑑-axis flux linkage πœ†π‘‘ is fixed, since πΏπ‘šπ‘‘ and 𝐼𝑓𝑑 are constant for a PM synchronous motor; the electromagnetic torque 𝑇𝑒 is then proportional to π‘–π‘žπ‘ , which is determined by closed-loop control. The rotor flux is produced in the 𝑑-axis only, while the current vector is generated in the π‘ž-axis for the field-oriented control. Since the generated motor torque is linearly proportional to the π‘ž-axis current as the 𝑑-axis rotor flux is constant in (2), the maximum torque per ampere can be achieved.

With the implementation of field-oriented control, the PM synchronous servo motor drive can be simplified as 𝑇𝑒=πΎπ‘‘π‘–βˆ—π‘žπ‘ ,𝐾𝑑=3π‘ƒπΏπ‘šπ‘‘πΌπ‘“π‘‘4.(3)

The block diagram of a PMSM motor drive system for electric scooter is shown in Figure 1. The system is constituted by the following parts: a PMSM (loaded wheel of electric scooter), interlocked and delay time circuits, a field-oriented mechanism including the coordinate translation and Μ‚πœƒsin(π‘ƒπ‘ŸΜ‚πœƒ/2)/cos(π‘ƒπ‘Ÿ/2) generation, and look-up table generation in order to reduce calculated burden, a hysteresis-band comparison current-controlled PWM, a voltage source inverter (VSI), a speed control loop, and a position control loop were implemented by TMS320C32 DSP control board and interface card. The field-oriented mechanism drive system was implemented by TMS320C32 DSP control system. A host PC downloads the program running on the DSP. For the speed control system, the electric scooter is operated to provide constant disturbance torque.

3. The Hybrid RFNN Control Design Using Rotor Flux Estimator

The configuration of the proposed HRFNN control system using rotor flux estimator is depicted in Figure 1. The HRFNN control system using rotor flux estimator is developed to control PMSM drive system in order to drive electric scooter. The rotor flux estimator consists of the estimation algorithm of rotor flux position and speed based on the back electromagnetic force (EMF). The machine model of a PM synchronous motor can be rewritten in the stationary reference frame as follows [1–3]:π‘‘ξ‚Έπ‘–π‘‘π‘‘π‘ π‘‘π‘ π‘–π‘ π‘žπ‘ ξ‚Ή=βŽ‘βŽ’βŽ’βŽ’βŽ£βˆ’π‘…π‘ πΏπ‘ 0𝑅0βˆ’π‘ πΏπ‘ βŽ€βŽ₯βŽ₯βŽ₯βŽ¦ξ‚Έπ‘–π‘ π‘‘π‘ π‘–π‘ π‘žπ‘ ξ‚Ή+⎑⎒⎒⎒⎣1𝐿𝑠001πΏπ‘ βŽ€βŽ₯βŽ₯βŽ₯βŽ¦ξ‚Έπ‘£π‘ π‘‘π‘ π‘£π‘ π‘žπ‘ ξ‚Ή+πΎπ‘’βŽ‘βŽ’βŽ’βŽ’βŽ£βˆ’π‘ƒ2πœ”π‘Ÿsinπœƒπ‘Ÿπ‘ƒ2πœ”π‘Ÿsinπœƒπ‘ŸβŽ€βŽ₯βŽ₯βŽ₯⎦,(4) where 𝑣𝑠𝑑𝑠 and π‘£π‘ π‘žπ‘  are 𝑑- and π‘ž-axis stator voltage, 𝑖𝑠𝑑𝑠 and π‘–π‘ π‘žπ‘  are 𝑑 and π‘ž axis stator current, 𝐿𝑠 is stator inductance, 𝐾𝑒 stands back electromagnetic force constant, 𝑅𝑠 represents stator resistance, πœ”π‘Ÿ is rotor flux speed, and πœƒπ‘Ÿ is rotor flux position. Then back electromagnetic force voltages can be defined as ξ‚Έπ‘£π‘‘π‘£π‘žξ‚Ή=πΎπ‘’βŽ‘βŽ’βŽ’βŽ£βˆ’π‘ƒ2πœ”π‘Ÿsinπœƒπ‘Ÿπ‘ƒ2πœ”π‘Ÿsinπœƒπ‘ŸβŽ€βŽ₯βŽ₯⎦.(5) Then switching surface of sliding mode can be defined as follows to ensure estimate error between estimate current and measure current reaching on sliding surface:̂𝑖𝑆=π‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ Μ‚π‘–π‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ξ‚ΉΞ”πΈπ‘…=0.(6) The dynamic mode of current observers with sliding mode can be represented as follows to reduce error between estimate current and measure current:π‘‘ξ‚ΈΜ‚π‘–π‘‘π‘‘π‘ π‘‘π‘ Μ‚π‘–π‘ π‘žπ‘ ξ‚Ή=βŽ‘βŽ’βŽ’βŽ’βŽ£βˆ’π‘…π‘ πΏπ‘ 0𝑅0βˆ’π‘ πΏπ‘ βŽ€βŽ₯βŽ₯βŽ₯βŽ¦ξƒ¬Μ‚π‘–π‘ π‘‘π‘ Μ‚π‘–π‘ π‘žπ‘ ξƒ­+⎑⎒⎒⎒⎣1𝐿𝑠001πΏπ‘ βŽ€βŽ₯βŽ₯βŽ₯βŽ¦ξ‚Έπ‘£π‘ π‘‘π‘ π‘£π‘ π‘žπ‘ ξ‚Ή+πΎπ‘’ξ‚ΈΜ‚π‘£π‘‘Μ‚π‘£π‘žξ‚Ήξ‚Έξ€·Μ‚π‘–+𝛼sgnπ‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ ξ€Έξ€·Μ‚π‘–sgnπ‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ξ€Έξ‚Ή,(7) where ̂𝑖𝑠𝑑𝑠,Μ‚π‘–π‘ π‘žπ‘  and ̂𝑣𝑑,Μ‚π‘£π‘ž represent observational values at 𝑖𝑠𝑑𝑠, π‘–π‘ π‘žπ‘  and 𝑣𝑑,π‘£π‘ž, respectively, 𝛼 represents switching gain, sgn(β‹…) is sign function. Substituting (7) into (4), then the dynamic equations can be acquired as follows:̇𝐸𝑅=𝐴𝐸𝑅+πΎπ‘’ξ‚ΈΜ‚π‘£π‘‘βˆ’π‘£π‘‘Μ‚π‘£π‘žβˆ’π‘£π‘žξ‚Ήξ‚Έξ€·Μ‚π‘–+𝛼sgnπ‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ ξ€Έξ€·Μ‚π‘–sgnπ‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ξ€Έξ‚Ή,(8) whereβŽ‘βŽ’βŽ’βŽ’βŽ£βˆ’π‘…π΄=𝑠𝐿𝑠0𝑅0βˆ’π‘ πΏπ‘ βŽ€βŽ₯βŽ₯βŽ₯⎦,(9) and switching gain 𝛼 can be designed as𝑅𝛼=minπ‘ ξ€·Μ‚π‘–π‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ ξ€ΈπΏπ‘ βˆ’πΎπ‘’ξ€·Μ‚π‘£π‘‘βˆ’π‘£π‘‘ξ€Έξ€·Μ‚π‘–sgnπ‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ ξ€Έ,π‘…π‘ ξ€·Μ‚π‘–π‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ξ€ΈπΏπ‘ βˆ’πΎπ‘’ξ€·Μ‚π‘£π‘žβˆ’π‘£π‘žξ€Έξ€·Μ‚π‘–sgnπ‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ξ€Έξƒ°βˆ’π›Ώ,(10) where 𝛿 is very small value to ensure switching gain 𝛼 action in estimation.

Theorem 1. If switching gain 𝛼 satisfies (10), then (9) will be guaranteed globally asymptotic stability.

Proof. The Lyapunov function of positive definite can be selected as follows: 1𝑉=2𝑆𝑇Γ𝑅𝑆,(11) where Γ𝑅 is unit positive-definite matrix. Then we differentiate (11) as follows: ̇𝑉=𝑆𝑇Γ𝑅̇𝑆=𝐸𝑇𝑅Γ𝑅𝐴𝐸𝑅+πΎπ‘’ξ‚ΈΜ‚π‘£π‘‘βˆ’π‘£π‘‘Μ‚π‘£π‘žβˆ’π‘£π‘žξ‚Ήξ‚Ό+𝛼𝐸𝑇𝑅Γ𝑅̂𝑖sgnπ‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ ξ€Έξ€·Μ‚π‘–sgnπ‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ξ€Έξƒ­=ξ€Ίξ€·Μ‚π‘–π‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ Μ‚π‘–ξ€Έξ€·π‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ξ€Έξ€»Ξ“π‘…,Γ—βŽ‘βŽ’βŽ’βŽ’βŽ’βŽ£βˆ’π‘…π‘ ξ€·Μ‚π‘–π‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ ξ€ΈπΏπ‘ +πΎπ‘’ξ€·Μ‚π‘£π‘‘βˆ’π‘£π‘‘ξ€Έξ€·Μ‚π‘–+𝛼sgnπ‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ ξ€Έβˆ’π‘…π‘ ξ€·Μ‚π‘–π‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ξ€ΈπΏπ‘ +πΎπ‘’ξ€·Μ‚π‘£π‘žβˆ’π‘£π‘žξ€Έξ€·Μ‚π‘–+𝛼sgnπ‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ξ€ΈβŽ€βŽ₯βŽ₯βŽ₯βŽ₯βŽ¦π‘…=βˆ’π‘ πΏπ‘ ξ‚ƒξ€·Μ‚π‘–π‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ ξ€Έ2+ξ€·Μ‚π‘–π‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ξ€Έ2ξ‚„+πΎπ‘’Μ‚π‘£ξ€Ίξ€·π‘‘βˆ’π‘£π‘‘Μ‚π‘–ξ€Έξ€·π‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ ξ€Έ+ξ€·Μ‚π‘£π‘žβˆ’π‘£π‘žΜ‚π‘–ξ€Έξ€·π‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ξ€Ί||̂𝑖+π›Όπ‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ ||+||Μ‚π‘–π‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ||ξ€»Ξ”πœ†1+πœ†2,(12) where πœ†1𝑅=βˆ’π‘ πΏπ‘ ξ€·Μ‚π‘–π‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ ξ€Έ2+πΎπ‘’ξ€·Μ‚π‘£π‘‘βˆ’π‘£π‘‘Μ‚π‘–ξ€Έξ€·π‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ ξ€Έ||̂𝑖+π›Όπ‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ ||,πœ†2𝑅=βˆ’π‘ πΏπ‘ ξ€·Μ‚π‘–π‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ξ€Έ2+πΎπ‘’ξ€·Μ‚π‘£π‘žβˆ’π‘£π‘žΜ‚π‘–ξ€Έξ€·π‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ξ€Έ||̂𝑖+π›Όπ‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ||.(13) If the differentiation of the Lyapunov function is negative definite, the system can be guaranteed globally asymptotic stability. By switching gain in (9), πœ†1 and πœ†2 in (13) should be less than zero, then ̇𝑉<0 satisfy switching condition of sliding mode.

According to Theorem 1, the switching gain of switching surface in equal control of sliding mode is small enough, so that switching condition can be satisfied. When switching condition can be satisfied, the system in (8) will achieve asymptotic stability. Therefore, ̇𝐸𝑅=0.(14) It represent that system dynamic fall onto switching surface. We use (8) and (14), and relationship can be acquired as ̂𝑣𝑑=π‘£π‘‘βˆ’π›ΌπΎπ‘’ξ€·Μ‚π‘–sgnπ‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ ξ€Έ,Μ‚π‘£π‘ž=π‘£π‘žβˆ’π›ΌπΎπ‘’ξ€·Μ‚π‘–sgnπ‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ξ€Έ.(15) We substitute (15) into (5), then rotor flux position πœƒπ‘Ÿ of motor can be replaced into Μ‚πœƒπ‘Ÿ, and it is can be estimated asΜ‚πœƒπ‘Ÿ=tanβˆ’1ξ‚΅βˆ’Μ‚π‘£π‘‘Μ‚π‘£π‘žξ‚Ά=tanβˆ’1ξƒ―βˆ’πΎπ‘’π‘£π‘‘ξ€·Μ‚π‘–+𝛼sgnπ‘ π‘‘π‘ βˆ’π‘–π‘ π‘‘π‘ ξ€ΈπΎπ‘’π‘£π‘žξ€·Μ‚π‘–βˆ’π›Όsgnπ‘ π‘žπ‘ βˆ’π‘–π‘ π‘žπ‘ ξ€Έξƒ°,(16) and rotor angular speed πœ”π‘Ÿ of motor can be estimated as ξπœ”π‘Ÿ=2π‘ƒξ€·Μ‚π‘£π‘žΜ‚πœƒcosπ‘Ÿβˆ’Μ‚π‘£π‘‘Μ‚πœƒsinπ‘Ÿξ€Έ,(17) where Μ‚πœƒπ‘Ÿiss estimation of rotor flux position πœƒπ‘Ÿ and ξπœ”π‘Ÿis estimation of rotor angular speed πœ”π‘Ÿ.

In order to avoid chattering phenomenon of sliding mode, the sign function sgn(𝑓(𝑑)) can be replaced by the following equation as𝑓(𝑑)||||𝑓(𝑑)+𝜎,(18) whereξ‚»πœŽπœŽ=0,||||||||𝑓(𝑑)<πœ€,0,𝑓(𝑑)β‰₯πœ€,(19) where 𝜎0 and πœ€ are positive constants.

Owing to the load of electric scooter exited many uncertainties. The conditional PID controller cannot process with nonlinear uncertainties such as electric scooter. Therefore, an HRFNN control system using rotor flux estimator was developed to control PMSM drive system in order to drive electric scooter in this section. The configuration of the proposed HRFNN control system, which combines a supervisory control system, RFNN controller, and compensated control system, is depicted in Figure 2. The control law is designed to take the following form [6]:π‘ˆπ‘‘=π‘ˆπ‘†+π‘ˆπ‘…+π‘ˆπΆ,(20) where π‘ˆπ‘† is a supervisory control, π‘ˆπ‘… is a RFNN control, and π‘ˆπΆ is a compensated control. The supervisory control π‘ˆπ‘† is designed so that the states of the controlled system are stabilized around a predetermined bound region. Due to the excessive and chattering control effort induced by the supervisory control law, the RFNN control and compensated control are introduced to reduce and smooth the control effort when the system states are inside the predefined bound region. The RFNN control π‘ˆπ‘… is the main tracking controller used to mimic an idea control law, and the compensated control π‘ˆπΆ is designed to compensate the difference between the idea control law and the RFNN control. The supervisory control law fires only when the RFNN approximation properties cannot be guaranteed.

A four-layer RFNN comprises the input (the 𝑖 layer), membership (the 𝑗 layer), rule (the π‘˜ layer), and output layer (the π‘œ layer) and is adopted to implement the RFNN controller in this study. The signal propagation and the basic function in each layer of the RFNN are introduced as follows.

Layer 1 (Input Layer). For every node 𝑖 in this layer, the net input and the net output are represented as net1𝑖(𝑁)=π‘œπ‘₯1𝑖(𝑁)π‘€π‘œπ‘–π‘¦4π‘œπ‘¦(π‘βˆ’1),1𝑖(𝑁)=𝑓1𝑖net1𝑖(𝑁)=net1𝑖(𝑁),𝑖=1,2,(21) where π‘₯11=πœ”βˆ—βˆ’ξπœ”π‘Ÿ is the command error between the desired command, πœ”βˆ—, and the estimation of rotor angular speed, ξπœ”π‘Ÿ;π‘₯12=𝑒(1βˆ’π‘§βˆ’1)≑Δ𝑒 is the command error change, in which π‘§βˆ’1 represents a time delay; 𝑁 denotes the number of iterations; 𝑦4π‘œ is the output of the RFNN.

Layer 2 (Membership Layer). In this layer, each node performs a membership function. The Gaussian function is adopted as the membership function. For the 𝑗th node, net2𝑗π‘₯(𝑁)=βˆ’2π‘–βˆ’π‘šπ‘–π‘—ξ€Έ2ξ€·πœŽπ‘–π‘—ξ€Έ2,𝑦2𝑗(𝑁)=𝑓2𝑗net2𝑗(𝑁)=expnet2𝑗,(𝑁)𝑗=1,…,𝑛,(22) where π‘šπ‘–π‘— and πœŽπ‘–π‘— are, respectively, the mean and the standard deviation of the Gaussian function in the 𝑗th term of the 𝑖th input linguistic variable π‘₯2𝑖 to the node of Layer 2, and 𝑛 is the total number of the linguistic variables with respect to the input nodes.

Layer 3 (Rule Layer). Each node π‘˜ in this layer is denoted by ∏,which multiplies the input signals and outputs the result of product. For the π‘˜th rule node net3π‘˜ξ‘(𝑁)=𝑗𝑀3π‘—π‘˜π‘₯3𝑗𝑦(𝑁),3π‘˜(𝑁)=𝑓3π‘˜ξ€·net3π‘˜ξ€Έ(𝑁)=net3π‘˜(𝑁),π‘˜=1,…,𝑙,(23) where π‘₯3𝑗 represents the 𝑗th input to the node of Layer 3;𝑀3π‘—π‘˜, the weights between the membership layer and the rule layer, are assumed to be unity; 𝑙=(𝑛/𝑖)𝑖 is the number of rules with complete rule connection if each input node has the same linguistic variables.

Layer 4 (Output Layer). The single node π‘œ in this layer is labeled with βˆ‘, which computes the overall output as the summation of all input signals: net4π‘œξ“(𝑁)=π‘˜π‘€4π‘˜π‘œπ‘₯4π‘˜π‘¦(𝑁),4π‘œ(𝑁)=𝑓4π‘œξ€·net4π‘œξ€Έ(𝑁)=net4π‘œ(𝑁),π‘œ=1,(24) where the connecting weight 𝑀4π‘˜π‘œ is the output action strength of the π‘œth output associated with the π‘˜th rule; π‘₯4π‘˜ represents the π‘˜th input to the node of Layer 4, 𝑦4π‘œ=π‘ˆπ‘…. Moreover, π‘ˆπ‘… can be rewritten as follows: π‘ˆπ‘…=π‘ˆπ‘…(π„βˆ£π‘‚)=𝑂𝑇Γ,(25) where the error signal 𝐄 is the input of the RFNN; 𝑂=[𝑀411𝑀421⋯𝑀4𝑙1]𝑇 is the adjustable parameter vector of the RFNN; Ξ“=[π‘₯41π‘₯42β‹―π‘₯4𝑙]𝑇, in which π‘₯4π‘˜ is determined by the selected membership function and 0≀π‘₯4π‘˜β‰€1.

To develop the compensated control π‘ˆπΆ, a minimum approximation error 𝜌 is defined as follows:𝜌=π‘ˆβˆ—βˆ’π‘ˆπ‘…ξ€·π„βˆ£π‘‚βˆ—ξ€Έ,(26) where π‘‚βˆ— is an optimal weight vector which achieves the minimum approximation error, and the absolute value of 𝜌 is assumed to be less than a small positive constant, πœ‚ (i.e., |𝜌|<πœ‚). The error equation can be rewritten as follows:̇𝐄=Λ𝐄+ππ‘šπ‘ˆξ€½ξ€Ίβˆ—βˆ’π‘ˆπ‘…ξ€»(π„βˆ£π‘‚)βˆ’π‘ˆπΆβˆ’π‘ˆπ‘†ξ€Ύ=Λ𝐄+ππ‘šπ‘ˆξ€½ξ€Ίβˆ—βˆ’π‘ˆπ‘…ξ€·π„βˆ£π‘‚βˆ—ξ€Έ+π‘ˆπ‘…ξ€·π„βˆ£π‘‚βˆ—ξ€Έβˆ’π‘ˆπ‘…(ξ€»π„βˆ£π‘‚)βˆ’π‘ˆπΆβˆ’π‘ˆπ‘†ξ€Ύ=Λ𝐄+ππ‘šπ‘ˆξ€½ξ€Ίβˆ—βˆ’π‘ˆπ‘…ξ€·π„βˆ£π‘‚βˆ—ξ€Έ+ξ€·π‘‚βˆ—ξ€Έξ€»Ξ“βˆ’(𝑂)Ξ“βˆ’π‘ˆπΆβˆ’π‘ˆπ‘†ξ€Ύ=Λ𝐄+ππ‘šξ‚†ξ€·π‘‚πœŒ+βˆ—ξ€Έβˆ’π‘‚π‘‡Ξ“βˆ’π‘ˆπΆβˆ’π‘ˆπ‘†ξ‚‡.(27) Then, the Lyapunov function is defined asπ‘‰π‘Ž1(𝑑)=21𝐄𝐏𝐄+𝑂2π›Ύβˆ—ξ€Ύβˆ’π‘‚π‘‡ξ€½π‘‚βˆ—ξ€Ύβˆ’π‘‚.(28) Take the derivative of the Lyapunov function and use (27), thenΜ‡π‘‰π‘Ž1(𝑑)=βˆ’2𝐄𝐐𝐄+π„π‘‡πππ‘šξ€½πœ‚βˆ’π‘ˆπΆβˆ’π‘ˆπ‘†ξ€Ύ+π„π‘‡πππ‘šξ€½π‘‚βˆ—ξ€Ύβˆ’π‘‚π‘‡1Ξ“βˆ’π›Ύξ€½π‘‚βˆ—ξ€Ύβˆ’π‘‚π‘‡Μ‡π‘‚.(29) To satisfy Μ‡π‘‰π‘Ž(𝑑)≀0, the adaptation laws ̇𝑂 and the compensated controller π‘ˆπΆ are designed as follows:̇𝑂=π›Ύπ„π‘‡πππ‘šπ‘ˆΞ“,(30)𝐢𝐄=πœ‚sgnπ‘‡πππ‘šξ€Έ,(31) where 𝛾>0 is denoted as adaptation gains. Substitute (30) into (29), thenΜ‡π‘‰π‘Ž1(𝑑)=βˆ’2𝐄𝐐𝐄+π„π‘‡πππ‘šξ€½πœ‚βˆ’π‘ˆπΆβˆ’π‘ˆπ‘†ξ€Ύ1β‰€βˆ’2𝐄𝐐𝐄+π„π‘‡πππ‘šξ€½πœ‚βˆ’π‘ˆπΆβˆ’π‘ˆπ‘†ξ€Ύ1β‰€βˆ’2𝐄𝐐𝐄+π„π‘‡πππ‘š||πœ‚||βˆ’π„π‘‡πππ‘šπ‘ˆπΆβˆ’π„π‘‡πππ‘šπ‘ˆπ‘†.(32) The supervisory controller π‘ˆπ‘† is designed as follows:π‘ˆπ‘†=πˆπ‘šξ€·π„sgnπ‘‡πππ‘šξ€Έ,(33) where πˆπ‘š=ξ‚»1,ifπ‘‰π‘Ž>𝑉,0,ifπ‘‰π‘Ž<𝑉.(34) Substitute (31) and (33) into (32), thusΜ‡π‘‰π‘Ž1(𝑑)β‰€βˆ’2𝐄𝑇𝐐𝐄≀0.(35) Since Μ‡π‘‰π‘Ž(𝑑)≀0, Μ‡π‘‰π‘Ž(𝑑) is negative semidefinite (i.e., π‘‰π‘Ž(𝑑)β‰€π‘‰π‘Ž(0)), which implies 𝐄 and (π‘‚βˆ—βˆ’π‘‚) are bounded. Let function Μ‡π‘‰Ξž(𝑑)=βˆ’π‘Ž(𝑑)=𝐄𝑇𝐐𝐄/2, and integrate function Ξ(𝑑) with respect to time:ξ€œπ‘‘0Ξ(𝑑)π‘‘πœ=π‘‰π‘Ž(0)βˆ’π‘‰π‘Ž(𝑑).(36) Because π‘‰π‘Ž(0) is bounded and π‘‰π‘Ž(𝑑) is nonincreasing and bounded, thenlimπ‘‘β†’βˆžξ€œπ‘‘0Ξ(𝑑)π‘‘πœ<∞.(37) Differentiate Ξ(𝑑) with respect to time, thenΜ‡Ξž(𝑑)=𝐄𝑇𝐐̇𝐄.(38) Since all the variables in the right side of (28) are bounded, it implies ̇𝐄 is also bounded. Then Ξ(𝑑) is uniformly continuous [23]. By using Barbalat’s lemma [23, 24], it can be shown that limπ‘‘β†’βˆžΞž(𝑑)=0. Therefore, 𝐄(𝑑)β†’0 as π‘‘β†’βˆž. As a result, the hybrid control system is asymptotically stable. Moreover, the tracking error of the system, 𝑒, will converge to zero according to 𝐄(𝑑)=0.

In order to train the RFNN effectively, an online parameter training methodology can be derived using adaptation laws ̇𝑂 of the above Lyapunov stability theorem. Then adaptation laws of the parameters in the RFNN ̇𝑂(𝑀4π‘˜π‘œ,π‘šπ‘–π‘—,πœŽπ‘–π‘—,π‘€π‘œπ‘–) can be computed by the gradient descent method and the backpropagation algorithm as follows: ̇𝑀4π‘˜π‘œ=π›Ύπ„π‘‡πππ‘šΞ“Ξ”βˆ’π›Ύπœ•π‘‰π‘Žπœ•π‘ˆπ‘…πœ•π‘ˆπ‘…πœ•π‘¦4π‘œπœ•π‘¦4π‘œπœ•net4π‘œπœ•net4π‘œπœ•π‘€4π‘˜π‘œ=βˆ’π›Ύπœ•π‘‰π‘Žπœ•π‘ˆπ‘…π‘₯4π‘˜.(39) The above Jacobian term of controlled system can be rewritten as πœ•π‘‰π‘Ž/πœ•π‘ˆπ‘…=βˆ’π„π‘‡πππ‘š. The error term can be calculated as 𝛿3π‘˜Ξ”βˆ’πœ•π‘‰π‘Žπœ•π‘ˆπ‘…πœ•π‘ˆπ‘…πœ•π‘¦4π‘œπœ•π‘¦4π‘œπœ•net4π‘œπœ•net4π‘œπœ•π‘¦3π‘˜πœ•π‘¦3π‘˜πœ•net3π‘˜=π„π‘‡πππ‘šπ‘€4π‘˜π‘œ.(40) The error term of membership function can be calculated as𝛿2π‘—Ξ”βˆ’πœ•π‘‰π‘Žπœ•π‘ˆπ‘…πœ•π‘ˆπ‘…πœ•π‘¦4π‘œπœ•π‘¦4π‘œπœ•net4π‘œπœ•net4π‘œπœ•π‘¦3π‘˜πœ•π‘¦3π‘˜πœ•net3π‘˜πœ•net3π‘˜πœ•π‘¦2π‘—πœ•π‘¦2π‘—πœ•net2𝑗=ξ“π‘˜π›Ώ3π‘˜π‘¦3π‘˜(𝑁).(41) The mean π‘šπ‘–π‘— and standard deviation πœŽπ‘–π‘— of the Gauss function can be updated using the gradient descent method asΜ‡π‘šπ‘–π‘—=βˆ’πœ•π‘‰π‘Žπœ•net2π‘—πœ•net2π‘—πœ•π‘šπ‘–π‘—=𝛿2𝑗2ξ€·π‘₯2π‘–βˆ’π‘šπ‘–π‘—ξ€Έξ€·πœŽπ‘–π‘—ξ€Έ2,Μ‡πœŽπ‘–π‘—=πœ•π‘‰π‘Žπœ•net2π‘—πœ•net2π‘—πœ•πœŽπ‘–π‘—=𝛿2𝑗2ξ€·π‘₯2π‘–βˆ’π‘šπ‘–π‘—ξ€Έ2ξ€·πœŽπ‘–π‘—ξ€Έ3.(42) The recurrent weight π‘€π‘œπ‘– can be updated as Μ‡π‘€π‘œπ‘–=βˆ’πœ•π‘‰π‘Žπœ•net2π‘—πœ•net2π‘—πœ•π‘¦1π‘–πœ•π‘¦1π‘–πœ•net1π‘–πœ•net1π‘–πœ•π‘€π‘œπ‘–=𝑗𝛿2𝑗2ξ€·π‘šπ‘–π‘—βˆ’π‘₯2𝑖(𝑁)ξ€·πœŽπ‘–π‘—ξ€Έ2π‘₯1𝑖(𝑁)𝑦4π‘œ(π‘βˆ’1).(43)

4. Experimental Results

A block diagram of the DSP-based computer control system for a PMSM servo drive is depicted in Figure 1. The current-controlled PWM VSI is implemented by the IGBT power modules with a switching frequency of 15 kHz. The control algorithm was implemented by a TMS320C32 DSP-based control system. A TMS320C32 DSP-based control board includes multichannels of D/A, eight channels programmable PWM and encoder interface circuits. The PMSM used in this drive system is a three-phase two-pole 48 V 750 W 16.5 A 3600 rpm type. The parameters of the PMSM are given as follows: 𝑅𝑠=2.5Ξ©,𝐽=2.15Γ—10βˆ’3Nms,𝐡=6.18Γ—10βˆ’3N m s/rad, 𝐾𝑑=0.86Nm/A, 𝐿𝑑=πΏπ‘ž=6.53mH throught open circuit test, short test, rotor block test, loading test.

The control gains of the proposed HRFNN control system using rotor flux estimation are given for the following:𝛿=0.1,𝛼=2.5,πœ€=0.6,𝛾=0.5,πœ‚=0.1,𝜎=28,𝜌=0.05.(44) All the gains in the HRFNN control system using rotor flux estimation are chosen to achieve the best transient control performance in experimentation considering the requirement of stability. To show the effectiveness of the RFNN control with small rule set, the RFNN has two, six, nine, and one neuron at the input, membership, rule, and output layers, respectively. It can be regarded that the associated fuzzy sets with the Gaussian function for each input signal are divided into N (negative), Z (zero), and P (positive). Usually, some heuristics can be used to roughly initialize the parameters of the RFNN for practical applications. The effect due to the inaccurate selection of the initialized parameters can be retrieved by the online parameter training methodology. Therefore, for simplicity, the means of the Gaussian functions are set at βˆ’1, 0, 1 for the N, Z, P neurons, and the standard deviations of the Gaussian functions are set at 1. Moreover, the connecting weights between the output layer and rule layer, and the recurrent weights are initialized with random number.

To show the advantages of the HRFNN control PMSM drive system using rotor flux estimator for electric scooter is experimented for comparison. Two conditions provided in the experimentation here, one being the 1200 rpm case with mounted electric scooter and another being the 2400 rpm case with mounted electric scooter, are depicted in Figures 3 and 4, respectively. The measure and estimate rotor speed responses, measure and estimate rotor position, command and measure current in phase (a), and command and measure current in phase of the PI control system with mounted electric scooter at 1200 rpm are depicted in Figures 3(a), 3(b), 3(c), and 3(d), respectively. The measure and estimate rotor speed responses, measure and estimate rotor position, command and measure current in phase (a), command and measure current in phase of the PI control system with mounted electric scooter at 2400 rpm are depicted in Figures 4(a), 4(b), 4(c), and 4(d), respectively. Due to PI control system cannot process nonlinear uncertainties. The degenerate tracking responses shown in Figure 4(a) are resulted owing to the conditions of parameter variation and external disturbance.

The experimental results of the HRFNN control system with mounted electric scooter at 1200 rpm case and 2400 rpm case are shown in Figures 5 and 6. The measure and estimate rotor speed responses, measure and estimate rotor position, command and measure current in phase (a), command and measure current in phase of the HRFNN control system with mounted electric scooter at 1200 rpm are shown in Figures 5(a), 5(b), 5(c), and 5(d), respectively. The measure and estimate rotor speed responses, measure and estimate rotor position, command and measure current in phase (a), command and measure current in phase of the HRFNN control system with mounted electric scooter at 2400 rpm are shown in Figures 6(a), 6(b), 6(c), and 6(d), respectively. However, owing to the online adaptive mechanism of RFNN and the compensated controller, accurate tracking control performance of the PMSM can be obtained. The control performance of the proposed HRFNN control system is superior than PI control system with mounted electric scooter. Additionally, the small chattering phenomena, existed in phase (a) and in phase (b) as shown in Figures 6(c) and 6(d), are owing to the online adjusting of the RFNN to cope with the high-frequency unmodelled dynamic of the controlled plant. From the experimental results, the control performance of the proposed the HRFNN controller using rotor flux estimator is suitable for PMSM drive in electric scooter. The measured rotor speed responses due to step disturbance torque are given finally. The measured rotor speed responses and measure current in phase (a) due to a 𝑇𝐿=2N m load torque disturbance with load and shed load using the PI control system at 2400 rpm are shown in Figure 7(a), and the measured speed responses at the same disturbance condition using HRFNN control system are shown in Figure 7(b). From the experimental results, the degenerated responses due to the variation of rotor inertia and load torque disturbance are much improved using the HRFNN control system. From experimental results, transient response of the HRFNN control system is better than PI control system at load regulation.

5. Conclusions

A permanent magnet synchronous motor (PMSM) drive system using hybrid recurrent fuzzy neural network (HRFNN) control system with rotor flux estimator has been successfully developed to drive electric scooter with robust control characteristics in this study. First, the dynamic models of a PMSM drive system were derived according to electric scooter. Owing to the load of electric scooter exited many uncertainties. The conditional PI controller cannot process with nonlinear uncertainties such as electric scooter. Next, an HRFNN control system with supervisory control was designed based on the uncertainty bounds of the controlled system to stabilize the system states around a predefined bound region. To reduce the excessive and chattering control efforts resulted by the supervisory control, RFNN and compensated control system were introduced to reduce and smooth the control effort when the system states were inside the predefined bound region. Moreover, an online parameter training methodology, which was derived using the Lyapunov stability theorem and the gradient descent method, was proposed to increase the online learning capability of the RFNN. In order to reduce interference of encoder and cost down, a HRFNN control system using rotor flux estimator was developed to control PMSM drive system in order to drive electric scooter. The rotor flux estimator consists of the estimation algorithm of rotor flux position and speed based on the back electromagnetic force (EMF) in order to supply with HRFNN controller. The parameters of RFNN are trained according to different speeds in electric scooter. The electric scooter is operated to provide disturbance torque. From the experimental results, the control performance of the proposed HRFNN controller using rotor flux estimator is more suitable than PI controller for PMSM drive in electric scooter.

Acknowledgment

The author would like to acknowledge the financial support of the National Science Council in Taiwan, through its Grant NSC 99-2221-E-239-040-MY3.