top of page

PV Powered EV Charging With Grid In MATLAB

PV Powered EV Charging With Grid In MATLAB


We delve into a simulation model developed for Photovoltaic (PV) and Electric Vehicle (EV) charging integration with the grid. This model operates in two distinct modes: utilizing PV power for direct EV battery charging and channeling excess PV power to the grid when the battery is sufficiently charged. Let's explore the key components and functionalities of this comprehensive simulation.

System Components:

  1. Grid:

  • 154 MW grid with a 34.5 kV rating, stepped down to 400 V.

  • Point of common coupling for grid integration.

  1. PV Power Generation:

  • PV panels with a 25 kW rating.

  • Boost converter for voltage optimization.

  • Perturb and Observe (P&O) Maximum Power Point Tracking (MPPT) for PV power control.

  1. EV Battery:

  • Bi-directional converter for battery connection.

  • State of Charge (SOC) monitoring.

  1. Inverter Control:

  • Inverter with harmonic filter.

  • Current control logic based on SOC of the EV battery.

  • Power exchange between PV, battery, and grid.

Operation Modes:

a. Charging Mode: If SOC of the EV battery is below 95%, PV power is used for direct charging.

b. Grid Integration Mode: If SOC exceeds 95%, excess PV power is sent to the grid.

Control Logic:

  • The PV power is controlled by a Boost Converter, using a P&O MPPT algorithm.

  • Inverter control logic adjusts based on SOC conditions, either directing power to the EV battery or the grid.

Simulation Parameters:

  • Variations in irradiation (1000 W/m^2) and temperature (25°C) to assess system response.

  • Monitoring of PV power, grid power, battery power, and SOC of the EV battery.

Results and Analysis:

  • Simulation reveals power dynamics, highlighting direct charging and grid integration based on SOC conditions.

  • PV power is efficiently utilized for EV charging, ensuring optimal SOC levels.

  • Excess PV power is seamlessly integrated into the grid when the battery is adequately charged.


The simulation model effectively demonstrates the integration of PV-EV charging with grid functionality. This flexible system ensures optimal utilization of renewable energy, promoting sustainability and grid support. The logic implemented allows for dynamic power distribution, showcasing a practical approach to real-world scenarios.

22 views0 comments


bottom of page