Model-based Design for Solar Power Control with TI Hardware
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"
Cite As
Jonathan LeSage (2024). Model-based Design for Solar Power Control with TI Hardware (https://github.com/jonlesage/Solar-Inverter-TI-Hardware), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
1_PV_PowerCurves
2_ModelingConverters
3_ControlDesign
4_MPPT_Algorithm
5_IntroCodeGen
5_IntroCodeGen/Desktop_Serial
DesktopSimulation
ST_Version/1_PV_PowerCurves
ST_Version/2_ModelingConverters
ST_Version/3_ControlDesign
ST_Version/DesktopSimulation
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |
|