Modeling and Simulation of Electric Vehicle Using MATLAB
Modeling and Simulation of Electric Vehicle Using MATLAB
MATLAB
2024 OPJU International Technology Conference (OTCON) on Smart Computing for Innovation and Advancement in Industry 4.0 | 979-8-3503-7378-3/24/$31.00 ©2024 IEEE | DOI: 10.1109/OTCON60325.2024.10687624
Authorized licensed use limited to: Indian Institute Of Technology (Banaras Hindu University) Varanasi. Downloaded on February 18,2025 at 08:37:33 UTC from IEEE Xplore. Restrictions apply.
E. Wheels: The wheels receive the rotational force from the
electric motor via the transmission (if present) and enable the
vehicle to move.
EV systems may include additional components such as
regenerative braking systems, charging infrastructure, and
various sensors and control systems for safety and efficiency.
Fig. 2. EV diagram with specification parts
II. DESIGN
MATLAB is a widely used software tool for simulation and components. we would model the behavior of the electric
modeling in various fields, including electrical engineering. motor, including torque-speed characteristics, efficiency, and
When it comes to simulating and modeling electrical vehicles control algorithms.
(EVs) in MATLAB, it involves creating a mathematical C. Energy Management System: An important aspect of EV
representation of an EV system and simulating its behavior simulation modeling is the energy management system
under different conditions. Fig. 2 shows the specification (EMS), which determines how the available energy from the
diagram of electrical vehicle. battery is used to meet the vehicle's power demands
To perform MATLAB simulation modeling of an EV, we efficiently. The EMS includes algorithms for controlling
typically consider the following components: motor torque, battery charging and discharging, regenerative
braking, and optimizing power flow.
A. Vehicle Dynamics: This involves modeling the mechanical
behavior of the EV, such as the movement, acceleration, and D. Control Systems: EVs rely on various control systems for
braking. we can represent the vehicle dynamics using smooth operation. These include traction control, anti-lock
mathematical equations and vehicle parameters like mass, braking systems (ABS), stability control, and other safety
inertia, tire characteristics, and aerodynamics. following features. Modeling and simulating these control systems in
equation shows the dynamic behavior of vehicle body MATLAB allows you to assess their performance and
optimize their parameters. Different strategies of
= − . (1) quantification and distribution of braking forces are treated
= ( + ) (2) [3]. These strategies should have a direct impact on the
vehicle stability and maneuverability.
= ( + ) . ( + ) (3) E. Environment and Driving Profiles: To simulate real-world
scenarios, you need to consider the driving conditions and
Zero normal acceleration and zero pitch torque determine the environmental factors. This includes modeling road profiles,
normal force on each front and rear wheel. traffic scenarios, and weather conditions. MATLAB provides
( !"#.$%&'!"() )!*."#.+,$' tools to generate driving profiles or use real-world data to
= (4)
&(-!*) accurately represent different driving conditions.
! ( !"#.$%&'!"() )!-."#.+,$'
= (5) III. SIMULATION
&(-!*)
Once we have the mathematical models for the vehicle
At normal forces wheel satisfy the following equation. dynamics, powertrain system, energy management, and
+,$' control systems, we can integrate them in MATLAB and
+ = (6)
& simulate the behavior of the EV.
Where,
A. Battery Model
G is gravitational acceleration, Β is incline angle, M is mass
of the vehicle, H is height of vehicle center of gravity (CG) The battery model may include its voltage, current, and state
above the ground, a & b are distance of front and rear axles, of charge (SOC) dynamics.
respectively, from the normal projection point of vehicle CG
onto the common axle plane. Vx is velocity of the vehicle,
when Vx > 0, the vehicle moves forward. When Vx < 0, the
vehicle moves backward. Vw is wind speed, When Vw > 0, the
wind is headwind. When Vw < 0, the wind is tailwind. N is
number of wheels on each axle, Fxf and Fxr =Longitudinal
forces on each wheel at the front and rear ground contact Fig. 3. Circuit diagram of a battery
points, respectively. Fzf and Fzr are normal load forces on each
wheel at the front and rear ground contact points, respectively As the battery needs to be recharged, it is necessary to build
A is effective frontal vehicle cross-sectional area, Cd is a recharging structure [4] as shown in Fig. 3. The battery
aerodynamic drag coefficient, Ρ is mass density of air, and Fd model [5] uses the current load and battery state of charge to
is aerodynamic drag force. determine dc bus voltage. Following equations are used to
model the battery.
B. Powertrain System: The powertrain system of an EV
consists of the electric motor, battery, and other associated ./0 = 1 − 2 3 4.5 (7)
4.5
6.78 = 2 3 (8)
9.( = 1 − 2: 3 (9)
Authorized licensed use limited to: Indian Institute Of Technology (Banaras Hindu University) Varanasi. Downloaded on February 18,2025 at 08:37:33 UTC from IEEE Xplore. Restrictions apply.
%(<).0(%(<))
3 = 34 + ; 9@ (10)
/0 =>? (<)
Authorized licensed use limited to: Indian Institute Of Technology (Banaras Hindu University) Varanasi. Downloaded on February 18,2025 at 08:37:33 UTC from IEEE Xplore. Restrictions apply.
IV. RESULT AND DISCUSSION Due to the considerable expenses and challenges associated
with prototyping and testing, automotive designers heavily
This model is built using MATLAB/Simulink blocks that
depend on simulation and modeling to make informed
represent the various components of the EV system. The
decisions regarding energy control strategies, component
model should accurately reflect the vehicle's physics and
sizing, and energy efficiency improvements.
behavior, considering factors like battery dynamics, motor
efficiency, and overall vehicle dynamics. During the
simulation, the model calculates and generates various output
signals representing the vehicle's performance and behavior.
These outputs may include vehicle speed, acceleration, power
consumption and motor torque. The simulation output helps
in understanding how the EV behaves under different
conditions and inputs. The debugging process is an essential
part of simulation analysis to ensure the accuracy and
reliability of the results.
The Fig. 6 shows the graphs of slip and force graph for
both wheels. In both front and rear wheel the sleep in constant
after initial spikes. But the force is changes in both wheels Fig. 7. Torque Curve
according to operating torque. Fig. 7 shows the torque graph
in this system torque is applied at 5 and 15 second which is
shown in the graph according to the applied torque the speed
variation is also shown in the Fig. 8.
The results obtained from the simulation are presented in this
section. In the performance of EV is tested when the effect of
wind speed opposing the vehicle propulsion is not considered
and the road terrain is considered as flat i.e. the vehicle is
considered running on a flat surface. In this case as depicted
in figures 8 the vehicle accelerates from 0 to 10 km/hr. speed
in 5 seconds and to 18 km/sec. at 15 seconds. The maximum
speed of EV is 28 km/hr at 50 seconds where break is applied
then the value of speed decays. The vehicle runs at a constant
speed of 22 km/hr till 100 seconds It can be observed from
figure 8 that the total distances travelled by the vehicle is 0.6 Fig. 8. Distance and speed curves
km. in 100 seconds.
V. CONCLUSION REFERENCES
[1] Benysek, G., and Jarnut, M. “Electric vehicle charging infrastructure
In this paper a battery powered EV has been simulated by in Poland” Renewable and Sustainable Energy Reviews Vol. 16, Issue
using MATLAB software. Modeling and simulating the EV 1. (2012): https://doi.org/10.1016/j.rser.2011.07.158.
drive train using MATLAB-Simulink offers significant [2] Cuma, M. U., and Koroglu, T. “A comprehensive review on
estimation strategies used in hybrid and battery electric vehicles”
advantages in understanding energy flow, functionality, and Renewable and Sustainable Energy Reviews Vol. 42, (2015):
efficiency. The motor's operation mode is determined by https://doi.org/10.1016/j.rser.2014.10.047.
factors such as the desired road speed and torque or the [3] Gong, X., Chang, S., Jiang, L., & Li, X. “Research on regenerative
polarity of the current and voltage provided to the motor. This technology of EV based on direct-drive electric-hydraulic brake unit”.
2015 IEEE International Conference on Mechatronics and
study introduces a compact variant of the electric vehicle Automation (ICMA), 2059–2064. (2015): https://doi.org/10.1109
design. /ICMA. 2015. 7237803.
[4] Gu, B., Lai, J.-S., Kees, N., & Zheng, C. “Hybrid-Switching Full-
Bridge DC–DC Converter with Minimal Voltage Stress of Bridge
Rectifier, Reduced Circulating Losses, and Filter Requirement for
Electric Vehicle Battery Chargers”. IEEE Transactions on Power
Electronics, 28(3), 1132–1144. (2015): https://doi.org/10.1109/
TPEL. 2012.2210565.
[5] Haghbin, S., Khan, K., Lundmark, S., Alakula, M., Carlson, O., Leks,
M., &Wallmark, O.” Integrated chargers for EV’s and PHEV’s:
examples and new solutions”. The XIX International Conference on
Electrical Machines ICEM 2010, 1–6. https://doi.org /10.1109/
ICELMACH .2010.5608152.
[6] Kisacikoglu, M. C., Ozpineci, B., & Tolbert, L. M. “Examination of
a PHEV bidirectional charger system for V2G reactive power
compensation". 2010 Twenty-Fifth Annual IEEE Applied Power
Electronics Conference and Exposition (APEC), 458–465.
https://doi.org/10.1109/APEC.2010.5433629.
[7] Rawat N., Thakur P., Singh A.K. “A novel hybrid parameter
estimation technique of solar PV”. International Journal of Energy
Fig. 6. Force and Slip outputs of front and Rear Wheel Research volume 46, no. 4. (2022): 4919-4934. https://doi.org/
10.1002/er.7485.
Authorized licensed use limited to: Indian Institute Of Technology (Banaras Hindu University) Varanasi. Downloaded on February 18,2025 at 08:37:33 UTC from IEEE Xplore. Restrictions apply.
[8] Kharola, A., Choudhary, V., Rahul, Madhava, S., Abhijat, Nagalia, A.
“PID Based Optimal Neural Control of Single Wheel Robot (SWR)”
Soft Computing Applications in Modern Power and Energy Systems.
EPREC 2023. Lecture Notes in Electrical Engineering, vol 1107.
Springer, Singapore. (2024): https://doi.org/10.1007/978-981-99-
8007-9_10
[9] Shakya, Amit Kumar, Ayushman Ramola, and Anurag Vidyarthi.
"Statistical quantification of texture visual features for pattern
recognition by analyzing pre-and post-multispectral Landsat satellite
imagery." Natural Hazards Review 22.4 (2021): 05021011
[10] Johri, Ayushi, Anchal, Rishi Prakash, Anurag Vidyarthi, Vivek
Chamoli, and Sharat Bhardwaj. "IoT-based system to measure soil
moisture using soil moisture sensor, GPS data logging and cloud
storage." In International Conference on Innovative Computing and
Communications: Proceedings of ICICC 2020, Volume 1, pp. 679-
688. Springer Singapore, 2021.
[11] Yueru X., Yuan Z., Ying Y. “On the movement simulations of electric
vehicles: A behavioral model-based approach”, Applied Energy,
Volume 283, (2021),116356, https://doi.org/10.1016/j.apenergy.2020.
116356.
[12] Matheus M., Fabrício, S., Maria L., Jony E., Ludmila S., “Electric
vehicle powertrain and fuzzy controller optimization using a planar
dynamics simulation based on a real-world driving cycle”, Energy,
Volume 238, Part C, (2022), 121979, https://doi.org/10.1016
/j.energy.2021.121979.
[13] Tawfiq M. A., Ahmed E., Osama M., “Real-Time metadata-driven
routing optimization for electric vehicle energy consumption
minimization using deep reinforcement learning and Markov chain
model”, Electric Power Systems Research, Volume 192, (2021),
106962, https://doi.org/10.1016/j.epsr.2020.106962.
[14] Thomas, Bertil, and Mohsen Soleimani-Mohseni. "Artificial neural
network models for indoor temperature prediction: investigations in
two buildings." Neural Computing and Applications 16 (2007): 81-89.
[15] Majid A., Jelena A., Lennart L., Peter S., “Multiphysics simulation
optimization framework for lithium-ion battery pack design for
electric vehicle applications”, Energy, Volume 239, (2022), 122092,
https://doi.org/10.1016/j.energy.2021.122092.
Authorized licensed use limited to: Indian Institute Of Technology (Banaras Hindu University) Varanasi. Downloaded on February 18,2025 at 08:37:33 UTC from IEEE Xplore. Restrictions apply.