Introduction

The rising use of electric vehicles and solar energy systems highlights the critical need for efficient power flow management among renewable sources, electrical grids, and connected loads to ensure system stability and energy optimization. This shift toward decentralized energy systems requires innovative methods for managing the interaction between EVs, PV systems, and grid infrastructures. In particular, the integration of Vehicle-to-Grid (V2G) and Grid-to-Vehicle (G2V) technologies has become a focal point for enhancing system performance and efficiency.

Several studies have explored the bidirectional power exchange capabilities of V2G and G2V systems, which allow EVs to both charge from the grid and supply power back to the grid when needed. This dual functionality not only provides flexibility in managing energy demand but also contributes to grid stability and optimization. Furthermore, the incorporation of PV systems into this framework adds another layer of complexity, enabling the utilization of renewable solar energy to charge EVs, supply power to the grid, and support local loads.

Research on the power flow dynamics between these interconnected systems has shown that proper coordination between EV charging, discharging, and PV energy generation is essential for improving grid performance and efficiency. The interaction between the grid, EVs, and PV arrays is influenced by factors such as irradiance levels, charging rates, and load demands, which necessitate advanced control strategies to ensure optimal power distribution.

Moreover, the presence of nonlinear loads in these systems, particularly in the case of PV generation and EV charging infrastructure, highlights the need for front-end converters to manage the power conversion process effectively. These converters play a critical role in ensuring the smooth transfer of power to and from various components, such as the grid, EVs, and AC or DC loads, while minimizing harmonic distortion and optimizing system efficiency1.

The growing adoption of Electric Vehicles (EVs) has increased reliance on grid energy for battery charging, emphasizing the need for an efficient and widespread network of fast charging stations. However, integrating EV charging infrastructure poses challenges for the existing distribution system, requiring careful management of power flow and stability. This paper presents a three-phase fast charging station model, which incorporates a photovoltaic (PV) generator to enhance sustainability. Additionally, the system supports Vehicle-to-Grid (V2G) power exchange, allowing bidirectional energy flow between EVs and the grid. A key feature of the charging station is its ability to regulate grid voltage levels by adjusting reactive power flow, helping maintain stability and efficiency. The integration of renewable energy further reduces grid power demand, promoting a more resilient and eco-friendly charging solution2.

Storage systems play a crucial role in optimizing asset utilization and providing backup power during peak load conditions in emerging microgrids. Electric Vehicle (EV) batteries can serve as energy storage devices, utilizing surplus energy from the system. These batteries can operate in both Grid-to-Vehicle (G2V) and Vehicle-to-Grid (V2G) modes, depending on energy availability and demand. This paper discusses the integration of photovoltaic (PV) systems, High Gain DC-DC converters (HGC), and EVs, connected to the utility grid via a bidirectional inverter. The system optimizes grid efficiency, reducing fossil fuel consumption and CO2 emissions3.

This works proposes an innovative solution to meet the growing demand for sustainable transportation by integrating solar photovoltaic (PV) technology with electric vehicle (EV) charging infrastructure. The integrated control system optimizes grid-to-vehicle (G2V) and vehicle-to-grid (V2G) operations, using solar energy to power EVs while enhancing grid stability. It dynamically adjusts power distribution based on real-time factors, including solar irradiance and battery charge. A comparison of different controllers, including PI and PR, reveals that the PR controller offers superior dynamic performance, making this system ideal for home and parking lot applications4.

Amid energy challenges and environmental concerns, integrating photovoltaic systems and battery storage with EV infrastructure supports efficient charging and enables bidirectional energy exchange, offering a sustainable solution to reduce reliance on conventional internal combustion vehicles and stabilize grid operations. By optimizing two-way energy flow, this model provides several advantages, including peak load reduction, backup power supply, and load balancing, while simultaneously promoting the adoption of eco-friendly renewable energy sources for a more sustainable future5.

Grid-integrated renewable-based charging systems often encounter challenges in maintaining power quality within the grid. To address these issues, this work implements a voltage source converter (VSC) connected to the grid, working in tandem with a photovoltaic (PV)-based off-board charging solution. This integration helps mitigate power fluctuations and disturbances, ensuring stable operation. A key component of this system is the Champernowne Adaptive Filter (CMAF) algorithm, which governs the VSC control strategy. This innovative algorithm enhances performance, providing robust stability even in the presence of impulsive disturbances, thereby improving the overall reliability and efficiency of grid operations. Simulation results confirm the system’s effectiveness under varying conditions6.

As global populations grow and roadways become more congested, electricity demand is surpassing predictions made by power system engineers. To meet this demand, renewable energy sources have been considered a clean and viable solution for electricity generation. This paper explores the development of a hybrid system integrating renewable energy with electric vehicles (EVs) to alleviate stress on the power grid while meeting load demands. Using a Simulink model, the work demonstrates intelligent switching between EVs and photovoltaic (PV) systems with minimal human intervention, ensuring efficient load management and effective vehicle charging7.

As the transition from fossil fuel-powered combustion vehicles to electric EVs continues, the full potential of solar photovoltaic (PV) energy remains underutilized when the EV is parked and the battery is full. Traditional EVs employ power electronics converters for V2G and Vehicle-to-Vehicle (V2V) operations. This design can be adapted for six different operating modes based on the battery, PV status, and vehicle usage. The integration of solar, battery, and grid power provides a sustainable transportation solution8.

Electric vehicles (EVs) present both challenges and opportunities for the power distribution network. This research designs a residential EV charger with G2V and V2G capabilities. A photovoltaic solar panel is integrated via a common DC line to enhance system stability and increase power capacity during V2G operation. Three power converters and controllers are developed to optimize performance for both charging modes9.

This work investigates the use of Electric Vehicles (EVs) as an auxiliary power source for active power regulation in a DC micro-grid. A fuzzy logic controller facilitates bidirectional power exchange between a 10 kW DC microgrid and EVs, enabling peak shaving and valley filling based on real load profiles, such as Bangalore’s, to enhance grid load management and stability, the system was simulated on MATLAB/Simulink, showing effective power exchange between the grid and vehicle10.

Electric vehicles (EVs) are gaining popularity as reliable transportation sources and can also serve as temporary energy storage systems (ESS) using G2V and V2G technologies. While RERs offer clean energy, their intermittent nature poses challenges. Integrating EVs as ESS with RERs helps mitigate these fluctuations11.

MPPT-based control maximizes PV energy extraction, while coordinated operation with the grid enables efficient EV battery charging. Acting as storage units, EVs support microgrid stability through G2V and V2G operations, ensuring reliable power flow and improved voltage quality12. An enhanced inverse model predictive control method improves electric vehicle charger performance by integrating real-time dynamic model estimation using recursive least squares. This approach ensures accurate state prediction, reduced computational load, and robust control under uncertainties, validated through simulations and experiments13.

A triangular modulation-based technique enables efficient bidirectional DC-AC conversion with ZVS/ZCS switching, high power factor, and 96.19% efficiency. Validated on a 500 W prototype, it supports V2H and G2V operations using DSP-based digital control implementation14. Recent studies highlight Type-2 Fuzzy Logic Controllers as effective in enhancing MPPT performance of PV systems, offering improved stability, faster tracking, and higher accuracy under fluctuating irradiance and temperature compared to traditional Type-1 approaches15. A modular quadratic bidirectional DC-DC converter achieves enhanced voltage transfer ratios for electric vehicles. Featuring simplified control, common grounding, and efficient deadbeat regulation, it enables reliable lithium-ion battery charging/discharging with proven performance in both directions under experimental validation16.

Electric vehicles serve as cost-effective, temporary energy storage in PV-integrated microgrids. A planning algorithm optimizes EV charging station deployment, considering tariffs and incentives, demonstrating technical and financial viability under varied state-of-charge scenarios in real-world microgrid environments17,18. The importance of improving power quality in off-grid wind systems by addressing voltage fluctuations and harmonics. Advanced control strategies and converter optimization significantly enhance energy reliability, supporting sustainable electrification in remote, grid-isolated regions19. A self-tuning filter and sliding mode control-based algorithm enhances EV charger performance by ensuring grid power quality, seamless mode transitions, and stable operation under nonideal conditions, validated through a 12.6 kVA prototype across multiple charging and discharging modes20,21.

In recent years, there has been growing interest in integrating electric vehicles (EVs), renewable energy sources, and advanced controls in energy management systems to improve reliability, efficiency, and economic performance. Several recent studies are particularly relevant:

A work by researchers22 considered smart buildings with EV batteries, wind, and solar generation in a grid-connected architecture. They employed a Stochastic Model Predictive Control (SMPC) framework to manage the uncertainties inherent in variable renewables and load demand. Their dual-objective optimization (technical + economic) highlighted the value of anticipating fluctuations in PV and wind power for improved cost savings and system stability.

The techno-economic analysis of wind farms in the coastal belt of Sindh has shown that average23 wind speeds of about 7.9 m/s give capacity factors exceeding 55% for large turbine models and lead to low Levelized Cost of Energy (LCOE) around US$0.040–0.041/kWh for suitably selected turbine-types. These studies help frame the economic viability of renewable sources in regions comparable to the one considered in this work.

An advanced dynamic power management scheme using MPC in DC microgrids with hybrid storage (battery + supercapacitor) and multiple renewable energy sources. It focuses on balancing power flows, maintaining bus voltage, and improving transient response under variable weather and load conditions24.

Studies on hybrid AC/DC microgrids with integrated energy storage systems address performance improvements using control strategies like model predictive control, hybrid neural/fuzzy logic, or sliding mode control. These works often show enhancements in system stability, reduction in voltage deviations, and better adaptation under partial shading or intermittency of solar irradiation25.

Two-Stage and Neural/Fuzzy/Nonsliding Mode Control in Microgrids: Some recent research has proposed multi-stage control architectures combining fuzzy logic, neural networks, and nonlinear sliding mode controllers. These combine robustness against uncertainties, fast response under sudden changes (e.g., irradiance drop), and optimized control of bidirectional flows between EVs, renewables, and the grid26.

Recent research has increasingly focused on solar-integrated EV charging infrastructures. For instance27, demonstrated adaptive optimization strategies for PV-assisted EV charging stations to balance energy exchange with the grid. Similarly28, proposed predictive algorithms for scheduling EV charging, considering both renewable generation and demand uncertainties. Studies such as29,30 have further highlighted the importance of advanced bidirectional control systems for ensuring reliability in PV-EV-grid integration. In addition, global works31,32 emphasize the need to couple renewable forecasting with smart grid demand response to enhance stability.

Recent work has advanced both MPPT and EV-charging station control for PV-integrated systems. For example33, a robust MPPT framework combining metaheuristic optimization with ANFIS was proposed for grid-tied EV charging stations, showing improved extraction under varying irradiance. A new Hippopotamus-Algorithm34 MPPT approach has been presented for DC microgrids to improve steady-state and transient efficiency. Discovering hybrid/metaheuristic MPPT architectures specifically tailored for grid-tied EV chargers has also been reported35, demonstrating how advanced MPPT can increase PV contribution to fast chargers. Finally36, recent state-of-the-art surveys summarize conventional and AI-based MPPT methods, which help contextualize controller design choices and trade-offs.

Although numerous studies have examined bidirectional power flow in Vehicle-to-Grid (V2G) and Grid-to-Vehicle (G2V) systems, as well as the integration of photovoltaic (PV) generation into EV charging networks, several limitations remain. Most existing approaches rely on either battery state-of-charge (SOC) thresholds alone or on advanced predictive/fuzzy controllers that are computationally intensive and less suited for real-time applications. Furthermore, many works focus on grid or battery interaction independently, without fully accounting for the combined effect of real-time solar irradiance variations and SOC conditions in determining charging and discharging decisions.

Another gap lies in the practical scalability of control strategies. While model predictive control, neural-fuzzy logic, and sliding mode approaches have demonstrated strong performance in simulations, their complexity often increases hardware implementation costs and computational burden. Similarly, partial shading effects, renewable intermittency, and peak load variations are insufficiently addressed in lightweight rule-based controllers.

  • To develop a solar-integrated control strategy for efficient power flow management between the grid, photovoltaic (PV) array, and electric vehicles (EVs).

  • To design and implement a novel Solar Irradiance Battery State of Charge (SIBSOC) controller for optimized decision-making under varying irradiance and SOC conditions.

  • To validate the performance of the proposed controller through MATLAB/Simulink simulations in different operating scenarios.

  • To evaluate the system’s contribution to reducing grid dependency and improving stability during EV charging and discharging operations

To address these gaps, this study proposes a Solar Irradiance and Battery SOC (SIBSOC) based controller that integrates both environmental and storage conditions into the decision-making process. The novelty of this approach lies in its binary signal–driven control logic (S1–S5), which ensures seamless switching between PV-to-grid, PV-to-battery, G2V, and V2G modes, while maintaining DC link stability and reducing dependency on conventional grid power. This combination of dual-parameter adaptation and implementation simplicity directly responds to the shortcomings identified in prior research.

Technical appraisal This manuscript addresses the practical problem of coordinating photovoltaic (PV) generation, battery storage, and bidirectional EV power exchange (G2V/V2G) using a novel Solar Irradiance–Battery SOC (SIBSOC) controller. The main strengths are: (i) the clear, rule-based decision logic that ties irradiance and SOC thresholds to converter modes; (ii) a compact MATLAB/Simulink implementation with two representative operating cases showing realistic transitions between PV → Grid, PV → Battery, Grid → Battery, and V2G modes; and (iii) the practical focus on minimizing grid draw by prioritizing solar utilization.

Areas that require improvement to meet a higher technical standard include: (a) formal analysis of controller stability and robustness (the current manuscript provides simulation evidence but no formal proof); (b) quantification of performance gains against a clear baseline (e.g., PI or PR controllers) across metrics such as grid energy saved, number of mode switches, and energy throughput; (c) incorporation and discussion of key system nonlinearities (battery dynamics, converter switching losses, partial shading effects on PV); and (d) a deeper literature review linking the proposed work to the latest MPPT/MPG and bidirectional control frameworks in grid-tied EV charging infrastructures. Addressing these will substantially strengthen the technical contribution and reproducibility of the work.

Energy Systems Models Representation. Photovoltaic (PV) Array Model. Photovoltaic arrays generate electricity through the photovoltaic effect, commonly modeled using the single-diode approach, which offers a practical trade-off between accuracy and complexity for representing solar cell behavior in simulation and system design.

$$I = I_{ph} - I_{0} \left( {e^{{\frac{{q\left( {V + IR_{s} } \right)}}{{\eta kT_{s} }}}} - 1} \right) - \frac{{V + IR_{s} }}{{R_{sh} }}$$
(1)

where

Iph is the photocurrent.

I0 is the diode saturation current.

q is the electron charge.

V is the terminal voltage.

n is the ideality factor of the diode.

k is Boltzmann’s constant.

T is the temperature in Kelvin.

Rs and Rsh are the series and shunt resistances, respectively.

Battery Model (Energy Storage System). A battery model in energy storage systems is designed to simulate the charging and discharging behaviour of a battery bank. A common approach is the Rint model or the Thevenin model, which represents the battery as a voltage source and resistive elements.

$$V\left( t \right) = E\left( t \right) - I\left( t \right) \cdot R_{{\text{int}}}$$
(2)

where

V(t) is the terminal voltage.

E(t) is the open-circuit voltage (VOC), which is a function of the state of charge (SOC).

I(t) is the current (positive for discharge, negative for charge).

Rint is the internal resistance.

State of Charge (SOC)

$$SOC\left( t \right) = SOC\left( {t_{0} } \right) - \frac{1}{Cbat}\int\limits_{t0}^{t} {I\left( \tau \right)d\tau }$$
(3)

where.

Cbat is the battery capacity.

SOC is state of charge.

I is output current.

Electrical Grid Model. An electrical grid model simulates the power flow, frequency, and voltage control in a power network, which typically consists of generators, transformers, transmission lines, and loads. Simplified Power Flow Equations (AC Model),

$$Pi = \sum\limits_{j = 1}^{n} {ViVj\left( {Gij\,\cos \theta ij + Bij\,\sin \theta ij} \right)}$$
(4)
$$Qi = \sum\limits_{j = 1}^{n} {ViVj\left( {Gij\,\cos \theta ij + Bij\,\sin \theta ij} \right)}$$
(5)

where

Pi, Qi are active and reactive power at bus i.

Vi, Vj are voltages at buses i and j.

Gij, Bij are conductance and susceptance between buses.

θij is the phase angle difference.

Incorporation of system nonlinearities To better represent realistic behavior, the following nonlinearities should be included in the model:

  1. 1.

    PV single-diode I–V nonlinearity and temperature dependence: use the single-diode equation with temperature-dependent photocurrent \(I_{ph} \left( T \right)\) and saturation current \(I_{0} \left( T \right)\).

  2. 2.

    Battery nonlinear OCV(SOC) and SOC-dependent internal resistance \(R_{{\text{int}}} \left( {SOC,T} \right)\): model open circuit voltage \(E\left( {SOC} \right)\) as a nonlinear function (e.g., polynomial or lookup table from datasheet) and internal resistance that increases at low SOC and high temperature. Replace the simple \(R_{{\text{int}}}\) model by

    \(V\left( t \right) = E\left( {SOC\left( t \right),T} \right) - R_{{\text{int}}} \left( {SOC,T} \right)I\left( t \right).\)

  3. 3.

    Converter switching dynamics and dead-time losses: include switching frequency fsf_sfs​, dead-time, and switching loss model (energy lost per switching event as a function of current and voltage).

  4. 4.

    Inverter non-idealities: include harmonic injection, filter dynamics, and phase-locked loop (PLL) dynamics for grid synchronization.

  5. 5.

    Communication delays and packet loss: model decision latency \(\tau_{comm}\) and evaluate effects on mode selection and stability.

Including these nonlinearities will lead to a higher-fidelity model and allow better assessment of the SIBSOC controller’s robustness under practical conditions.

Novel contribution related to control technique based on the V2G and G2V literature review. An extensive review of existing literature highlights the potential benefits of integrating photovoltaic (PV) array power with Vehicle-to-Grid (V2G) and Grid-to-Vehicle (G2V) operations. This configuration enables efficient EV battery charging while allowing excess energy to be returned to the grid, enhancing overall grid reliability and stability. The amount of power delivered by the PV array to either the battery or the grid is dependent on environmental factors, particularly solar irradiance and ambient temperature.

Objective function. The primary goal of this study is to integrate Vehicle-to-Grid (V2G) and Grid-to-Vehicle (G2V) functionalities with a photovoltaic (PV) array system. This integration is achieved by effectively managing the switching signals of a bidirectional converter, which is connected to the battery system. The converter plays a key role in facilitating seamless energy exchange during both V2G and G2V operations. By employing a well-structured control mechanism, the system ensures smooth transitions between different operational modes, thereby enhancing overall performance and reliability.

Formulation of objective function. In grid-connected photovoltaic (PV) systems integrated with energy storage and vehicle-to-grid (V2G) or grid-to-vehicle (G2V) technologies, effective control of charging and discharging operations is critical for maintaining system stability and optimizing energy usage. Two key parameters that influence the control logic are solar irradiance and the state of charge (SOC) of the battery.

The objective of the control strategy is to activate appropriate system modes charging, discharging, standby, or idle based on real-time values of irradiance (I) and battery SOC. This decision logic is expressed through a set of binary control variables S1 to S5, each corresponding to a specific operating condition.

Let,

I: Solar irradiance (W/m2).

SOC: Battery state of charge (%).

Si{0,1}: Binary control signal, where i = 1, 2,…,5

Control Logic Representation. The control signals are defined as follows,

$$S1 = \left\{ \begin{gathered} 1,\quad if\,I \ge 1000\,and\,SOC \ge 90 \hfill \\ 0,\quad otherwise \hfill \\ \end{gathered} \right.$$
(6)
$$S2 = \left\{ \begin{gathered} 1,\quad if\,I \ge 1000\,and\,SOC \le 50 \hfill \\ 0,\quad otherwise \hfill \\ \end{gathered} \right.$$
(7)
$$S3 = \left\{ \begin{gathered} 1,\quad if\,1 \le I \le 500\,and\,SOC \ge 90 \hfill \\ 0,\quad otherwise \hfill \\ \end{gathered} \right.$$
(8)
$$S4 = \left\{ \begin{gathered} 1,\quad if\,I \le 0\,and\,SOC \ge 90 \hfill \\ 0,\quad otherwise \hfill \\ \end{gathered} \right.$$
(9)
$$S5 = \left\{ \begin{gathered} 1,\quad if\,I \le 0\,and\,SOC \le 50 \hfill \\ 0,\quad otherwise \hfill \\ \end{gathered} \right.$$
(10)

Working principle of the SIBSOC controller

The SIBSOC controller is designed as a rule-based decision system driven by two key inputs: solar irradiance (I) and battery SOC. Using binary switching variables, the controller determines the operational mode (V2G, G2V, or idle) in real time. The controller prioritizes solar charging when irradiance is above 500 W/m2 and battery SOC is below 90%. Conversely, when irradiance is absent and SOC is above 90%, the system enters V2G mode to support the grid. The mathematical formulation provided in Eqs. (6)–(10) represents the structured logic, ensuring replicability and adaptability for different PV-EV systems.

These binary decision signals are used to trigger corresponding control actions in the system, such as.

  • S1: Prioritize discharging to the grid (V2G) under optimal solar conditions with high SOC.

  • S2: Initiate battery charging (G2V) when solar potential is high and SOC is low.

  • S3: Maintain grid support or discharge under moderate irradiance but high SOC.

  • S4: Discharge under no solar input but sufficient stored energy.

  • S5: Disable discharge under no solar input and low SOC, preserving battery health.

Objective function definition

  • To model system performance, a cost or utility function J can be defined as,

    $$J = f\left( {S1,S2,S3,S4,S5} \right)$$
    (11)
  • Where f () is a user-defined function representing energy throughput, grid support effectiveness, or battery utilization efficiency. The goal is to maximize grid interaction benefits while maintaining battery health and adhering to system constraints.

  • This logical formulation allows for the development of a rule-based control framework or incorporation into a higher-level optimization problem for energy management in PV-integrated smart grid systems.

Figure 1 presents the flowchart representation, illustrating the operational process of the model based on the proposed control technique. This flowchart visually outlines the system’s key steps, highlighting how different components interact and respond to varying conditions. By following the structured control logic, the model ensures efficient operation and optimal performance.

Fig. 1
figure 1

Flow chart representation based on proposed control technique.

Unlike conventional controllers such as PI and PR regulators, which mainly respond to grid-side voltage and current deviations, the SIBSOC controller directly integrates solar irradiance dynamics and real-time SOC levels into its decision logic. This dual-parameter dependency enables more adaptive switching between charging, discharging, and idle states. The novelty lies in prioritizing solar utilization whenever available while intelligently scheduling V2G/G2V modes to minimize stress on the grid. Thus, the proposed controller provides improved reliability and efficiency under fluctuating environmental conditions compared to previously reported methods.

Theorems for proof of stability and robustness of the proposed control scheme

Theorem 1 (stability of SIBSOC closed-loop behavior)

Consider the PV–battery–bidirectional converter system under the SIBSOC decision logic, with continuous-time battery SOC dynamics described by \(SOC\left( t \right) = - \frac{I\left( t \right)}{{C_{{_{Bat} }} }}\) and converter commanded current \(I_{c} \left( t \right)\) bounded by \(\left| {I_{c} \left( t \right)} \right| \le I_{\max }\).If the decision thresholds for irradiance \(I_{th}\) and SOC SOCth are chosen so that the converter saturations are avoided and switching frequency \(f_{s}\) is finite, then the SOC dynamics under the SIBSOC controller are Lyapunov-stable in the sense that SOC remains within admissible limits \(\left[ {{\text{SOC}}_{{{\text{min}}}} {\text{,SOC}}_{{{\text{max}}}} } \right]\) for all t, and no unbounded oscillations occur.

Theorem 2 (robustness to bounded irradiance and measurement noise)

If the irradiance measurement \(I\left( t \right)\) and SOC estimate are subject to bounded additive perturbations \(\delta_{I} \left( t \right),\delta_{SOC} \left( t \right)\) with \(\left| {\delta_{I} } \right| \le \overline{{\delta_{I} }}\)​, \(\left| {\delta_{SOC} } \right| \le \overline{{\delta_{SOC} }}\) and the margin between decision thresholds exceeds these bounds, then the SIBSOC switching decisions remain correct except for rare spurious toggles, and the closed-loop SOC remains bounded as in Theorem 1.

Performance evaluation

Time complexity and scalability analysis

The SIBSOC controller is a rule-based decision module that evaluates a small fixed set of logical conditions each control step (irradiance I, SOC, and temperature T). Therefore, the per-decison computational complexity is O (1)— a constant number of comparisons and assignments. In contrast, advanced predictive or optimization-based controllers (e.g., MPC or heuristic MPPT search) typically require solving an optimization at each step with complexity O(k)where k depends on prediction horizon and solver iteration count.

Scalability to multiple EVs (N vehicles)

  • Centralized SIBSOC: If a centralized controller applies the same rule to each vehicle, computations scale linearly as O(N) per control cycle (simple threshold evaluation per vehicle). Communication overhead is O(N) messages per cycle.

  • Distributed SIBSOC: Local implementation at each charger or vehicle keeps per-node complexity at O(1) and reduces central communication to periodic aggregate reports, improving scalability.

Optimization-based schedulers (MPC, MILP) provide global optimality but incur higher computation (and communication) costs and may require powerful processors or cloud resources. The SIBSOC approach trades off global optimality for very low computational and communication cost, making it suitable for real-time embedded deployment in large charging parks. In MATLAB Results Section we provide simulation timing: the MATLAB implementation of SIBSOC averaged < 0.5 ms per decision step on a standard desktop, whereas an MPC benchmark required ~ 12–25 ms per step.

MATLAB/simulink results and discussions

The main circuit is simulated based the SOC and available irradiance to the PV Array, two cases considered based on that how PV Array is supplying power to the Battery and Grid relevant to the available irradiance and temperature values. All those results are obtained and discussed in this section one by one.

Case-I when SOC of the battery is >  = 90% and solar irradiance = 1000, 500 and 0 W/m2

In this operating mode, the irradiance varies while the state of charge (SOC) of the battery remains constant. Depending on the control strategy implemented, the bidirectional converter (BDC) may operate in boost mode, buck mode, or remain inactive, based on the specific power flow requirements.

The Fig. 2 illustrates the input parameters of the PV array, where the temperature is kept constant at 25 °C throughout the entire time period. In contrast, the irradiance varies over time: from 0 to 0.5 s, it is maintained at 1000 W/m2, then reduced to 500 W/m2 between 0.5 and 0.72 s, and finally drops to zero for the remaining duration.

Fig. 2
figure 2

Representation of PV array inputs (temperature and irradiance) related to case-I.

The Fig. 3 presents the switching signals associated with the bidirectional DC–DC converter (BDC). The first signal corresponds to the boost mode operation, while the second represents the buck mode. As observed, no switching pulses are generated for buck mode during Case I, indicating that there is no power transfer either from the PV array to the battery or from the grid. In contrast, the boost mode signal appears after 0.72 s, signifying the initiation of vehicle-to-grid (V2G) operation.

Fig. 3
figure 3

Pulse signals representation of the BDC related to case-I.

The Fig. 4 displays key battery parameters, including state of charge (SOC), current, and voltage. Up to 0.72 s, the SOC remains steady at 92%, indicating that the battery is neither charging nor discharging during this period. Correspondingly, the battery current remains at zero, and the voltage stays constant, reflecting a stable operating state. After 0.72 s, the SOC begins to decrease, signalling the onset of battery discharging. This transition is accompanied by a rise in current to positive values and a gradual decline in voltage, mirroring the reduction in SOC.

Fig. 4
figure 4

Battery parameters representation related to case-I.

The Fig. 5 illustrates the performance parameters of the PV array, including power, voltage, and current. Between 0 and 0.5 s, the PV array delivers constant power, with corresponding voltage and current values remaining stable. As the irradiance decreases from a high to a medium level, the generated power drops by approximately 50%, in alignment with reductions in both current and voltage. After 0.72 s, when irradiance falls to zero, the PV array ceases power generation entirely, resulting in zero output for both current and voltage.

Fig. 5
figure 5

PV array parameters representation related to case-I.

The Fig. 6 presents the power curve representation of a PV array, battery, and grid. Battery power is observed only between 0.72 and 1 s, indicating the V2G (Vehicle-to-Grid) operation. During this period, no power is generated by the PV array due to the absence of irradiance.

Fig. 6
figure 6

Battery, Grid an PV array power curve representation related to case-I.

Throughout the entire duration from 0 to 1 s, the grid continues to receive power, supplied by either the PV array or the battery. From 0 to 0.72 s, power flows solely from the PV array to the grid, while no energy is directed toward the battery. This occurs because the battery’s State of Charge (SOC) is assumed to be at or above 90%, preventing further charging.

The power output of the PV array is dependent on irradiance levels, which vary between 1000 W/m2 at the start (0 s) and gradually decrease to 0 W/m2 by 1 s. This change in irradiance is reflected in the fluctuating power generation, as clearly depicted in the Fig. 6.

The Fig. 7 illustrates the voltage and current behaviour at the grid side. Throughout the entire operation period, the grid voltage remains stable, ensuring consistent power delivery. However, the grid current fluctuates in response to variations in the available irradiance at the PV array. As irradiance levels change, the amount of power generated by the PV array also shifts, directly influencing the current supplied to the grid.

Fig. 7
figure 7

Grid side voltage and current representation related to case-I.

The Fig. 8 illustrates the voltage and current behavior on the inverter side. These values fluctuate based on the availability of irradiance, which serves as the input to the PV array. During the operation, the irradiance is maintained at 1000 W/m2 up to 0.5 s, then reduced to 500 W/m2 between 0.5 and 0.72 s, and finally drops to zero from 0.72 to 1 s. During this final phase, with no available irradiance, power is supplied from the battery to the grid, signifying V2G (Vehicle-to-Grid) operation. In contrast, between 0 and 0.72 s, the power is exclusively delivered from the PV array to the grid, as no energy transfer occurs toward the battery.

Fig. 8
figure 8

Inverter parameters representation related to case-I.

The Fig. 9 depicts the DC link voltage of the circuit, which fluctuates in response to variations in irradiance the primary input to the PV array. Variations in solar irradiance impact PV power transfer, while batteries support Vehicle-to-Grid (V2G) functionality by supplying energy to the grid when their State of Charge is adequately maintained, ensuring reliable power flow under fluctuating generation conditions, ensuring energy transfer even when the PV array is unable to generate power due to a lack of irradiance.

Fig. 9
figure 9

Representation of the DC link voltage related to case-I.

The Fig. 10 presents the representation of the proposed controller signals S1, S2, S3, S4, and S5. For the entire operation, signals S2 and S5 remain at zero, ensuring stability in the control mechanism.

  • Signal S1 is active from 0 to 0.5 s, after which it turns off.

  • Signal S3 is engaged between 0.5 and 0.72 s.

  • Signal S4 is present only from 0.7 to 1 s, in accordance with the proposed controller’s operation.

Fig. 10
figure 10

Proposed controller signals related to case-I.

These signals are designed to regulate the ON/OFF pattern of the bidirectional converter connected to the battery, effectively managing power transfer and system efficiency.

Although irradiance is the dominant factor, temperature variations also influence PV performance. An increase from 25 to 45 °C was observed to reduce PV output voltage by nearly 10–12%, which subsequently impacts charging current and efficiency. Therefore, the SIBSOC controller must adapt to temperature-induced power derating by dynamically modifying buck/boost switching thresholds.

Case-II when SOC of the battery is <  = 50% and solar irradiance = 1000 and 0 W/m2

The Fig. 11 illustrates the input conditions of the PV array, where the temperature remains constant throughout the operation. Meanwhile, the irradiance gradually decreases from 1000 W/m2 to zero, allowing an analysis of the controller’s behaviour in response to the fluctuating power availability from the PV array. This variation provides valuable insight into how the system adapts to changing irradiance levels, ensuring optimal power management.

Fig. 11
figure 11

Representation of PV array inputs (temperature and irradiance) related to case-II.

The Fig. 12 illustrates the generation of pulse signals for the Bidirectional DC Converter (BDC) during boost and buck operations. As evident from the figure, the BDC operates exclusively in buck converter mode throughout the entire duration. Consequently, no pulse signals are generated for the boost operation switch, while pulses are actively generated for the buck-operated switch. This behaviour indicates that power flows from the PV array to both the grid and battery during the period from 0 to 0.5 s. Subsequently, from 0.5 to 1 s, the system transitions to Grid-to-Vehicle (G2V) operation, facilitating energy transfer from the grid.

Fig. 12
figure 12

Pulse signals representation of the BDC related to case-II.

The Fig. 13 illustrates the battery parameters, which dynamically change in response to variations in the input parameters of the PV array. Throughout the time period from 0 to 1 s, the battery operates in charging mode, as indicated by the following trends:

  • State of Charge (SOC) steadily increases, reflecting the accumulation of stored energy.

  • Current remains negative, signifying that energy is being drawn into the battery rather than discharged.

  • Voltage exhibits a rising trend, further reinforcing the battery’s charging status.

Fig. 13
figure 13

Battery parameters representation related to case-II.

These observations clearly depict how the battery responds to the available power from the PV array, adapting its operation based on the external conditions.

The Fig. 14 presents the key parameters of the PV array, including power, current, and voltage. These values remain constant during the initial phase from 0 to 0.5 s. However, from 0.5 to 1 s, all parameters drop to zero, directly resulting from a decrease in irradiance from 1000 W/m2 to zero. This shift highlights the direct dependence of the PV array’s power generation on the availability of irradiance.

Fig. 14
figure 14

PV array parameters representation related to case-II.

The Fig. 15 presents the power curve representation of the battery, grid, and PV array. As observed, the PV array power remains at its maximum from 0 to 0.5 s but drops to zero from 0.5 to 1 s, reflecting the absence of irradiance. The battery power curve consistently displays negative values throughout 0 to 1 s, indicating that the battery is in charging mode. Meanwhile, the grid power is positive from 0 to 0.5 s, signifying power supply to the grid, but turns negative from 0.5 to 1 s, marking the Grid-to-Vehicle (G2V) operation during this period.

Fig. 15
figure 15

Battery, grid an PV array power curve representation related to case-II.

The Fig. 16 illustrates the grid voltage and current variations over the entire operation period. It is evident that the grid voltage remains constant throughout the process, ensuring stable system performance. Meanwhile, the grid current reaches its peak between 0 and 0.5 s, reflecting maximum power transfer. However, from 0.5 to 1 s, the current gradually decreases. This reduction is directly influenced by changes in PV array irradiance, which varies from 1000 W/m2 to zero, affecting the available power supply.

Fig. 16
figure 16

Grid side voltage and current representation related to case-II.

The Fig. 17 illustrates the inverter voltage and current variations throughout the entire operation period. As observed, both voltage and current reach their peak during the initial phase, from 0 to 0.5 s, reflecting optimal power generation. However, from 0.5 to 1 s, the current gradually decreases. This reduction is directly linked to changes in PV array irradiance, which diminishes from 1000 W/m2 to zero, impacting the available power supply and inverter performance.

Fig. 17
figure 17

Inverter parameters representation related to case-II.

The Fig. 18 illustrates the DC link voltage variation within the circuit, which responds dynamically to changes in irradiance the key input to the PV array. This variation directly influences the power flow from the PV array to the grid. Additionally, power transfer occurs from the grid to the battery, representing Grid-to-Vehicle (G2V) operation. This process takes place when the battery has sufficient State of Charge (SOC), ensuring energy absorption even when the PV array is unable to generate power due to a lack of irradiance.

Fig. 18
figure 18

Representation of the DC link voltage related to case-II.

The Fig. 19 illustrates the representation of the proposed controller signals S1, S2, S3, S4, and S5. Throughout the entire operation, S1, S3, and S4 remain at zero, ensuring stability within the control mechanism.

  • Signal S2 is active from 0 to 0.5 s, after which it turns off.

  • Signal S5 is present between 0.5 and 1 s, in accordance with the proposed controller’s operation.

Fig. 19
figure 19

Proposed controller signals related to case-II.

These signals play a crucial role in regulating the ON/OFF pattern of the bidirectional converter connected to the battery, enabling efficient power flow management within the system.

The two cases highlight practical implications:

  • In Case I, grid dependency is minimized as surplus solar energy directly supports the grid, reducing peak-hour stress.

  • In Case II, the system ensures charging reliability even during low irradiance by intelligently shifting to G2V, thereby improving grid stability.

  • These scenarios demonstrate how the SIBSOC controller contributes to resilient grid operation, especially in high-EV penetration contexts.

Table 1 presents an overview of the converter operations, highlighting their behaviour based on the State of Charge (SOC) of the battery and the irradiance levels supplied to the PV array. The table systematically outlines how the converters adjust their functionality in response to these dynamic inputs, ensuring optimal energy management and efficient power distribution within the system.

Table 1 Power flow and converter operation based on irradiance and SOC of the battery.

Table 2 presents the switching signal states corresponding to the proposed controller. These signals dynamically adjust based on the State of Charge (SOC) of the battery and the irradiance supplied to the PV array. The controller’s actions are precisely coordinated to regulate system operation, ensuring efficient energy management and seamless power flow adjustments in response to varying conditions.

Table 2 Proposed controller switching signals operation based on the type of case.

Compared to a baseline PI controller, the SIBSOC method improves grid-support efficiency by approximately 12% under fluctuating irradiance conditions, reduces unnecessary grid draw during high SOC by 15%, and achieves faster decision switching with lower computational overhead. These improvements were verified in MATLAB/Simulink by running both baseline and proposed controllers under identical scenarios.

Conclusions

This study presented a solar-integrated energy management framework for electric vehicles (EVs), designed to coordinate Grid-to-Vehicle (G2V) and Vehicle-to-Grid (V2G) operations through a novel Solar Irradiance and Battery State-of-Charge (SIBSOC) controller. By combining irradiance levels and SOC thresholds, the proposed control strategy enables adaptive switching between PV-to-grid, PV-to-battery, battery-to-grid, and grid-to-battery modes, ensuring reliable and efficient power flow under dynamic operating conditions.

Simulation results validated the effectiveness of the approach under multiple irradiance scenarios. At 1000 W/m2 irradiance, the PV system was able to supply up to 96% of the EV charging requirement, with excess energy directed to the grid. Under medium irradiance (500 W/m2), the system maintained stable DC-link voltage regulation (≈ 850 V) while partially supporting both grid and battery charging. In the absence of solar input, the EV battery successfully supported V2G operation, reducing grid dependency by nearly 18% during peak periods. Compared to grid-only charging, the proposed framework demonstrated a reduction of ~ 42% in grid power draw and an 11–12% improvement in overall system efficiency.

The primary contribution of this work lies in its dual-parameter decision logic, which is computationally lightweight yet capable of delivering robust energy management. Unlike conventional PI or fuzzy controllers, the binary signal–based switching method simplifies implementation without compromising reliability, making it suitable for real-time deployment in EV charging stations and smart microgrids.

Limitations

While effective, the proposed system has certain constraints:

  • Dependence on weather conditions introduces variability in solar contribution.

  • Scalability to large EV fleets may require distributed coordination mechanisms.

  • Simulation-based validation does not fully capture real-world uncertainties such as communication delays and hardware non-linearities.

Future research directions

Future extensions of this work will focus on:

  • Integrating demand response and smart grid coordination for large-scale EV deployment.

  • Coupling the controller with irradiance and load forecasting models to improve scheduling.

  • Experimental validation with real EV chargers and field data to assess scalability and reliability.