Introduction

The need for fuels is great in the current situation, and their consumption rises. These fuels’ usage in automobiles caused a significant quantity of CO2 petrol to evaporate. The environment’s response to carbon dioxide gas varies greatly. The biggest difficulty is reducing CO2, and an eco-friendly car, sometimes known as an electric vehicle (EV), can help. In the age of e-mobility, consumers are being encouraged to switch quickly to EVs, but widespread adoption of EVs into the electrical grid, particularly at fast and superfast charging stations, could put a significant strain on the stability and dependability of the grid, with peak demand overload, voltage sag, and power gaps being the main problems1. For overcoming these problems Renewable energy and battery energy storage (BESS) are good options to replace traditional charging stations with hybrid charging stations which provide uninterrupted power for electric vehicles. Solar photovoltaic systems involve the direct conversion of sunlight into electricity without affecting the environment. In recent years, it has been observed that the use of electric vehicles in the market has increased and charging these vehicles has become a difficult task for passengers. Photovoltaic plants have also become cheaper in recent years and have proven to be an effective way of generating electricity2.

The power converter must be between source and load. Therefore, the use of renewable energy and battery bank power has increased3. The main purpose of this project is to charge electric vehicles using BES and solar power. Solar PV panels and battery energy storage systems (BES) create charging stations that power EVs. AC grids are used when the battery of the solar power plant runs out or when weather conditions are not appropriate.

In addition, charging stations can facilitate active/reactive power transfer between battery and grid, as well as vehicle. During the day, the photovoltaic array produces enough electricity to charge the battery of an electric car. When the sun is at its peak, the PV array not only charges the EV battery but also feeds back additional energy into the single-phase grid system. When the sun is not shining or the sky is dark, the EV battery will be charged by the battery bank and grid also. The Perturb & Observe (P&O) algorithm based MPPT controller used in the closed loop of this project to provide peak power at constant voltage and a bidirectional buck/boost converter with inverter connected to single phase AC grid was designed using MATLAB simulation.

Motivation

The combination of solar power and EV charging is crucial to reducing our reliance on fossil fuels. Electricity comes from many sources and it is important that the electric car be powered by renewable energy. Electric cars are becoming very popular, and we expect almost everyone who owns a solar panel to have a solar charging station in their home in the next few years. Grid-connected PV arrays offer optimal EV charging by synchronizing with daily energy demand profiles. Surplus photovoltaic generation during peak solar hours seamlessly integrates into the utility grid, enabling net metering benefits even during car usage. Upon returning home, the accumulated credit offsets electric vehicle charging through bidirectional power flow, effectively leveraging home-generated solar for EV transportation.

Literature review

Patel4 has stated that the intermittent nature of the PV output power makes it weather-dependent. In a fast-charging station powered by renewable energy, the battery storage is therefore paired with a grid-tied PV system to offer an ongoing supply for on-site charging of electric vehicles. In order to support the high charging rates needed for connecting a significant number of EVs to the grid, fast charging stations based on renewable energy should be affordable, effective, and dependable.

Tan5 has suggested a better design in which the charge controller is implemented using a buck converter acting as a DC-DC converter. The Perturb and Observe (P&O) MPPT algorithm keeps track of the photovoltaic panel’s maximum output. The lithium-ion battery is charged by the battery charge controller in three stages. MPPT buck charging, constant voltage absorption charging, and floating charge stage are the three charging phases.

Due of their simplicity, perturbation and observation approaches are employed. The approach has the benefit of just requiring two sensors and a straightforward circuit. By raising the voltage of a tiny PV array and tracking the power change, the algorithm was developed. The peak power point is caused by the disturbance if P is positive, and the operating point has shifted away from the peak point if P is negative. Perturbation must thus resume at its peak6.

de Oliveria7 claims that mismatching of phenomena, such as PSC, that PV arrays frequently experience, may be resolved using the particle swarm optimization (PSO) based MPPT approach. Since use of the MPPT techniques is taken to determine the dc-bus reference in order to ensure proper grid-tied inverter Operation, the effectiveness of PSO based MPPT technique is highlighted and compared with the P&O MPPT technique.

In contrast to traditional algorithms like the P&O algorithm or the IC method, the fuzzy logic controller (FLC) is one of the majority of algorithms that guarantees adequate performance MPPT in a variety of conditions, according to the author’s study8. After modelling the PV cell with the DC/DC converter and load, the suggested technique uses inputs to FLC to monitor the MPP, and its produced outputs are obtained as data files. Sixty-six percent of the stored data is used for training, while the remaining data is used for model testing. To represent the FLC, the structure of an artificial neural network (ANN) is specified. The backpropagation algorithm-based ANN training uses the data acquired from the FLC. The least mean square between the ANN and FLC models is calculated using this approach to identify the ideal parameters.

A voltage inverter is used to convert the direct current from the boost converter’s output to alternating current9. Here, the pulse width modulation (PWM) technique and the d-q frame control approach are utilised side by side to regulate the amount of current injected into the grid synchronous reference frame. Additionally, the inverter’s output needs to be coordinated with the grid. As a result, a Phase Locked Loop (PLL) approach is used to match the network’s frequency and phase. It is also advisable to employ an LC filter and transformer to create galvanic isolation and eliminate high frequency harmonics after the inverter.

Solar energy is converted by a photovoltaic array into DC voltage and current, which are controlled by a DC–DC boost converter that monitors P&O maximum power. The three-phase inverter uses an algorithm to track the location of the greatest field power before converting the DC voltage to AC for grid interface or local load power. A bandpass filter eliminates harmonics from the inverter’s output, and control circuits enable MPPT control, synchronization, and switching. A delta star transformer boosts output voltage and circulates zero sequences before connecting to the grid10.

MPPT controllers can be designed to work with any one of the methods for detecting the maximum power point. There are numerous techniques to track the maximum power point and selection of MPPT for any specific task depends upon several factors such as complexity of implementation. overall cost, response time, ability of the algorithm to detect the local and global maximum power point etc. Some methods to track the maximum power point are Perturb and observe (Hill climbing method), Incremental conductance method (IC), Fractional open-circuit Voltage (FOCV), Fractional short-circuit current (FSCC), Fuzzy Logic control, Neural Network, Sliding mode control (SMC), Robust unified control algorithm (RUCA), Particle swarm optimization technique (PSO), Grey-wolf optimization technique (GWO), Intelligent monkey king evolution (IMKE). The work done by various researchers is briefed in Table 1.

Table 1 Work done by various researchers in the concerned area.

All the techniques have their own advantages and disadvantages. When we consider the practical scenario for a photovoltaic (PV) generation system (PGS) the occurrence of partially shaded condition is quite common and selection of MPPT technique is very important. Conventional MPPT techniques fails in tracking maximum power point, under partially shaded condition due to presence of the multiple peaks. Conventional MPPT techniques works well in uniformly shaded condition, which has a single maximum power point in the P–V curve. The inability of conventional MPPT algorithm to track the MPP during partially shaded condition is due to the fact that these algorithms are using “hill-climbing” principle for moving to the next operating point in the direction of power increase. If the P–V curve is having multiple peaks conventional MPPT algorithm may track only local MPP. In order to overcome this need to use artificial intelligence techniques such as PSO, IMKE, GWO, etc.

Photo-voltaic cell modelling

The equivalent circuit of a solar cell may be represented by an electrical circuit. When describing a PV cell, two variables are frequently used. These are the short-circuit current (Isc) and the open-circuit voltage (Voc). In data sheet for the module, the PV module manufacturers provide these characteristics.

PV cell equivalent circuit representation

Figure 1 represents the equivalent circuit of the PV cell. It consists of a current source which depicts the light generated current, a diode and a resistance connected in shunt across it. The array parallel resistance is denoted by Rsh, and Rs which is the array series resistance. Ipv is the current produced by the incident light and it is directly proportional to the sun’s irradiance. I and V are the array’s output current and voltage.

Figure 1
figure 1

PV cell equivalent circuit.

The basic equations governing the I–V characteristics of PV cell are:

$$\mathrm{Iph }= \left[\mathrm{Isc }+\mathrm{ Ki }\left(\mathrm{T }- 298\right)\right]\times \frac{{\text{Ir}}}{1000},$$
(1)
$${\text{Irs}}=\frac{{\text{Isc}}}{\left[{\text{exp}}\left(\frac{{\text{qVoc}}}{{\text{NsknT}}}\right)-1\right]},$$
(2)
$$Io=Irs \times {\left[\frac{T}{Tr}\right]}^{3}{\text{exp}}\left[\left(\frac{{\mathrm{q \times Ego}}}{{\text{nk}}}\right)\left(\frac{1}{{\text{T}}} -\frac{1}{{\text{Tr}}}\right)\right],$$
(3)
$$I=Np \times Iph-Np \times IoX\left[{\text{exp}}\left(\frac{\frac{V}{Ns}+I \times \left(\frac{Rs}{Np}\right)}{n \times Vt}\right)-1\right]-Ish,$$
(4)
$$Vt=\frac{k \times T}{q},$$
(5)
$$Ish=\frac{V \times \left(\frac{Np}{Ns}\right)+I \times Rs}{Rsh}.$$
(6)

Characteristics of PV array under un-shaded condition

In un-shaded condition, the sunlight or solar insolation is uniform for all the PV modules in a PV array, so all the modules produce equal voltages. Photovoltaic cells have non-linear characteristics. The performance of PV cells as well as the output power is directly dependent on the change in the operating conditions (temperature & solar insolation). Figures 2 and 3 show the effect of change in the temperature and solar insolation on photovoltaic’s output current, voltage, and power.

Figure 2
figure 2

(a) Effect of temperature, (b) solar irradiance on I–V curves.

Figure 3
figure 3

(a) Effect of temperature, (b) solar irradiance on P–V curves.

MPPT and battery charge controller technique

The PV characteristics of the PGS is nonlinear and highly influenced by solar insolation and temperature changes as shown in Figs. 2 and 3. This results in finding a reliable and efficient technique to adjust the photo-voltaic generating system operating point so that production of energy is maximized; it is indeed a challenging task. There exists only one terminal voltage for the PV array to operate with, for obtaining maximum power i.e. achieving the increased array efficiency. DC–DC SMPS converters plays very important role in MPPT tracking processes. As illustrated in Fig. 4, the DC-DC converters’ input terminals are linked to the output of the PV array, and the voltage of the array is controlled by varying the converter’s duty cycle while keeping the voltage at the maximum power.

Figure 4
figure 4

Block diagram of MPPT.

P&O (Perturb & Observe)

The Perturb & Observe (P&O) method is regarded as one of the most straightforward approaches of tracking Maximum Power Points. This is as a result of the processing time being relatively short. The phrase “hill-climbing” is another name for it. As the P–V curve’s peaks and troughs with regard to the maximum power point determine how it operates.

P&O employs the sensors to detect the current and voltage of the solar PV array, as seen in Fig. 5. We can determine whether to raise or decrease the duty cycle using the MPPT method. deciding whether to increase or decrease the converter’s duty cycle in order to maximize power, we must compare the current measured power to the prior measured power. In order to maximize power, the boost converter’s duty cycle (D) is reduced if the input voltage is higher than the previous value. Reduce the duty cycle (D) if the input voltage is higher than the previous value to get closer to the MPP. The (P&O) then raises the duty cycle to monitor the maximum power point if the input voltage was lower than previously recorded and the input power was higher. Additionally, if D, or the perturbation, is sufficiently great, the oscillation will be endless and it will never reach its maximum power point. Without altering the physical characteristics of the solar panel, the P&O approach makes solar PV module calculations and design simpler.

Figure 5
figure 5

Flow chart of P&O algorithm.

Battery charge controller

The lithium-ion battery charge controller was created to charge the battery in three stages. Three-stage charging consists of a trickle charging phase, constant voltage charging, and constant current charging. The first stage of constant current charging is also known as the bulk charging phase, and in this case, the charging current is at MPPT. The battery gets charged to its rated capacity at this stage. In the second step of constant voltage charging, sometimes referred to as the absorption charging phase, the battery is charged with a constant voltage; MPPT is not allowed at this stage. The final stage of floating charging simply keeps the state of charge (SoC) at 100% once the battery is fully charged. This prevents the battery from gassing and overheating from an unregulated overcharge to more than 100% Current.

A schematic of the battery charge controller is shown in Fig. 6. The charge controller measures the battery’s SoC and tension. If the SoC battery is below 100% in the first case, the charger enters the constant voltage or constant current charging phase; if not, it enters the floating stage, where the duty cycle D(K) is zero. According to the battery voltage level, the second scenario chooses either the bulk MPPT charging or constant voltage charging phase. If the battery voltage is below a constant set voltage value, the charger switches to the MPPT constant current phase of bulk charging; if not, it disables the MPPT and switches to the constant voltage absorption charging stage.

Figure 6
figure 6

Battery charge controller flow chart.

System modeling

We utilized PVsyst for in-depth research, measurement, and data analysis of the photovoltaic system before utilizing MATLAB to follow the suggested approach to create a 4 kW PV-Powered charging station for EVs. Temperature: 25.3°C on average every year. Latitude/Longitude: 28.37° N/77.32° E.

The PVsyst report displays the latitude, longitude, altitude (205 m above sea level), and azimuth of the x-ray axis based on the data input into the PVsyst program, and the y axis shows the height of the sun. These locations allow us to determine the course of the sun. The image below shows that it will produce more energy during the summer (June) than during the winter (December). The average yearly solar radiation and midday temperature are shown in Table 2. The chart below shows how global radiation, solar radiation distribution, wind speed, and temperature change with the seasons. By examining the chart below, we can observe that each column in each month has the greatest pricing in (May, June, July, and August). An average of 250.7 kW/m2 is the annual worldwide radiation, which is 3264.4 kW/m2. Month denotes a 25.3 °C temperature.

Table 2 Monthly meter data16.

Matlab implementation of the block

Photovoltaic modules, electric vehicle charging stations (EVCS), battery banks, controllers, converters, connectors, cables, and mounting structures are the primary parts utilized in the described design. Block diagram for Matlab simulation and the flow chart of hybrid charging station is shown in Figs. 7 and 8 respectively.

Figure 7
figure 7

Matlab implementation block of hybrid charging station.

Figure 8
figure 8

Flow chart of hybrid charging station.

Mathematical calculations for power generation

Total power consumption demands by load:

$$\begin{aligned} {\text{Vehicle that want to charge }}\left( {\text{Yulu Bikes}} \right) & = {\text{ 48V}},{ 3}0{\text{ Ah}} \\ & = { 144}0{\text{ Wh}}/{\text{day}} \\ & = \, \left( {{\text{Total appliance watt}} - {\text{hours per day}}} \right) \times {1}.{3}{\text{.}} \\ \end{aligned}$$

Here, 1.3 is the factor loss in the system.

$$= { 144}0 \times {1}.{3 } = {\text{ 1872 Wh}}/{\text{day}}.$$

Suppose we are charging per day 10 vehicles then

$$= { 1872} \times {1}0 \, = { 1872}0{\text{ Wh}}/{\text{day}}.$$

Size of PV panel:

Suppose we will take here 5 h per day of panel generation factor.

$$\begin{aligned} {\text{So total power rating of panel }} = & {\text{ power consumption}}/{\text{panel generation}} \\ = & { 18,72}0/{5 } = {\text{ 3744 Watt}}{.} \\ \end{aligned}$$

Battery sizing of lithium-ion battery:

$${\text{Here vehicle want tot be charge }} = { 144}0 \times {1}0 \, = { 14},{4}00{\text{ Wh}}.$$
$${\text{Day of autonomy }} = {\text{ 1 day}},{\text{ Battery loss }} = \, 0.{85},{\text{ DoD }} = \, 0.{8}0,{\text{ Nominal voltage }} = {\text{ 48 V}},$$
$$\begin{aligned} {\text{Total battery Amp}} - {\text{hours }} = & \, [{144}00/0.{85} \times 0.{8} \times {48}] \, = { 441}.{176} \\ = & { 45}0{\text{ Ah approx}}.{\text{ 48 V}}. \\ \end{aligned}$$

PVsyst report result with yearly generation and losses

PVsyst report has been analyzed (Fig. 9) for given parameters and geo location on the basis of given inputs PVsyst report represents the Annual generation report with losses and generation factor of 3.96 and yearly generation of 7.6 MW.

Figure 9
figure 9

PVsyst report result. (PVsyst 7.3 is a PC software package for the study, sizing and data analysis of complete PV systems).

Annual generation of 4 kW solar plant at give location is 7635.3 kW/year.

Simulation results

Eldora solar panels of 250W is used for simulation purpose. Electrical data sheet of SPR-E20-250 is shown in Table 3. 4 kW PV system configuration has 4 strings in parallel with 4 panels in each string. Simulation model consist separate blocks such as MPPT, battery bank, bidirectional buck/boost converter, grid tied inverter and EVs stand as shown in Fig. 10.

Table 3 Electrical data sheet of SPR-E20-250 (PV panel).
Figure 10
figure 10

Hybrid charging station simulink model.

Simulation block runs in five different modes, these modes are as follows:

  • Mode 1 (battery bank charging by PV System).

  • Mode 2 (EVs charging by PV system).

  • Mode 3 (EVs charging by grid when PV power is not enough).

  • Mode 4 (EVs charging from battery bank when grid and PV system both are not available).

  • Mode 5 (PV system feed power to grid).

4 kW PV system MPPT/charge controller waveforms

In Fig. 11a, the power production by PV grid is shown at 1000 W/m2 and 25 °C. The initial ripple is due to start of PV-panels and PI-controller. In Fig. 11b, The PV current is shown that reaches at constant value of 70 A for maximum power output after 0.5 s. Figure 11c shows the constant voltage of 54 V across DC bus to charge EV’s battery of 48 V.

Figure 11
figure 11

(a) Variation of MPPT track power (b) MPPT current and (c) MPPT voltage w.r.t time at 25 °C, 1000 Wb IR.

MODE 1 (battery bank charging by PV system)

In Fig. 12, The EV’s charging SoC, current and voltage are representing in mode 1 operation when PV system charging the EV’s as load currently constant voltage of 54 V across DC bus is applied to charging the EV’s and graph represents the increment in battery’s SoC and Voltage and Charging current is constant.

Figure 12
figure 12

(a) Variation of battery SoC, (b) current and (c) voltage w.r.t time at 25 °C, 1000 Wb IR.

MODE 2 (EVS charging by PV system)

In Fig. 13, the EV’s charging SoC, current and voltage are representing in mode 2 operation.

Figure 13
figure 13

(a) Variation of EV’s battery SoC, (b) current and (c) voltage w.r.t time at 25 °C, 1000 Wb IR.

MODE 3 (EVS charging by grid when PV power is not enough)

Figure 14 represents the mode 3 operation when EV’s are charging during night or rainy season when PV power is not enough to charge the EV’s. During this situation EV’s takes charging through AC grid which have a bidirectional inverter and bidirectional buck-boost converter.

Figure 14
figure 14

(a) Variation of EV’s battery SoC, (b) current and (c) voltage w.r.t time at 25 °C, 1000 Wb IR.

MODE 4 (EVS charging from battery bank when grid and PV system both are not available)

In Fig. 15, Mode 4 operation graphs represent the charging condition of EV’s through Battery bank. This operation works in long power cut fault. When PV system and AC grid both are not available at same time so EV’s are charging through battery bank which have power backup.

Figure 15
figure 15

(a)Variation of EV’s battery SoC, (b) current and (c) voltage in mode 4 operation.

MODE 5 (PV system feed power to grid)

When the charging station have no load as EV’s and Battery bank is also full charged this time PV system generate power and feed to the grid which also helps in earning and balancing the grid load during peak hours. The graph of Voltage and current feed to the AC grid are shown in Fig. 16.

Figure 16
figure 16

(a) Variation of voltage and (b) current graph w.r.t time at 25 °C, 1000 Wb IR.

The simulation results of the 5 different modes of operation for the EV charging station have been validated through the use of MATLAB and PVsyst. The modes include:

  • Mode 1: battery bank charging by PV system.

  • Mode 2: EVs charging by PV system.

  • Mode 3: EVs charging by grid when PV power is not enough.

  • Mode 4: EVs charging from battery bank when grid and PV System both are not available.

  • Mode 5: PV system feed power to grid.

The simulation results demonstrate the effectiveness of the hybrid charging station in providing uninterrupted power for EVs. The three-stage charge controller, buck converter, grid-tied inverter circuit, and MPPT P&O tracking algorithm have been shown to be entirely replicable. The system is capable of charging 10–12 EVs with 48 V 30 Ah lithium-ion batteries, and it can export surplus solar energy to the grid, reducing the load demand. Additionally, the simulation results show the operation of the charging station in different scenarios, such as during the night or rainy season when PV power is not enough, and during long power cuts when both the grid and PV system are unavailable.

The simulation results validate the effectiveness of the hybrid charging station in addressing the challenges associated with grid stability and EV charging, and contribute to the advancement of sustainable transportation infrastructure and renewable energy integration. The system’s ability to integrate solar power and battery energy storage to provide uninterrupted power for EVs is a significant step towards reducing reliance on fossil fuels and minimizing grid overload.

Conclusion

Simulink modelling of a charging controller and a detailed hybrid charging station is provided. The three-stage charge controller, buck converter, grid-tied inverter circuit, and MPPT P&O tracking algorithm are all discussed in detail and are entirely replicable. By keeping track of the maximum output from the 4 kW PV field energy source and regulating the charge using a three-stage charging strategy, the 4 kW PV-based charging station is capable of charging 10–12 EVs with 48 V 30 Ah lithium-ion batteries.

The system was first created in PVsyst. Following the selection of software and devices using parameters from PVsyst in Simulink, results in the form of voltage, power, current, and state of charge, among other metrics, have been extracted into graphs for all significant devices. The filtering process could be optimized, but the overall result is satisfactory. The research contributes to the advancement of sustainable transportation infrastructure and renewable energy integration, addressing the challenges associated with grid stability and EV charging.