|
基于STM32的单相逆变器并网系统设计与实现
|
Abstract:
本设计采用STM32单片机作为主控芯片,采用双极性SPWM调制方法,以单相全桥逆变电路为核心电路,实现双逆变器的并网供电。提出一种新型主从控制方法,通过对主从机不同的SPWM调节速度的控制,实现电流内环电压外环控制。提出了系统软启动以及过流之后重启动的控制思想,保证系统始终处于安全工作状态,并且可以快速响应。通过UART完成两单片机之间通信,实现了从路输出相位跟随主路的目标。利用SPI的通信模式与采样模块相配合,加入系统的PID算法的分段调节,实现了高精度的采样和快速的系统闭环控制。本系统输出电压较为稳定,THD在2%以下,可以实现两逆变器输出电流按比例分配为1:1、1:2、2:1,效率达到90%以上。
This design adopts STM32 single-chip microcomputer as the main control chip, adopts bipolar SPWM modulation method, and uses single-phase full-bridge inverter circuit as the core circuit to realize grid-connected power supply of dual inverters. A new master-slave control method is pro-posed, which realizes the current inner loop voltage outer loop control by controlling the different SPWM adjustment speeds of the master and slave machines. The control idea of system soft start and restart after overcurrent is proposed to ensure that the system is always in a safe working state and can respond quickly. The communication between the two single-chip microcomputers is completed through UART, and the goal of the output phase of the slave circuit to follow the main circuit is realized. Using the SPI communication mode to cooperate with the sampling module, adding the segmented adjustment of the system’s PID algorithm, realizes high-precision sampling and fast system closed-loop control. The output voltage of this system is relatively stable, and the THD is below 2%, and the output current of the two inverters can be distributed proportionally to 1:1, 1:2, 2:1, and the efficiency reaches more than 90%.
[1] | 郑飞, 张双庆, 张军军, 李红涛. 基于DSP和FPGA的一种新型光伏并网控制方法[J]. 电力电子技术, 2012, 46(11): 29-31. |
[2] | 李双超. 两级结构电力电子变压器的研究与设计[D]: [硕士学位论文]. 天津: 河北工业大学, 2017. |
[3] | 张昌盛, 段善旭, 康勇. 基于电流内环的一种逆变器控制策略研究[J]. 电力电子技术, 2005(3): 14-16. |
[4] | 匡程, 朱智, 王芳慧. 基于STC15F2K60S2单片机的微电网模拟系统设计[J]. 江苏科技信息, 2019, 36(34): 42-45+77. |
[5] | 厉俊, 郑佳蕙. 基于STM32的开关电源模块并联供电系统[J]. 软件工程, 2020, 23(3): 4-8. |
[6] | 汪尧. 具有快速响应的BUCK变换器设计与实现[D]: [硕士学位论文]. 成都: 电子科技大学, 2018. |
[7] | 胡志坚, 孙友宏. 钻进控制模拟系统及控制算法的设计与试验[J]. 煤炭学报, 2009, 34(4): 455-460. |
[8] | 曹洪瑞. 激光通信系统精跟踪PID控制算法研究及实现[D]: [硕士学位论文]. 长春: 中国科学院研究生院(长春光学精密机械与物理研究所), 2015. |