1 Development of A PMSM Motor Field-Oriented Control Algorithm For EV's
1 Development of A PMSM Motor Field-Oriented Control Algorithm For EV's
1 Development of A PMSM Motor Field-Oriented Control Algorithm For EV's
net/publication/361406550
CITATIONS READS
14 1,552
5 authors, including:
C. Bharatiraja Ramanathan .G
SRM Institute of Science and Technology SRM Institute of Science and Technology
305 PUBLICATIONS 3,860 CITATIONS 19 PUBLICATIONS 88 CITATIONS
All content following this page was uploaded by Ramanathan .G on 05 July 2022.
a r t i c l e i n f o a b s t r a c t
Article history: Recently, with issues such as global warming, melting of glaciers and climate change, the need for sus-
Available online xxxx tainable methods of living has seen a drastic increase. Combustion cars that run on petrol and diesel
are slowly being replaced with electrical vehicles (EVs). Currently, EVs face challenges in terms of range
Keywords: of kilometers offered, availability of charging systems, infrastructure for their development, etc. As the
Permanent Magnet Synchronous Motor need for electrical vehicles increase, the usages of Permanent Magnet Synchronous Motor (PMSM) too
Single Chip Controller have seen a growing trend. Motor control in an electrical vehicle is extremely crucial as a vehicle on road
Field Oriented Control
is subject to different terrains and hence, different loads. Throughout all these different scenarios, it is
Electrical Vehicles
Hardware in the Loop simulation
essential that the motor operates at its optimum efficiency in order to provide optimum vehicle perfor-
mance for the driver and passengers. Currently, several methods are available for the control of electrical
vehicles, nevertheless the field-oriented control (FOC) method for permanent magnet motors is widely
used due to its efficient nature. This paper discusses with the design of modified FOC control algorithm
for control the PMSM motor eliminates an initial jerk seen during the starting condition of a motor
thereby providing a smoother start. As the entire simulation is done using Hardware in the Loop model,
the values obtained have real life constraints taken into account, as opposed to a software only simula-
tion. Moreover, the transient time taken to reach a steady state value in speed and to also change direc-
tion of rotation have been improved as well. The simulation has been designed entirely on the Altair
Embed software.
Copyright Ó 2022 Elsevier Ltd. All rights reserved.
Selection and peer-review under responsibility of scientific committee of the International Conference on
Advanced Materials and Mechanical Characterization (ICAMMC 2021).
https://doi.org/10.1016/j.matpr.2022.06.080
2214-7853/Copyright Ó 2022 Elsevier Ltd. All rights reserved.
Selection and peer-review under responsibility of scientific committee of the International Conference on Advanced Materials and Mechanical Characterization (ICAMMC
2021).
Please cite this article as: P. Ramesh, M. Umavathi, C. Bharatiraja et al., Development of a PMSM motor field-oriented control algorithm for electrical vehi-
cles, Materials Today: Proceedings, https://doi.org/10.1016/j.matpr.2022.06.080
P. Ramesh, M. Umavathi, C. Bharatiraja et al. Materials Today: Proceedings xxx (xxxx) xxx
Ist ¼ ½Ista ðt Þ þ as Istb ðtÞ þ a2s Istc ðt Þ ð4Þ The Forward Clarke transformation or simply, the Clarke Trans-
formation is used to convert a three-phase quantity in a stationary
kst ¼ ½ksta ðt Þ þ as kstb ðt Þ þ a2s kstc ðtÞ ð5Þ frame to a two-phase quantity, with perpendicular axes, in that
same stationary frame. Usually, the two new quantities in the sta-
tionary frame are called as the ‘alpha’ and ‘beta’ quantities, respec-
tively denoted by the symbols, a and b. In the case of the field-
oriented control, the Clarke transformation is used to convert the
three-phase stator current values into two-phase stator currents,
Ialpha and Ibeta .
The equations for the Forward Clarke transformation are as fol-
lows, and the resulting vector representation for the same is shown
in Fig. 4.
3
Ialpha ¼ Ia ð6Þ
2
p p
3 3
Ibeta ¼ Ib Ic ð7Þ
2 2
Fig. 2. Direct axis equivalent circuit for PMSM motors.
3
P. Ramesh, M. Umavathi, C. Bharatiraja et al. Materials Today: Proceedings xxx (xxxx) xxx
where Ialpha and Ibeta are the stator current values after the Clarke
Transformation, and Ia , Ib and Ic are the original stator current
values.
The Forward Park transformation or simply, the Park transfor-
mation is a set of mathematical equations used to convert a two-
phase quantity in the stationary frame, to a two-phase quantity,
in the rotating frame. The two new quantities in the new frame
of reference are represented by the letter ‘D’ and ‘Q’. The two-
phase stator currents, Ialpha and Ibeta in the stationary frame to ID
or the direct axis current and IQ or the quadrature axis current in
the rotating frame. The equations for the forward Park Transforma-
tion are as follows, and the vector representation of the same has
been shown in Fig. 5.
where, ID and IQ is the direct axis current and quadrature axis cur-
rent respectively and £D is the angle between the rotor axis, also
known as the direct axis, and the ‘A’ phase of the three-phase stator
current. Fig. 6. Vector representation of the reverse Park transformation.
4
P. Ramesh, M. Umavathi, C. Bharatiraja et al. Materials Today: Proceedings xxx (xxxx) xxx
stationary reference frame. The newly generated three phase volt- avoid the accidents. The FOC techniques provides this faster
ages are the corrected voltages that are later on modulated onto response by comparing the actual speed with the reference speed
the inverter. This transformation forms the penultimate stage of and the obtained error is given to the PI controller block which
the entire FOC algorithm with the final stage being the modulation modifies the pulse pattern that is required to drive the motor at
of these new voltages onto the inverter board. The vector represen- defined speed. The simulation for the FOC control is done and
tation for the reverse Clark Transformation is shown in figure 4.11 the response are discussed in the upcoming section.
and the corresponding mathematical equations are:
5
P. Ramesh, M. Umavathi, C. Bharatiraja et al. Materials Today: Proceedings xxx (xxxx) xxx
the FOC control algorithm. Also given within the control module modified and modified algorithms respectively, during the starting
are blocks that prevent any sudden and drastic changes to the condition of the motor.
input values. This is mainly done in order to ensure that there is The quantity on the X axis denotes time in seconds and the Y
no damage to the motor. The entire simulation gets compiled axis represents the speed of the motor in rpm. As seen in Fig. 10,
and converted into C code which is then loaded onto the C2000 there is a slight jerk that is present during the starting condition,
microcontroller chip. Table 2 details the simulation parameters of where for an extremely brief moment the motor stutters a bit
the model, and the simulation circuit that incorporates the modi- before picking up the input and achieving a steady state speed.
fied FOC algorithm has been shown in Fig. 8. The simulation circuit Moreover, the time taken to reach this steady speed after the initial
that incorporates the modified FOC algorithm is shown below.Fig9. start condition is approximately 0.5 s, as can be calculated from
Fig. 9.. determining the X axis values at the respective intervals. However,
The inputs to the controller are the values of direct axis current,
quadrature axis current, and the Kp and Ki values for the propor-
tional integral (PI) controller that is present within the main con-
troller block of the simulation diagram. Our modifications and
improvements aim at fine tuning the control algorithm by deter-
mining new values for the PI controller that will better the
response time of the motor. The simulation file contains two parts
– a compile file where the simulation is designed, and a debug file,
where the output can be obtained and where its corresponding
input values can be changed in real time. The controller block for
the field-oriented control algorithm is shown below.
The motor, which was run using the improved and modified
FOC simulation, was tested and compared with the non-modified
control algorithm in two cases – 1) response time and nature of Fig. 11. Modified algorithm.
the motor during the starting condition and 2) the transient condi-
tions during change in rotation from an anticlockwise to clockwise
direction. Figs. 10 and 11 show the output waveforms for the non-
Fig.10. Non-modified algorithm. Fig. 12. Anticlockwise to clockwise transient for the non-modified algorithm.
6
P. Ramesh, M. Umavathi, C. Bharatiraja et al. Materials Today: Proceedings xxx (xxxx) xxx
Table 3 in the case of the modified algorithm, shown in Fig. 11, there is no
Comparison between the non-modified and modified algorithm. initial stuttering present. The motor begins picking up speed at
Area of comparison Time taken Time taken around 3.6 s, and quickly reaches its steady state speed at 3.9 s,
by by indicating a quicker response time of 0.3 s when compared to
non-modified modified the non-modified algorithm which takes 0.5 s. The second compar-
algorithm algorithm
ison between the modified and non-modified algorithms dealt
Starting to steady state condition 3.9 s 3.6 s with the transient condition of the motor when the direction of
Clockwise to anticlockwise transient 3.25 s 1.25 s
rotation is changed from an anticlockwise direction to a clockwise
condition
direction. This change in direction is achieved by controlling the
value of the quadrature axis current. A negative value of quadra-
Table 4 ture axis current causes the motor to rotate anti-clockwise, and a
Values of torque for different values of quadrature axis current. positive value of quadrature axis current causes clockwise rotation.
Quadrature axis current (A) Motor torque (mNm) The comparison of the two transient conditions between the non-
modified and modified algorithms is shown respectively in Figs. 12
0 0
0.2 22
and 13.Fig. 12.
0.6 64 Similar to the graphs shown before, the graphs in Figs. 12 and
0.8 88 13 have the X axis represent time in seconds and the Y axis denote
1.0 110 motor speed in rpm. The modified algorithm took around 1.25 s to
1.2 140
make the motor rotate from an anticlockwise to clockwise direc-
Fig.14. Experimental setup for implementation of the FOC algorithm for the PMSM motor.
7
P. Ramesh, M. Umavathi, C. Bharatiraja et al. Materials Today: Proceedings xxx (xxxx) xxx
tion, which is around 2 s faster than the non-modified algorithm to-line voltage between phases A and B were measured using the
that takes around 3.25 s to do the same. Table 3 details the com- oscilloscope and has been shown in Fig. 16. Moreover, the input
parison of the modified and non-modified FOC algorithm and the DC voltage of 20 V was measured using the oscilloscope, and the
respective time taken under different conditions.Table 4. waveform of the same has been shown in Fig. 17.Fig. 18.
In order to experimentally verify the accuracy of the algorithm,
a mixed signal oscilloscope was used to obtain waveforms of the 4.1. Relation between torque and quadrature axis current.
stator voltage and current using voltage and current probes. The
experimental setup along with the stator voltage and current According to the field-oriented control theory, the output tor-
waveforms are shown respectively in Figs. 14 and 15. The line- que of the motor is dependent on the value of the quadrature axis
8
P. Ramesh, M. Umavathi, C. Bharatiraja et al. Materials Today: Proceedings xxx (xxxx) xxx
rent based on the simulation that we ran. The input voltage pro-
vided was 20 V. The graph shown below depicts the relation
between the two quantities.
The theoretical formula for the PMSM motor torque under FOC
is:
3
Te ¼ k np IQ ð15Þ
2
Fig. 19. Transient change in motor speed due to change in quadrature axis current.
9
P. Ramesh, M. Umavathi, C. Bharatiraja et al. Materials Today: Proceedings xxx (xxxx) xxx
Fig.21. (a) XY plot of output current under a loaded condition, (b) Vector plot of output voltage under a loaded condition.
Fig. 22. (a) XY plot of output current in the unloaded condition, (b) Vector plot of output current in the unloaded condition.
which as we can see from the graph, causes an increase in motor tion for the motor as well as the removal of initial noises during the
torque. starting condition. The motor undergoes a rapid yet smooth decel-
The corresponding increase in torque results in the increase of eration from 2750 rpm to 0 rpm with minimal noise. The transient
motor speed as depicted by the graph below. By increasing the braking scenario has been shown in Fig. 20.
value of Iq (quadrature axis current) from 0.8 A to 1.0 A, the shaft
speed of the motor increases from 2685 rpm to around 2750 rpm 4.3. Output current waveform in loaded and unloaded conditions
as shown in Fig. 19 and the transient time is 0.02sec
approximately. The PMSM motor, under field-oriented control was tested under
loaded and unloaded conditions and the following output wave-
4.2. Braking scenario for the PMSM motor forms were obtained. A load of around 1 kg was applied to the shaft
of the motor. Upon adding the load to the shaft of the motor, the
In order to understand the braking characteristics of our PMSM amplitude of the output current rose significantly.
motor while under the influence of the field-oriented control algo-
rithm, we rapidly brought the motor to a stop from a speed of 4.3.1. Loaded condition
around 2750 rpm. The values used for Kp and Ki to test these char- The unloaded condition refers to the absence of any load pre-
acteristics were the optimal values of Kp = 4.7 and Ki = 55.8 that we sent on the shaft of the motor. In this state, the motor is free to
had arrived at for improving the anticlockwise to clockwise transi- run without any resistance on its shaft. Due to this reason, the cur-
10
P. Ramesh, M. Umavathi, C. Bharatiraja et al. Materials Today: Proceedings xxx (xxxx) xxx
rent drawn by the motor is minimal, and the peak amplitude of the Declaration of Competing Interest
output current is much lower when compared to the loaded state.
From the plotted graphs in Fig. 21, we can conclude that under The authors declare that they have no known competing finan-
loaded condition, the motor draws more current, hence there is cial interests or personal relationships that could have appeared
an increase in the amplitude of the output current. Under loading, to influence the work reported in this paper.
the motor draws a maximum current of 0.175 A per unit value, and
in the unloaded state, the maximum current drawn is 0.05 A per
unit value. The testing under loaded condition and unloaded con- Acknowledgement
ditions were carried out in order to simulate the real-life experi-
ence of different kinds of terrain when travelling in an electric car. This work is supported by Science and Engineering Research
Board (SERB), Department of Science and Technology (DST) - Pro-
ject File name: TAR/2019/000287 Dated; 25-11-2019. Project PI;
Dr.C.Bharatiraja and PI students authors are Thanks to the SERB
4.3.2. Unloaded condition
and DST.
The loaded condition can be seen as moving up a hill, where
more torque is required to keep the car running, thus drawing
more current. Whereas, the unloaded condition can be seen as References
travelling on level surface where a lesser torque is enough to keep
the car in motion. The Fig. 22 shown the current obtained during [1] A.M. Lulhe, T.N. Date, A technology review paper for drives used in electrical
vehicle (EV) & hybrid electrical vehicles (HEV), 2015 International Conference
the unloaded condition. As no load is connected, the current draws on Control, Instrumentation, Communication and Computational Technologies
in the motor is very less that is reflected in XY plot and vector plot (ICCICCT), 2015, pp. 632–636, doi:10.1109/ICCICCT.2015.7475355.
of output current unloaded condition. [2] R.M. Pindoriya, B.S. Rajpurohit, R. Kumar, K.N. Srivastava, Comparative analysis
of permanent magnet motors and switched reluctance motors capabilities for
electric and hybrid electric vehicles, IEEMA Engineer Infinite Conf. (eTechNxT)
2018 (2018) 1–5, https://doi.org/10.1109/ETECHNXT.2018.8385282.
[3] K. Baoquan, L. Chunyan, C. Shukang, Flux-Weakening-Characteristic Analysis
5. Conclusion of a New Permanent-Magnet Synchronous Motor Used for Electric Vehicles,
IEEE Trans. Plasma Sci. 39 (1) (Jan. 2011) 511–515, https://doi.org/10.1109/
TPS.2010.2076355.
The design and implementation of a modified field-oriented
[4] J. Lara, J. Xu, A. Chandra, Effects of Rotor Position Error in the Performance of
control algorithm was carried out. The modified algorithm was Field-Oriented-Controlled PMSM Drives for Electric Vehicle Traction
compared with the non-modified algorithm in the starting condi- Applications, IEEE Trans. Ind. Electron. 63 (8) (Aug. 2016) 4738–4751,
tion and also the anticlockwise to clockwise transient condition. https://doi.org/10.1109/TIE.2016.2549983.
[5] M. Abassi, A. Khlaief, O. Saadaoui, A. Chaari, M. Boussak, Performance analysis
It was found that the modified algorithm improved upon the orig- of FOC and DTC for PMSM drives using SVPWM technique, in: 2015 16th
inal algorithm in terms of possessing an improved response time in International Conference on Sciences and Techniques of Automatic Control and
order to reach a steady state and also reduction in the time taken to Computer Engineering (STA), 2015, pp. 228–233, https://doi.org/10.1109/
STA.2015.7505167.
change direction of rotation. Experimental verification in order to [6] Z. Tang and B. Akin, ‘‘A New LMS Algorithm Based Deadtime Compensation
obtain waveforms for the stator voltage and current using a mixed Method for PMSM FOC Drives,” in: IEEE Transactions on Industry Applications,
signal oscilloscope was carried out as well. It was found out that vol. 54, no. 6, pp. 6472-6484, Nov.-Dec. 2018, doi: 10.1109/TIA.2018.2853045.
[7] Y. Yan, S. Wang, C. Xia, H. Wang, T. Shi, Hybrid Control Set-Model Predictive
the new modified algorithm significantly improved upon the orig- Control for Field-Oriented Control of VSI-PMSM, IEEE Trans. Energy Convers.
inal field-oriented control algorithm. Other case studies such as the 31 (4) (Dec. 2016) 1622–1633, https://doi.org/10.1109/TEC.2016.2598154.
relation between quadrature current and motor torque, quadrature [8] J. Lara, A. Chandra, Performance Investigation of Two Novel HSFSI
Demodulation Algorithms for Encoder-less FOC of PMSMs Intended for EV
current and motor speed, and braking scenario, loaded and Propulsion, IEEE Trans. Ind. Electron. 65 (2) (2018) 1074–1083.
unloaded conditions were undertaken and their results were [9] A.D. Alexandrou, N.K. Adamopoulos, A.G. Kladas, Development of a Constant
reported as well. Switching Frequency Deadbeat Predictive Control Technique for Field-
Oriented Synchronous PermanentMagnet Motor Drive, IEEE Trans. Ind.
Electron. 63 (8) (Aug. 2016) 5167–5175, https://doi.org/10.1109/
TIE.2016.2559419.
[10] N. Li, Y. Ming, G. Xianguo, X. Dianguo, A comparative study of model predictive
CRediT authorship contribution statement
current control and FOC for PMSM, in: 2014 17th International Conference on
Electrical Machines and Systems (ICEMS), 2014, pp. 3143–3147, https://doi.
P. Ramesh: Conceptualization, Methodology, Writing – original org/10.1109/ICEMS.2014.7014034.
draft, Data curation, Formal analysis, Funding acquisition, Investi- [11] S.K. Kommuri, M. Defoort, H.R. Karimi, K.C. Veluvolu, A Robust Observer-Based
Sensor Fault-Tolerant Control for PMSM in Electric Vehicles, IEEE Trans. Ind.
gation, Project administration, Resources, Software, Supervision, Electron. 63 (12) (Dec. 2016) 7671–7681, https://doi.org/10.1109/
Validation, Visualization, Writing – review & editing. M. Uma- TIE.2016.2590993.
vathi: Conceptualization, Methodology, Writing – original draft, [12] V. Ivanov, D. Savitski, B. Shyrokau, A Survey of Traction Control and Antilock
Braking Systems of Full Electric Vehicles with Individually Controlled Electric
Data curation, Formal analysis, Funding acquisition, Investigation, Motors, IEEE Trans. Veh. Technol. 64 (9) (Sept. 2015) 3878–3896, https://doi.
Project administration, Resources, Software, Supervision, Valida- org/10.1109/TVT.2014.2361860.
tion, Visualization, Writing – review & editing. C. Bharatiraja: Con- [13] H. Fujimoto, J. Amada, K. Maeda, Review of traction and braking control for
electric vehicle, IEEE Veh. Power Propul. Conf. 2012 (2012) 1292–1299,
ceptualization, Methodology, Writing – original draft, Data https://doi.org/10.1109/VPPC.2012.6422491.
curation, Formal analysis, Funding acquisition, Investigation, Pro- [14] C. Bharatiraja, A. Shaikh, H. Katare, A. Modi, Investigation on Simultaneous
ject administration, Resources, Software, Supervision, Validation, Operation of Two Hub BLDC Motors for Electric Vehicles, J. Appl. Sci. Eng. 24
(2) (April 2021) 233–238.
Visualization, Writing – review & editing. G. Ramanathan: Con- [15] Z. Zhang, R. Ma, L. Wang, J. Zhang, Novel PMSM Control for Anti-Lock Braking
ceptualization, Methodology, Writing – original draft, Data cura- Considering Transmission Properties of the Electric Vehicle, IEEE Trans. Veh.
tion, Formal analysis, Funding acquisition, Investigation, Project Technol. 67 (11) (Nov. 2018) 10378–10386, https://doi.org/10.1109/
TVT.2018.2866828.
administration, Resources, Software, Supervision, Validation, Visu-
[16] H.P.H. Anh, C.V. Kien, T.T. Huan, P.Q. Khanh, Advanced Speed Control of PMSM
alization, Writing – review & editing. Sivaprasad Athikkal: Con- Motor Using Neural FOC Method, in: 2018 4th International Conference on
ceptualization, Methodology, Writing – original draft, Data Green Technology and Sustainable Development (GTSD), 2018, pp. 696–701,
curation, Formal analysis, Funding acquisition, Investigation, Pro- https://doi.org/10.1109/GTSD.2018.8595688.
[17] H. Celik, T. Yigit, Field-Oriented Control of the PMSM with 2-DOF PI Controller
ject administration, Resources, Software, Supervision, Validation, Tuned by Using PSO, Int. Conf. Artif. Intell. Data Process. (IDAP) 2018 (2018) 1–
Visualization, Writing – review & editing. 4, https://doi.org/10.1109/IDAP.2018.8620902.
11
P. Ramesh, M. Umavathi, C. Bharatiraja et al. Materials Today: Proceedings xxx (xxxx) xxx
[18] Marufuzzaman, M.B.I. Reaz, M.S. Rahman, M.A.M. Ali, ‘‘Hardware prototyping [23] M. Kamalesh, N. Senthilnathan, C. Bharatiraja, Design of a Novel Boomerang
of an intelligent current dq PI controller for FOC PMSM drive,” Int. Conf. Electr. Trajectory for Sliding Mode Controller, Int. J. Control Autom. Syst. 18 (11) (May
Comput. Eng. (ICECE 2010), 2010, pp. 86-88, doi: 10.1109/ 2020) 2917–2928.
ICELCE.2010.5700559. [24] C. Bharatiraja, S. Jeevananthan, R. Latha, V. Mohan, Vector selection approach-
[19] J. Xiong, H. Gu, Research on a Sliding Mode Variable Structure Control FOC of based hexagonal hysteresis space vector current controller for a three-phase
PMSM for Electric Vehicles, in: 2018 IEEE 9th International Conference on diode clamped MLI with capacitor voltage balancing, IET Power Electron. 9 (7)
Software Engineering and Service Science (ICSESS), 2018, pp. 1088–1091, (2016) 1350–1361, https://doi.org/10.1049/iet-pel.2015.0184S.
https://doi.org/10.1109/ICSESS.2018.8663843. [25] C. Bharatiraja, S. Jeevananthan, J.L. Munda, A Timing Correction Algorithm-
[20] P. Kumar, N. Kaushik, S. Dahiya, Simulation of sensor less speed control of Based Extended SVM for Three-Level Neutral-Point-Clamped MLI in Over
PMSM based on FOC method with MRAS adaptive speed estimator, 2013 Modulation Zone, IEEE J. Emerg. Select. Top. Power Electron. 6 (1) (2018) 233–
Annual IEEE. 245, https://doi.org/10.1109/JESTPE.2017.2723518.
[21] C. Bharatiraja, S. Jeevananthan, J.L. Munda, R. Latha, Improved SVPWM vector [26] M. Selvaperumal, D. Kirubakaran, C. Bharatiraja, A hybrid space vector
selection approaches in OVM region to reduce common-mode voltage for modulation for the near zero common mode voltage and common-mode
three-level neutral point clamped inverter, Int. J. Electr. Power Energy Syst. 79 current mitigation in diode clamped multilevel inverter fed induction motor
(1) (Oct. 2016) 285–297. drive, Int. Trans. Electr. Energy Syst. 30 (10) (2020), https://doi.org/10.1002/
[22] S. Balasubramanian, A. Panchanathan, B. Chokkalingam, S. Padmanaban, Z. 2050-7038.12535.
Leonowicz, Module Based Floorplanning Methodology to Satisfy Voltage Island
and Fixed Outline Constraints, Electronics 7 (11) (Nov. 2018) 325.
12