Journals / Avrupa Bilim ve Teknoloji Dergisi / 2020 / Cilt: 0 - Sayı: 18
Rapid Prototype Development of Single-Phase Grid-Connected PV Inverter Using STM32F4 and Matlab
- Pages
- 213–223
- DOI
- —
Abstract
In this paper, the program source code of the STM32F407 microcontroller for PV (photovoltaic) inverter circuit was tested usingSimulink before applying it to a power electronics circuit. Firstly, a single-phase grid-connected PV (photovoltaic) inverter structure ismodeled in Matlab / Simulink environment. In the light of these simulation results, the control blocks of the inverter are programmedusing the MikroC ARM compiler for the STM32F407 microcontroller. Before the circuit design stage, a model was developed to workwith Matlab / Simulink in order to prevent possible errors and losses of the microcontroller code of the designed PV inverter. Thismodel includes power electronics semiconductors and passive components, PV panels, grid and data communication blocks. The Csource code containing the inverter control blocks (MPPT, PLL, DC Link PI and Current controller) are loaded into the STM32F4Discovery kit. At each step of the simulation, the current and voltage information obtained from the Matlab model is sent to theSTM32F4 kit via serial communication. The current and voltage information is processed in microcontroller software and switchingpulses of IGBTs are created and transferred back to Matlab model. In this way, a rapid and secure prototype hardware developmentmethod is presented with the joint operation of Matlab and STM32F4. The results obtained from the simulation and Matlab-STM32F4joint study are given comparatively.
Özet
Bu çalışmada, PV (photovoltaic) inverter devresi için STM32F407 mikrodenetleyicisine ait oluşturulan program kaynak kodunun bir güç elektroniği devresine uygulanmadan önce Simulink kullanılarak testi gerçekleştirilmiştir. Öncelikle, tek faz-şebeke bağlantılı bir PV (photovoltaic) inverter yapısı Matlab / Simulink ortamında modellenmiştir. Bu simülasyon sonuçları ışığında inverterin kontrol blokları STM32F407 mikrodenetleyici için MikroC ARM derleyicisi kullanılarak programlanmıştır. Tasarlanan PV invertere ait mikrodenetleyici kodunun devre tasarım aşamasına geçmeden önce olası hata ve kayıpların önüne geçmek amacıyla Matlab/Simulink ile birlikte çalışabilmesi için bir model oluşturulmuştur. Bu model, güç elektroniği yarıiletken ve pasif elemanları, PV paneller, şebeke ve veri haberleşmesi gerçekleştiren blokları içermektedir. İnverter kontrol bloklarını (MPPT, PLL, DC Link PI ve Akım kontrolcüsü) içeren C kaynak kodu STM32F4 Discovery kitine yüklenmiştir. Simülasyonun her bir adımında Matlab modelinden elde edilen akım ve gerilim bilgileri, seri iletişim ile STM32F4 kitine yollanmaktadır. Akım ve gerilim bilgileri mikrodenetleyici yazılımında işlenmekte ve IGBT’lere ait anahtarlama palsleri oluşturulup tekrar Matlab modeline aktarılmaktadır. Bu şekilde Matlab ve STM32F4 ortak çalıştırılması ile hızlı ve güvenli bir prototip donanım geliştirme yöntemi sunulmuştur. Simülasyon ve Matlab-STM32F4 ortak çalışmasından elde edilen sonuçlar karşılaştırmalı olarak verilmiştir.