PV Powered EV Charging with Grid Integration in MATLAB | MPPT + Bidirectional Converter + NPC Inverter
This MATLAB/Simulink model demonstrates a complete PV-based EV charging system with grid integration, featuring MPPT-controlled PV generation, a bidirectional EV battery converter, and a three-level NPC grid interface. The system intelligently switches between battery charging, idle, and grid export modes based on the EV battery SOC and PV availability.
☀️🔌 Product Description
This premium simulation model presents an advanced PV-driven EV charging station capable of operating in:
Mode 1 – Battery Charging: PV → EV battery (when SOC < 90–95%)
Mode 2 – Grid Export: PV → Grid (when SOC > 95%)
Grid-to-Vehicle (G2V): Grid → EV battery when PV is unavailable
The system is designed using:
24.94 kW solar array
Boost converter with P&O MPPT
Bidirectional EV battery converter
Three-level NPC inverter for grid interface
dq0 feed-forward decoupled current control
This model is ideal for researchers working on EV charging, grid-tied PV systems, smart energy management projects.
🔧 Key Features
✔️ Complete PV–EV–Grid Architecture
24.94 kW PV array
DC bus regulated at 470 V
EV battery subsystem rated for 25 kW
Three-level NPC inverter + PCC transformer
Harmonic filter for grid-compliant current injection
✔️ Advanced Control Strategy
P&O MPPT for maximizing PV power
PI-based DC bus voltage controller for bidirectional EV converter
dq0-based inverter current control for grid synchronization
Feed-forward decoupling for fast dynamic response
Stateflow mode selection based on SOC and PV availability
✔️ Two Main Operating Modes
1. PV → Battery (SOC < 90–95%)
Entire PV output charges the EV battery
Grid remains idle
Stable DC bus at 470 V
2. PV → Grid (SOC > 95%)
PV power delivered to grid
Battery disconnected (idle mode)
Sinusoidal PCC voltage & current (in-phase)
📊 System Ratings (Summary)
| Component | Rating / Value | Control Strategy |
|---|---|---|
| PV Array | 24.94 kW (445 W × 56 modules) | P&O MPPT + Boost Converter |
| EV Battery | 25 kW | Bidirectional Converter + PI |
| DC Bus | 470 V | PI Voltage Control |
| Grid | 154 MW @ 34.5 kV → 400 V PCC | NPC Inverter (dq0 control) |
| Irradiance | 1000 W/m² | Constant (baseline test) |
| Temperature | 25 °C | Constant |
🧪 Simulation Results
Case 1 – Battery Charging (SOC = 50%)
PV produces ~20 kW
Battery absorbs full 20 kW (negative battery power)
Grid power = 0 kW (no export/import)
DC bus maintains 470 V with tight regulation
PCC current = zero (no grid involvement)
Case 2 – Grid Export (SOC = 98%)
PV power exported entirely to the grid (~20 kW)
Battery idle (no current)
Grid current perfectly sinusoidal and in-phase with voltage
Confirms active power injection to utility grid
Performance Summary
| Case | SOC | PV Power | Battery Power | Grid Power | Mode |
|---|---|---|---|---|---|
| 1 | 50% | 20 kW | –20 kW (charging) | 0 kW | PV → Battery |
| 2 | 98% | 20 kW | 0 kW | +20 kW | PV → Grid |
🎯 Key Advantages
Ensures maximum PV utilization via MPPT
Maintains perfect voltage stability on DC bus
Seamless SOC-based mode switching with no overshoot
High power quality: sinusoidal grid waveform
Ideal reference model for EV smart-charging research
📁 What You Get
✔️ Complete MATLAB/Simulink model (.slx)
✔️ All controllers (MPPT, PI, dq0 current control)
✔️ Stateflow-based mode switching logic
▶️ Demo Video
Watch the full simulation:
🔗 https://www.youtube.com/watch?v=hc-KtMG-PAc
PV Powered EV Charging With Grid In MATLAB
Simulink Super Sale







