top of page

MATLAB Simulation of 2 MW PV Battery Grid system

MATLAB Simulation of 2 MW PV Battery Grid system

In this simulation model, we explore a 2-megawatt PV (Photovoltaic) battery-based grid integration system using MATLAB. The system is designed to efficiently integrate solar power and battery storage into the main grid, showcasing the dynamic interaction between various components.

System Components:

  1. Main Grid: Rated at 154 Megawatts and 34.5 Kilovolts.

  2. Transformer: Steps down the voltage from 34.5 Kilovolts to 400 Volts.

  3. Point of Common Coupling (PCC): Represents the connection point for loads and renewable energy sources.

  4. Load: Consists of a 1.6 Megawatt electrical load.

PV-Battery Integration:

The PV array is connected to the DC link, and the battery is connected to the same DC link via a bidirectional converter. The battery, with a nominal voltage of 300 Volts and a capacity of 2 Megawatts, utilizes a boost converter for efficient energy transfer.

Control Logic:

The control system is designed to manage the power flow between the PV array, battery, and the grid. It generates a reference current based on a percentage of the PV current, adjusting the battery charging and discharging currents accordingly. The system incorporates a Proportional-Integral (PI) controller and a pulse-width modulation (PWM) generator to control the bidirectional converter.

Inverter Control:

The inverter control involves a Maximum Power Point Tracking (MPPT) algorithm that adjusts the reference current based on the PV current. The inverter, employing a model predictive control (MPC) method, injects real power into the grid while maintaining a unity power factor. Feedforward decoupling control ensures precise control of real and reactive power.

Performance Monitoring:

The simulation model provides real-time monitoring of PV parameters, battery performance, load characteristics, and grid-related parameters. It includes measurements for PV irradiance, PV current, battery state of charge (SOC), battery power, grid current, and load power.

Simulation Results:

The model is simulated under varying irradiance conditions. Results show the dynamic behavior of the system, including changes in battery charging/discharging modes, grid power injection, and load power consumption. The system successfully maintains power balance under different operating conditions.


The simulation model demonstrates the effective integration of a 2 Megawatt PV array and a battery system into the main grid. The control strategies ensure optimal utilization of solar power, efficient energy storage, and seamless power delivery to the grid and loads. This integration contributes to a more sustainable and resilient power infrastructure.

1 view0 comments


bottom of page