top of page

MATLAB-Based Analysis of a DC Microgrid for EV Charging with Integrated PV, Wind, and Battery Storage 




Abstract


The escalating adoption of electric vehicles (EVs) necessitates the development of sustainable charging infrastructure that can operate reliably without overburdening the existing power grid. This paper addresses the central challenge of integrating intermittent renewable energy sources (RES) to provide stable and continuous power for EV charging. We propose a DC microgrid architecture that combines a Photovoltaic (PV) system, a Wind Energy Conversion System (WECS), and a Battery Energy Storage System (BESS) to supply a multi-vehicle charging station. The system employs a coordinated control strategy featuring Maximum Power Point Tracking (MPPT) for the PV and wind systems and Proportional-Integral (PI) controllers for DC link voltage regulation and constant power EV charging. Through dynamic simulations in the MATLAB/Simulink environment, the system's performance was validated under variable solar irradiance and wind speed conditions. The results demonstrate the system's ability to successfully manage power flows, maintain a stable 400V DC link, and deliver a constant 1.5 kW charging power to each EV, confirming the viability of the proposed architecture for resilient and eco-friendly EV charging solutions.



Keywords


DC Microgrid, Electric Vehicle (EV) Charging, Renewable Energy, Battery Energy Storage System (BESS), Maximum Power Point Tracking (MPPT), Power Management.


EV Charging Station with PV Wind and Battery Energy Storage System in MATLAB
₹12,000.00₹6,000.00
Buy Now

I. Introduction


The global shift towards electric mobility is a critical step in decarbonizing the transportation sector, but it introduces significant challenges to the electrical grid. The rising adoption of Electric Vehicles (EVs) leads to a substantial increase in electricity demand, requiring robust and sustainable charging infrastructure to support this growth without compromising grid stability. Integrating renewable energy sources (RES) directly into charging stations presents a promising solution, reducing reliance on fossil fuels and mitigating the carbon footprint of transportation.


DC microgrids have emerged as a highly efficient and effective architecture for this purpose. By coupling diverse energy sources and loads to a common DC bus, this topology minimizes power conversion stages, reduces losses, and simplifies the integration of native DC components like PV panels, batteries, and EV chargers. This configuration is particularly well-suited for creating standalone, resilient EV charging stations powered by local renewable generation.


However, the primary technical challenge in designing such systems lies in managing the inherent intermittency and variability of solar and wind power. To ensure a stable power supply for charging EVs, it is crucial to balance the fluctuating generation from RES with the constant power demand of the charging load. This requires a sophisticated power management and control strategy to maintain the stability of the DC bus voltage under all operating conditions.


This paper presents a comprehensive design and dynamic performance analysis of a DC microgrid for a multi-vehicle charging station. The proposed system integrates PV, wind, and a Battery Energy Storage System (BESS) to ensure a reliable power supply. The complete system, including its hierarchical control strategy, has been implemented and validated within the MATLAB/Simulink environment. The study demonstrates the system's effectiveness in managing power flows and maintaining stability despite significant variations in renewable resource availability.

The remainder of this paper is organized as follows: Section II details the configuration of the proposed DC microgrid. Section III describes the control strategies for each system component. Section IV outlines the simulation model and parameters. Section V presents and discusses the simulation results. Finally, Section VI provides conclusions and suggests directions for future research.


II. Proposed System Configuration


The proposed EV charging station is designed as a standalone DC microgrid. This architecture connects all generation sources, energy storage, and loads to a common 400V DC bus, or "DC link." This topology offers distinct advantages, including higher efficiency due to fewer power conversion steps and simplified control for integrating various DC-based components. The system is composed of four primary subsystems, each interfacing with the central DC link.


• A. Photovoltaic (PV) System: The solar generation subsystem consists of a 2 kW PV array. This array is connected to the 400V DC link through a DC-DC boost converter. The converter's function is to step up the lower voltage output of the PV array to the nominal DC link voltage while simultaneously enabling the extraction of maximum available power.

• B. Wind Energy Conversion System (WECS): The wind generation subsystem features a wind turbine based on a Permanent Magnet Synchronous Generator (PMSG) with a rated power of approximately 3 kW. The PMSG produces a variable-frequency, variable-voltage AC output, which is first converted to DC by a diode rectifier. Subsequently, a DC-DC boost converter interfaces the rectified output with the DC link, stepping up the voltage and facilitating maximum power capture from the wind.

• C. Battery Energy Storage System (BESS): A stationary BESS serves as the central energy buffer for the microgrid, ensuring continuous power balance. It absorbs surplus energy when renewable generation exceeds the charging load and discharges to cover any deficit. The BESS is connected to the DC link via a bidirectional DC-DC converter, which allows for both charging and discharging operations, playing a critical role in maintaining system stability.

• D. Electric Vehicle (EV) Charging Load: The primary load of the microgrid consists of two EV batteries being charged simultaneously. Each EV, with a nominal battery voltage of 320 V, is connected to the 400V DC link through a dedicated DC-DC buck converter. This converter steps down the DC link voltage to the EV's battery voltage level and precisely regulates the charging current to deliver a constant, controlled charging power.


Fig. 1. System architecture of the proposed DC microgrid for the EV charging station.

The seamless operation of these interconnected components depends on a robust and coordinated control strategy, which is detailed in the following section.


III. Control Strategy and Modeling


A hierarchical control strategy is essential to coordinate the system's various components for stable and efficient operation. The control architecture is designed to achieve three primary objectives: 1) maximize power extraction from the intermittent PV and wind sources, 2) maintain a stable DC link voltage at its nominal 400V reference, and 3) deliver a precise and constant charging power to the EV loads.

A. Maximum Power Point Tracking (MPPT) for Renewable Sources

The power output of PV and wind energy systems varies non-linearly with environmental conditions such as solar irradiance, temperature, and wind speed. To maximize the energy yield, Maximum Power Point Tracking (MPPT) algorithms are implemented to continuously adjust the operating point of the renewable sources to their peak power output.

• Wind Turbine MPPT: The DC-DC boost converter connected to the WECS is controlled using a Perturb and Observe (P&O) MPPT algorithm. This algorithm functions by periodically perturbing the converter's duty cycle and measuring the resulting change in power (dP) and voltage (dV) at the rectifier output. By evaluating the signs of dP and dV, the control logic determines whether to increment or decrement the duty cycle, thereby systematically converging on the maximum power point.

• PV Array MPPT: For the PV system's boost converter, an Incremental Conductance (INC) MPPT algorithm is employed. This method offers excellent performance under rapidly changing atmospheric conditions. The algorithm's logic is based on the principle that at the maximum power point (MPP), the derivative of power with respect to voltage is zero (dP/dV = 0), which can be expressed as dI/dV = -I/V. By continuously calculating the incremental conductance (dI/dV) and the instantaneous conductance (I/V) of the PV array, the algorithm adjusts the converter's duty cycle to drive the operating point towards the MPP.

B. DC Link Voltage Regulation

The primary responsibility for maintaining the stability of the entire microgrid rests with the BESS controller. Its main function is to regulate the DC link voltage at its nominal 400V reference by managing the charging and discharging of the battery.

This is achieved through a closed-loop control mechanism. The DC link voltage is continuously measured and compared against the 400V reference value to generate an error signal. This error is then processed by a Proportional-Integral (PI) controller. The output of the PI controller determines the appropriate duty cycle for the bidirectional DC-DC converter, instructing the BESS to either charge (absorb excess power) or discharge (supply deficit power) to eliminate the voltage error and stabilize the DC link.

C. EV Battery Charging Control

A constant power charging strategy is implemented for the EVs to ensure a predictable and steady charging process. Each EV is connected via a dedicated buck converter, which is controlled to deliver a constant power of 1.5 kW.

The control scheme for each buck converter operates as follows: A reference charging current is calculated by dividing the desired charging power (1.5 kW) by the nominal DC link voltage (400V). This reference value is compared against the measured input current flowing into the buck converter. The resulting current error is fed into a PI controller, which acts as a current controller. The PI controller generates the required duty cycle for the buck converter's switching element, thereby regulating the input current. Controlling the input current from the stable 400V DC link is an effective method for achieving constant input power, which in turn ensures constant power delivery to the EV battery.

The efficacy of this integrated control scheme is validated through the simulation model detailed in the subsequent section.


IV. Simulation Model and Parameters


To validate the performance of the proposed DC microgrid and its control strategies, a comprehensive model was developed and simulated within the MATLAB/Simulink environment. This platform allowed for a detailed analysis of the system's dynamic response to fluctuating environmental conditions and load demands. The key parameters used in the simulation model are summarized in Table I.

Table I: Key System Parameters for Simulation

Component

Parameter

Value

PV Array

Rated Power

2 kW


Voltage at MPP (STC)

245.6 V

WECS

Rated Power

~3 kW

Stationary BESS

Nominal Voltage

240 V


Capacity

48 Ah


Initial State of Charge

50%

EV Battery (each)

Number of Units

2


Nominal Voltage

320 V


Capacity

22 kWh


Desired Charging Power

1.5 kW

DC Link

Nominal Voltage

400 V

To rigorously test the system's dynamic response and the robustness of the control strategy, the simulation was designed with time-varying environmental profiles:

• Solar Irradiance Profile: The solar irradiance was subjected to several step-changes to emulate conditions ranging from full sun to heavy cloud cover. The profile included levels of 1000 W/m², 500 W/m², and a near-zero level of 10 W/m².

• Wind Speed Profile: The wind speed was initially set at 12 m/s and was changed to 10.8 m/s at the 2-second mark of the simulation to test the WECS response to a drop in wind resource.

These scenarios were designed to create conditions of power surplus and deficit, allowing for a thorough evaluation of the system's power management capabilities.


V. Results and Discussion


The primary purpose of the simulation was to evaluate the dynamic performance of the DC microgrid, with a particular focus on the effectiveness of the control strategy in managing power flows and maintaining system stability under fluctuating resource availability. The results confirm the system's robust and reliable operation.

A. Performance of Renewable Energy Sources

The power generated by the PV and wind systems responded directly to the simulated environmental conditions, validating the performance of the MPPT controllers.


Fig. 2. Power generation from PV and Wind systems under varying environmental conditions.

The PV system produced its rated power of approximately 2 kW when solar irradiance was 1000 W/m². When the irradiance dropped to 500 W/m², the output power correctly decreased to around 1 kW. During the period of very low irradiance (10 W/m²), the PV power generation fell to nearly zero. Simultaneously, the WECS consistently generated approximately 3 kW of power, reflecting its operation under the simulated wind speeds. This demonstrates that both MPPT algorithms were successful in tracking the maximum available power from their respective sources.

 

B. BESS Performance and DC Link Stability

The BESS performed its crucial role as the system's energy buffer, dynamically switching between charging and discharging to compensate for the mismatch between renewable generation and the EV load. During periods of surplus power (when combined PV and wind generation exceeded the 3 kW load), the BESS absorbed the excess energy, causing its State of Charge (SoC) to increase.


Fig. 3. Power and State of Charge (SoC) of the stationary BESS.

Conversely, during periods of power deficit, such as between 0.6 and 1.0 seconds when PV generation was minimal, the BESS discharged to supply the power required by the EVs. This is clearly visible in the SoC graph, which shows a decline during this interval. Most critically, throughout all these transient conditions, the BESS controller successfully maintained the DC link voltage at its 400V reference, ensuring overall system stability.

 

C. EV Charging Performance

The simulation results confirm that the EV charging system operated as designed. Both EV batteries received a stable and constant charging power of approximately 1.5 kW each, resulting in a consistent total load of 3 kW on the microgrid. This outcome demonstrates the effectiveness of the PI-based current controllers governing the buck converters, which successfully regulated the power flow to the vehicles irrespective of the fluctuations occurring on the generation side of the microgrid.


 

Fig. 4. Charging voltage, current, and power for EV battery 1.

D. Overall System Power Balance

A holistic analysis of the power flows within the microgrid highlights the success of the integrated control strategy. The power generated from the PV and wind sources was intelligently allocated in real-time. When total generation exceeded the 3 kW required by the EVs, the surplus was used to charge the BESS. When generation fell below 3 kW, the BESS seamlessly discharged to cover the shortfall. This coordinated power management ensured that the EV charging load was always met without interruption, validating the system's ability to operate autonomously and reliably.

In summary, the simulation results provide strong evidence of the system's robustness. The control strategies effectively managed the intermittent nature of the renewable sources to provide a stable and reliable charging service.


VI. Conclusion and Future Scope


This paper presented the design and simulation-based validation of a DC microgrid for EV charging, which integrates a Photovoltaic (PV) system, a Wind Energy Conversion System (WECS), and a Battery Energy Storage System (BESS). The study, conducted in the MATLAB/Simulink environment, successfully demonstrated the technical feasibility and stable operation of the proposed system under dynamic environmental conditions. The results confirmed the effectiveness of the deployed hierarchical control strategy, which combines MPPT algorithms for maximizing renewable energy capture, a PI-based controller for robust DC bus voltage regulation, and dedicated PI controllers for providing constant power charging to multiple EVs.

The demonstrated system provides a blueprint for developing resilient, standalone, and environmentally friendly EV charging infrastructure. However, there are several avenues for future research that could further enhance this work. These include:

• Advanced Control Algorithms: Exploring more intelligent control algorithms, such as fuzzy logic or machine learning-based approaches, for power management could potentially improve system efficiency and responsiveness.

• Techno-Economic Analysis: A comprehensive techno-economic analysis is needed to evaluate the financial viability, optimal component sizing, and return on investment for real-world deployment of such a charging station.

• Grid Integration: Investigating the integration of the microgrid with the main utility grid would be a valuable next step. This would enable advanced functionalities such as Grid-to-Vehicle (G2V) charging during low-cost grid periods and Vehicle-to-Grid (V2G) services, where EVs could provide ancillary support to the grid.


VII. YouTube Video


 

VIII. Purchase link of the Model


SKU: 0883

 

 

Comments


bottom of page