1 Introduction

EVs are an alternative for internal combustion engine working with fossil fuels in the near future. The decrease in fossil fuels over time and the resulting increase in oil prices, greenhouse gas emissions and environmental concerns increase the interest in EVs. However, plug-in electric vehicles (PEVs) imposes an additional burden on the power grid [1]. Therefore, high energy supply is required from the energy grid. For this reason, the effect of the integration of EVs on the grid should be examined in detail.

The charge of EVs represents large and unpredictable loads that may adversely affect performance in distribution networks. Uncontrolled charging of the EVs by the masses is likely to result in transformer overloads, voltage deviations and increased energy losses in the network [2, 3]. Shifting the charging of EVs to nonpeak times is considered a key challenge for the integration of electric vehicles into the electricity grid. The main difficulty in achieving this is the uncertainty in the behavior of EV drivers. Therefore, the behavior model of EV drivers is one of the main problems that must be solved in order to ensure optimum integration into power systems. Although the behavior of users is unpredictable, the grid is expected to be in great demand at these time intervals, since the general tendency of people in the same community is to charge after return from work [4]. This knowledge inspires researchers to develop new algorithms and ideas.

Even though EVs are unbalanced loads that may adversely affect the grid, they can also be used to reduce potential overloads in the distribution system, balance the grid frequency and minimize charging costs during the same process [5,6,7]. In other words, EVs can be considered as controllable generators from the perspective of smart grid. For this reason, V2G topology is critical for the algorithms developed for grid integration.

1.1 Related works

In recent years, many researchers have investigated energy management (EM) strategies to integrate EVs into the grid. Instance, energy management has been carried out in order to smooth the load curve of the low voltage transformer and to serve every consumer at the desired time [8]. In a similar study, a new multi-energy management strategy aimed at minimizing the power fluctuation of the energy grid was proposed [9]. An integrated control scheme is provided to implement the vehicle-to-grid (V2G) topology in a distribution grid with renewable energy sources [5]. In another similar study, the energy management strategy was evaluated with two-way V2G topology to ensure penetration of hybrid electric vehicles [10]. In order to coordinate EV loads, optimization algorithm has been developed with genetic algorithm, which takes into account thermal line limits, load on voltage transformers, voltage limits and parking availability patterns [11]. The optimal algorithm for controlling the V2G and G2V topologies has been developed to realize network integration of EVs [12]. In another study, a specific methodology for controlling collective electricity charge demands is presented [13]. A real-time energy management algorithm has been developed for the integration of a grid-connected charging park in an industrial workplace [14]. An integrated distribution local marginal pricing method has been designed to alleviate the congestion caused by loads in EV penetration [15]. In another study, a comparison between different possibilities for V2V power transmission between two electric vehicles is presented [16]. Similarly, a military application has been described to demonstrate the real-life micro-network implementation of V2V and V2G topologies [17]. In another, an innovative algorithm called optimal logical control has been introduced to improve the V2G topology and its advantages have been demonstrated [18]. In a different study, it was focused on autonomous EVs looking for parking spaces and investigated how they could be directed to appropriate parking facilities to support V2G services [19]. In another study, a pricing menu has been presented for the time the EVs will stay in the charging station [20]. A functional real-time EV charge management scheme that can program the net electricity exchange with the external grid for the building energy management system (BEMS) of commercial buildings offering EV charging services has been proposed [21]. Similarly, a new EV charge pricing and timing mechanism has been proposed to monitor and synchronize a renewable energy model [22]. Many researchers foresee that the charging of vehicles in metropolises will be provided in commercial buildings in the future. Thus, in order to solve the EV charge pricing problem in commercial buildings, EV charging has been optimized in a microgrid supported by energy storage and photovoltaic power supplies [23]. Among charging strategies, the creation of charge schedules for EVs can be used effectively. Thus, an intelligent charging strategy has been presented using machine learning tools to determine when EVs will be charged during connection sessions [24]. Another method that researchers use extensively in the integration of EVs for EMS design is the fast and slow charging recommendations according to the requirement. For example, distinct from that single-class charging processes in both parking lots and fast charging stations, a mixed multi-class charging mechanism that can perform slow charging and fast charging at the same time is presented [25]. In a similar study, a real-time energy management strategy was proposed for rapid charging of a city bus with hybrid energy storage system consisting of conventional batteries and supercapacitors [26]. Increasing EV charging efficiency and reducing charging cost is one of the main problems in EVs integration. In the literature [27], 1-N type Stackelberg game model was designed between a leader (retailer charging station) and multiple followers (EV users) to solve this problem. The working principle of this charge management strategy is based on the principle of the retailer, load overtime and the benefits of an integrated network to set a charging price to maximize profits based on user behavior and then select charge power by electricity price to determine the power consumption level of each customer. The development of dynamic strategies designed independently of users' behavior models, action profiles or charge timing schemes in EV integration will be very valuable in terms of providing general solutions in the future. As a matter of fact, a dynamic power conditioning system was designed for charging EVs in 4 different modes in order to provide grid support during high demand [28]. In another similar study, a dynamic charge management strategy based on the method of controlling the cycling current was developed in order to provide the grid integration of an EV fleet efficiently [29].

Many of the above studies have provided valuable insights into optimal EV charging planning in light of the uncertainty in the penetration of EVs. However, in many of these studies, fixed EV driver behavior models, action profiles or charge timing schemes were presented and strategies were based on it. Apart from these, the differences and advantages of our study according to the dynamic control strategies presented in the literature are explained in detail in Our Contribution section.

1.2 Our contributions

The original DBS developed in this article will provide the following contributions to the literature;

  • the designed DBS reduces the energy demanded by the EV charging station at different penetrations from the grid, especially during peak hours, by using the G2V and V2V topologies simultaneously in order to provide the optimal charging strategy. In this way, energy efficiency and voltage stability can be achieved and grid load profile balancing can be adjusted more flexibly. When evaluated according to the principle of conservation of energy, it is obvious that this method will be superior to other dynamic charging strategies in the literature.

  • From the perspective of smart grids, V2G topology can be activated when the frequency and voltage characteristics of the grid are disturbed. Therefore, all EVs can be considered as distributed generators.

  • DBS can provide efficient and feasible results according to all driver behavior models without the obligation of EV owners to notify the operator of entry and charge planning.

  • With increasing EV penetrations, the grid load reduction rate at peak hours is gradually increasing with DBS. This situation tends to decrease as the penetration rate increases in the studies in the literature. In this respect, DBS provides a clear advantage.

  • DBS calculates the usage frequency index (fk) for each user and thus determines the optimal charging strategy for each user, taking into account the satisfaction of all users at the station to which it is connected. In this way, the satisfaction of the EV driver is kept high levels. In our case study, user satisfaction is already kept in the 75–100% band.

  • The designed DBS determines the charging strategy by taking into account all conditions such as grid load status, storage SOC, EVs SOC, PV (photovoltaic) instantaneous power generation level. In this way, suitable results can be obtained by evaluating all parameters in the micro-network that will enable EV integration.

  • The proposed DBS will provide more flexible design capability to researchers who will work on charging strategies and EMS in the future.

In the future, with all the additives mentioned above, it will be able to overcome many problems such as voltage and frequency deviations that may occur in the network integration of EVs, excessive network load, high infrastructure cost. In addition, EV driver comfort and satisfaction will be also kept at a high levels. Thus, the results of the simulation study reveal the applicability of the designed DBS.

2 Dynamic balance strategy model and satisfaction function

The balance strategy is classified as MOD-I and MOD-II according to the battery status of EVs connected to the charging station. In MOD-I, the whole system works in both V2V and G2V topologies. In MOD-II, G2V topology is activated according to the status of grid and storage. However, in case of change in grid frequency and voltage stability, all EV charging stations in the region are considered as generators and V2G topology is activated considering the total battery capacity of the connected EVs.

First, all EVs for MOD-I are classified and labeled. This is done according to the conditions in Eq. 1.

$${\mathrm{EV}}_{J} \leftrightarrow\left\{\begin{array}{c}{\mathrm{EPA}}_{J}, {\mathrm{SOC}}_{EVJ}\left(t\right)>{\mathrm{SOC}}_{B} , {{\mathrm{EPA}}_{J}\left(t\right), \mathrm{ECA}}_{J}=0 \\ EBS, {\mathrm{SOC}}_{EVJ}\left(t\right)={\mathrm{SOC}}_{B} , {\mathrm{EPA}}_{J}=0,{\mathrm{ECA}}_{J}=0\\ {\mathrm{ECA}}_{J}, {\mathrm{SOC}}_{EVJ}\left(t\right)<{\mathrm{SOC}}_{B} {,\mathrm{ ECA}}_{\mathrm{J}}\left(t\right), {\mathrm{EPA}}_{J}=0\end{array}\right.$$
(1)

Both EPA and ECA values are calculated for each EV tagged. The values calculated in Eqs. 2 and 3 are shown.

$${\mathrm{EPA}}_{J}=\left[{\mathrm{SOC}}_{EVJ}\left(t\right)-{\mathrm{SOC}}_{B}\right].{C}_{Pj}$$
(2)
$${\mathrm{ECA}}_{J}=\left[{\mathrm{SOC}}_{B}-{\mathrm{SOC}}_{EVJ}\left(t\right)\right].{C}_{Pj}$$
(3)

If the same calculations are made for storage;

$${\mathrm{EPA}}_{J} \leftrightarrow\left\{\mathrm{SEPA}, {\mathrm{SOC}}_{SJ}\left(t\right)>\mathrm{0,35}.{\mathrm{SOC}}_{\mathrm{max}} \mathrm{else} \mathrm{SEPA}=0\right.$$
(4)
$$\mathrm{SEPA}=\left[{\mathrm{SOC}}_{S}\left(t\right)-\mathrm{0,35}.{\mathrm{SOC}}_{\mathrm{max}}\right].{C}_{PB}$$
(5)

With these calculated values, total energy value given in Eq. 6 is obtained.

$$\mathrm{TE}=\left[\sum_{j=1}^{n}{\mathrm{ECA}}_{J}-\sum_{j=1}^{n}{\mathrm{EPA}}_{J}\right]-\mathrm{SEPA}$$
(6)

The real-time continuously calculated TE value will be used to obtain the total power demand. Thus, an artificial intelligence (AI) algorithm has been developed for PT value. PPV, PID and TE are designed as inputs of this algorithm and PT as output. Fuzzy logic control was preferred for AI, and topology is given in Fig. 1.

Fig. 1
figure 1

PT Account with artificial intelligence

The real-time instantaneous PT represents the total power demand or supply potential of the charging station. The PT value is actually the instantaneous power value to be transferred to EVs at the end of the calculation. This situation is mathematically

$${P}_{T}=\sum_{j=1}^{n}{P}_{\mathrm{EVJ}}+{P}_{S}$$
(7)

is expressed.

A usage frequency index (fk) is calculated for each vehicle according to the revealed DBS. The main purpose of this is to determine new charging times according to user behavior. Accordingly, in case of continuous charge–discharge for 24 h according to the battery capacity of EV, the sum of the energies received and supplied is calculated for each vehicle.

$${E}_{\mathrm{EVtotalJ}}=\left[{V}_{\mathrm{EVJ} }. {I}_{\mathrm{Cmax}}.{T}_{H}+{V}_{\mathrm{EVJ} }. |{I}_{\mathrm{Dmax}}|.{T}_{L}\right].\frac{24}{({T}_{H}+{T}_{L})}$$
(8)

The EEVtotalJ value is calculated once per vehicle according to the battery capacity and ideal values and is always constant. Secondly, the total energy received and used in the EV vehicle battery is calculated.

$${E}_{\mathrm{EVdJ}}=\left\{\mathrm{If} \frac{\mathrm{d}{E}_{CJ}}{\mathrm{d}t}>0 , {\int }_{0}^{{t}_{c}}{P}_{CJ }(t)\mathrm{d}t+{\int }_{0}^{{t}_{d}}{|P}_{DJ }\left(t\right)|\mathrm{d}t\right.$$
(9)

In Eq. 10, daily use index (µj) was calculated for each vehicle. In order to be able to revise this index for each passing day, the average usage index (µav) was calculated in Eq. 11.

$${\mu }_{J}=\frac{{E}_{\mathrm{EVdJ}}}{{E}_{\mathrm{EVtotalJ}}}$$
(10)
$${\mu }_{\mathrm{avJ}}=\frac{\sum_{i=1}^{n}{\mu }_{J}}{n},({\mu }_{J0}=0)$$
(11)

As a result, EV Frequency Index was calculated in Eq. 12.

$${f}_{k}=1+{\mu }_{\mathrm{av}}$$
(12)

However, in order to use the storage battery system more efficiently, the storage usage index (kf) was calculated and is shown in Eqs. 13 and 14.

$${k}_{c}=\frac{{P}_{\mathrm{ID}}}{{P}_{\mathrm{crt}}}$$
(13)
$${k}_{f}=1+{k}_{c}$$
(14)

In this case, the balance time value (TS) is calculated in Eq. 15 for MOD-I.

$${T}_{s}=|\frac{\sum_{j=1}^{n}{\mathrm{EPA}}_{j}/{f}_{k}-\sum_{j=1}^{n}{\mathrm{ECA}}_{J}.{f}_{k}+\mathrm{SEPA}.{k}_{f}}{{P}_{T}}|$$
(15)

Reference current values (IrefEVJ) are calculated according to the TS value calculated as real time. If the EV is labeled as an energy generator, the reference current value is given in Eq. 16. Likewise, if EV is labeled as consumer, the current reference value is given in Eq. 17. In Eq. 18, the storage reference current value is given.

$${P}_{\mathrm{EVJ}}=\frac{{\mathrm{EPA}}_{j}/{f}_{k}}{{T}_{s}}, { P}_{\mathrm{EVJ}}=I.{V}_{\mathrm{EVJ}}, { \mathrm{Iref}}_{\mathrm{EVJ}}=\frac{{P}_{\mathrm{EVJ}}}{{V}_{\mathrm{EVJ}}}$$
(16)
$${P}_{\mathrm{EVJ}}=\frac{(-\mathrm{ECA}).{f}_{k}}{{T}_{s}}, { P}_{\mathrm{EVJ}}=I.{V}_{\mathrm{EVJ}}, { \mathrm{Iref}}_{\mathrm{EVJ}}=\frac{{P}_{\mathrm{EVJ}}}{{V}_{\mathrm{EVJ}}}$$
(17)
$${P}_{S}=\frac{\mathrm{SEPA}.{k}_{f}}{{T}_{s}}, { P}_{S}=I.{V}_{S}, { \mathrm{Iref}}_{S}=\frac{{P}_{S}}{{V}_{S}}$$
(18)

When MOD-I is active, DBS switches the entire system to MOD-II if there are no vehicles labeled with energy consumption on the EV charging station. A new labeling is performed here. In MOD-II, all vehicles and storage are now on the consumer label. New calculations for MOD-II are given in Eqs. 19, 20, 21, 22, 23, 24, respectively.

$${\mathrm{ECA}}_{J}=\left[{\mathrm{SOC}}_{\mathrm{max}}-{\mathrm{SOC}}_{\mathrm{EVJ}}\left(t\right)\right].{C}_{Pj}$$
(19)
$$\mathrm{SEPA}=\left[{\mathrm{SOC}}_{\mathrm{max}}-{\mathrm{SOC}}_{S}(t)\right].{C}_{PB}$$
(20)
$$\mathrm{TE}=\sum_{j=1}^{n}{\mathrm{ECA}}_{J}+\mathrm{SEPA}$$
(21)
$${T}_{s}=|\frac{\sum_{j=1}^{n}{(-\mathrm{ECA}}_{J}).{f}_{k}-\mathrm{SEPA}/{k}_{f}}{{P}_{T}}|$$
(22)
$${P}_{\mathrm{EVJ}}=\frac{(-\mathrm{ECA}).{f}_{k}}{{T}_{s}}, {P}_{\mathrm{EVJ}}=I.{V}_{\mathrm{EVJ}},{ \mathrm{Iref}}_{\mathrm{EVJ}}=\frac{{P}_{\mathrm{EVJ}}}{{V}_{\mathrm{EVJ}}}$$
(23)
$${P}_{S}=\frac{(-\mathrm{SEPA})/{k}_{f}}{{T}_{s}}, { P}_{S}=I.{V}_{S}, { \mathrm{Iref}}_{S}=\frac{{P}_{S}}{{V}_{S}}$$
(24)

When the system is operating in MOD-I, voltage instability will occur for the common busbar if the energy totals of the vehicles on the production label and the storage battery exceed the energy sum of the vehicles on the consumption label. To overcome this, a new equilibrium time value TD is calculated only in case of instability.

$$\mathrm{If} \sum_{j=1}^{n}{\mathrm{EPA}}_{j}/{f}_{k}+\mathrm{SEPA}.{k}_{f}>\sum_{j=1}^{n}{|\mathrm{ECA}}_{J}|.{f}_{k};$$
$$k=\frac{\sum_{j=1}^{n}{\mathrm{EPA}}_{j}/{f}_{k}+\mathrm{SEPA}.{k}_{f}+{P}_{c}}{\sum_{j=1}^{n}{\mathrm{ECA}}_{J}.{f}_{k}}$$
(25)
$${T}_{D}=\frac{{T}_{S}}{k}$$
(26)

DBS can also activate the V2G topology in case of fluctuations in grid frequency or voltage stability. This situation is described in Part IV. The control strategy of the DBS designed is given in Fig. 2.

Fig. 2
figure 2

DBS control algorithm

The mathematical model of the proposed DBS is given above. The basic principle of this strategy is that to provide the most optimal control also considering the benefit of the charging station while considering the utility of each EV. The principle is to take more energy from EVs that can give a lot of energy or to get less energy from EVs that can give less low. Similarly, it is aimed to transfer high energy to EVs that need a lot of energy or to transfer less energy to those that need less low. When performing this balance strategy, how often EV users use their vehicles is also taken into account. In this way it was ensured optimum charging strategy. The fact that the designed DBS keeps user satisfaction at a high level is very important for this model to be used in the future. For this reason, as described above, the user frequency index has been developed and integrated into the model. A satisfaction function was created to measure the satisfaction of users from DBS in the case study. Satisfaction functions are generally based on optimum cost in previously similar studies. In this study, a function was designed based on energy changes.

While creating the function setup, some studies in the literature were adapted to the satisfaction function created in this study. First of all, in Eq. 27, a deviation variable is defined by considering the target and final charge levels of the EVs.

$$\delta =\frac{{\mathrm{SOC}}_{\mathrm{tar}}-{\mathrm{SOC}}_{f}}{{\mathrm{SOC}}_{\mathrm{max}}}$$
(27)

In Eq. 28, a satisfaction function is defined for each vehicle by using the study [33, 34].

$${S}_{J}=1-\alpha \delta $$
(28)
$$\alpha =\left\{\begin{array}{c}If {\mathrm{SOC}}_{fj }\ge {\mathrm{SOC}}_{inj } , \frac{{\mathrm{SOC}}_{\mathrm{max}}}{{\mathrm{SOC}}_{\mathrm{in}}} \\ \\ If {\mathrm{SOC}}_{fj }<{\mathrm{SOC}}_{inj } , \frac{{\mathrm{SOC}}_{\mathrm{max}}}{\mathrm{SOC} (\mathrm{min})}\end{array}\right.$$
(29)

The defined α variable is the satisfaction parameter coefficient. It is calculated for every vehicle connected and disconnected to the defined SJ charging station. In this study, since the average satisfaction calculation is created for each charging station unit, the average satisfaction function is defined in Eqs. 30 and 31.

$${S}_{T}=\sum_{j=1}^{n}{S}_{J}$$
(30)
$${S}_{\mathrm{av}}= \frac{{S}_{T}}{n}.100$$
(31)

The defined average satisfaction function was calculated for each penetration level in the case study, and the results are given in Chapter IV.

3 System architecture and simulation

There are many EV charging station architectures available today or foreseen for future use. In this system, all EVs and storage battery groups are connected to each other by common DC bus. In the system architecture, frequency stability problem is eliminated by using common DC bus. The PV unit is connected to the transformer that supplies the EV charging station. The entire system architecture is shown in Fig. 3.

Fig. 3
figure 3

System architecture

Discrete time system design has been realized in MATLAB/Simulink program to reveal the real-time interoperability of DBS. In the system design, bidirectional half bridge buck-boost DC/DC converter is used for every vehicles and storage charge–discharge. All system control is provided through these converters. Therefore, the converters are the actuators of the system. Changes in battery and storage voltage values are considered constant since they are negligible for our control strategy. For this reason, the power flow is controlled by checking the current values. As can be seen in the DBS mathematical model, a reference current is produced at the end of the model and system control is provided. In this way, V2V and G2V topologies can be operated continuously at the same time.

In discrete time system design, all EVs are connected to each other with a common DC bus at 535-V level. The EVs are modeled as a 73 Ah capacity li-ion battery at 300 V level. Similarly, Li-ion storage battery group connected to common DC bus is designed as 166 Ah capacity at 300 V level. The EV battery is modeled on the basis of the values of a commercially available electric vehicle model.

The use of renewable energy sources is critical for charging stations that are expected to become widespread in the future. For this reason, a 100-kW PV unit with maximum power point tracking (MPPT) control is designed and integrated into the system to support the load of the EV charging station. In the same way, the PV unit is modeled on a commercially available brand used in solar power plants.

When the concept of smart grid is considered, it is evident that distributed energy production is very critical. Especially if paid attention that the use of EVs will increase in the future, grid frequency and voltage stability will be seriously threatened. On the other hand, after the network integration of the EVs is completed, all charging stations can be considered as generators. Therefore if the V2G topology can be controlled more coordinated for all charging stations, network stability may no longer be a threat. In this context, a grid-connected inverter is designed to realize the V2G topology. In case of instability in grid frequency during simulation, grid-connected inverter is enabled. System model is given for phasor-discrete time Simulink design in Fig. 4.

Fig. 4
figure 4

System model for Simulink design

Moreover, the changes in the grid load curve, frequency and voltage stability and EV batteries of a proposed strategy should be presented daily or hourly. Thus, phasor analysis was performed in Simulink program to reveal the results of 24-h study of DBS with varying penetrations. Since the power electronic elements could not be simulated as a block in the phasor analysis mode, a new design was realized by extracting the mathematical model of all parts in the system. Mathematical model of EV battery and storage group designed is given in Eqs. 32 and 33.

$$I\left(t\right)={I}_{\mathrm{max}}.\mathrm{cos}\left(wt+\delta \right)$$
(32)
$$\mathrm{SOC}\left(t\right)=\mathrm{SOC}\left(t-1\right)+{\int }_{0}^{t}\frac{I(t)}{{C}_{P}}\mathrm{d}t$$
(33)

Likewise, the mathematical model created for the PV panel in phasor analysis is the same as that for the EV battery. The only difference is that the lookup table tool is used to transfer to the model the change of energy that the PV panel gives to the system. The generated PV power table was created in a HOMER optimization program for a region. In phasor analysis model, input and output behavior of EVs to charging station was created separately. At this point, 24-h driving behavior of the drivers in a residential campus was observed and modeled in Simulink. In short, the entire design created in the Simulink was analyzed through real data. The analysis results of the models are given in Chapter IV.

4 Case study results

4.1 Discrete-time analysis results

Discrete-time Simulink model was created in order to show the mains voltage, current and frequency changes that will occur with the operation of DBS in a real system. This should not be ignored when evaluating, as the simulation will yield results based on ideal operating values. For example, in the DBS model, the characteristics of the battery capacities or charge–discharge conditions vary with the varying ambient temperature. In this study, all calculations and simulations are made according to nominal operating values.

As a result of the operation of discrete-time model, the grid power change and the power graph given by the PV panel to the system are given in Fig. 5. The grid power value in question is the total power demand–supply value of the microgrid.

Fig. 5
figure 5

Discrete time analyses for grid power and PV power

As can be seen clearly in Fig. 5, V2V and G2V topologies are active in the 0–0.22-s interval with DBS. As a result of overloading in the grid, the topology of V2G is activated from the moment of t = 0.22 s. The change in grid current–voltage stability during these time intervals is given in Fig. 6.

Fig. 6
figure 6

Discrete time analyses for V–I characteristic

As can be seen in Fig. 6, the fluctuation of the current characteristic was realized with the activation of the PV system at t = 0.04 s, but in a very short time it has reached the nominal operating order. Similarly, the current characteristic fluctuated for a short time from the moment the V2G topology was activated (t = 0.22 s). Although the common DC bus used in the microgrid topology designed for the charging station eliminates the frequency stability problem, on the other side it creates the voltage stability problem. This instability needs to be checked continuously. Figure 7 shows the voltage characteristics of the DC bus during the simulation.

Fig. 7
figure 7

Discrete-time analyses for common bus voltage.

Fig. 8
figure 8

Current residential load and PV power production

4.2 Phasor analysis results

As a result of the network integration of EVs, changes in the network load curve should be monitored. The most important issue in this regard is user habits and changing penetration rate. As a matter of fact, Simulink phasor simulation was performed and results were analyzed in order to reveal 24-h analysis of DBS with varying penetrations. In the case study, 6 simulations were carried out for each penetration level (15-32-48-60-75-100%) separately. At this point, a 24-h profile was created by recording the actual values for the current residential load and the users' behavior. In Fig. 8, 24-h changes of current residential load and PV production are given.

The same phasor analyses were performed again at all penetration levels with standard control techniques without DBS in order to show how DBS caused a change in the network load profile. This simulation was carried out by selecting 20% lower nominal charge–discharge current values for EVs and storage battery group. Thus, the control outputs of DBS vary in the range of approximately ± 20% of nominal charge–discharge current values. For this reason, the lowest EV charge values were selected in the simulation without DBS for comparison. The vehicle battery capacities used in the simulations in the case study are given in Table 1. Simulation results for 6 different penetration levels are given in Fig. 9.

Table 1 Capacity of EVs and penetrations
Fig. 9
figure 9

Phasor analyses for grid load profile with/without DBS for varying penetrations

Since the general tendency of people is to charge their vehicles after work return from home, it is likely that there will be a serious load in the network, especially after 19:00. Similarly, the residential load profile also tends to increase after returning home. Therefore, the rising in the load curve will increase further. This may cause overloading of the transformer and all other distribution system elements, voltage and frequency instability and irreparable malfunctions.

When Fig. 9 is examined, it is seen that for 15% penetration rate, the grid load curve is reduced with DBS by 17.6% at peak hours (19: 00–21:00) and shifted to low hours of loading (23:00–02:00). Considering that the maximum power value of the transformer is 280 kVA, it is seen that the transformer remains also below the critical limit without DBS for 15% penetration rate. However, lowering the load curve with DBS is important for efficient operation, frequency and voltage stability. For the 32% penetration rate, it is seen that the grid load curve is reduced with DBS by 22.93% at peak hours and shifted to low hours of loading (02:00–05:00). It is understood that for the 32% penetration, the critical threshold for the transformer in without DBS control was exceeded at a very low level. It is seen that the critical threshold for transformer in without DBS control at 48% and above penetrations has been exceeded at very serious rates. It is obvious that this situation may cause voltage, frequency instability or even major failures. In all penetrations of 48% and above, the overload on peak hours was effectively shifted to hours after 03:00 thanks to DBS and the load was kept below the transformer threshold value each time.

As the penetration rate increases, it is seen that the decrease rate in the network load curve at peak hours increases in Table 2. This is because DBS uses the V2V topology. In the V2V topology, as the number of grid connected EVs (penetration increase), the number of vehicles in production mode increases. Thus, the energy demands of EVs below the SOCB value can be provided from the charging station itself at higher rates. When the literature is examined, as the penetration rate increases, the grid load curve reduction rate decreases. This situation clearly reveals the capability of DBS.

Table 2 Grid load reduction rates with DBS

When the case study results are analyzed, it is seen that the V2V and G2V topologies for Mode-I remain active at the same time. In Mode-II, only G2V topology is active. These modes were exchanged for 24 h, and thus balance policy was always implemented. For example, between 18:00 and 19:00 h, the SOC values of numerous consumer label EVs connected to the charging station increased, and after a certain level, the mode changed to the energy generator position for the charging station. Thus, from now on, the power demand of consumer label EVs connected to the charging station was provided with the battery of these vehicles, and the mains power demand of the charging station was reduced at very high rates. As a matter of fact, when the load curve is analyzed, power demand tends to increase and decrease intermittently. In addition, thanks to the PV panel power generation during the daytime, both energy was transferred to the storage and the grid load was supported. In this way, the energy of storage was used more efficiently during peak hours. The EV drive behavior models of the simulation without DBS control were selected the same as the simulation with DBS control as previously mentioned. This should also be taken into account when making the assessment.

When the grid load curve is examined, it is seen that there is not much loading during daytime hours. At the same time, the PV panel system relieved the grid as long as it generates power. In peak hours, each EV that was activated became a direct load regardless of SOC level and increased the grid load even further. Storage principle is based on filling the load during low hours and supporting the grid during peak hours.

SOC changes for 48% penetration rate of EVs connected to charging station in DBS-controlled simulation are given in Fig. 10. When the graph is examined, it is seen that the SOC values of all EVs are always nonlinear. It is seen that the change in SOC values decreases especially as the equilibrium point is approached and also that it has reached equilibrium. This behavior characteristic is a result of DBS control.

Fig. 10
figure 10

Plug-in EVs SOCs variation for % 48 penetration rate

Although varying charge–discharge currents can affect battery life positively or negatively, it is clear that no damage will occur if the control remains within the tolerances band of the rated charge current levels.

Each EV is represented by different colors in the graph. The figure shows the SOC changes of all vehicles entering or leaving the charging station. For example, EV-1 was connected to the station with 68% SOC at 07:00 and left the station with a 95% level at 15:00. All EVs are connected and disconnected to the station at different charge levels according to the actual scenario created as a result of observation as in this example. When the results are analyzed, it is seen that DBS produces new balance behaviors in every situation and condition by producing real-time results.

4.3 EV users satisfaction analysis results

Effective reduction of the load curve is critical to the application. But at least as much as load reduction, satisfaction of EV users is also critical. Because the applicability of this strategy in future applications also depends on this issue.

In the case study, satisfaction values of each charging station were calculated with the satisfaction function described in Chapter II. This value was calculated separately for each penetration rate, and average satisfaction was obtained. In Table 3, average user satisfaction changes are given according to changing penetration rates.

Table 3 Satisfactions rate with variable penetrations

When the table is examined, it is seen that average satisfaction decreases in increasing penetrations. However, as the penetration level increased, the average satisfaction reduction rate decreased, and after 75% penetration, satisfaction began to increase. The reason for this is the increase in supporting the grid with the increase in penetration as described in reduction the load curve. This situation again revealed the difference of DBS. In Fig. 11, average satisfaction change is given according to the changing penetration.

Fig. 11
figure 11

Satisfaction variations for variable penetration rate

When Fig. 11 is examined, it is seen that the average user satisfaction is kept in the 75–100% band for all penetrations. This rate is at a high level if considering the gains. These satisfaction rates can be increased by decreasing the reduction rate in the grid load curve.

5 Conclusion and future works

With the widespread use of EVs, some revisions or changes will be necessary even if the infrastructure of the countries is sufficient. At this point, keeping these infrastructure changes requiring very high costs to a minimum level depends on such management algorithms and integrating renewable energy sources into charging stations. For this reason, it is very necessary to control the grid load curve at especially peak times.

DBS is able to generate real-time outputs according to all behavioral models. Due to many factors such as climatic or geographical changes, the driving behavior of societies in the world varies. Therefore, it is very important to provide dynamic control according to all behavioral models.

When all the results are examined, it is seen that the DBS model can control the system independently of the behavior patterns of EV drivers. Thus, it was shown that many disadvantages such as voltage and frequency deviations, grid overloading, high infrastructure costs that can be experienced in grid integration of EVs can be overcome. Charge strategies are compared in Table 4 to reveal more clearly the advantages or differences of our study according to other current studies in the literature.

Table 4 Comparison of EVs charging strategies

In future studies, researchers can calculate the optimum value by using the optimization techniques for the equilibrium point specified in the DBS model. In these studies, grid voltage, frequency or infrastructure capacity can be considered as constraint functions. Minimization of the load curve in peak hours and cost can be evaluated as output functions. In addition, an optimization algorithm can be developed between satisfaction and reduction to determine the optimum working range.

In order to demonstrate the effectiveness of the DBS model, a real prototype can be created in the laboratory environment in the future and the results can be compared with the simulation results.