Next Article in Journal
Partial Isolation Type Buried Channel Array Transistor (Pi-BCAT) for a Sub-20 nm DRAM Cell Transistor
Previous Article in Journal
Investigation on Hybrid Energy Storage Systems and Their Application in Green Energy Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Synchronization and Sampling Time Analysis of Feedback Loop for FPGA-Based PMSM Drive System

by
Ipsita Mishra
1,*,
Ravi Nath Tripathi
2,3 and
Tsuyoshi Hanamoto
1
1
Department of Life Science and System Engineering, Graduate School of Life Science and Systems Engineering, Kyushu Institute of Technology, Fukuoka 808-0196, Japan
2
Next Generation Power Electronics Research Center, Kyushu Institute of Technology, Fukuoka 808-0196, Japan
3
Nagamori Actuator Research Center, Kyoto University of Advanced Science, Kyoto 6168577, Japan
*
Author to whom correspondence should be addressed.
Submission received: 28 September 2020 / Revised: 9 November 2020 / Accepted: 11 November 2020 / Published: 13 November 2020
(This article belongs to the Section Power Electronics)

Abstract

:
The proportional-integral (PI)-based control for the motor drive system is commonly used in industrial applications. However, motor drive system development and prototyping are tedious tasks especially considering a field programmable gate array (FPGA)-based real-time system implementation. In addition, the time-synchronization of the feedback control loop is another vital aspect concerning sampling time for the discrete-time controller. This paper presents an FPGA-based design and development of a permanent magnet synchronous motor (PMSM) drive system considering the impact of time-synchronization corresponding to the sampling time criteria for a feedback control loop. Furthermore, the repercussion of time-synchronization is examined for the transient conditions due to a step change in load as well as motor speed. The field-oriented control (FOC) of the PMSM drive system is designed and implemented for the system authentication using a digital model integration approach provided by the Xilinx system generator (XSG) and VIVADO platform. Moreover, harmonic distortion in the motor current is considered for an in-depth analysis of the system performance corresponding to sampling time as well as switching frequencies.

1. Introduction

The energy conversion is an essential part of an electrical power system. The electrical motors are one of the major parts of electromechanical energy conversion (EMEC) system that is used for conversion of electrical energy into mechanical energy. The motors have been used in a wide variety of applications from industrial systems to domestic appliances [1,2,3,4]. Due to the advantages such as high power density, high torque to weight ratio, higher efficiency and lower maintenance cost the permanent magnet synchronous motor (PMSM) has been used in low power range applications such as robotics, actuators and machine tools as well as in high power applications for industrial drives, vehicular propulsions, aerospace system and traction [5,6,7,8].
The controlled operation of a motor is highly essential corresponding to system applications to achieve the desired motor speed and smooth transition considering the change in motor load conditions. Several linear and nonlinear controls have studied and implemented PMSM speed control. The nonlinear controls such as hysteresis control and predictive control are implemented for the motor drive system [9,10,11]. These controllers have their own advantage; however, they have a better performance at higher sampling time. In the linear control such as the proportional-integral (PI)-based field-oriented control (FOC) PMSM drive has been implemented for industrial applications because of its simple structure and reliability [12,13]. This controller implementation reproduces the dynamic behavior of the PMSM similar to that of the DC motor [14].
The control algorithm for the motor drive system has been developed using digital signal processors (DSPs) [15,16,17]. However, the DSP-based implementations suffer from long execution time and high memory allocation of the CPU. Considering the above demerits of the DSP, the field programmable gate array (FPGA) having advantages of parallel processing, programmable hard-wired feature, fast computation ability, shorter design cycle and an embedded processor, is more effective for the controller execution [18,19,20]. In [21], an FPGA-based FOC for PMSM drive is developed, and for the FPGA-based architecture for the sensor, less speed control of PMSM is presented in [22]. FPGA-based PMSM drive system development has not been scrutinized considering time-synchronization for a feedback control loop concerning its implications on system performance especially in transient conditions.
The feedback control loop of the motor drive system consists of a speed controller (outer control loop) and a current controller (inner control loop). The time constant of the speed controller loop is different to the current control loop [23]. The performance of the motor drive system is governed by the bandwidth of the current control and switching frequency selection is crucial to achieve the desired bandwidth [24,25]. However, the increase in switching frequency will ultimately lead to the higher system losses.
Besides the switching frequency, the digital implementation of control involves the vital role of sampling frequency for the performance of a motor drive system [26]. Nevertheless, the sampling frequency is having a vital impact on system performance especially during the transient condition. There are no specific criteria available to decide the appropriate selection of sampling frequency. In [26], a lower limit is mentioned corresponding to a specific control and the bandwidth can be taken as one sixth of the sampling frequency. Furthermore, the digital delay of the control loop that consists of the throughput time of the AD converter, delay introduced by the converter in terms of dead time and computation time for the control execution constrained the controller bandwidth [24]. Consequently, the role of sampling frequency involves more complexity considering the performance of a motor drive system.
In general, the sampling rate of the speed controller is slower compared to that of the sampling rate of the current controller. As the control loops operate at different data sampling rate, the impact of time synchronization between these controllers is a crucial concern considering the transient conditions corresponding to the sampling rates. The motor speed is related to mechanical parameter and the sampling rate is predefined corresponding to the encoder setting. The sampling rate of the motor current is possible to control, corresponding to the maximum possible throughput rate of the AD converter. Consequently, the performance of the current control loop can be influenced under transient condition.
In the case of a motor drive system, the impact of sampling frequencies (throughput rates) is not yet analyzed categorically. The impact of sampling frequencies is required to probe the performance of the controller under transient conditions because the higher throughput rate will not necessarily result in improved performance. In addition, the indirect impact of throughput rate on speed controller is also one of the key points corresponding to a change in the reference speed of the motor. The repercussion of time synchronization on control loops corresponding to sampling frequencies is another crucial concern considering the transient conditions: change in reference speed and load disturbance.
This paper presents an FPGA-based design and development of a PMSM drive system considering the impact of time-synchronization for feedback control loops corresponding to sampling frequencies. A step-by-step and case-by-case time synchronization methodology is considered to analyze the repercussion of sampling frequencies corresponding to feedback control loop synchronization. The harmonics in a motor current are also taken into account for different switching frequencies and sampling frequencies correspondingly. Furthermore, a step change in reference speed as well as load disturbance is introduced to investigate the transient/dynamic behavior of the system. The controller is developed in the Xilinx system generator (XSG) environment integrated with the MATLAB/Simulink for the FPGA-based experimental system implementation.
The paper is organized as follows: Section 2 describes the mathematical model of PMSM, the controller designing and the step by step XSG based system implementation. The FPGA based system implementation is described in the Section 3. The experimental validation of the system performance is explained in the Section 4. Finally, the conclusions of the paper are presented in Section 5.

2. PMSM Drive

The motor structure consists of stator and rotor parts. The rotor part is responsible for the generation of the rotating magnetic field. The interaction between the rotor flux and the stator flux provides the desired torque. The stator dynamic equations in the rotating dq reference frame is given as:
d i d d t = R s L s i d + ω e i q + 1 L s v d
d i q d t = R s L s i q ω e i d + 1 L s v q φ ω e L s
The id and iq represent the stator current components in dq frame. Ls and Rs represents the stator winding inductance and resistance. vd and vq are the stator voltage component in the dq rotating frame corresponding to the three-phase stator voltage. The rotor electrical angular speed and the flux produced by the rotor magnet are represented by ωe and φ.
In case of the surface permanent magnet synchronous motor (SPMSM) the q axis current component is only responsible for the generation of the required torque. Mathematically the electromagnetic torque Te generation is given by:
T e = 3 2 φ i q
The mechanical dynamics of the motor have slower response compared to that of the electrical dynamics. Mathematically the mechanical dynamics of the motor can be described as:
d ω m d t = 1 J { T e T l B ω m }
where ωm is the rotor angular mechanical speed, Tl is the mechanical load torque, J is the moment of inertia and B is the viscous friction coefficient. The rotor electrical angular speed ωe and the electrical angular position θe are given by:
ω e = p p ω m
θ e = p p ω m d t
where, p p represents the number of pole pairs of the motor.

2.1. Field Oriented Control

The field-oriented control for the speed control of the PMSM is presented in the Figure 1. The FOC is a simple vector control which can control both the phase as well as the phase current magnitude of the motor. The implementation methodology of the control includes a speed control loop and the current control loop. Finally, the switching signal is generated for the power devices of the inverter.
The speed control loop evaluates the reference quadrature axis current iqref to control the current magnitude corresponding to the speed and load torque of the motor. The iqref in the stationary reference frame is evaluated by feeding the speed error signal through PI controller. The equation involved for the generation of the reference current signal is given as:
i q * = ( K p ω + K i ω s ) ω e r
where s is the Laplace operator and ωer is the error between the reference speed ω* and the measured speed, represented as:
ω e r = ω * ω e
id and iq are obtained from the sensed three phase current of motor using the Clarke’s and Park’s Transformations. id and iq are compared are the reference current idref and iqref, respectively. idref is kept as zero, as the motor torque for a SPMSM depends upon the quadrature axis current [27]. The error signals ider and iqer are converted to the equivalent voltages vd and vq, respectively through the PI controller. The following represent the d-q axis reference voltage equations:
v d = ( K p d + K i d s ) i d e r
i d e r = i d * i d
v q = ( K p q + K i q s ) i q e r
i q e r = i q * i q

2.2. Controller Design in XSG

XSG is a digital designing tool integrated with the MATLAB/Simulink and can be used for the FPGA-based system development. The model-based design in XSG has the functionality for automatic generation of the hardware description language (HDL) code that can be readily used for the real-time operation of FPGA-based system. FOC-based speed control of the PMSM drive system is designed and modelled in MATLAB/Simulink using XSG blockset. The modelling of the FOC is considered in three parts which is explained in detail.

2.2.1. Outer Speed Control Loop

The outer control loop of the FOC consists of a PI controller to regulate the motor speed. The implementation of the speed controller in XSG is presented in the Figure 2a. The PI controller implementation in FPGA using discrete-time domain platform of XSG, requires the discretization of dynamic Equation (7). Euler’s forward method is used [28] for the discretization of the controller. The discretized equation for the PI control is presented as:
i q * ( k ) = K p ω ω e r ( k ) + g ω ( k ) g ω ( k ) = g ω ( k 1 ) + K i ω T s ω e r ( k )
where i q * ( k ) and ωer(k) are the reference q axis stator current and speed error at the instant k. gω(k) is the output of the integral control at the instant k. Ts is the sampling time.

2.2.2. Inner Current Control Loop

The control of the dc motor is easier as the speed is directly proportional to the current. However, in case of the ac motor in order to achieve similar kind of behavior, the co-ordinate transformation is an essential part of the controller design. Initially, abc-dq transformation is performed using an enable signal for conversion form three phase to two phase system abc-αβ, and subsequently, the conversion of two-phase system to synchronously rotating frame αβ-dq transformation using sin-cos shown in the Figure 2b.
In the inner current control loop, two PI controllers are used as shown in Figure 2c to generate an equivalent voltage quantity for generation of switching signals. Similar to the speed PI controller, the current PI controller is represented for dq quantity in the discrete-time domain as:
v d ( k ) = K p d i d e r ( k ) + g d ( k ) g d ( k ) = g d ( k 1 ) + K i d T s i d e r ( k )
v q ( k ) = K p q i q e r ( k ) + g q ( k ) g q ( k ) = g q ( k 1 ) + K i q T s i q e r ( k )
where vd(k) and vq(k) are the stator reference voltage at the instant k. ider(k) and iqer(k) are the current error signal at the instant k. gd (k) and gq (k) are the output of the integral control at the instant k. Further, dq-abc transformation is performed, as shown in Figure 2d to convert into three phase voltage quantity for the generation of the switching signal.

2.2.3. Switching Signal Generation

The Sine triangle pulse width modulation (SPWM) is considered for the generation of the switching signal. The switching signal is generated using a PWM technique that requires a carrier wave and modulating wave. The triangular waveform as a carrier signal of frequency fsw, is generated by using the fundamental blockset of the XSG, as shown in Figure 3. The sinusoidal three phase voltage waveform as a modulating signal is compared with the triangular wave to generate the switching pulses for a three-phase inverter system. A free running up counter block is used to generate a ramp signal. If the counter count for the ramp signal is greater than the desired triangular wave frequency the counter will be reset. Afterwards, the counter output is compared to that of the half of the triangular wave frequency. Finally, an up/down counter is used to perform the increment when the value is 1 and decrement when the value is zero. For the generation of the switching signal, the carrier wave is compared to that of incoming reference voltage signal and updated immediately. The Inverter used for the experimental validation has an inbuilt inversion circuit with dead time compensation for the PWM signal. Therefore, the switching signals are only generated for the upper half power devices of the inverter.

3. FPGA System Implementation

The feedback control implementation of the PMSM drive system requires sensing of the control parameters: motor speed and current. Further, the sensed parameters are needed to feed to the control environment. Analog to digital converter (ADC) is used to feed the sensed control parameters to the digital control environment. PMSM drive system in Figure 4 is designed and developed using the digital control environment of FPGA. The encoder unit has the purpose to sense the rotor angular speed and angular position by generating pulses with a resolution of 2048 counts per revolution. The position and speed detector calculates the speed and rotor positions using the encoder pulses. The motor current sensed through a current sensor and fed to the FPGA through an ADC as shown in Figure 4. These currents are further passed through the PI controller unit. The control unit along with the ADC- digital to analog converter (DAC) interface unit and PWM generation unit is programmed to the FPGA board. The DAC interface unit is used to convert the controlled parameters into an analog signal, and it is measured and recorded through memory Hi-corder for monitoring and validation.

3.1. ADC Interface

An interface program is developed for the operation of ADC to feedback the signal to FPGA. The schematic diagram in Figure 5 represents the ADC interfacing and pin configuration of PMOD (Peripheral Module) AD1. PMOD AD1 is consisting of a 12-bit, two-channel AD7476A ADC with maximum possible sampling rate up to 1MSPS [29]. PMOD AD1 has six input pins that is for two analog input signals (ia and ib) with their respective ground pins and a power supply pin (VCC) with its respective ground pin (GND). Similarly, the PMOD AD1 has six output pins that are connected to the FPGA, consisting of a clock pin (Clk), chip select (CS) pin, two digital data output pins (D1 and D2) and a VCC with its respective GND.
Clk and CS signals are provided from FPGA using the ADC interface program block as shown in Figure 5. The conversion and data acquisition process is governed by the CS signal. The falling edge of the CS initializes the sampling of data as well as the data conversion. The digitized data D1 and D2 are synchronized at the rate of sampling frequency using the start signal through the ADC interface and it generates the CS signal corresponding to the start signal condition. Once the acquisition following the sampling as well as conversion of the analog data is completed, it generates a done signal as shown in Figure 5. The AD converter works at 1MSPS and following the requirement for the implementation of the control algorithm the sampling frequency is specified using the start signal.

3.2. Timing Diagram of Closed Loop

The sampled digitized data of the feedback control parameters are further used for the control algorithm of motor drive system. The control algorithm consists of a speed control unit, current control unit and PWM generation unit. The control algorithm execution is required to be completed within a pre-specified sampling time interval. The crucial factors are sampling time as well as execution of control algorithm in a synchronized way to generate the PWM switching signals. The sampling time at least should be half the carrier time (minimum sampling frequency should be double of the carrier frequency) as represented in Figure 6a. In addition, the sampling frequency can be taken higher; however, the impact of lower sampling time for the same carrier frequency may not always be advantageous.
The control algorithm is required to be executed in a sequential way as the output of the outer control loop generates the reference quantity and feeds to the inner control loop. The performance of the system is dependent on the controller bandwidth. The inner control loop has a dominant impact on the outer control loop; therefore, the bandwidth of the inner control loop should be higher to accommodate the bandwidth of the outer control loop. Furthermore, the execution timing can be crucial and may have significant impact on the system’s performance. The enabled signals (done, sig.1–sig. n) are generated with on time Ten for the execution of control algorithm. A buffer delay time of Td is inserted for the successive enabled signals to avoid overlapping.

3.3. Time Synchronization

A time synchronization for the execution of entire control algorithm is crucial for the system performance. As the output of one unit is responsible for the next, a sequential time synchronization is used to perform the computation of the control algorithm within a sampling time.
The timing diagram in Figure 6b is used for the implementation of the control algorithm in the FPGA. The start signal width is defined by sampling time Ts with on time of 1µs following the throughput time of ADC. Consequently, the done signal was switched to a high state following the quite time of 400 ns after the start signal switched to the low state. Following the done signal, the enabled signals are generated for the time-synchronized execution of the control algorithm.
There are various possibilities to generate the enabled signals to perform time-synchronization corresponding to the sampling time. In this study, enabled signals with on time Ten of 0.5 μs and a buffer delay time Td of 2.5 μs in between consecutive signals are considered for the time-synchronization analysis of the control algorithm. The enabled signal (done) enables the speed controller loop as well as abc to dq conversion simultaneously to perform parallel computation as shown in the Figure 7. Further, a methodological approach is considered by using the different combination of enabled input signals for the computation of the current controller unit and dq to abc conversion. There are three cases considered for the analysis of the effect of the time synchronization, as shown in the Figure 8, for the computation of current controller unit and dq to abc conversion.
Case I:
In case I, the done signal enables the speed PI controller and abc–dq conversion. Further, the enable1 signal with Ten of 0.5 μs and Td of 2.5 μs from the done signal is used to enable the current PI control. Similarly, the enable 2 signal with Ten of 0.5 μs and Td of 5.5 μs from the enable1 signal is considered to enable the dq–abc conversion. The timing diagram executing case I is represented in Figure 8a.
Case II:
In this case, similar to case I, the done signal enables the speed PI controller and abc–dq conversion, and the enable1 signal with Ten of 0.5 μs and Td of 5.5 μs from done signal is used to enable the current PI controller. Further, the enable2 signal with Ten of 0.5 μs and Td of 5.5 μs from the enable1 signal enables the dq–abc transformations. The timing diagram for case II is shown in Figure 8b.
Case III:
Similar to case I and II the enable1 with Ten of 0.5 μs and Td of 8.5 μs is used as an enable signal for the current controller loop and the enable2 with Ten of 0.5 μs and Td of 5.5 μs enables the dq to abc transformation. The timing diagram corresponding to case III is shown in the Figure 8c.

4. Experimental Results and Discussion

An experimental system is developed as shown in Figure 9 for the analysis and validation of the time synchronization for the FPGA-based PMSM drive system. The three cases of time synchronization methodology as discussed in Section 3 are considered for feedback control loop analysis. Sampling frequencies of 25, 50 and 100 kHz are used for the extensive analysis of impacts due to time synchronization. The delay time for case II and case III is more than of 10 μs; therefore, only case I is considered corresponding to the sampling frequency of 100 kHz. A step change in speed reference and motor load condition (load disturbance) is introduced to demonstrate the system performance under transient conditions and examine the effect of time synchronization corresponding to different sampling frequencies. The system parameters and the component specifications are explained in the Table 1 and Table 2. The sampling frequency of the speed controller is same as the current controller. Kp and Ki value for both the speed controller and the current controller are kept constant for all the cases as explained in the Table 3. However, considering the different sampling frequency, the sampling time Ts is multiplied with the Ki. The clock frequency considered for the FPGA-based system implementation is 100 MHz.
The no load speed response corresponding to the motor startup and stop is shown in the Figure 10. The speed reference is changed from 0 to 300 rpm (start-up) and 300 to 0 rpm (stop).

4.1. Change in Reference Speed

The motor system can go under the condition of speed change, and the transient performance of the motor drive system is of concern to attain the new speed smoothly with a lower settling time. A step change in the reference speed from 900 to 1500 rpm (low to high speed) and 1500 to 900 rpm (high to low speed) is considered to demonstrate and analyze the performance for time synchronization cases as well as sampling frequencies. The switching frequency of 5 kHz is used for the power devices of the inverter corresponding to different sampling time.
The speed regulation of PMSM in Figure 11, Figure 12 and Figure 13 is demonstrated for the sampling frequency of 25, 50 and 100 kHz. The settling time performance of speed regulation is better for 25 and 50 kHz as compared to 100 kHz for the case I of time synchronization. Further, the speed regulation performance has improved in case II and case III for 50 kHz. The settling time performance of speed regulation is summarized in Table 4 in terms of time required to attain the steady state.

4.2. Change in Load Condition

The motor system can go under the load disturbance condition as well, and the transient performance of motor drive system is of concern to attain the desired reference speed smoothly with a lower settling time. A step change in the electronic load to introduce a load disturbance is employed that ultimately results in a motor current change from 0.5 to 1 A (low to high) and 1 to 0.5 A (high to low). The switching frequency of 5 kHz is used to analyze the system behavior. The speed regulation of PMSM under load disturbance in Figure 14, Figure 15 and Figure 16 is demonstrated for the sampling frequency of 25, 50 and 100 kHz. The settling time performance of 100 kHz sampling frequency is best for time synchronization in case I from low to high as well as high to low. Further, the speed regulation performance has improved in case II and case III for 50 kHz compared to 25 kHz and become almost same as performance of 100 kHz in case I. The settling time performance of speed under load disturbance is summarized in Table 5 considering the time required to attain the steady state.

4.3. Effect of Sampling Frequency on Speed Control Loop

The mechanical response of the motor is slower compared to that of the electrical response of the motor. Therefore, the sampling rate of the speed controller is slower than that of the current controller. The sampling rate of the encoder considered for the experimental validation is 1 kHz. Considering the sampling rate of the encoder the minimum sampling frequency that can be consider for the implementation of the speed control loop is 1 kHz.
The motor speed response corresponding to the speed controller sampling frequency 1 kHz for the change in the speed reference from 900 to 1500 rpm (low to high) and 1500 to 900 (high to low) is shown in the Figure 17. The motor speed response corresponding to change in the load disturbance that results in motor current change from 0.5 to 1 A is shown in Figure 18. In order to compare the effect of the sampling frequency on the speed controller the motor speed response with sampling frequency 1 kHz is compared to the 50 kHz sampling frequency. The current controller sampling frequency is considered as 50 kHz for both the cases.
The settling time required for the speed response to reach the steady state value is summarized in Table 6 for the change in the speed reference and in Table 7 for the change in the load torque disturbance corresponding to both speed sampling frequencies of 1 and 50 kHz. The transient response for the sampling frequency of 50 kHz is slightly better compared to the 1 kHz for both change in the speed reference and change in the load torque disturbance. Moreover, case III has a better response for the speed sampling frequencies of 1 and 50 kHz.

4.4. System Performance in Terms of THD

The controller performance (three-phase current harmonics) depends up on the switching frequency at which the power devices are operating as well as on the sampling frequency at which the digitized sampled data are coming. Therefore, different switching frequencies corresponding to the different sampling frequencies are considered to examine and analyze the controller performance. The sampling frequency for the system should be double or more than double the switching frequency and is considered as the fundamental criteria. The combinations of the switching frequency and sampling frequency are exercised to investigate the system performance as shown in the Table 8 considering case I of the time synchronization.
The current ripples are presented in the form of percentage total harmonic distortion (%THD). The lower switching frequency performance in terms of %THD has improved drastically corresponding to an increase in sampling frequencies. Nevertheless, the higher switching frequency results in higher switching losses of the power devices and high sampling frequency demands the high-speed ADC to feedback the data samples at a higher rate. The advancement in digital technology with cost reduction trend can be vital in this aspect.

5. Conclusions

The PMSM drive system is presented considering the time synchronization analysis for FPGA-based real-time control implementation using a digital simulator XSG integrated with the MATLAB/Simulink (Math Works, Natick, MA, USA). The time synchronization of system control corresponding to sampling frequencies has a significant impact on motor performance under a transient operation. The controller demonstrates better performance under the change of speed reference for case II and Case III with a sampling frequency of 50 kHz. The controller performance under the change of load disturbance is better for case I with a sampling frequency of 100 kHz; however, Case III with sampling frequency of 50 kHz is comparable to it.
Furthermore, the effect of the sampling time on the speed controller and THD is also studied and investigated. The performance of the speed controller is slightly better for higher sampling frequency. Furthermore, the current ripple calculated in the form of %THD is lower corresponding to a higher sampling frequency. As the sampling frequency increases, the difference between the errors for consecutive samples reduces, and that ultimately reduces the current ripples. Therefore, a reduction in current ripple is achievable for an even lower switching frequency with a higher sampling frequency operation. The sampling frequency and the time synchronization both have an impact on motor performance. An appropriate synchronization methodology and sampling time can achieve better performance in terms of transient response under change in reference speed and motor load.

Author Contributions

The manuscript preparation including system design and experiments was performed by I.M. The idea of analysis was suggested by R.N.T. R.N.T. has also contributed to the experiment, manuscript writing and correction. The work was completed under the supervision of T.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Parasiliti, F.; Petrella, R.; Tursini, M. Low cost phase current sensing in DSP based AC drives. In Proceedings of the ISIE ’99, IEEE International Symposium on Industrial Electronics, Bled, Slovenia, 12–16 July 1999; Volume 3, pp. 1284–1289. [Google Scholar]
  2. Benbouzid, M. A review of induction motors signature analysis as a medium for faults detection. In Proceedings of the IECON ’98, 24th Annual Conference of the IEEE Industrial Electronics Society (Cat. No.98CH36200), Aachen, Germany, 31 August–4 September 1998; Volume 4, pp. 1950–1955. [Google Scholar]
  3. Persson, E.; Kulatunga, A.; Sundararajan, R. The challenges of using variable-speed motor drives in appliance applications. In Proceedings of the 2007 Electrical Insulation Conference and Electrical Manufacturing Expo, Nashville, TN, USA, 22–24 October 2007; pp. 453–458. [Google Scholar]
  4. Levi, E. Multiphase Electric Machines for Variable-Speed Applications. IEEE Trans. Ind. Electron. 2008, 55, 1893–1909. [Google Scholar] [CrossRef]
  5. Fatu, M.; Teodorescu, R.; Boldea, I.; Andreescu, G.-D.; Blaabjerg, F. I-F starting method with smooth transition to EMF based motion-sensorless vector control of PM synchronous motor/generator. In Proceedings of the 2008 IEEE Power Electronics Specialists Conference, Rhodes, Greece, 15–19 June 2008; pp. 1481–1487. [Google Scholar]
  6. Jahns, T.; Soong, W. Pulsating torque minimization techniques for permanent magnet AC motor drives—A review. IEEE Trans. Ind. Electron. 1996, 43, 321–330. [Google Scholar] [CrossRef]
  7. Pillay, P.; Krishnan, R. Modeling, simulation, and analysis of permanent-magnet motor drives. I. The permanent-magnet synchronous motor drive. IEEE Trans. Ind. Appl. 1989, 25, 265–273. [Google Scholar] [CrossRef]
  8. Perera, P.C.; Blaabjerg, F.; Pedersen, J.; Thogersen, P. A sensorless, stable V/f control method for permanent-magnet synchronous motor drives. IEEE Trans. Ind. Appl. 2003, 39, 783–791. [Google Scholar] [CrossRef]
  9. Ren, L.; Xie, E.; Zhao, Y.; Zhang, Z. A Novel Hysteresis Current Control Scheme in Synchronous dq-Frame for PMSM. In Proceedings of the 2019 22nd International Conference on Electrical Machines and Systems (ICEMS), Harbin, China, 11–14 August 2019; pp. 1–6. [Google Scholar]
  10. Zhu, Y.; Xu, G.; Yin, J.; Liu, Y. Speed Control of Permanent Magnet Synchronous Motor Drives Based on Model Predictive Control. In Proceedings of the 2017 International Conference on Computer Technology, Electronics and Communication (ICCTEC), Dalian, China, 19–21 December 2017; pp. 908–913. [Google Scholar]
  11. Mishra, I.; Tripathi, R.N.; Singh, V.K.; Hanamoto, T. Discrete Adaptive HCC Based FS-MPC with Constant Switching Frequency for PMSM Drives. In Proceedings of the 2019 22nd International Conference on Electrical Machines and Systems (ICEMS), Harbin, China, 11–14 August 2019; pp. 1–6. [Google Scholar]
  12. Mendoza-Mondragon, F.; Hernández-Guzmán, V.M.; Rodríguez-Reséndiz, J. Robust Speed Control of Permanent Magnet Synchronous Motors Using Two-Degrees-of-Freedom Control. IEEE Trans. Ind. Electron. 2018, 65, 6099–6108. [Google Scholar] [CrossRef]
  13. Wang, Z.; Chen, J.; Cheng, M.; Chau, K.T. Field-Oriented Control and Direct Torque Control for Paralleled VSIs Fed PMSM Drives with Variable Switching Frequencies. IEEE Trans. Power Electron. 2015, 31, 2417–2428. [Google Scholar] [CrossRef]
  14. Kim, W.; Yang, C.; Chung, C.C. Design and Implementation of Simple Field-Oriented Control for Permanent Magnet Stepper Motors without DQ Transformation. IEEE Trans. Magn. 2011, 47, 4231–4234. [Google Scholar] [CrossRef]
  15. Aimeng, W.; Heming, L.; Pengwei, S.; Yi, W.; Shuting, W. Dsp-based Field Oriented Control of PMSM using SVPWM in Radar Servo System. In Proceedings of the IEEE International Conference on Electric Machines and Drives, San Antonio, TX, USA, 15 May 2005; pp. 486–489. [Google Scholar]
  16. Alsayed, Y.M.; Maamoun, A.; Shaltout, A. High Performance Control of PMSM Drive System Implementation Based on DSP Real-Time Controller. In Proceedings of the 2019 International Conference on Innovative Trends in Computer Engineering (ITCE), Aswan, Egypt, 2–4 February 2019; pp. 225–230. [Google Scholar]
  17. Zhang, B.; Li, Y.; Zuo, Y. A DSP-based fully digital PMSM servo drive using on-line self-tuning PI controller. In Proceedings of the Proceedings IPEMC 2000. Third International Power Electronics and Motion Control Conference, Beijing, China, 15–18 August 2000; Volume 2, pp. 1012–1017. [Google Scholar]
  18. Selvamuthukumaran, R.; Gupta, R. Rapid prototyping of power electronics converters for photovoltaic system application using Xilinx System Generator. IET Power Electron. 2014, 7, 2269–2278. [Google Scholar] [CrossRef]
  19. Kung, Y.-S.; Tsai, M.-H. FPGA-Based Speed Control IC for PMSM Drive with Adaptive Fuzzy Control. IEEE Trans. Power Electron. 2007, 22, 2476–2486. [Google Scholar] [CrossRef]
  20. Tavana, N.R.; Dinavahi, V. A General Framework for FPGA-Based Real-Time Emulation of Electrical Machines for HIL Applications. IEEE Trans. Ind. Electron. 2014, 62, 2041–2053. [Google Scholar] [CrossRef]
  21. Marufuzzaman, M.; Reaz, M.B.I.; Ali, M.A.M. FPGA implementation of an intelligent current dq PI controller for FOC PMSM drive. In Proceedings of the 2010 International Conference on Computer Applications and Industrial Electronics, Kuala Lumpur, Malaysia, 5 December 2010; pp. 602–605. [Google Scholar]
  22. Idkhajine, L.; Monmasson, E.; Maalouf, A. Fully FPGA-Based Sensorless Control for Synchronous AC Drive Using an Extended Kalman Filter. IEEE Trans. Ind. Electron. 2012, 59, 3908–3918. [Google Scholar] [CrossRef]
  23. Tu, W.; Luo, G.; Chen, Z.; Liu, C.; Cui, L. FPGA Implementation of Predictive Cascaded Speed and Current Control of PMSM Drives with Two-Time-Scale Optimization. IEEE Trans. Ind. Inform. 2019, 15, 5276–5288. [Google Scholar] [CrossRef]
  24. Wang, H.; Yang, M.; Niu, L.; Xu, D. Current-loop bandwidth expansion strategy for permanent magnet synchronous motor drives. In Proceedings of the 2010 5th IEEE Conference on Industrial Electronics and Applications, Taichung, Taiwan, 15–17 June 2010; pp. 1340–1345. [Google Scholar]
  25. Maheshwari, R.; Trintis, I.; Torok, L.; Munk-Nielsen, S.; Douglass, P.J.; Bede, L. A Novel High Bandwidth Current Control Strategy for SiC mosfet Based Active Front-End Rectifiers under Unbalanced Input Voltage Conditions. IEEE Trans. Ind. Electron. 2017, 64, 8310–8320. [Google Scholar] [CrossRef]
  26. Ramamoorthy, R.; Athuru, S.K. High-Bandwidth Current Control of 3-Phase PMSM Using the F2837x Fast Current Loop Library; Texas Instruments: Dallas, TX, USA, 2017. [Google Scholar]
  27. Singh, B.; Murshid, S. A Grid-Interactive Permanent-Magnet Synchronous Motor-Driven Solar Water-Pumping System. IEEE Trans. Ind. Appl. 2018, 54, 5549–5561. [Google Scholar] [CrossRef]
  28. Tripathi, R.N.; Hanamoto, T. Two degrees of freedom dc voltage controller of grid interfaced PV system with optimized gains. Int. J. Electr. Power Energy Syst. 2017, 85, 87–96. [Google Scholar] [CrossRef]
  29. Digilent Pmod AD1 Reference Manual. Revised 15 April 2016. Available online: https://reference.digilentinc.com (accessed on 21 September 2020).
Figure 1. Field-oriented control (FOC)-based permanent magnet synchronous motor (PMSM) drive system.
Figure 1. Field-oriented control (FOC)-based permanent magnet synchronous motor (PMSM) drive system.
Electronics 09 01906 g001
Figure 2. PMSM drive system model for FOC in a Xilinx system generator (XSG) (a) speed control loop (b) abc-dq transformation (c) current control loop (d) dq-abc transformation.
Figure 2. PMSM drive system model for FOC in a Xilinx system generator (XSG) (a) speed control loop (b) abc-dq transformation (c) current control loop (d) dq-abc transformation.
Electronics 09 01906 g002
Figure 3. Switching pulse generation.
Figure 3. Switching pulse generation.
Electronics 09 01906 g003
Figure 4. Field programmable gate array (FPGA) implementation of the PMSM drive system.
Figure 4. Field programmable gate array (FPGA) implementation of the PMSM drive system.
Electronics 09 01906 g004
Figure 5. PMOD (Peripheral Module) AD1 with an analog to digital converter (ADC) interface.
Figure 5. PMOD (Peripheral Module) AD1 with an analog to digital converter (ADC) interface.
Electronics 09 01906 g005
Figure 6. Control loop timing criteria: (a) sampling time criteria with respect to carrier frequency (b) execution timing diagram.
Figure 6. Control loop timing criteria: (a) sampling time criteria with respect to carrier frequency (b) execution timing diagram.
Electronics 09 01906 g006
Figure 7. Time synchronizations for the system implementation.
Figure 7. Time synchronizations for the system implementation.
Electronics 09 01906 g007
Figure 8. (a) Case I, (b) Case II, (c) Case III.
Figure 8. (a) Case I, (b) Case II, (c) Case III.
Electronics 09 01906 g008
Figure 9. Experimental Setup.
Figure 9. Experimental Setup.
Electronics 09 01906 g009
Figure 10. Motor speed response.
Figure 10. Motor speed response.
Electronics 09 01906 g010
Figure 11. Speed response of PMSM at 25 kHz sampling frequency (a) case I, (b) case II and (c) case III.
Figure 11. Speed response of PMSM at 25 kHz sampling frequency (a) case I, (b) case II and (c) case III.
Electronics 09 01906 g011
Figure 12. Speed response of PMSM at 50 kHz sampling frequency (a) case I, (b) case II and (c) case III.
Figure 12. Speed response of PMSM at 50 kHz sampling frequency (a) case I, (b) case II and (c) case III.
Electronics 09 01906 g012
Figure 13. Speed response of PMSM at 100 kHz sampling frequency (case I).
Figure 13. Speed response of PMSM at 100 kHz sampling frequency (case I).
Electronics 09 01906 g013
Figure 14. Speed response of PMSM at 25 kHz sampling frequency (a) case I, (b) case II and (c) case III.
Figure 14. Speed response of PMSM at 25 kHz sampling frequency (a) case I, (b) case II and (c) case III.
Electronics 09 01906 g014
Figure 15. Speed response of PMSM at 50 kHz sampling frequency (a) case I, (b) case II and (c) case III.
Figure 15. Speed response of PMSM at 50 kHz sampling frequency (a) case I, (b) case II and (c) case III.
Electronics 09 01906 g015
Figure 16. Speed response of PMSM at 100 kHz sampling frequency case I.
Figure 16. Speed response of PMSM at 100 kHz sampling frequency case I.
Electronics 09 01906 g016
Figure 17. Speed response of PMSM (a) case I, (b) case II and (c) case III.
Figure 17. Speed response of PMSM (a) case I, (b) case II and (c) case III.
Electronics 09 01906 g017
Figure 18. Speed response of PMSM (a) case I, (b) case II and (c) case III.
Figure 18. Speed response of PMSM (a) case I, (b) case II and (c) case III.
Electronics 09 01906 g018
Table 1. System parameters.
Table 1. System parameters.
ParametersValues
Dc Voltage Vdc [V]80
Motor rated power [W]400
Rated torque Te [Nm]1.27
Stator resistance Rs [Ω]0.96
Stator inductance Ls [H]4.3 × 10−3
Permanent magnet flux φ [Wb]0.047
Rotor inertia J [Kg-m2]5.3 × 10−5
Coefficient of viscous friction B [Nm/(rad/s)]1 × 10−5
No of pole pairs [pp]4
Table 2. Specifications of the system.
Table 2. Specifications of the system.
ComponentsSpecifications
Three phase VSISTEVAL-IHM023V3, 1 kW
DC voltage supplyST5360318
Three phase rectifierS15VT60-4000
Electronic loadLSA-165
Back EMF loadPR-18-5A
Current sensorACS723
IsolatorADuM3440
ADCPMOD AD1
DACPMOD DA4
FPGA boardARTY Z7-Xc7z020
Table 3. Controller parameters.
Table 3. Controller parameters.
Controller ParametersValues
Kpω0.45
Kiω30
Kpd, Kpq5
Kid, Kiq20
Table 4. Speed response corresponding to the change of reference speed.
Table 4. Speed response corresponding to the change of reference speed.
Sampling Frequency (kHz)Case ICase IICase III
Low-HighHigh-LowLow-HighHigh-LowLow-HighHigh-Low
251 s1.1 s1.5 s1.1 s1.05 s1.5 s
501.25 s0.7 s1 s0.9 s1.1 s0.8 s
1001.5 s1.2 s----
Table 5. Speed response corresponding to the change of load disturbance.
Table 5. Speed response corresponding to the change of load disturbance.
Sampling Frequency (kHz)Case ICase IICase III
Low-HighHigh-LowLow-HighHigh-LowLow-HighHigh-Low
251.5 s1.3 s1.3 s1.1 s2 s1.6 s
501.3 s1.15 s1.1 s1 s1 s0.9 s
1000.9 s0.7 s----
Table 6. Speed response corresponding to the change of speed reference.
Table 6. Speed response corresponding to the change of speed reference.
Speed Controller Sampling Frequency (kHz)Case ICase IICase III
Low-HighHigh-LowLow-HighHigh-LowLow-HighHigh-Low
11.1 s0.8 s1.2 s1.2 s1.2 s0.9 s
501.25 s0.7 s1 s0.9 s1.1 s0.8 s
Table 7. Speed response corresponding to the change of load disturbance.
Table 7. Speed response corresponding to the change of load disturbance.
Speed Controller Sampling Frequency (kHz)Case ICase IICase III
Low-HighHigh-LowLow-HighHigh-LowLow-HighHigh-Low
11.35 s1.2 s1.45 s1.3 s1.1 s0.9 s
501.3 s1.15 s1.1 s1 s1 s0.9 s
Table 8. Comparison of total harmonic distortion (THD).
Table 8. Comparison of total harmonic distortion (THD).
Switching Frequency (kHz)Sampling Frequency (kHz)%THD
51020
257.5
504.5
1003.57
102510.2
503.7
1002.25
25502.6
1001.52
501002.5
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Mishra, I.; Tripathi, R.N.; Hanamoto, T. Synchronization and Sampling Time Analysis of Feedback Loop for FPGA-Based PMSM Drive System. Electronics 2020, 9, 1906. https://0-doi-org.brum.beds.ac.uk/10.3390/electronics9111906

AMA Style

Mishra I, Tripathi RN, Hanamoto T. Synchronization and Sampling Time Analysis of Feedback Loop for FPGA-Based PMSM Drive System. Electronics. 2020; 9(11):1906. https://0-doi-org.brum.beds.ac.uk/10.3390/electronics9111906

Chicago/Turabian Style

Mishra, Ipsita, Ravi Nath Tripathi, and Tsuyoshi Hanamoto. 2020. "Synchronization and Sampling Time Analysis of Feedback Loop for FPGA-Based PMSM Drive System" Electronics 9, no. 11: 1906. https://0-doi-org.brum.beds.ac.uk/10.3390/electronics9111906

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop