Abstract

In this paper, the program source code of the STM32F407 microcontroller for PV (photovoltaic) inverter circuit was tested using Simulink before applying it to a power electronics circuit. Firstly, a single-phase grid-connected PV (photovoltaic) inverter structure is modeled in Matlab / Simulink environment. In the light of these simulation results, the control blocks of the inverter are programmed using the MicroC ARM compiler for the STM32F407 microcontroller. Before the circuit design stage, a model was developed to work with Matlab / Simulink in order to prevent possible errors and losses of the microcontroller code of the designed PV inverter. This model includes power electronics semiconductors and passive components, PV panels, grid and data communication blocks. The C source code containing the inverter control blocks (MPPT, PLL, DCLinkPI and Current controller) are loaded into the STM32F4 Discovery kit. At each step of the simulation, the current and voltage information obtained from the Matlab model is sent to the STM32F4 kit via serial communication. The current and voltage information is processed in microcontroller software and switching pulses of IGBTs are created and transferred back to Matlab model. In this way, a rapid and secure prototype hardware development method is presented with the joint operation of Matlab and STM32F4. The results obtained from the simulation and Matlab-STM32F4 joint study are given comparatively.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.