This demo shows how you can quickly design a new power control system using Simulink® and Embedded Coder® from MathWorks® and the C2000™ platform of microcontrollers from Texas Instruments®. We walk through a solar inverter demo, where we design and simulate a maximum power point tracking (MPPT) control in Simulink, and then deploy the control with Embedded Coder to a Texas Instruments C2000 Piccolo™ MCU.
Hardware kit is available from TI: https://www.digikey.com/en/products/detail/texas-instruments/TMDSSOLARPEXPKIT/3028945
To get started, clone this repository to directory:
- Install the Texas Instruments Hardware Support Package and complete the Setup Process - https://www.mathworks.com/matlabcentral/fileexchange/43096?download=true
- Plug-in USB to C2000 and ensure power cord jumpers are installed to connect the PV emulator, the DC-DC Boost converter, and the Single-Phase Inverter.
- PV to DC-DC: Vpv -> Vin-b
- DC-DC to Inverter: Vo-b -> V-Inv
- Open "PV_MPPT_C2000_Algorithm.slx" and "PV_MPPT_C2000_Host.slx". Algorithm is deployed to the C2000 and the Host model allows for data visualization from the Development Board
- Build and Deploy the "PV_MPPT_C2000_Algorithm.slx" model to the C2000
- Run the Host Model (you might need to change the Serial COM port to match the development board serial) to interact with the solar inverter hardware
A recording of this demo can be found in the "Developing Solar Inverter Control with Simulink" video series: https://www.mathworks.com/videos/series/developing-solar-inverter-control-with-simulink.html
A modified version of this demo is available in the shipping TI Support Package Documentation now which can be used for further reference: https://www.mathworks.com/help/releases/R2020a/supportpkg/texasinstrumentsc2000/ug/photovoltaic-inverter-mppt-solar-explorer-kit.html"# Solar-Inverter-TI-Hardware"