Skip to content

Repository files navigation

Power Electronics for Renewable Energy and EV Charging

[View on File Exchange](Click the link to view in Matlab website) or Open in MATLAB Online

Curriculum Module

Created with R2026a. Compatible with R2026a and later releases.

Cover image

This repository contains MATLAB Live Script lectures for modern power conversion systems used in electric vehicle charging, photovoltaic generation, and wind energy conversion. These topics are central to today's energy industry because electrified transportation, distributed solar generation, grid-connected storage, and converter-dominated power systems all depend on efficient power electronics and reliable digital control.

The lectures use MATLAB Live Scripts with Simulink and Simscape Electrical models. Each lesson combines conceptual explanation, circuit diagrams, interactive parameter changes, simulation results, and short exercises.

Contents

Getting Started

Accessing the Module

On MATLAB Online:

Use the OpenInMO.png link to download the module. You will be prompted to log in or create a MathWorks account. The project will be loaded, and you will see an app with several navigation options to get you started.

On Desktop:

Download or clone this repository. Open MATLAB, navigate to the folder containing these scripts and double-click on EV_and_Renewable_Energy_Technologies.prj. It will add the appropriate files to your MATLAB path and open an app that asks you where you would like to start.

Ensure you have all the required products (listed below) installed. If you need to include a product, add it using the Add-On Explorer. To install an add-on, go to the Home tab and select AddOnsIcon.png Add-Ons > Get Add-Ons.

Lecture Navigation

Start with the charger lectures if your focus is EV infrastructure, or start with the PV and wind lectures if your focus is renewable generation and grid integration.

Lecture Link Primary system Main concepts
Off-board charger for electric vehicles Open lecture High-power external EV charger AC grid input, DC link, DC-DC conversion, CC/CV battery charging, SOC, PLL, SOGI, inverter and DC bus control
Isolated off-board charger for electric vehicles Open lecture Isolated high-power EV charger Isolation stage, transformer-based power transfer, converter comparison, charging current and voltage control
On-board charger for electric vehicles Open lecture Vehicle-integrated grid charger OBC constraints, unity power factor, CC/CV charging, LLC conversion, SOGI-based single-phase control
PMSG wind power system Open lecture Type 4 wind turbine with full power converter PMSG generator, turbine power and torque, generator speed control, DC bus control, active and reactive power control
Single-phase photovoltaic system Open lecture Grid-connected single-phase PV PV curves, MPPT, boost converter control, pulsating power, second-order harmonics, single-phase inverter control
Three-phase photovoltaic system Open lecture Grid-connected three-phase PV MPPT, three-phase inverter, grid synchronization, active power transfer, duty-cycle generation, switching frequency

Required Products

The Simulink models in this repository require the following core MathWorks products.

Product Why it is needed
MATLAB Live Script execution, plotting, image display, helper functions, and interactive calculations
Simulink Block-diagram simulation for charger, PV, and wind-system models
Simscape Physical network modeling foundation for electrical and electromechanical systems
Simscape Electrical Power electronics, electrical machines, batteries, converters, inverters, sensors, and grid-interface blocks

Optional but useful for deeper study:

  • Control System Toolbox for controller analysis and tuning concepts.
  • Simscape Battery for expanded battery-pack and battery-management workflows.
  • Motor Control Blockset for deeper motor and generator control workflows.
  • Simulink Control Design for linearization and closed-loop controller design.

Recommended MathWorks Onramps

These self-paced courses prepare learners for the tools and concepts used across the lecture sequence.

Preparation area Recommended course Link
MATLAB basics and Live Editor workflows MATLAB Onramp Open course
Block diagrams and simulation Simulink Onramp Open course
Physical modeling Simscape Onramp Open course
Electrical circuit modeling Circuit Simulation Onramp Open course
Power converter simulation Power Electronics Simulation Onramp Open course
Three-phase systems, microgrids, and MPPT context Power Systems Simulation Onramp Open course
Battery charging and battery-management context Simscape Battery Onramp Open course
Feedback control and PID tuning Control Design Onramp with Simulink Open course
State-machine logic for extended controller workflows Stateflow Onramp Open course
Machine and inverter control background for the wind lecture Motor Modeling with Simscape Electrical Open course

Documentation References

Use these MathWorks documentation pages when you want to connect the lecture models to product examples, block documentation, and modeling guidance.

Video References

These videos and video series are useful next steps after the lectures.

When adapting the lectures for a course, keep the entry point, learner scripts, models, images, and utilities in their current top-level folders. That organization makes links predictable and keeps the Live Scripts focused on guided exploration instead of path management.

About

Six power electronics learning models about renewable energy and EV charging

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages