Next Article in Journal
Optimising Hardware Accelerated Neural Networks with Quantisation and a Knowledge Distillation Evolutionary Algorithm
Previous Article in Journal
Output Voltage Ripple Reduction in a Symmetric Multistage-Stacked Boost Architecture (MSBA) Converter
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Step-by-Step Development and Implementation of FS-MPC for a FPGA-Based PMSM Drive System

1
Department of Life Science and System Engineering, Graduate School of Life Science and Systems Engineering, Kyushu Institute of Technology, Kitakyushu, Fukuoka 808-0196, Japan
2
Nagamori Actuator Research Center, Kyoto University of Advanced Science, Kyoto 6168577, Japan
3
Department of Electrical Engineering, National Institute of Technology, Ashok Rajpath, Patna 800005, India
*
Author to whom correspondence should be addressed.
Electronics 2021, 10(4), 395; https://doi.org/10.3390/electronics10040395
Submission received: 26 November 2020 / Revised: 25 January 2021 / Accepted: 26 January 2021 / Published: 5 February 2021
(This article belongs to the Section Power Electronics)

Abstract

:
In this paper, finite-set model-predictive control (FS-MPC) is inducted for a motor drive system. The dynamic response and multiple constraint handling nature of FS-MPC are the major factors that stand out among the controller family. However, for real-time implementation, the computational burden of FS-MPC is a primary concern. Due to the parallel processing nature and discrete nature of the hardware platform, the field-programmable gate array (FPGA) can be an alternative solution for the real-time implementation of the controller algorithm. The FPGA is capable of handling the computational requirements for FS-MPC implementation; however, the system development involves multiple steps that lead to a time-consuming debugging process. Moreover, specific hardware coding skill makes it more complex, corresponding to an increase in system complexity, which leads to a tedious task for the system development. This paper presents a FPGA-based implementation of the predictive current control of a permanent magnet synchronous motor (PMSM). FS-MPC of the PMSM drive system is designed and implemented using the digital model integration approach provided by the Xilinx system generator (XSG) and VIVADO platform. The step change in the load disturbance as well as the reference speed is considered for the analysis of the controller for the motor drive system. Moreover, the steady state error and harmonic distortion in the motor current is considered for an in-depth analysis of the system performance corresponding to different sampling frequencies.

1. Introduction

Permanent magnet synchronous motors (PMSMs) have been used in high-performance AC motor drives in industrial as well as domestic applications due to the advantages of high efficiency, a high torque-to-weight ratio and a wide range of speed operations [1,2,3]. The motor drive system needs to achieve the desired speed and a smooth transition corresponding to the change in the motor load condition, depending on its applications. With the progress of power electronics and microprocessor techniques, different control concepts have been proposed to achieve the desired PMSM response.
Conventional control techniques such as field-oriented control (FOC) and direct torque control (DTC) are widely used in industrial applications for PMSM control [4,5]. However, in the case of conventional control, the system complexity increases with the inclusion of the control parameters. DTC has good dynamic performance; however, it has poor steady-state performance. FOC has good steady-state performance compared to that of DTC. Due to the absence of the hysteresis band, the digital implementation of FOC is easier. However, FOC utilizes a cascaded PI controller for its implementation, and there are at least four parameters it needs to tune separately. With a change in working conditions, the drive performance may worsen [6]. The inner current control loop has a crucial role in motor drive systems to generate the reference voltage, which ultimately generates the switching signal. For small- and medium-power motor drive systems, the current-loop bandwidth is restricted due to a limited switching frequency, which directly impacts the system dynamic performance [7]. Moreover, the motor current is regulated by the terminal voltage applied by an inverter. Above the medium-speed range, if an abrupt change in the reference is applied, the reference voltage generated from the current control loop may undergo saturation, which, finally, leads to degradation in the current regulation [8] and a worsened motor performance. To achieve a fast dynamic response with better current regulation, a better controller is always desirable.
Model predictive control (MPC) is an advanced control strategy. It has become an attractive solution for PMSM control and can improve the dynamic response by predicting the next step current [9]. The MPC possesses attractive features such as direct use of the system model and a simultaneous multiple constraint handling nature to deal with multiple control parameters [10,11,12]. Considering these appealing characteristics, MPC is gaining attention among researchers and also has been applied in a wide variety of drive applications. The MPC implementation methodology utilizes the mathematical model of the plant to predict its future behavior, and an optimization function is used for the selection of the switching signal. The two main categories of MPC are continuous-control-set MPC (CS-MPC) and finite-control-set MPC (FS-MPC) [13]. CS-MPC generates switching signals to the power converter by calculating a continuous-controlled variable through a modulator with a constant switching frequency [14]. On the other hand, FS-MPC considers the finite set of the possible switching states of the power converter for the generation of switching signals for the power devices [15,16]. Compared with CS-MPC, the major advantage of FS-MPC is that it can directly generate the switching signal by optimizing the control parameter without any modulation stage. Finite-set-predictive torque control (FS-PTC) with discrete space vector modulation (DSVM) for a PMSM drive is presented in [17]. Moreover, a new preselection strategy is proposed to reduce the computational numerations from 37 to 6 voltage vectors, reduce the torque and flux ripples and ultimately achieve robust characteristics against parameter variations. In [18], a total harmonic distortion (THD)-oriented FCS-MPC controller is designed for single-phase inverters. To achieve this goal, a modified cost function is constructed using a linear combination, with weight factors of the current fundamental tracking error and an instantaneous THD value. A FS-MPC strategy with distribution in harmonic spectra similar to a PWM controller is proposed in [19]. This strategy reduces the number of commutations and also fixes the harmonic spectra. However, the cost function optimization problem is computed by predicting all the possible switching states of the power converter in every sampling period. With an increase in the complexity of the converter system, the system may undergo delays, which ultimately degrades the system performance [20,21].
The field-programmable gate array (FPGA) has the advantage of parallel processing, which shortens the computational time, ultimately to leading a decrease in the control delay and better system performance [22,23]. Moreover, the FPGA is considered the better option for controller designing and prototyping due to its fast computation ability, embedded processor and shorter design cycle [24,25]. In [26], an implementation methodology using the hardware description language (HDL) coder from MathWorks is presented with an automated workflow for implementing long-horizon FCS-MPC for a PMSM drive system. At present, a model-based design (MBD) for the FPGA implementation of complex control systems is attractive because of its time-saving capacity and great flexibility in simulation and debugging [27,28,29].
This paper presents the design and development of FS-MPC for a PMSM drive system that can be utilized in real-time FPGA implementations. The FS-MPC algorithm is developed for a three-phase, two-level voltage source inverter (VSI)-fed PMSM drive system using an optimization function in terms of current. The step-by-step design and development of the controller for the motor drive system are explained. The motor dynamics response is analyzed corresponding to different sampling frequencies. To analyze the dynamic behavior of the motor, a step change in the reference speed and load disturbance is introduced. Moreover, for the steady-state analysis, the steady-state error and harmonics in the motor current are considered corresponding to different sampling frequencies. The system performance is validated by comparing it with a linear PI controller. Furthermore, a model-based approach is adopted for the system implementation for the modeling of FS-MPC. For the real-time implementation of the FPGA, the controller is developed in the Xilinx system generator (XSG) environment integrated with MATLAB/Simulink, which automatically generates the HDL code.
The sections of this paper are organized as follows: Section 2 describes the algorithm of FS-MPC for the PMSM drive system considering the discrete-time mathematical model of the motor and three-phase VSI. In Section 3, the model-based design and development of the controller in the XSG environment are explained. A FPGA-based system implementation is explained in Section 4. The real-time implementation of the controller and results, along with a detailed discussion, are presented in Section 5. Finally, Section 6 concludes the paper.

2. PMSM Drive

2.1. PMSM Mathematical Model

The power circuit with a three-phase inverter-fed PMSM motor is shown in Figure 1. The PMSM stator dynamic equations are described as:
v s = R s i s + d ψ s d t
where vs and is are the stator voltage and current, respectively, and Rs is the stator resistance. ψs is the stator flux produced by the stator current and permanent magnet rotor. The equation describing ψs is given by:
ψ s = L s i s + ψ m
where Ls is the stator self-inductance, and ψm is the flux produced by the permanent magnet rotor. The stator equation on the dq coordinate can be given as:
v d = R s i d + L s d i d d t - ω r L s i q
v q = R s i q + L s d i q d t + ω r L s i d + ψ m ω r
where, ω r = d θ / d t is the mechanical rotor angular speed.
The electromagnetic torque produced by the motor, which depends on the stator quadrature component current and magnitude of the flux, is expressed below.
T e = 3 2 p p ψ m i q
where pp is the number of pole pairs in the motor. The mechanical dynamics of the motor can be given as:
d ω r d t = 1 J T e - T l - B J ω r
where, J is the motor inertia, B is the friction coefficient and Tl is the load torque. The rotor electrical angular speed ωe is given by:
ω e = p p ω r

2.2. FS-MPC for the PMSM Drive

FS-MPC utilizes the discrete-time model of the system and the possible switching states of the three-phase voltage source inverter for the execution of the control algorithm. The total number of switching states corresponding to the three-phase VSI is eight. Corresponding to these eight switching states, eight voltage vectors can be obtained, as given in Table 1. For every possible state of the power devices of the converter, the controller predicts the future behavior of the system variables for the next sampling time. The controller evaluates the values of the cost functions based on these predicted system variables. Finally, corresponding to the minimum cost function, the switching signal is generated for the power devices in each sampling time. The implementation of FS-MPC for the PMSM drive is illustrated in Figure 2. The control implementation can be divided into two parts, as follows:

2.2.1. Discrete-Time Predictive Model

In this paper, the discrete model of the PMSM is considered as a prediction model for the system implementation. The discrete-time model is used to predict the future behavior of the motor current from the supply voltage and the measured current at the instant of k. The discrete-time model can be obtained by an approximation of the load current derivative di/dt using the forward Euler discretization method for a sampling time Ts, given as:
d i d t i ( k + 1 ) - i ( k ) T s
The discretized motor current on the dq-axis is obtained by applying the relation of Equation (8) to Equations (3) and (4), as presented in the following equations:
i d ( k + 1 ) = K 1 i d ( k ) + K 2 ω r ( k ) i q ( k ) + K 3 v d ( k )
i q ( k + 1 ) = K 1 i q ( k ) - K 2 ω r ( k ) i d ( k ) + K 3 v q ( k ) - K 4 ω r ( k )
where K 1 = 1 - R s T s / L s , K 2 = T s , K 3 = T s / L s and K 4 = ψ m T s / L s . id(k + 1) and iq(k + 1) are the motor-predicted currents at the instant of k + 1. Based on the present sampling current i(k), speed ωe(k) and the given stator voltage v(k), the prediction current is evaluated for the next sampling instant (k + 1). These equations predict the stator current for each of the voltage vectors of the eight voltage vectors of the inverter.

2.2.2. Evaluation of the Cost Function

The cost function can be expressed as the error between the reference current and the predicted current:
G = ( i d - i d j ( k + 1 ) ) 2 + ( i q - i q j ( k + 1 ) ) 2 j = 0 , 1 , . . . . . 7
where i d and i q are the reference stator current on the d- and q-axes, respectively, i d j (k + 1) and i q j (k + 1) are the predicted current corresponding to the inverter voltage vector and j represents the number of predicted currents, according to the number of possible switching states. id* is considered to be zero in the case of the surface permanent magnet synchronous motor (SPMSM). The first term of the cost function represents the minimization of the reactive power. The second term is used to track the torque-producing current. Finally, the optimized switching states corresponding to the optimized cost function are applied to the inverter circuit.

3. XSG-Based Controller Designing

The controller development of the motor drive system consists of two parts: the speed controller and FS-MPC. The implementation of FS-MPC consists of three steps: prediction of the motor current, evaluation of the cost function and generation of the switching signal corresponding to the optimized cost function. The digital designing tool XSG integrated with MATLAB/Simulink is used for designing the controller, which is ultimately used for the FPGA-based system development.

3.1. Speed Controller

The controller implantation requires a reference value corresponding to the desired operation. The speed control loop consists of a PI controller to regulate the motor speed and correspondingly generates the reference quadrature axis current i q . The implementation of the speed controller in XSG is presented in Figure 3. The XSG-based FPGA implementation requires the discretization of the PI controller. Euler’s forward method is used for the discretization of the controller. The discretized equation for the PI control is presented as:
i q ( k ) = K p ω ω e r ( k ) + x ω k x ω ( k ) = x ω ( 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, and xω (k) is the output of the integral control at the instant k. For FS-MPC designed in dq the reference model, the three-phase sensed motor current needs to be converted into its equivalent dq-axis current.

3.2. Prediction Model

The discrete-time mathematical equations described in Section 2 are used for the prediction of the motor current. The cost function is computed using an absolute error between the reference current and the predicted current. For the implementation of FS-MPC in the dq frame, the evaluation of the cost function corresponding to the voltage vector j is shown in Figure 4. The cost function Gj can be evaluated for the voltage vector j. For a two-level inverter, there are eight voltage vectors and, hence, corresponding to eight voltage vectors, there will be eight cost functions.

3.3. Cost Function Optimization and Selection of Switching Vector

The block diagram representing the cost function optimization Gopt and the selection of an optimum switching state Sopt is shown in Figure 5. In order to compute the optimized cost function, a pipelining method is used. The cost functions are connected to one another to form a pipe-like structure. The two consecutive cost functions in the pipe line structure are compared by a comparator (C), and the minimum among these is selected through a 2:1 multiplexer (M). The output of the comparators (binary digit “0” or “1”) is used as select lines (sel1–sel7) for the multiplexers. These combinations of the comparator and MUX (C&M1–C&M7) are used for all the possible cost functions (G1–G7) to select the optimized cost function Gopt. The switching signals (S1–S8) corresponding to the voltage vectors (V1–V8) are used in a pipe line structure to find the optimized switching signal. The select lines (sel1–sel7) are used for a 2:1 MUX to find the optimized switching signals Sopt, as shown in Figure 4. Finally, the optimum switching signal is sliced to switching signals Sa, Sb and Sc. The inverter used for the experimental validation has an inbuilt inversion circuit with a dead time compensation for the PWM signal. Therefore, the switching signals are only generated for the upper-half power devices of the inverter.

4. FPGA-Based System Implementation

The FS-MPC based PMSM drive system in Figure 6 is designed and developed using the digital control environment of the FPGA. The control requires the sensed motor current and speed for its implementation in the FPGA. The three-phase motor current is sensed through a current sensor and passed through a level shifter. The shifted value of the measured current is fed to the FPGA by using an analog-to-digital converter (ADC). The digitized data from the ADC are synchronized at the rate of the sampling frequency through the ADC interface unit. The encoder is used to sense the motor position and motor angular speed as a pulse, with a resolution of 2048 pulses per revolution. The motor speed and positions can be obtained from this unit by using the position and speed detector. Finally, this parameter is fed to the control unit for the generation of the switching signal. For monitoring and validating, the digital signal is converted to an analog signal by using a digital-to-analog converter (DAC). The control unit, along with the position and speed detector and ADC (DAC) interface unit, is programmed to the FPGA board.
For the implementation of the control unit, the output of the speed control unit is responsible for the motor current prediction; therefore, sequential time synchronization is used within a sampling time. The timing diagram used for the FPGA implementation is shown in Figure 7. The start signal has a time of 1 μs, and its width is defined by the sampling time Ts. Consequently, the chip select and the done signal were switched to a high state, and the start signal was switched to a low state after the completion of the conversion of the analog signal to the digital signal by the ADC interface unit. The enable signal was generated with an on-time of Ton and a delay time of Td. The done signal in Figure 7 as an enable signal enables the speed control loop as well as abc-to-dq conversion simultaneously to perform parallel computation. The output of the speed control unit ( i q ) and abc-to-dq conversion (idq) is fed to the FS-MPC unit for the implementation of the control algorithm. Furthermore, the enable1 signal with an on-time Ton of 0.5 μs and a delay time Td of 1.5 μs from the enable signal enables the FS-MPC unit, as shown in Figure 8.

5. Experimental Results and Discussion

An experimental setup, as illustrated in Figure 9, was developed for the real-time implementation and analysis of FS-MPC for a FPGA-based PMSM drive system. The FPGA code was generated automatically through the modeled controller and programmed using dedicated software (Xilinx VIVADO Design Suite) for the real-time operation of FS-MPC. Sampling frequencies of 25 kHz, 50 kHz and 100 kHz were used for the extensive analysis of the impacts of the sampling frequency on the motor performance. The speed controller gain Kpω and Kiω values were kept constant for all the cases. However, considering the different sampling frequencies, the sampling time Ts was multiplied by the Kiω value as: Kiω × Ts. A step change in the reference speed and motor load condition (load disturbance) was introduced to demonstrate the system performance (current and speed) under the transient operation and also analyzed corresponding to the different sampling frequencies. Moreover, the motor current steady-state error and the current harmonic distortion corresponding to the different sampling times were considered to demonstrate the system performance. The controller was validated by comparing it to a conventional control technique (FOC). The system parameters and the component specifications considered for the development of the experimental setup are explained in Table 2 and Table 3. For the FPGA-based system implementation, a clock frequency of 100 MHz was considered.

5.1. Change in the Reference Speed

Depending on the applications, the motor may undergo a change in the reference speed. The controller should attain the new reference smoothly with a lower settling time. A step change in the reference speed from 900 rpm to 1200 rpm (low to high speed) and 1200 rpm to 900 rpm (high to low speed) was considered to demonstrate and analyze the performance of the controller for the PMSM drive system.
Figure 10, Figure 11 and Figure 12 demonstrate the speed regulation of the PMSM for the sampling frequencies of 25 kHz, 50 kHz and 100 kHz, respectively. The response was expanded from 0.4 s to 0.8 s and 2.6 s to 3 s for a close view of the speed dynamic response for a change in the reference speed from low to high and high to low, respectively. The settling time performance of the speed regulation was better for 100 kHz and 50 kHz compared to 25 kHz. With an increase in the sampling frequency, the error between the reference and the predicted current decreases, which ultimately improves the dynamic performance of the speed response. Furthermore, the motor currents id and iq are shown corresponding to the sampling times. Current iq for the sampling frequency of 100 kHz shows better transient performance. With an increase in the sampling frequency, the controller shows better transient performance. The settling time performance of speed regulation is summarized in Table 4 in terms of the time required to attain the steady state.

5.2. Change in the Load Condition

The motor system can go under the load disturbance condition as well, and the transient performance of the motor drive system was of concern to attain the desired reference speed smoothly and with a lower settling time. A step change in the electronic load to introduce a load disturbance was employed, which ultimately resulted in a motor current change from 0.5 A to 1 A (low to high) and 1 A to 0.5 A (high to low). The motor speed was kept at 900 rpm for all the operating conditions.
The speed regulation of PMSM under load disturbance in Figure 13, Figure 14 and Figure 15 is demonstrated for the sampling frequencies of 25 kHz, 50 kHz and 100 kHz. The response is expanded for a close view of the speed dynamic response for a change in the load disturbance from low to high and high to low. The settling time performance of the 100 kHz sampling frequency shows better performance for both high to low load and low to high load. The settling time performance of the speed under load disturbance is summarized in Table 5 considering the time required to attain the steady state.

5.3. Steady-State Error Analysis

In order to analyze the accuracy of the controller, the steady-state error (SSE) of the motor current was considered. A comparative analysis of the SSE was performed corresponding to different sampling frequencies through bar graphs. The SSE is calculated by using the below equations [30]:
S S E = e ¯ d 2 + e ¯ q 2 i d + i q × 100
where e ¯ d and e ¯ q are the mean values of the current error of the dq-axis. This error can be calculated as follows:
e ¯ d = 1 N i i d ( j ) - i d ( j )
e ¯ q = 1 N i i q ( j ) - i q ( j )
where, N is the number of the current samples considered for the calculation of the SSE. The SSE comparison for the sampling frequencies of 25 kHz, 50 kHz and 100 kHz is shown in Figure 16. The motor was working at a speed of 900 rpm. The motor currents of 0.8 ampere were considered for the calculation of the steady-state error of motor current. The SSE with sampling frequency of 100 kHz and current of 0.8 ampere have the lowest steady state error. The steady-state error decreases with the increase in the sampling frequency and motor current.

5.4. System Performance in Terms of THD

The controller performance (three-phase current harmonics) depends on the switching frequency at which the power devices operate. In the case of FS-MPC, the switching frequency of the power devices is governed by the sampling frequency. Therefore, different sampling frequencies were considered to examine and analyze the controller performance. The maximum switching frequency of FS-MPC is half of the sampling frequency considered for the system implementation. The maximum switching frequency that could be taken for the inverter to use in the experimental system is 50 kHz. Considering this condition, a maximum sampling frequency of 100 kHz can be used for the system implementation. Different sampling frequencies were exercised to investigate the system performance, as shown in Table 6. For all the cases, the motor was operated at a speed of 900 rpm. A current of 0.7 A was considered for the low-load case and 1.2 A for the high load case.
Under higher harmonic conditions, the motor has more iron losses, which ultimately reduce the motor efficiency and service life. Moreover, with an increase in the harmonics, the motor can have noise and vibration. As the switching frequency increases, the harmonics in the current decrease. Therefore, for better performance, the controller should work at a higher switching frequency, meaning a higher sampling frequency in the case of FS-MPC. However, with an increase in the switching frequency, the switching losses increase, which ultimately increases the size of the converter. According to the IEEE standard, a THD current of less than 5% is acceptable. Therefore, by considering both the system performance and the losses, the sampling frequency of 50 kHz can be a better option.

5.5. Comparison with FOC

In order to validate the system behavior of FS-MPC, the dynamic speed response was compared to that of the linear control, FOC. The sampling frequency for both the controllers was kept the same; that is, 100 kHz. The speed controller gain Kpω and Kiω were considered to be the same. The values of the controller gain (speed control and current control) are illustrated in Table 7. The controller gain value was calculated from the current controller bandwidth by using the following equation:
K p = T i 2 K p w m ( 1 R s ) T Σ
where Ti is the electromagnetic time constant of the motor, which can be represented as the ratio of the stator inductance and stator resistance (Ls/Rs = Kp/Ki); Kpwm is the equivalent gain of the PWM inverter; and TΣ = 1/2fsw. fsw is the switching frequency considered for the system implementation.
The comparative regulatory behavior of the speed control for the change in speed from 900 rpm to 1200 rpm is illustrated in Figure 17a for a sampling frequency of 100 kHz. In the case of FOC, the overshoot for the speed change is higher compared to that of the FS-MPC. Moreover, the settling time is also more compared to that of the FCS-MPC. Similarly, the speed response corresponding to the change in the load disturbance is also illustrated in Figure 17b. The speed response in the case of FOC has a slower response compared to that of the FS-MPC. Moreover, the speed undershoot and overshoot are more than twice as compared to that of FS-MPC. Further, a detailed comparison of the two controllers is presented in Table 8.

6. Conclusions

A FS-MPC-based PMSM drive system is presented for the FPGA-based real-time control implementation using the XSG digital simulator integrated with MATLAB/Simulink. In addition, a 100 kHz sampling frequency system for the FS-MPC and its implementation is achieved using FPGA. The sampling frequencies have a significant impact on motor performance under transient operation. The controller demonstrates better performance with a sampling frequency of 100 kHz under a change in the reference speed and load condition. System accuracy and the steady-state error in the motor current were analyzed. The steady-state error decreases with an increase in the sampling frequency. Furthermore, the effect of the sampling frequency on THD was also studied and investigated. The current ripple calculated in the form of %THD is lower, corresponding to the higher sampling frequency. As the sampling frequency increases, the switching frequency increases, which ultimately reduces the current ripples. The sampling frequency has an impact on motor performance. With an increase in the sampling frequency, the controller can achieve a better performance in terms of transient response under a change in the reference speed and motor load condition. In addition, the controller performance is also compared to the FOC PI-PI controller. A faster response for FS-MPC is obtained compared to that of FOC, which ultimately validates the proposed method.

Author Contributions

The manuscript preparation, including system design and experiments, was performed by I.M. The idea of the analysis was suggested by R.N.T., and V.K.S. contributed to the manuscript correction. T.H. supervised the writing of the paper and experimental work. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Zhang, G.; Chen, C.; Gu, X.; Wang, Z.; Li, X. An Improved Model Predictive Torque Control for a Two-Level Inverter Fed Interior Permanent Magnet Synchronous Motor. Electronics 2019, 8, 769. [Google Scholar] [CrossRef] [Green Version]
  2. Renu, K.; Kumari, N.K.; Krishna, D. Sensorless Control of Permanent Magnet Synchronous Motor with Flux Weakening Operation for Washing Machine Application. In Proceedings of the 2018 IEEE International Conference on Power Electronics, Drives and Energy Systems (PEDES), Chennai, India, 18–21 December 2018; pp. 1–6. [Google Scholar]
  3. Wang, R.; Jia, X.; Dong, S.; Zhang, Q. PMSM driving system design for electric vehicle applications based on bi-directional quasi-Z-source inverter. In Proceedings of the 13th IEEE Conference on Industrial Electronics and Applications (ICIEA), Wuhan, China, 31 May–2 June 2018; pp. 1733–1738. [Google Scholar]
  4. Celik, H.; Yigit, T. Field-Oriented Control of the PMSM with 2-DOF PI Controller Tuned by Using PSO. In Proceedings of the 2018 International Conference on Artificial Intelligence and Data Processing (IDAP), Malatya, Turkey, 28–30 September 2018; pp. 1–4. [Google Scholar]
  5. Meng, L.; Yang, X. Comparative analysis of direct torque control and DTC based on sliding mode control for PMSM drive. In Proceedings of the 2017 29th Chinese Control and Decision Conference (CCDC), Chongqing, China, 28–30 May 2017; pp. 736–741. [Google Scholar]
  6. Wróbel, K.; Serkies, P.; Szabat, K. Model Predictive Base Direct Speed Control of Induction Motor Drive—Continuous and Finite Set Approaches. Energies 2020, 13, 1193. [Google Scholar] [CrossRef] [Green Version]
  7. Wang, H.; Yang, M.; Niu, L.; Xu, D. Current-loop bandwidth expansion strategy for permanent magnet synchronous motor drives. In Proceedings of the 5th IEEE Conference on Industrial Electronics and Applications, Taichung, Taiwan, 15–17 June 2010; pp. 1340–1345. [Google Scholar]
  8. Kwon, Y.-C.; Kim, S.; Sul, S.-K. Voltage Feedback Current Control Scheme for Improved Transient Performance of Permanent Magnet Synchronous Machine Drives. IEEE Trans. Ind. Electron. 2013, 59, 3373–3382. [Google Scholar] [CrossRef]
  9. 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 2018 IEEE 3rd International Conference on Cloud Computing and Internet of Things (CCIOT), Dalian, China, 20–21 October 2018; pp. 88–93. [Google Scholar]
  10. Mir, T.; Singh, B.; Bhat, A.H. FS-MPC Based Speed Sensorless Control of Matrix Converter Fed Induction Motor Drive with Zero Common Mode Voltage. IEEE Trans. Ind. Electron. 2020, 1. [Google Scholar] [CrossRef]
  11. Rodriguez, J.R.; Kazmierkowski, M.P.; Espinoza, J.R.; Zanchetta, P.; Abu-Rub, H.; Young, H.; Rojas, C.A. State of the Art of Finite Control Set Model Predictive Control in Power Electronics. IEEE Trans. Ind. Informatics 2013, 9, 1003–1016. [Google Scholar] [CrossRef]
  12. Vazquez, S.; Leon, J.I.; Franquelo, L.G.; Rodriguez, J.; Young, H.; Marquez, A.; Zanchetta, P. Model Predictive Control: A Review of Its Applications in Power Electronics. IEEE Ind. Electron. Mag. 2014, 8, 16–31. [Google Scholar] [CrossRef]
  13. Wrobel, K.; Serkies, P.; Szabat, K. Continuous and Finite Set Model Predictive Control of Induction Motor Drive. In Proceedings of the IECON 2019—45th Annual Conference of the IEEE Industrial Electronics Society, Lisbon, Portugal, 14–17 October 2019; pp. 963–968. [Google Scholar]
  14. Kashif, M.; Murshid, S.; Singh, B.P. Continuous Control Set Model Predictive Controller for PMSM Driven Solar PV Water Pumping System. In Proceedings of the 2019 IEEE International Conference on Environment and Electrical Engineering and 2019 IEEE Industrial and Commercial Power Systems Europe (EEEIC/I&CPS Europe), Genova, Italy, 11–14 June 2019; pp. 1–6. [Google Scholar]
  15. Preindl, M.; Bolognani, S. Model Predictive Direct Speed Control with Finite Control Set of PMSM Drive Systems. IEEE Trans. Power Electron. 2013, 28, 1007–1015. [Google Scholar] [CrossRef]
  16. Wang, G.; Sun, H.; Li, L. Applying generalized predictive control to PM synchronous motor. In Proceedings of the Fifth World Congress on Intelligent Control and Automation (IEEE Cat. No.04EX788), Hangzhou, China, 15–19 June 2004; Volume 5, pp. 4463–4466. [Google Scholar]
  17. Alsofyani, I.M.; Bak, Y.; Lee, K.-B. Improved Finite Set-Predictive Torque Control of PMSM Fed by Indirect Matrix Converter with Discrete Space Vector Modulation. Electronics 2020, 9, 2133. [Google Scholar] [CrossRef]
  18. Li, P.; Li, R.; Feng, H. Total Harmonic Distortion Oriented Finite Control Set Model Predictive Control for Single-Phase Inverters. Energies 2018, 11, 3467. [Google Scholar] [CrossRef] [Green Version]
  19. Ramírez, R.O.; Baier, C.R.; Espinoza, J.; Villarroel, F. Finite Control Set MPC with Fixed Switching Frequency Applied to a Grid Connected Single-Phase Cascade H-Bridge Inverter. Energies 2020, 13, 5475. [Google Scholar] [CrossRef]
  20. Cortes, P.; Kazmierkowski, M.P.; Kennel, R.M.; Quevedo, D.E.; Rodriguez, J. Predictive Control in Power Electronics and Drives. IEEE Trans. Ind. Electron. 2008, 55, 4312–4324. [Google Scholar] [CrossRef]
  21. Rahman, S.; Meraj, M.; Iqbal, A.; Ben-Brahim, L. Optimized FPGA Implementation of PWAM-Based Control of Three—Phase Nine—Level Quasi Impedance Source Inverter. IEEE Access 2019, 7, 137279–137290. [Google Scholar] [CrossRef]
  22. Vyncke, T.; Thielemans, S.; Melkebeek, J.A. Finite-Set Model-Based Predictive Control for Flying-Capacitor Converters: Cost Function Design and Efficient FPGA Implementation. IEEE Trans. Ind. Informatics 2013, 9, 1113–1121. [Google Scholar] [CrossRef]
  23. Lucia, S.; Navarro, D.; Lucía, Ó.; Zometa, P.; Findeisen, R. Optimized FPGA Implementation of Model Predictive Control for Embedded Systems Using High-Level Synthesis Tool. IEEE Trans. Ind. Informatics 2018, 14, 137–145. [Google Scholar] [CrossRef] [Green Version]
  24. 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]
  25. Tavana, N.R.; Dinavahi, V. A General Framework for FPGA-Based Real-Time Emulation of Electrical Machines for HIL Applications. IEEE Trans. Ind. Electron. 2015, 62, 2041–2053. [Google Scholar] [CrossRef]
  26. Wendel, S.; Dietz, A.; Kennel, R. FPGA based finite-set model predictive current control for small PMSM drives with efficient resource streaming. In Proceedings of the 2017 IEEE International Symposium on Predictive Control of Electrical Drives and Power Electronics (PRECEDE), Pilsen, Czech Republic, 4–6 September 2017; pp. 66–71. [Google Scholar]
  27. Ma, Z.; Saeidi, S.; Kennel, R. FPGA Implementation of Model Predictive Control with Constant Switching Frequency for PMSM Drives. IEEE Trans. Ind. Informatics 2014, 10, 2055–2063. [Google Scholar] [CrossRef]
  28. Monmasson, E.; Idkhajine, L.; Naouar, M.W. FPGA-based con-trollers. IEEE Ind. Electron. Mag. 2011, 5, 14–26. [Google Scholar] [CrossRef]
  29. 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]
  30. Young, H.A.; Perez, M.A.; Rodriguez, J.; Abu-Rub, H. Assessing Finite-Control-Set Model Predictive Control: A Comparison with a Linear Current Controller in Two-Level Voltage Source Inverters. IEEE Ind. Electron. Mag. 2014, 8, 44–52. [Google Scholar] [CrossRef]
Figure 1. Three-phase voltage source inverter (VSI)-fed permanent magnet synchronous motor (PMSM).
Figure 1. Three-phase voltage source inverter (VSI)-fed permanent magnet synchronous motor (PMSM).
Electronics 10 00395 g001
Figure 2. Schematic diagram of the finite-set model-predictive control (FS-MPC)-based PMSM drive.
Figure 2. Schematic diagram of the finite-set model-predictive control (FS-MPC)-based PMSM drive.
Electronics 10 00395 g002
Figure 3. Xilinx system generator (XSG)-based design of the speed control loop.
Figure 3. Xilinx system generator (XSG)-based design of the speed control loop.
Electronics 10 00395 g003
Figure 4. XSG-based design of the current prediction and cost function.
Figure 4. XSG-based design of the current prediction and cost function.
Electronics 10 00395 g004
Figure 5. Cost function minimization and switching vector selection.
Figure 5. Cost function minimization and switching vector selection.
Electronics 10 00395 g005
Figure 6. FPGA-based system implementation.
Figure 6. FPGA-based system implementation.
Electronics 10 00395 g006
Figure 7. Timing diagram of the control loop.
Figure 7. Timing diagram of the control loop.
Electronics 10 00395 g007
Figure 8. Controller implementation in the FPGA.
Figure 8. Controller implementation in the FPGA.
Electronics 10 00395 g008
Figure 9. Experimental system.
Figure 9. Experimental system.
Electronics 10 00395 g009
Figure 10. (a) Motor speed response; (b) current response for the sampling frequency of 25 kHz.
Figure 10. (a) Motor speed response; (b) current response for the sampling frequency of 25 kHz.
Electronics 10 00395 g010
Figure 11. (a) Motor speed response; (b) current response for the sampling frequency of 50 kHz.
Figure 11. (a) Motor speed response; (b) current response for the sampling frequency of 50 kHz.
Electronics 10 00395 g011
Figure 12. (a) Motor speed response; (b) current response for the sampling frequency of 100 kHz.
Figure 12. (a) Motor speed response; (b) current response for the sampling frequency of 100 kHz.
Electronics 10 00395 g012
Figure 13. (a) Motor speed response; (b) current response for the sampling frequency of 25 kHz.
Figure 13. (a) Motor speed response; (b) current response for the sampling frequency of 25 kHz.
Electronics 10 00395 g013
Figure 14. (a) Motor speed response; (b) current response for the sampling frequency of 50 kHz.
Figure 14. (a) Motor speed response; (b) current response for the sampling frequency of 50 kHz.
Electronics 10 00395 g014
Figure 15. (a) Motor speed response; (b) current response for the sampling frequency of 100 kHz.
Figure 15. (a) Motor speed response; (b) current response for the sampling frequency of 100 kHz.
Electronics 10 00395 g015
Figure 16. Steady-state error (SSE) performance for FS-MPC.
Figure 16. Steady-state error (SSE) performance for FS-MPC.
Electronics 10 00395 g016
Figure 17. Motor speed response for the sampling frequency of 100 kHz. (a) Change in the reference speed; (b) change in the load disturbance.
Figure 17. Motor speed response for the sampling frequency of 100 kHz. (a) Change in the reference speed; (b) change in the load disturbance.
Electronics 10 00395 g017
Table 1. Voltage vectors of the three-phase VSI.
Table 1. Voltage vectors of the three-phase VSI.
Switching State
[ S a ,   S b ,   S c ]
Voltage Vectors
[ V α ,   V β ]
Vector Number
[0,0,0] [0,0]0
[1,0,0] [ 2 V d c /3,0]1
[1,1,0] [ V d c / 3 ,   3 V d c /3]2
[0,1,0] [ V d c / 3 ,   3 V d c /3]3
[0,1,1] [ 2 V d c /3,0]4
[0,0,1] [ V d c / 3 ,   3 V d c /3]5
[1,0,1] [ V d c / 3 ,   - 3 V d c /3]6
[1,1,1] [0,0]7
Table 2. System parameters.
Table 2. 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 ψm (Wb)0.188
Rotor inertia J (Kg-m2)5.3 × 10−5
Coefficient of viscous friction B (Nm/(rad/s))1.0 × 10−5
No. of pole pairs (pp)4
Table 3. Specifications of the system.
Table 3. 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 4. Speed response corresponding to the change in the reference speed.
Table 4. Speed response corresponding to the change in the reference speed.
Sampling Frequency (kHz)Low–HighHigh–Low
250.3 s0.08 s
500.2 s0.05 s
1000.05 s0.025 s
Table 5. Speed response corresponding to the change in load.
Table 5. Speed response corresponding to the change in load.
Sampling Frequency (kHz)Low–HighHigh–Low
250.15 s0.26 s
500.18 s0.24 s
1000.04 s0.17 s
Table 6. THD comparison.
Table 6. THD comparison.
Sampling Frequency (kHz)% THD for Low Load%THD for High Load
1012.68.02
256.24.1
503.72.4
1002.31.3
Table 7. Controller parameter.
Table 7. Controller parameter.
ParameterValue
Kpω3
Kiω30
Kpd, Kpq5
Kid, Kiq20
Table 8. Comparison of controllers.
Table 8. Comparison of controllers.
FOCFCS-MPC
Speed controllerPIPI
Inner controller2 PICost function
Tuned parameter number62
Pulse-width modulationYesNo
Switching frequencyConstantVariable
Computational burdenLowHigh
Inclusion of system constraintsDifficultEasy
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.; Singh, V.K.; Hanamoto, T. Step-by-Step Development and Implementation of FS-MPC for a FPGA-Based PMSM Drive System. Electronics 2021, 10, 395. https://doi.org/10.3390/electronics10040395

AMA Style

Mishra I, Tripathi RN, Singh VK, Hanamoto T. Step-by-Step Development and Implementation of FS-MPC for a FPGA-Based PMSM Drive System. Electronics. 2021; 10(4):395. https://doi.org/10.3390/electronics10040395

Chicago/Turabian Style

Mishra, Ipsita, Ravi Nath Tripathi, Vijay Kumar Singh, and Tsuyoshi Hanamoto. 2021. "Step-by-Step Development and Implementation of FS-MPC for a FPGA-Based PMSM Drive System" Electronics 10, no. 4: 395. https://doi.org/10.3390/electronics10040395

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