伴随着科学技术的飞速发展,新能源发电技术得到了更多的开发,为有效的使用这些能源,改善电力的输出品质,本设计采用了基于 STM32F103C8T6 单片机的单相可调频 220V 逆变电源方案,这种设计具有可调节频率和输出电压的特点。数字控制的控制方式为本次设计所采用的控制技术,数字控制方式的优势主要体现在结构简单, 控制精度高,调试方便等,这对于本次设计能否实现具有重要意义。本设计从社会实践角度出发,对 STM32F103C8T6 单片机 SPWM 单相逆变电源进行了研究设计。首先, 本论文提出了该设计的研究背景与研究意义,并对目前国内外逆变电源研究现状进行了解和阐述。并且本文对 SPWM 调频技术做了简单描述,在此基础上,本文对单相逆变电源进行了充分研究和设计,并且对硬件系统和软件编写部分进行了详细的分析, 最终确定了 SPWM 可调频 220V 逆变电源的设计方案,本次设计选择 STM32F103C8T6 单片机作为系统的控制模块。并且介绍了一个集成开发环境,即 keil V5,分别对 SPWM 产生的过程和其他过程进行了详细的分析。
关键词:逆变电源;SPWM;STM32 单片机控制
DESIGN DESCRIPTION
With the rapid development of science and technology, new energy generation technology has been further developed. In order to effectively use these energy sources and improve the output quality of electricity, this design adopts a single-phase adjustable frequency 220V inverter power supply scheme based on STM32F103C8T6 microcontroller. This design has the characteristics of adjustable frequency and output voltage. The control method of digital control is the control technology adopted in this design. The advantages of digital control mainly lie in its simple structure, high control accuracy, and convenient debugging, which are of great significance for the implementation of this design. This design starts from the perspective of social practice and conducts research and design on the STM32F103C8T6 microcontroller SPWM single-phase inverter power supply. Firstly, this paper presents the research background and significance of this design, and provides an understanding and explanation of the current research status of inverter power sources both domestically and internationally. And this article provides a brief description of SPWM frequency modulation technology. Based on this, this article conducts sufficient research and design on single-phase inverter power supply, and analyzes the hardware system and software writing in detail. Finally, the design scheme of SPWM frequency modulation 220V inverter power supply is determined. In this design, STM32F103C8T6 microcontroller is selected as the control module of the system. And an integrated development environment, keil V5, was introduced, which provided a detailed analysis of the process of SPWM generation and other processes.
Keywords:Inverter power supply;SPWM;STM32 MCU control
1 绪论 1
1.1 研究背景和意义 1
1.2 国内外研究现状和发展趋势 1
2 总体设计 2
2.1 设计内容 2
2.2 硬件电路组成及功能描述 3
3 逆变电源原理 4
3.1 逆变的概念 4
3.2 SPWM 原理介绍 4
3.3 SPWM 与 PWM 的区别 5
3.4 SPWM 信号生成方法 5
4 逆变电路拓扑选择 7
4.1 H 桥逆变器和全桥逆变器的比较 7
4.2 拓扑选择的依据 8
4.3 逆变器开关器件选型和特性分析 9
5 硬件电路设计 10
5.1 STM32F103C8T6 介绍 10
5.2 输出滤波电路设计 11
5.3 输入电路设计 11
5.4 降压电路 12
5.5 24V 转 12V 电路 13
5.6 310V 输入电路 14
5.7 液晶显示电路 14
5.8 按键和驱动电路 15
5.9 输出电路 16
6 软件设计 17
6.1 Keil uVision5 集成开发软件的使用 17
6.2 程序流程图 19
7 调试 20
7.1 电压幅值 20
7.2 频率调制 22
8 结 论 24
参考文献 25
致 谢 26
附录一 27
附录二 42













