Next Article in Journal
Unsupervised Bearing Fault Diagnosis Using Masked Self-Supervised Learning and Swin Transformer
Previous Article in Journal
Optimization of Visual Detection Algorithms for Elevator Landing Door Safety-Keeper Bolts
Previous Article in Special Issue
Lyapunov-Based Adaptive Sliding Mode Control of DC–DC Boost Converters Under Parametric Uncertainties
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Emulating Real-World EV Charging Profiles with a Real-Time Simulation Environment

by
Shrey Verma
1,2,
Ankush Sharma
3,
Binh Tran
2,* and
Damminda Alahakoon
2
1
Sustainable Energy Engineering, Indian Institute of Technology Kanpur, Kanpur 208016, India
2
Business School, La Trobe University, Melbourne 3086, Australia
3
Electrical Engineering, Indian Institute of Technology Kanpur, Kanpur 208016, India
*
Author to whom correspondence should be addressed.
Machines 2025, 13(9), 791; https://doi.org/10.3390/machines13090791
Submission received: 31 July 2025 / Revised: 27 August 2025 / Accepted: 29 August 2025 / Published: 1 September 2025

Abstract

Electric vehicle (EV) charging has become a key factor in grid integration, impact analysis, and the development of intelligent charging strategies. However, the rapid rise in EV adoption poses challenges for charging infrastructure and grid stability due to the inherently variable and uncertain charging behavior. Limited access to high-resolution, location-specific data further hinders accurate modeling, emphasizing the need for reliable, privacy-preserving tools to forecast EV-related grid impacts. This study introduces a comprehensive methodology to emulate real-world EV charging behavior using a real-time simulation environment. A physics-based EV charger model was developed on the Typhoon HIL platform, incorporating detailed electrical dynamics and control logic representative of commercial chargers. Simulation outputs, including active power consumption and state-of-charge evolution, were validated against field data captured via phasor measurement units, showing strong alignment across all charging phases, including SOC-dependent current transitions. Quantitative validation yielded an MAE of 0.14 and an RMSE of 0.36, confirming the model’s high accuracy. The study also reflects practical BMS strategies, such as early charging termination near 97% SOC to preserve battery health. Overall, the proposed real-time framework provides a high-fidelity platform for analyzing grid-integrated EV behavior, testing smart charging controls, and enabling digital twin development for next-generation electric mobility.

1. Introduction

As part of the global efforts to combat climate change, many nations have introduced policies aimed at phasing out internal combustion engine vehicles. This shift has driven a significant rise in the adoption of electric vehicles (EVs) worldwide. Between 2017 and 2022, global EV sales grew dramatically, rising from roughly one million to over ten million units (International Energy Agency, 2023) [1]. China has been a major contributor to this surge, accounting for about 60% of global EV sales in 2022 [2]. The country had more than 13.8 million EVs on its roads that year, making up over half of the global EV population (International Energy Agency, 2023).
The rapid adoption of EVs is introducing significant challenges in expanding charging infrastructure [3] and reinforcing supporting power systems [4]. The inherently variable and user-dependent nature of EV charging introduces uncertainties into the grid, causing short-term disturbances such as voltage and frequency deviations as well as long-term effects like sustained transformer loading, feeder congestion, and increased energy losses [4,5]. These impacts can accelerate equipment aging and demand costly grid reinforcements. Studies have shown that aligning EV charging with the availability of renewable energy sources (RESs) such as solar [6] and wind can enhance grid flexibility and support sustainable energy integration [7]. However, access to detailed EV charging data, including individual power profiles and location-based usage patterns, is often restricted due to privacy concerns [8]. The high-resolution datasets needed for accurate temporal and spatial modeling are also rarely available or involve significant acquisition costs, limiting their applicability for large-scale analysis. As a result, there is a critical need to develop models that can accurately represent the spatial and temporal patterns of EV charging. Such models are crucial for infrastructure planning, RES integration, privacy-preserving analysis, and conducting high-fidelity power system simulations. By providing reliable forecasts of EV-driven grid impacts under various future adoption scenarios, EV charging models support both operational decision-making and long-term planning. Existing studies primarily rely on limited or proprietary EV charging datasets and often use simplified models that lack spatial or temporal resolution. These approaches fall short in capturing real-world variability, making them inadequate for large-scale, data-driven grid impact assessments and planning. Section 2 presents a review of the existing literature, highlights the current limitations in the research, and outlines targeted strategies to address these gaps.

2. Literature Review

Realistic emulation of EV charging profiles plays a crucial role in the design, analysis, and validation of control strategies, system-level simulations, and digital twins [9]. Accurate replication of charging dynamics including power flow, state-of-charge (SOC) evolution, and charger control behavior is essential for building confidence in simulation environments and validating software-based control schemes under near-physical conditions. The existing research has primarily approached this challenge through data-driven modeling [10] and offline simulations [11], with comparatively limited attention given to high-fidelity real-time simulation environments.
A significant body of the literature focuses on modeling EV charging behavior using statistical, probabilistic, or machine learning-based techniques [12]. Public datasets, such as those from the Alternative Fuels Data Center (AFDC), California’s ACN-Data, and NREL’s EVI-Pro, have been widely used to develop stochastic models of EV arrival times, dwell durations, and energy consumption patterns. Gaussian Mixture Models [13], Markov chains [14], and unsupervised clustering [15] have been employed to capture daily or seasonal variability in charging behavior. While these models are effective for system-level planning and aggregated load forecasting, they lack the granularity and physical detail required for simulating the real-time behavior of charger hardware, power electronics, and battery interaction.
Moreover, such approaches often abstract away the dynamics of voltage/current regulation, control response, ramp rates, and other transient behaviors that emerge during actual charging sessions. Their reliance on limited or low-resolution data also restricts their capacity to reproduce high-fidelity charging trajectories. As access to detailed charging session data is limited due to privacy concerns and the cost of high-frequency data acquisition, the development of validated models capable of capturing both the temporal and dynamic nature of EV charging remains an open challenge.
In response, real-time simulators have emerged as powerful tools for emulating the behavior of power electronic systems with high accuracy and deterministic execution. Platforms such as Typhoon HIL, OPAL-RT, and RTDS Technologies enable high-resolution, time step-based simulation of converter models [16], battery systems [17], and control algorithms [18,19] in real time. Although often used in hardware-in-the-loop configurations, these platforms are equally valuable in purely software-based real-time simulation contexts, allowing for the validation of control logics, firmware algorithms, and system dynamics in a synchronized and time-bound simulation loop.
In recent years, real-time simulators have been employed to emulate onboard EV chargers [20], DC fast-charging stations [21], and battery dynamics [22] under variable load conditions. These studies have demonstrated the potential of real-time environments for testing dynamic interactions between software control and power system models. However, many existing implementations focus only on specific subsystems, such as the charger controller or DC/DC converter, and do not replicate full EV charging behavior that includes realistic SOC evolution and time-series power demand aligned with real-world charging data.
In summary, despite significant advancements in modeling EV charging behavior and creating real-time simulation platforms, the literature lacks a comprehensive framework that replicates real-world EV charging sessions encompassing active power as well as SOC trajectories within a real-time simulation context and validation against empirical data. Most studies either rely on synthetic profiles or validate components in isolation without capturing the complete dynamics of the charging processes. This study addresses this critical gap by developing a validated EV charging emulation framework using a real-time simulator, where detailed charger and battery models are executed in real time and compared against real-world measurements to ensure high fidelity and reliability. This enables accurate prediction of grid impacts, facilitates testing of intelligent charging strategies under realistic conditions, and supports the development of digital twins for future electric mobility applications.

3. Field Data Acquisition

To ensure that the simulated EV charging model accurately reflects real-world behavior, it is essential to collect field data from actual charging events. Field data capture the dynamic, time-varying characteristics of charging profiles, which are influenced by numerous real-world factors, such as charger settings, battery conditions, and user interactions. These empirical data serve as a benchmark for validating the simulation model and tuning its parameters for better accuracy. The following subsection on the charging station describes the location and environment where the data were collected, while the subsection on measurement setup details the instrumentation, sensors, and methodology used to capture and record the relevant signals.

3.1. Charging Station

EV charging systems are broadly categorized into two main types: Alternating Current (AC) chargers and Direct Current (DC) chargers. AC chargers are further delineated into Level 1 and Level 2 classifications. Both Level 1 and Level 2 AC charging technologies operate on a single-phase AC power supply. While fundamentally similar, Level 2 chargers facilitate a more rapid charging process due to operation at a higher voltage. Specifically, Level 1 chargers utilize a 120 V AC power supply, whereas Level 2 chargers employ a 208–240 V AC supply. It is crucial to note that both Level 1 and Level 2 AC charging systems rely on the EV’s integrated onboard charger, which is responsible for rectifying the incoming AC supply to DC for battery charging. Regarding regional standards, the Mennekes (Type 2) connector is the prevalent AC connector in India, though various connector types are employed internationally, despite comparable voltage ranges [23].
DC chargers, also known as Level 3 chargers, are categorized as fast chargers. These systems integrate a three-phase AC/DC converter within the charger unit itself, making them “off-board” chargers. They typically utilize an AC supply of 380 V, converting it to a DC output ranging up to 600 V with a maximum current of 400 A, thereby delivering a maximum charging power of 240 kW. For DC fast charging in the host country, the two dominant connector standards observed are CCS2 (Combined Charging System 2) and ChAdeMO. Consequently, the grid impact of Level 3 charging is primarily determined by the charger’s design. In contrast, for Level 2 charging, the grid impact is dictated by the design of the electric vehicle’s onboard charger, for which various topologies and control strategies exist [24].
Fast-charging stations for EVs are commonly supplied with three-phase power from the electrical grid delivered through power distribution networks via overhead or underground infrastructure. These stations are favored for public charging infrastructure due to their significantly reduced charging times for EVs. In this study, a SIEMENS CPC50 50 kW Level 3 DC fast charger is used for the charging of EVs. It supports both AC and DC charging, offering CCS2 and CHAdeMO connectors for DC charging, and AC charging through a Type 2 plug. Furthermore, it allows simultaneous charging of two vehicles: one via DC and the other via AC [25]. This charging station is publicly accessible and located within the campus of the host institute.

3.2. Measurement Setup

To learn the charging pattern and power flow from the charger, machine learning algorithms require three-phase voltage and current data. Therefore, a micro phasor measurement unit ( μ PMU) was installed in the downstream of the distribution panel in the host institute’s charging station to collect these data, as depicted in Figure 1. The μ PMU is designed to carry out high-precision synchronized measurement to provide real-time, high-resolution data on voltage and current phasors within electric power distribution networks. It provides time-stamped measurements, typically synchronized via Global Positioning System (GPS) signals, thereby enabling accurate insight into the dynamic behavior and power quality of the grid [26]. The  μ PMU delivers high-resolution synchronized measurements per phase across the three-phase system. These include the instantaneous voltage magnitude, voltage phase angle, current magnitude, and current phase angle. Data acquisition is performed at a high temporal resolution, with a maximum sampling rate of 100 Hz [27,28].
To enable real-time measurement data for subsequent analysis, a  μ PMU was strategically positioned within the distribution panel and connected to a WiFi router, thereby transmitting the captured data to a remote desktop for comprehensive analysis. The hardware test setup is shown in Figure 2. The charging experiments were conducted using a TATA Nexon EV, which features a battery with a nominal capacity of 94.5 Ah and operates at a nominal voltage of 320 V. It supports both CCS2 and Type 2 charger plugs; however, for the experiment, it was charged using the CCS2 plug. The  μ PMU data were collected and then synchronized with the corresponding SOC% measurements from the EV dashboard. In total, five full-cycle charging experiments were recorded under real-world operating conditions, with each signal sampled at a frequency of 99 samples per second, providing high temporal resolution to capture both steady-state and transient charging dynamics. These five cycles together form the complete dataset used for model development and validation.

4. Modeling of EV Charging Setup

To evaluate and replicate the behavior of a real-world EV charging station, a detailed simulation model was developed on the Typhoon HIL platform. This model aims to reproduce the dynamic electrical characteristics observed in the field, including active power, and SOC evolution during charging events. The modeling process is further refined by on-site measurements and tailored to reflect the configuration, control strategy, and load dynamics of the actual charging infrastructure. The subsequent subsection provides a comprehensive overview of the architectural design and functional components of the EV charging station, including its power electronic interfaces and control strategies. It outlines how the charging system operates under real-world conditions and explains the design considerations taken into account for modeling the power flow control, charger coordination, and system-level interactions within the simulation environment. As illustrated in Figure 3, the EV charging station model comprises three key components: the utility grid, the electric vehicle supply equipment (EVSE), featuring a bidirectional fast charger, and the EV itself, which includes the battery management system (BMS) and the battery. The EVSE is capable of delivering power back to the grid via vehicle-to-grid (V2G), known as discharging mode, and extracting power from the grid via grid-to-vehicle (G2V), known as charging mode.
The EVSE modeled in this work is a Level 3 charger with a nominal rating of 50 kW at 415 V employing a two-stage power conversion topology. This configuration was selected due to its widespread adoption and relatively straightforward implementation in fast-charging applications. As depicted in Figure 3, the system comprises two distinct power electronic stages: the first stage is a three-phase full-bridge AC/DC converter, and the second stage is a bidirectional buck–boost DC/DC converter. The primary function of the AC/DC converter is to regulate the DC link voltage while simultaneously ensuring the desired power factor at the grid connection point. Concurrently, the DC/DC converter is responsible for managing the charging and discharging processes of the EV battery based on the demanded active power. To facilitate independent control of the power flow, the regulation of active and reactive power is decoupled: reactive power is handled by the AC/DC converter, while active power is regulated by the DC/DC converter. The subsequent sections provide a detailed explanation of the control approach that enables this decoupled power regulation. Given the established advantages in power electronics control, the direct-quadrature (dq) control method is employed for reactive power regulation via the AC/DC stage.
The EVSE model, along with its corresponding control algorithm, was effectively implemented and executed on the Typhoon HIL604 real-time hardware, with the Typhoon HIL Control Center (v2024.3) software environment being used for validation. The experiments were executed on a workstation with the following configuration: an Intel Core i7 processor (2.9 GHz), 16 GB RAM, and a Windows 11 (64-bit) operating system. This setup ensured reliable execution of the real-time models and efficient handling of the data acquisition process. The charging station model to be simulated is composed of six primary components:
  • Three-phase AC/DC PWM converter;
  • DC/DC converter;
  • Controller for AC/DC converter;
  • Controller for DC/DC converter;
  • EV battery;
  • Controller for EV or BMS.

4.1. System Modeling

The primary interface between the grid and the DC link in the EVSE is the AC/DC converter (the first component of the EVSE in Figure 3), whose robust operation is critical for efficient power transfer. A well-established and robust control methodology is essential to ensure effective management of the interaction between the charging station and the utility grid. Currently, the majority of pulse-width modulation (PWM) voltage-source converter (VSC) implementations employ the PWM Current Control approach. This method offers several notable advantages, including effective current regulation, precise control over the DC link voltage, and inherent compensation for voltage drops across semiconductor devices and dead-time effects within switching elements. Numerous studies have established that the two primary choices for linear, non-predictive current control strategies are the proportional-resonant (PR) controller, operating in the stationary reference frame, and the direct-quadrature (dq) controller, implemented in the synchronous rotating reference frame.
In grid-connected converter systems, precise control of current is critical to ensure stability, power quality, and adherence to grid codes. Among the various control strategies employed, vector control techniques have proven to be highly effective, especially in managing the dynamics of three-phase VSCs. One widely adopted approach within this framework is the use of synchronous reference frame control [29]. The synchronous rotating reference frame controller is particularly prevalent in the current control of three-phase VSCs, primarily due to its inherent ability to achieve a zero steady-state error for AC quantities. The fundamental concept behind this approach involves transforming time-varying AC quantities, such as currents and voltages, into constant DC values within a synchronously rotating reference frame. This transformation significantly simplifies the application of conventional linear control techniques, such as proportional–integral (PI) controllers. In three-phase systems, this transformation is typically achieved using the direct-quadrature-zero (dq0) transformation. This method enables precise and decoupled control of active and reactive power by separating the system dynamics into orthogonal components (d-axis for active power, q-axis for reactive power). A crucial element in this control scheme is the incorporation of a phase-locked loop (PLL), which accurately determines the system’s fundamental frequency and generates the necessary angle θ to synchronize the rotating dq frame with the grid voltage.
A typical block diagram illustrating a dq-based VSC controller is presented in Figure 4. In this configuration, the error in the DC link voltage ( v d c ) is processed through a proportional–integral (PI) controller to generate the reference for the direct-axis current ( i d ) , which directly correlates with the active power flow. Conversely, the quadrature axis current reference ( i q ) is typically set based on the desired reactive power injection or absorption. Consequently, with the quadrature component of the grid voltage ( V q ) ideally driven to zero through PLL synchronization, the converter output voltage equation can be expressed as follows:   
S = P + j Q P = V d i d + V q i q = V d i d Q = V d i q V q i d = V d i q
Among the terms in Equation (1), the only variable that can be directly controlled is i q . This is because V d is defined by the system voltage V a b c , and  i d depends on the battery current and inherent system losses. By adjusting the reference value i q , ref , reactive power can be regulated independently of active power control. In the control scheme, the reference reactive power Q * is subtracted from the measured reactive power Q, and the resulting error is fed to a PI controller to produce the reference quadrature-axis current i q * . Similarly, the reference DC-link voltage V d c * is subtracted from the measured DC-link voltage V d c , and the error is processed through a PI controller to generate the reference direct-axis current i d * . In the inner current control loop, these reference currents are compared with their corresponding measured currents, where i q * is subtracted from the measured quadrature-axis current i q , and i d * is subtracted from the measured direct-axis current i d . The respective errors are then fed into PI controllers to regulate the currents effectively, ensuring accurate tracking of both reactive power and DC-link voltage references. This approach enables straightforward calculation of reactive power while maintaining independent control from active power regulation. The vector control block diagram is shown in Figure 5.
While the dq control method provides a robust framework for decoupled power regulation, its practical implementation necessitates careful consideration of the energy flow dynamics within the charging system. The flow of active power between the grid and the system is directly influenced by the battery’s current and voltage and the efficiency of the charger. The critical role of the AC/DC controller is to maintain the stability of the DC link voltage. When properly configured, it can dynamically adjust to fluctuations in the DC link voltage, drawing power from the grid when the voltage decreases or supplying power back to the grid when it increases. Consequently, by managing the battery’s charge and discharge cycles through the DC/DC converter within the charger, effective control of active power is achieved.
The schematic illustrates a high-efficiency bidirectional DC/DC converter, crucial for seamless power transfer between a battery energy storage system and a DC bus, as shown in Figure 6a. While currently discussed for power flow from the DC bus to the battery (operating in buck mode for charging), its design inherently supports power transfer in both directions. The core of the power conversion lies in the half-bridge configuration, featuring two actively controlled power semiconductor switches, S b u c k and S b o s t . In buck mode, S b u c k is modulated to step down the DC bus voltage ( V d c ), while S b o s t acts as a commutating diode, enabling controlled current flow into the battery. Conversely, for power transfer from the battery to the DC bus (boost mode), S b o s t would be actively modulated to step up V b a t , with  S b u c k acting as a diode. A DC link capacitor, C d c , is strategically placed on the DC bus side to effectively smooth voltage ripples and maintain a stable V d c .
The control strategy for regulating the battery current ( i b a t ) is depicted in Figure 6b. This feedback control loop compares the actual battery current ( i b a t ) with a desired reference current ( i b a t * ). The error signal is then processed by a PI controller, which generates the appropriate control signal for the PWM module. The PWM module then produces the switching signals for S b u c k and S b o s t , ensuring precise and stable regulation of power flow. The comprehensive set of electrical parameters is meticulously detailed in Table 1. Crucially, the current reference ( i b a t * ) for this charging strategy is dynamically provided by a feedback system from the EV battery management system (BMS), ensuring optimal charging until the desired SOC% is achieved.
The battery system in EVs serves as the primary energy storage unit, supplying power to traction motors and auxiliary subsystems. Accurate modeling of battery dynamics is essential for predicting EV performance under varying operational conditions and for developing robust energy management strategies. This study employs the lithium-ion (Li-ion) battery model available in the Typhoon HIL Control Center, which is specifically optimized for real-time simulation environments with a nominal voltage of 320 V and 94.5 Ah capacity.
Battery modeling approaches in the literature can be broadly classified into electrochemical, experimental, and equivalent circuit-based methods [30]. While electrochemical models offer high fidelity, their reliance on partial differential equations renders them computationally intensive [31]. Experimental models require extensive empirical data and complex curve fitting, limiting their suitability for real-time applications.
To address these limitations, Typhoon HIL utilizes an equivalent circuit-based approach that strikes a balance between accuracy and computational efficiency. The model consists of a controlled voltage source in series with internal resistance, effectively representing terminal behavior during charging and discharging [13]. The terminal voltage is given by the following:
V bat ( i t ) = E ( i t ) R bat · I
where E ( i t ) is the open-circuit voltage as a function of extracted capacity i t , R bat is the internal resistance, and I is the instantaneous current (positive during discharge). The  SOC, a key indicator of battery health and available energy, is computed internally and optionally available as an output signal:
S O C ( t ) = 100 · 1 Q dis ( t ) Q rated
The model supports both charging and discharging by interpreting the sign of the current. A positive current indicates discharge, while a negative value corresponds to charging. Although the voltage equation remains unchanged, the current direction influences capacity dynamics, resulting in distinct charge/discharge behavior. This efficient modeling structure facilitates real-time system-level testing of the EV BMS, power converters, and grid interfaces.

4.2. Control Strategy

Building upon the detailed modeling of the EV charger and its integrated control architecture presented in the previous section, this section focuses on the control strategy employed for managing the battery charging process. Lithium-ion batteries are pivotal in modern energy storage, notably in electric vehicles, owing to their high energy density and impressive power capabilities. These batteries inherently support high charging rates, often exceeding 10 C r a t e (which means they can be fully charged in 1 / 10 t h of an hour, or 6 min, under ideal conditions) [32], which is a critical attribute for the rapid-charging demands of contemporary applications. Despite this inherent capability, conventional charging methodologies, primarily the constant current–constant voltage (CC-CV) approach, frequently underutilize the battery’s full potential for accelerated charging. In this context, an intelligent control strategy is essential to optimize the charging profile while ensuring battery longevity, safety, and compliance with power system constraints.
A more advanced and demonstrably effective charging paradigm involves the implementation of Multiple-Stage Constant Current (MSCC) charging, which strategically employs several distinct constant current phases while entirely circumventing the constant voltage stage. This innovative method has been shown to offer dual benefits: a significant reduction in the overall charging duration and a notable enhancement in battery cycle life [18]. The determination of optimal C-rates for each phase within an MSCC strategy has been a significant area of research. Investigators have employed a diverse range of methodologies, including rigorous analytical derivations, sophisticated optimization algorithms, and extensive experimental validations, to precisely define these optimal current levels. Furthermore, the seamless transition from one constant current stage to the subsequent phase within an MSCC protocol is meticulously governed by satisfying at least one of four predefined criteria: a set time duration for the current stage, the attainment of a specific SOC, reaching a predetermined voltage threshold, or the activation of a critical cutoff voltage [33]. This nuanced approach to charging represents a significant advancement in maximizing the performance and longevity of lithium-ion batteries.
Building upon these foundational principles, this research leverages real-world operational data to empirically determine optimal C-rates for implementing an MSCC charging profile. A robust SOC-based transition strategy is employed to adaptively control the charging current as the battery state evolves. As outlined in Algorithm 1, the process begins by retrieving the initial SOC and battery voltage from the BMS. The algorithm then compares the SOC against a predefined set of threshold levels. For each SOC range, a corresponding fraction of the maximum allowable charging current derived from the C-rate is applied. This current reference is periodically updated and transmitted to the DC/DC converter controller. Throughout the process, the battery voltage is actively monitored to ensure it remains within safe operational limits. If the voltage exceeds the safety threshold, charging is immediately terminated. Once the SOC reaches the target value, the charging current is reduced to zero, thereby completing a calibrated and controlled charging cycle.
Algorithm 1 Multi-Stage SOC-Based MSCC Charging Profile
  • Require:
    • BMS data: S O C current , V bat
    • Array of SOC thresholds SOC threshold = [ t 1 , t 2 , , t N ]
    • Array of current fractions x stage = [ x 1 , x 2 , , x N ]
    • Maximum safe voltage V max_safety
    • Target SOC: S O C target
  • Ensure: Charging Current Reference i b a t *
    1:
    Initialize:  i b a t * 0
    2:
    Get initial S O C current from BMS
    3:
    while  S O C current < S O C target  do
    4:
        for  k 1 to N do
    5:
            if  S O C current < SOC threshold [ k ]  then
    6:
                i b a t * x stage [ k ] × C r a t e
    7:
               Break
    8:
            end if
    9:
          end for
    10:
        Send i b a t * to DC-DC converter control system
    11:
        Update S O C current from BMS periodically
    12:
        Monitor V bat
    13:
        if  V bat > V max_safety  then
    14:
            TERMINATE_CHARGING_IMMEDIATELY
    15:
            Break
    16:
        end if
    17:
    end while
    18:
    Charging Termination:
    19:
    if  S O C current S O C target then
    20:
         i b a t * 0
    21:
    end if
The TATA NEXON EV, having a nominal capacity of 94.5 Ah, follows a four-stage charging process. The charging profile begins with an initial phase at x 1 = 0.7 , which subsequently transitions to x 2 = 0.5 and then to x 3 = 0.3 , and concludes with a final initial phase at x 4 = 0.1 . These transitions are critically governed by the battery reaching specific SOC thresholds S O C t h r e s h o l d = [ t 1 , t 2 , t 3 ] , where t 1 = 80 % , t 2 = 87 % , and t 3 = 92 % .
The practical implementation of this four-stage, SOC-based MSCC charging strategy yielded significant performance enhancements. Notably, it resulted in an approximate 15.3% reduction in overall charging time when compared to the conventional CCCV method [34]. This substantial time saving was achieved with only a marginal impact on charging efficiency (approximately a 0.4% reduction) and a slight decrease in the battery’s peak temperature rise during charging. Complementing these performance metrics, researchers conducted comprehensive postmortem examinations of the battery cells to thoroughly assess the long-term effects of the MSCC approach on critical degradation mechanisms, including graphite exfoliation and crystallization-related phenomena. Their compelling findings revealed that the MSCC method effectively suppressed the growth of the Solid Electrolyte Interphase (SEI) layer on the anode, significantly reduced the battery’s internal resistance, and ultimately contributed to a substantial extension of the lithium-ion battery’s operational lifespan [19].

5. Results and Discussion

The performance of the proposed EV charging model was assessed by comparing its simulation results against real-world field data across multiple dimensions—namely, the active power profile, SOC trajectory, and associated error metrics. The analysis demonstrated the model’s ability to capture the essential physical characteristics of the charging process with high accuracy and robustness across all phases of operation.
Figure 7 presents the active power (in kW) over time for both simulation and field data. The charging cycle is divided into four color-coded regions corresponding to different SOC-dependent current control phases: high current charging, medium-high current, medium-low current, and finishing charge. In the first phase, spanning from the beginning of the charging process up to approximately 3100 s, the battery is charged at a high current rate (around 0.7 C-rate). During this interval, active power increases gradually, and the simulation data align closely with the field data, demonstrating the model’s ability to accurately capture the initial power ramp-up. Minor deviations observed in the field data can be attributed to fluctuations in the grid voltage or noise in the measurement instruments.
The second phase, from around 3100 to 3600 s, marks a transition to medium-high current charging (0.5 C-rate) as the SOC approaches 80%. This is characterized by a step-down in active power. The simulation again follows this transition well, maintaining a consistent power level that matches the field measurements, thereby validating the model’s response to SOC-triggered control events.
Following this, the third phase occurs between approximately 3600 and 4100 s, where a further reduction in charging current (0.3 C-rate) is initiated near 87% SOC. This is reflected in another step-wise decrease in power. The simulation accurately mirrors this behavior, with both datasets showing a similar drop in active power, confirming the robustness of the control logic representation in the model.
Finally, in the finishing charge phase, from roughly 4100 s onward, the system reduces the current significantly (0.01 C-rate) to protect battery health as the SOC nears full capacity (above 92%). A sharp decline in active power is observed, followed by a low, slowly varying power profile. The simulation data continue to closely follow the field measurements, although slight discrepancies are noted toward the end of the cycle. This discrepancy is not a modeling error but reflects a deliberate control strategy implemented in real-world EV BMSs. In practice, most EVs discontinue charging at around 96–97% true SOC but display a full 100% SOC on the dashboard. This strategy is employed to safeguard battery health, minimize stress on battery cells, and enhance long-term performance by avoiding full-charge saturation, which accelerates degradation [35,36]. Therefore, the apparent mismatch arises due to the difference between the actual SOC at the BMS level and the SOC displayed to the user. The simulation, being driven purely by physical modeling and ideal charging logic, continues until 100% SOC is reached, while the field system terminates charging earlier, as per the embedded manufacturer-specific BMS protocol.
This behavior is further corroborated by the SOC progression shown in Figure 8. Both field and simulation SOC curves increase linearly during the early high-current phase and begin to flatten as the current is reduced. Up to approximately 90–93% SOC, the simulation closely tracks the measured SOC. However, similar to the power profile, the simulation continues beyond 97% SOC while the field data flatten again, confirming the BMS-induced early cutoff.
To quantify this agreement, Figure 9 presents the relative error (%) between the simulation and field data over time. Predominantly, the error remains tightly clustered around zero, indicating strong predictive performance. The inset provides a zoomed-in view of the relative error during the 500–1000 s window, highlighting minor deviations, primarily within a ±2% range. Occasional spikes correspond to abrupt step transitions in the charging power in field measurements, which are expected in practical deployment scenarios.
Beyond such routine numerical mismatches stemming from sampling rate, interpolation, and synchronization differences, the remaining deviations arise from inherent model plant differences that contribute to the small but persistent bias over longer durations. Specifically, the temperature dependence of battery internal resistance and charger efficiency influences the field measurements, as real units may undergo thermal derating or operate auxiliary components such as cooling fans and pumps. These parasitic loads, typically a few hundred Watts, are not represented in the simulation [37,38]. Additionally, SOC estimation and OCV curve mismatches, resulting from coulomb count drift, chemistry variations, or battery aging, can slightly modify the tapering behavior during later charging stages [39]. The BMS logic of the field unit further introduces effects such as cell balancing, soft current ramping, and early charge termination; in practice, charging is often curtailed near 97% actual SOC (reported as 100%), which leads to a shortened taper tail and the characteristic end spike in relative error. Finally, grid-side variations including feeder impedance, harmonics, and phase imbalance perturb the measured active power but are treated in an idealized manner within the simulation [40]. Taken together, these factors comprehensively explain the small yet consistent deviations observed between the simulated and field charging profiles.
To quantitatively evaluate the accuracy of the simulation model, Figure 10 illustrates four commonly used error metrics: the Mean Squared Error (MSE), the Root Mean Squared Error (RMSE), the Mean Absolute Error (MAE), and the Mean Absolute Percentage Error (MAPE). These are defined as follows:
MSE = 1 N i = 1 N ( y i sim y i field ) 2
RMSE = 1 N i = 1 N ( y i sim y i field ) 2
MAE = 1 N i = 1 N y i sim y i field
MAPE = 100 N i = 1 N y i sim y i field y i field
To ensure a fair and consistent comparison between the field data and simulation output, the error metrics were computed over the overlapping time range shared by both datasets. Specifically, the time interval [ t min , t max ] was determined using the following equations:
t min = max min ( time field ) , min ( time simul ) ,
t max = min max ( time field ) , max ( time simul ) ,
where time field and time simul represent the time arrays of the field and simulation datasets, respectively. Both datasets were filtered to retain only the data points within this common interval, and the number of samples N used in the error metric formulas corresponds to the length of this filtered time range. The MSE and MAE values were found to be 0.13 and 0.14, respectively. These values indicate that, on average, the squared and absolute deviations between the simulated and real SOC values are quite small, pointing to the model’s capability to closely track actual charging trends.
The RMSE, computed as the square root of the MSE, was 0.36. This metric provides a sense of the standard deviation of prediction errors and penalizes larger errors more significantly than the MAE. A low RMSE value, as observed here, further reinforces the notion that large deviations between the simulation and real-world data are rare, thereby validating the reliability of the simulation model.
Additionally, the MAPE was observed to be just 1.42%, which measures the mean absolute deviation as a percentage of actual values. Since the MAPE is a scale-independent measure, it allows for a normalized assessment of accuracy. An MAPE below 2% signifies exceptional agreement between simulated and measured data across the entire charging cycle, indicating that the model maintains high fidelity not only in terms of absolute magnitude but also in terms of the relative trend, even at different SOC levels.
To further contextualize the contribution of the proposed HIL SCADA model, Table 2 benchmarks it against representative simulation approaches reported in the literature. Conventional offline models (e.g., MATLAB/Simulink, Dymola) capture electro-thermal behavior and SOC evolution but remain limited to non-real-time studies and lack hardware integration [41]. Optimization-based methods improve charging efficiency and load scheduling, yet their focus is primarily on scheduling outcomes rather than detailed charger-level dynamics [42]. Co-simulation environments (e.g., EV-EcoSim) enable grid–EV interaction studies, though they often simplify charger representation, reducing fidelity when compared with field data [43].
In contrast, the proposed real-time HIL SCADA framework demonstrates both high fidelity ( M A E 0.14 , M A P E 1.4 % ) and real-time capability, while directly incorporating hardware-in-the-loop validation. This dual advantage makes it a suitable platform for digital twin applications, enabling predictive diagnostics, controller testing, and practical distribution grid impact assessment.

5.1. Practical Reliability Considerations

The reliability of the proposed EVSE charging scheme is ensured through multiple layers of validation and safety considerations. Firstly, the framework is built upon a physics-informed representation of the converter–battery interaction, which captures the actual dynamic behavior of the charging process. This approach reduces the risk of mismatches between simulated and real-world operation.
Secondly, the multi-stage charging control algorithm has been designed with explicit SOC thresholds and battery voltage safety limits. This ensures that the charging current is automatically adjusted at different stages, thereby preventing overcharging and protecting the battery from unsafe voltage excursions. Such adaptive current regulation significantly enhances the robustness of the charging process under varying SOC and load conditions.
Thirdly, the proposed control strategy has been validated in a real-time environment using the Typhoon HIL604 platform. By executing the algorithm on a hardware-grade simulator that replicates realistic system constraints, the scheme’s performance in different operating scenarios could be assessed reliably. The results demonstrated consistent adherence to reference signals, stable convergence toward the target SOC, and safe termination of charging.
Lastly, the framework is designed to be scalable and extendable, allowing for integration of more advanced features such as temperature-aware dynamics and aging-aware models. These extensions will further enhance long-term reliability by accounting for changes in internal resistance, capacity fade, and thermal effects.
Overall, the combination of physics-informed modeling, adaptive SOC-based current regulation, and real-time validation ensures that the proposed scheme provides a reliable, safe, and practically viable solution for EV charging applications.

5.2. Future Work

In future developments, the proposed EVSE control framework can be extended to incorporate temperature-dependent battery dynamics since charging efficiency and safety margins are highly sensitive to thermal conditions. By embedding thermal sub-models, the charging profile can be adaptively modified to avoid overheating, which is critical in fast-charging scenarios.
Future investigations will focus on validating the proposed scheme under diverse charging conditions, including slow, standard, and fast charging. Such testing will not only highlight the adaptability of the algorithm across different C-rates but also provide insights into thermal and degradation effects, which become more pronounced at higher charging rates. This will strengthen the reliability and practical applicability of the proposed EVSE control framework.
Another important research direction is to evaluate the system performance under different grid constraints, such as varying feeder capacities, renewable energy fluctuations, or time-of-use tariff signals. This will allow the EVSE control algorithm to be optimized not only for the battery side but also for grid-interactive smart charging applications, enhancing its applicability to real distribution networks.
Although this work assumes a fresh battery profile, future extensions may incorporate aging-aware models. Battery aging is an inevitable phenomenon that alters the electrochemical characteristics of lithium-ion cells, leading to gradual capacity fade and increased internal resistance. These changes directly affect the correspondence between SOC and terminal voltage, potentially reducing the accuracy of charging control if not considered. To mitigate this issue, the proposed EVSE model can be extended by embedding physics-informed or empirical battery aging models into the simulation framework [44]. Such models dynamically track the evolution of battery parameters, thereby adjusting the SOC–voltage relationship automatically as the cell ages. By incorporating these mechanisms, the charging algorithm can remain adaptive and reliable throughout the battery’s lifetime, ensuring that SOC thresholds and current references reflect the true condition of the battery under realistic operating conditions.
Future work can also explore multi-EV charging coordination, where multiple EVs connected to the same charging station are managed optimally using the proposed control strategy. This will involve real-time decision-making and communication protocols to balance charging demand with available infrastructure capacity.
Finally, the framework may be extended toward the development of a digital twin of the EVSE system, where continuous data-driven updates from real charging sessions are fed back into the simulation model. This would ensure higher fidelity between the virtual model and the physical system, enabling predictive maintenance, anomaly detection, and long-term operational reliability assessment.

6. Conclusions

This study presents a robust framework for emulating real-world EV charging profiles using a real-time simulation environment. By integrating real measurement data from a PMU with a physics-informed simulation model developed on the Typhoon HIL platform, we successfully replicated the active power consumption and SOC evolution observed in field conditions. The model demonstrated excellent accuracy, as evidenced by the low error metrics: an MAE of 0.14, an RMSE of 0.36, and a remarkably low MAPE of 1.42%. These results affirm the model’s capability to capture both the absolute and relative dynamics of EV charging behavior across a wide range of SOC levels.
Importantly, the study addresses practical deviations observed in real-world charging, such as early termination of charging at around 97% of SOC, commonly masked as 100% on dashboards, to protect battery health. Such insights were successfully incorporated into the simulation framework, further enhancing its realism and applicability. The developed simulation model offers a high-fidelity, hardware-compatible representation of EV charging dynamics which can serve as a valuable tool for power system studies, grid impact analysis, and controller testing in smart grid environments. Future work will focus on extending the proposed approach to incorporate temperature effects and charging under varying grid constraints, as well as integrating aging-aware battery models. Such models adaptively update the SOC–voltage mapping to account for capacity fade and resistance increase, thereby enhancing the accuracy and long-term reliability of the proposed EVSE control framework.

Author Contributions

S.V.: Conceptualization, methodology, software, validation, data curation, original draft preparation, writing review and editing, A.S.: supervision, review, methodology, B.T.: supervision, review, and editing, D.A.: supervision, review. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Asian Smart Cities Research Innovation Network grant number 150-IIT K-LTU 2021.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ACAlternating current
AFDCAlternative Fuels Data Center
BMSBattery management system
CC-CVConstant current–constant voltage
CCSCombined charging system
DCDirect current
dqDirect-quadrature
dq0Direct-quadrature-zero
EVElectric vehicle
EVSEElectric vehicle supply equipment
MAEMean Absolute Error
MAPEMean Absolute Percentage Error
MSEMean Squared Error
MSCCMultiple-stage constant current
PIProportional–integral
PLL Phase-locked loop
PMU Phasor measurement unit
PWM Pulse-width modulation
RES Renewable energy source
RMSE Root Mean Squared Error
SOC State of charge
VSC Voltage source converter

References

  1. International Energy Agency. Global EV Outlook 2023. IEA Report. 2023. Available online: https://www.iea.org/reports/global-ev-outlook-2023 (accessed on 15 July 2025).
  2. Khaleel, M.; Nassar, Y.; El-Khozondar, H.J.; Elmnifi, M.; Rajab, Z.; Yaghoubi, E.; Yaghoubi, E. Electric vehicles in China, Europe, and the United States: Current trend and market comparison. Int. J. Electr. Eng. Sustain. 2024, 2, 1–20. [Google Scholar]
  3. Das, H.; Rahman, M.; Li, S.; Tan, C. Electric vehicles standards, charging infrastructure, and impact on grid integration: A technological review. Renew. Sustain. Energy Rev. 2020, 120, 109618. [Google Scholar] [CrossRef]
  4. Wang, L.; Qin, Z.; Slangen, T.; Bauer, P.; Van Wijk, T. Grid impact of electric vehicle fast charging stations: Trends, standards, issues and mitigation measures-an overview. IEEE Open J. Power Electron. 2021, 2, 56–74. [Google Scholar] [CrossRef]
  5. Mahfouz, M.M.; Iravani, M.R. Grid-integration of battery-enabled DC fast charging station for electric vehicles. IEEE Trans. Energy Convers. 2019, 35, 375–385. [Google Scholar] [CrossRef]
  6. Nachinarkiniyan, S.; Subramanian, K. Off-board electric vehicle battery charger using PV array. IET Electr. Syst. Transp. 2020, 10, 291–300. [Google Scholar] [CrossRef]
  7. Xiong, R. Battery Management Algorithm for Electric Vehicles; Springer: Singapore, 2019. [Google Scholar]
  8. Huang, P.; Ma, Z. Unveiling electric vehicle (EV) charging patterns and their transformative role in electricity balancing and delivery: Insights from real-world data in Sweden. Renew. Energy 2024, 236, 121511. [Google Scholar] [CrossRef]
  9. Safayatullah, M.; Elrais, M.T.; Ghosh, S.; Rezaii, R.; Batarseh, I. A comprehensive review of power converter topologies and control methods for electric vehicle fast charging applications. IEEE Access 2022, 10, 40753–40793. [Google Scholar] [CrossRef]
  10. Kene, R.O.; Olwal, T.O. Data-Driven Modeling of Electric Vehicle Charging Sessions Based on Machine Learning Techniques. World Electr. Veh. J. 2025, 16, 107. [Google Scholar] [CrossRef]
  11. Perez, J.; Quintal, F.; Pereira, L. Distributed Platform for Offline and Online EV Charging Simulation. Electronics 2023, 12, 4401. [Google Scholar] [CrossRef]
  12. Shahriar, S.; Al-Ali, A.R.; Osman, A.H.; Dhou, S.; Nijim, M. Machine learning approaches for EV charging behavior: A review. IEEE Access 2020, 8, 168980–168993. [Google Scholar] [CrossRef]
  13. Gödde, M.; Findeisen, T.; Sowa, T.; Nguyen, P.H. Modelling the charging probability of electric vehicles as a gaussian mixture model for a convolution based power flow analysis. In Proceedings of the 2015 IEEE Eindhoven PowerTech, Eindhoven, The Netherlands, 29 June–2 July 2015; pp. 1–6. [Google Scholar] [CrossRef]
  14. Wang, Y.; Infield, D. Markov Chain Monte Carlo simulation of electric vehicle use for network integration studies. Int. J. Electr. Power Energy Syst. 2018, 99, 85–94. [Google Scholar] [CrossRef]
  15. Nazari, M.; Hussain, A.; Musilek, P. Applications of Clustering Methods for Different Aspects of Electric Vehicles. Electronics 2023, 12, 790. [Google Scholar] [CrossRef]
  16. Attar, H.A.; GHANES, M.; Hamida, M.A.; Taleb, M. Chapter 4—DC–DC converters: Modeling and control strategies. In Power Electronics Converters and their Control for Renewable Energy Applications; Fekik, A., Ghanes, M., Denoun, H., Eds.; Academic Press: Cambridge, MA, USA, 2023; pp. 77–91. [Google Scholar] [CrossRef]
  17. Min, H.; Sun, W.; Li, X.; Guo, D.; Yu, Y.; Zhu, T.; Zhao, Z. Research on the optimal charging strategy for Li-ion batteries based on multi-objective optimization. Energies 2017, 10, 709. [Google Scholar] [CrossRef]
  18. Liu, Y.H.; Luo, Y.F. Search for an Optimal Rapid-Charging Pattern for Li-Ion Batteries Using the Taguchi Approach. IEEE Trans. Ind. Electron. 2010, 57, 3963–3971. [Google Scholar] [CrossRef]
  19. Li, Y.; Guo, J.; Pedersen, K.; Gurevich, L.; Stroe, D.I. Investigation of multi-step fast charging protocol and aging mechanism for commercial NMC/graphite lithium-ion batteries. J. Energy Chem. 2023, 80, 237–246. [Google Scholar] [CrossRef]
  20. Bao, L.; Fan, L.; Miao, Z. Real-Time Simulation of Electric Vehicle Battery Charging Systems. In Proceedings of the 2018 North American Power Symposium (NAPS), Fargo, ND, USA, 9–11 September 2018; pp. 1–6. [Google Scholar] [CrossRef]
  21. Bao, L.; Fan, L.; Miao, Z. Real-time simulation of level 1, level 2, and level 3 electric vehicle charging systems. arXiv 2021, arXiv:2111.02506. [Google Scholar] [CrossRef]
  22. Rotas, R.; Iliadis, P.; Nikolopoulos, N.; Rakopoulos, D.; Tomboulides, A. Dynamic Battery Modeling for Electric Vehicle Applications. Batteries 2024, 10, 188. [Google Scholar] [CrossRef]
  23. Wang, X.; He, Z.; Yang, J. Electric Vehicle Fast-Charging Station Unified Modeling and Stability Analysis in the dq Frame. Energies 2018, 11, 1195. [Google Scholar] [CrossRef]
  24. Yilmaz, M.; Krein, P.T. Review of battery charger topologies, charging power levels, and infrastructure for plug-in electric and hybrid vehicles. IEEE Trans. Power Electron. 2012, 28, 2151–2169. [Google Scholar] [CrossRef]
  25. Siemens. 50 kW Compact Power Charger. Siemens Product Document. 2018. Available online: https://support.industry.siemens.com/cs/document/109758508/50-kw-compact-power-charger?dti=0&lc=en-IN (accessed on 15 July 2025).
  26. Dusabimana, E.; Yoon, S.G. A Survey on the Micro-Phasor Measurement Unit in Distribution Networks. Electronics 2020, 9, 305. [Google Scholar] [CrossRef]
  27. Shahsavari, A.; Farajollahi, M.; Stewart, E.; Von Meier, A.; Alvarez, L.; Cortez, E.; Mohsenian-Rad, H. A data-driven analysis of capacitor bank operation at a distribution feeder using micro-PMU data. In Proceedings of the 2017 IEEE Power & Energy Society Innovative Smart Grid Technologies Conference (ISGT), Washington, DC, USA, 23–26 April 2017; pp. 1–5. [Google Scholar]
  28. Shahsavari, A.; Sadeghi-Mobarakeh, A.; Stewart, E.; Mohsenian-Rad, H. Distribution grid reliability analysis considering regulation down load resources via micro-PMU data. In Proceedings of the 2016 IEEE International Conference on Smart Grid Communications (SmartGridComm), Sydney, Australia, 6–9 November 2016; pp. 472–477. [Google Scholar]
  29. Hollweg, G.V.; Khan, S.A.; Chaturvedi, S.; Fan, Y.; Wang, M.; Su, W. Grid-Connected Converters: A Brief Survey of Topologies, Output Filters, Current Control, and Weak Grids Operation. Energies 2023, 16, 3611. [Google Scholar] [CrossRef]
  30. Dees, D.W.; Battaglia, V.S.; Bélanger, A. Electrochemical modeling of lithium polymer batteries. J. Power Sources 2002, 110, 310–320. [Google Scholar] [CrossRef]
  31. Song, L.; Evans, J.W. Electrochemical-thermal model of lithium polymer batteries. J. Electrochem. Soc. 2000, 147, 2086. [Google Scholar] [CrossRef]
  32. Chen, A.; Sen, P.K. Advancement in battery technology: A state-of-the-art review. In Proceedings of the 2016 IEEE Industry Applications Society Annual Meeting, Portland, OR, USA, 2–6 October 2016; pp. 1–10. [Google Scholar] [CrossRef]
  33. Tahir, M.U.; Sangwongwanich, A.; Stroe, D.I.; Blaabjerg, F. Overview of multi-stage charging strategies for Li-ion batteries. J. Energy Chem. 2023, 84, 228–241. [Google Scholar] [CrossRef]
  34. Lee, C.H.; Chen, M.Y.; Hsu, S.H.; Jiang, J.A. Implementation of an SOC-based four-stage constant current charger for Li-ion batteries. J. Energy Storage 2018, 18, 528–537. [Google Scholar] [CrossRef]
  35. Keil, P.; Jossen, A. Charging protocols for lithium-ion batteries and their impact on cycle life—An experimental study with different 18650 high-power cells. J. Energy Storage 2016, 6, 125–141. [Google Scholar] [CrossRef]
  36. Pesaran, A.; Roman, L.; Kincaide, J. Electric Vehicle Lithium-Ion Battery Life Cycle Management; Technical Report; National Renewable Energy Laboratory (NREL): Golden, CO, USA, 2023. [Google Scholar]
  37. Alipour, M.; Ziebert, C.; Conte, F.V.; Kizilel, R. A Review on Temperature-Dependent Electrochemical Properties, Aging, and Performance of Lithium-Ion Cells. Batteries 2020, 6, 35. [Google Scholar] [CrossRef]
  38. Madani, S.S.; Ziebert, C.; Marzband, M. Thermal Characteristics and Safety Aspects of Lithium-Ion Batteries: An In-Depth Review. Symmetry 2023, 15, 1925. [Google Scholar] [CrossRef]
  39. Rivera-Barrera, J.P.; Muñoz-Galeano, N.; Sarmiento-Maldonado, H.O. SoC Estimation for Lithium-ion Batteries: Review and Future Challenges. Electronics 2017, 6, 102. [Google Scholar] [CrossRef]
  40. Vijayakumari, A.; Devarajan, A.; Devarajan, N. Decoupled control of grid connected inverter with dynamic online grid impedance measurements for micro grid applications. Int. J. Electr. Power Energy Syst. 2015, 68, 1–14. [Google Scholar] [CrossRef]
  41. Bajpai, O.; Hulwan, D.; Adhav, A.; Agawane, S.; Auti, S.; Bhosale, D. Simulation and Validation of a Battery Charging Model Using Dymola: A Case Study with Tata Nexon EV. Int. J. Latest Technol. Eng. Manag. Appl. Sci. 2025, 14, 820–827. [Google Scholar] [CrossRef]
  42. Tucker, N.; Alizadeh, M. A deployable online optimization framework for EV smart charging with real-world test cases. In Proceedings of the 2022 IEEE International Conference on Communications, Control, and Computing Technologies for Smart Grids (SmartGridComm), Singapore, 25–28 October 2022; pp. 172–178. [Google Scholar]
  43. Balogun, E.; Buechler, E.; Bhela, S.; Onori, S.; Rajagopal, R. EV-EcoSim: A grid-aware co-simulation platform for the design and optimization of electric vehicle charging infrastructure. IEEE Trans. Smart Grid 2023, 15, 3114–3125. [Google Scholar] [CrossRef]
  44. Smith, K.; Saxon, A.; Keyser, M.; Lundstrom, B.; Cao, Z.; Roc, A. Life prediction model for grid-connected Li-ion battery energy storage system. In Proceedings of the 2017 American Control Conference (ACC), Seattle, WA, USA, 24–26 May 2017; pp. 4062–4068. [Google Scholar]
Figure 1. Schematic illustrating the installation of the μ PMU to the right of the distribution panel for data acquisition.
Figure 1. Schematic illustrating the installation of the μ PMU to the right of the distribution panel for data acquisition.
Machines 13 00791 g001
Figure 2. Hardware test setup: (a) EV and charger, (b) μ PMU connection in distribution panel.
Figure 2. Hardware test setup: (a) EV and charger, (b) μ PMU connection in distribution panel.
Machines 13 00791 g002
Figure 3. Block diagram of DC EV charger system.
Figure 3. Block diagram of DC EV charger system.
Machines 13 00791 g003
Figure 4. Two-level voltage source converter.
Figure 4. Two-level voltage source converter.
Machines 13 00791 g004
Figure 5. Control diagram for three-phase VSC.
Figure 5. Control diagram for three-phase VSC.
Machines 13 00791 g005
Figure 6. DC/DC converter: (a) Circuit diagram, (b) Control circuit.
Figure 6. DC/DC converter: (a) Circuit diagram, (b) Control circuit.
Machines 13 00791 g006
Figure 7. Active power profile comparison.
Figure 7. Active power profile comparison.
Machines 13 00791 g007
Figure 8. SOC trajectory comparison.
Figure 8. SOC trajectory comparison.
Machines 13 00791 g008
Figure 9. Relative error between filed data and simulated data over time.
Figure 9. Relative error between filed data and simulated data over time.
Machines 13 00791 g009
Figure 10. Comparison of error metrics between simulated and field power consumption data.
Figure 10. Comparison of error metrics between simulated and field power consumption data.
Machines 13 00791 g010
Table 1. Charging station input parameters.
Table 1. Charging station input parameters.
DescriptionParametersValue
Grid filter inductor L g r i d 11 mH
Grid filter resistance R g r i d 0.6 Ω
DC link capacitor C d c 2000 μ F
DC/DC filter inductor L b a t 13 mH
DC/DC filter resistance R 1 b a t 0.1 m Ω
DC/DC filter resistance R 2 b a t 0.1 m Ω
DC/DC filter capacitor C b a t 20 μ F
DC link voltage v d c 800 V
Switching frequency f s w 10 kHz
Grid frequency f g r i d 50 Hz
Grid voltage V g r i d 415 V L-L
Inverter outer loop control P I 1 1 + 0.5 s
Inverter outer loop control P I 2 0.1 + 1 s
Inverter inner loop control P I 3 0.1 + 2 s
Inverter inner loop control P I 4 0.1 + 5 s
Phase-locked loopPLL 180 + 3200 s
DC/DC control P I 5 0.001 + 1 s
Table 2. Comparison of proposed HIL SCADA model with existing simulation methods.
Table 2. Comparison of proposed HIL SCADA model with existing simulation methods.
AspectOffline Models (MATLAB/Dymola) [41]Optimization-Based Methods [42]Co-Simulation Platforms [43]Proposed HIL SCADA Model
Accuracy vs. Field DataMAE: 0.25–0.40, MAPE: 3–5%; depends on OCV fitting and parametersMAE: 0.30–0.50, MAPE: 5–7%; limited by ideal assumptionsMAE: 0.20–0.35, MAPE: 3–4% at system-level; validated mostly at system-levelHigh (MAE ≈ 0.14,
MAPE ≈ 1.4%), validated against PMU data
Real-Time CapabilityNot real-time; offline onlyNot real-time; computationally intensiveLimited by solver synchronizationFully real-time with hardware interfacing
Grid RepresentationSimplified feeders or ideal sourcesSometimes included as constraintsExplicit coupling (grid + PV + storage)Direct measurement and validation at grid side via PMU
BMS and Control LogicSimplified SOC taper; no balancingNot explicitly modeledEV load approximatedCaptures tapering, balancing, and early cutoff, as seen in the field
Practical ApplicationUseful for early design and parameter studiesUseful for charging optimizationUseful for planning and integration studiesSuitable for real-world controller validation, digital twin development
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Verma, S.; Sharma, A.; Tran, B.; Alahakoon, D. Emulating Real-World EV Charging Profiles with a Real-Time Simulation Environment. Machines 2025, 13, 791. https://doi.org/10.3390/machines13090791

AMA Style

Verma S, Sharma A, Tran B, Alahakoon D. Emulating Real-World EV Charging Profiles with a Real-Time Simulation Environment. Machines. 2025; 13(9):791. https://doi.org/10.3390/machines13090791

Chicago/Turabian Style

Verma, Shrey, Ankush Sharma, Binh Tran, and Damminda Alahakoon. 2025. "Emulating Real-World EV Charging Profiles with a Real-Time Simulation Environment" Machines 13, no. 9: 791. https://doi.org/10.3390/machines13090791

APA Style

Verma, S., Sharma, A., Tran, B., & Alahakoon, D. (2025). Emulating Real-World EV Charging Profiles with a Real-Time Simulation Environment. Machines, 13(9), 791. https://doi.org/10.3390/machines13090791

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