Using Simulink to Develop Grid-Tied Solar Inverter Controls

Overview

Learn how you can design, implement, and test the controller code for a 3-phase grid-tied solar inverter using Simulink.  The goal is to develop a controller that can adhere to grid codes and maintain inverter grid connection during upset conditions.

MathWorks and Speedgoat engineers will model the photovoltaic (PV) system, solar inverter, and grid load with Simulink and Simscape Electrical.  This model is used to design and tune closed-loop and supervisory control algorithms for maximum power point tracking (MPPT), grid synchronization, and low voltage ride through (LVRT).  With Embedded Coder, the control algorithms are used to generate and deploy optimized C code to a Texas Instruments C2000 Piccolo™ MCU.  Finally, the implemented code is tested for a variety of emulated grid fault scenarios using a hardware-in-the-loop (HIL) simulation of the PV system, inverter, and grid load running on a Speedgoat real-time target machine using Simulink Real-Time.

Highlights

  • Simulating a photovoltaic (PV) farm, a 3-phase grid-scale inverter, and grid load
  • Designing and tuning control algorithms for regulating voltage and maintaining grid synchronization using a phase-locked loop
  • Developing the maximum power point tracking (MPPT) algorithm to maximize PV output under varying conditions
  • Developing supervisory control for low-voltage ride through (LVRT) during a voltage or frequency disturbance
  • Generating C code from control algorithms and implementing them on a Texas Instruments C2000 Piccolo™ microcontroller
  • Generating C and HDL code from Simulink and Simscape Electrical to a Speedgoat real-time target machine with a multi-core CPU and FPGA
  • Conducting hardware-in-the-loop (HIL) simulation to test code running on the microcontroller

Please allow approximately 45 minutes to attend the presentation and Q&A session. We will be recording this webinar, so if you can't make it for the live broadcast, register and we will send you a link to watch it on-demand. 

About the Presenters

Jonathan LeSage is a Senior Application Engineer and Senior Team Lead specializing in the Energy Production and Industrial Automation industries and has been with the MathWorks since 2013. His focus at the MathWorks is on building models of multi-physics systems and then leveraging them for control design, hardware-in-the-loop testing and embedded code generation. Jonathan holds a B.S. and a Ph.D from the University of Texas at Austin specializing in power systems, controls, and machine learning.

Carlos Villegas has over 10 years of R&D experience in electrical machines, power electronics and automotive control systems, including the design, controls, and hardware-in-the-loop testing of power converters up to 2 MW. He is an inventor in 4 patents, and author of 17 technical papers. He received a Ph.D. degree in Control Engineering from the Hamilton Institute, NUI Maynooth, Ireland in 2019; an M.Sc. degree in Mechatronics from CINVESTAV, Mexico in 2004; and an M.Eng. degree in Electrical-Mechanical Engineering from Tec de Monterrey, Mexico in 2002. As Industry Manager for Electrification at Speedgoat, he is responsible for real-time solutions for motors, power electronics, and battery systems.

Product Focus

This live webinar has ended. You can now view the on-demand webinar.

See on-demand webinars