基于STM32的多功能电能
的设计(毕业设计)
基于STM32的多功能电能表的设计(毕业设计)
****************
自动化学院
本科毕业设计(论文)
题目:基于STM32的多功能电能表的设计
专业:自动化
班级:自动化111学号:**********
学生姓名:******
指导教师: ************
起止日期:2015.2,2015.6
设计地点:
Graduation Design (Thesis)
The Design of Three-phase Multi-functional Power
Meter Based on STM32
By
**********
Supervised by
Prof. ******
School of Automation
*******************
June, 2015
*********自动化学院本科毕业设计(论文)
摘要
电能表作为测量电能的工具,是连接电力用户和电能之间的一座“桥梁”,随着电能在人们生活中的地位越来越重要,它与人们生活之间的联系也更加地紧密。虽然电能表也在不断地发展,但是局限于功能单一,传统的电能表已经满足不了用户对其越来越高的要求。
本文采用STM32F103RC型号的微控制器作为主控芯片,设计了一款实用性强、结构简单的多功能电能表。在设计电能表硬件和软件的过程中,都采用了模块化的设计思想。其中,多功能电能表的硬件部分主要包括主控模块、电源转换模块、电压电流采样模块、EEPROM存储模块、LCD段码显示模块、按键输入模块和RS485通讯接口模块。并且利用软件编译平台MDK进行了软件部分的设计,主要包括主程序、系统初始化程序、电量处理程序、键盘中断程序以及LCD段码显示程序。
本文最后完成了多功能电能表的系统调试,对经过采样和调理得到的电压、电流信号进行计算,并完成显示,而且通过按键的选择实现了显示屏的切换,基本实现了多功能定能表的预期功能。
关键词:电能表;STM32F103;段码LCD;RS485
I
*********自动化学院本科毕业设计(论文)
ABSTRACT
Electricity meter connects a "bridge" between power users and power
that used as a kind of measurement tool. The link between it and the
people's lives more to close with the power position in people's lives increasingly important. While the meter is constantly evolving, but limited to a single function, the conventional meters has failed to meet the growing demands of its users.
In this paper, using the type microcontroller of STM32F103RC as the master chip, designed a practical, simple structure of multi-function meter. In the process of the design of meter in hardware and software, have adopted a modular design thinking. Among them, the hardware part of the multi-function meter includes control module, power conversion modules, voltage and current sampling module, EEPROM memory module, LCD segment display module, a key input module and RS485 communication interface module. And using software platform MDK designs the software part, including the main program, the system initialization procedure, power handler program, a keyboard interrupt program and LCD segment display program.
Finally completed the system debugging of the multi-function meter, the voltage and current signals obtained through sampling and conditioning were calculated, and complete the display, but also through the select button to switch the display . The basic realization of the multi-function will be able to watch the intended function.
Key words: Power Meter; STM32F103;segmentLCD;RS485
II
*********自动化学院本科毕业设计(论文)
目录
第一章绪
论 ............................................................................................................... 1
1.1 电能
表 ........................................................................................................... 1
1.1.1电能表的概念 ..................................................................................... 1
1.1.2电能表的发展 ..................................................................................... 1
1.1.3 电能表的发展现
状 ............................................................................ 2
1.2 多功能电能
表 ............................................................................................... 3
1.2.1多功能电能表的现状 ......................................................................... 3
1.2.2多功能电能表存在的问题 ................................................................. 3
1.3电能表的发展前
景 ........................................................................................ 4
1.4课题研究背景及内
容 .................................................................................... 4
1.4.1课题研究背景 ....................................