您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 基于STM32的多功能电能表的设计(毕业设计)
****************自动化学院本科毕业设计(论文)题目:基于STM32的多功能电能表的设计专业:自动化班级:自动化111学号:**********学生姓名:******指导教师:************起止日期:2015.2~2015.6设计地点:GraduationDesign(Thesis)TheDesignofThree-phaseMulti-functionalPowerMeterBasedonSTM32By**********SupervisedbyProf.******SchoolofAutomation*******************June,2015*********自动化学院本科毕业设计(论文)I摘要电能表作为测量电能的工具,是连接电力用户和电能之间的一座“桥梁”,随着电能在人们生活中的地位越来越重要,它与人们生活之间的联系也更加地紧密。虽然电能表也在不断地发展,但是局限于功能单一,传统的电能表已经满足不了用户对其越来越高的要求。本文采用STM32F103RC型号的微控制器作为主控芯片,设计了一款实用性强、结构简单的多功能电能表。在设计电能表硬件和软件的过程中,都采用了模块化的设计思想。其中,多功能电能表的硬件部分主要包括主控模块、电源转换模块、电压电流采样模块、EEPROM存储模块、LCD段码显示模块、按键输入模块和RS485通讯接口模块。并且利用软件编译平台MDK进行了软件部分的设计,主要包括主程序、系统初始化程序、电量处理程序、键盘中断程序以及LCD段码显示程序。本文最后完成了多功能电能表的系统调试,对经过采样和调理得到的电压、电流信号进行计算,并完成显示,而且通过按键的选择实现了显示屏的切换,基本实现了多功能定能表的预期功能。关键词:电能表;STM32F103;段码LCD;RS485*********自动化学院本科毕业设计(论文)IIABSTRACTElectricitymeterconnectsabridgebetweenpowerusersandpowerthatusedasakindofmeasurementtool.Thelinkbetweenitandthepeople'slivesmoretoclosewiththepowerpositioninpeople'slivesincreasinglyimportant.Whilethemeterisconstantlyevolving,butlimitedtoasinglefunction,theconventionalmetershasfailedtomeetthegrowingdemandsofitsusers.Inthispaper,usingthetypemicrocontrollerofSTM32F103RCasthemasterchip,designedapractical,simplestructureofmulti-functionmeter.Intheprocessofthedesignofmeterinhardwareandsoftware,haveadoptedamodulardesignthinking.Amongthem,thehardwarepartofthemulti-functionmeterincludescontrolmodule,powerconversionmodules,voltageandcurrentsamplingmodule,EEPROMmemorymodule,LCDsegmentdisplaymodule,akeyinputmoduleandRS485communicationinterfacemodule.AndusingsoftwareplatformMDKdesignsthesoftwarepart,includingthemainprogram,thesysteminitializationprocedure,powerhandlerprogram,akeyboardinterruptprogramandLCDsegmentdisplayprogram.Finallycompletedthesystemdebuggingofthemulti-functionmeter,thevoltageandcurrentsignalsobtainedthroughsamplingandconditioningwerecalculated,andcompletethedisplay,butalsothroughtheselectbuttontoswitchthedisplay.Thebasicrealizationofthemulti-functionwillbeabletowatchtheintendedfunction.Keywords:PowerMeter;STM32F103;segmentLCD;RS485*********自动化学院本科毕业设计(论文)III目录第一章绪论............................................................................................................11.1电能表...........................................................................................................11.1.1电能表的概念.....................................................................................11.1.2电能表的发展.....................................................................................11.1.3电能表的发展现状............................................................................21.2多功能电能表...............................................................................................31.2.1多功能电能表的现状.........................................................................31.2.2多功能电能表存在的问题.................................................................31.3电能表的发展前景........................................................................................41.4课题研究背景及内容....................................................................................41.4.1课题研究背景.....................................................................................41.4.2课题研究内容.....................................................................................4第二章多功能电能表硬件设计.......................................................................62.1整体方案设计................................................................................................62.2主控芯片的选择...........................................................................................62.2.1STM32F芯片简介..............................................................................72.2.2STM32F芯片优势..............................................................................72.3硬件电路设计...............................................................................................72.3.1主控电路设计....................................................................................72.3.2采样电路设计..................................................................................102.3.3按键显示电路设计..........................................................................122.3.4RS485通讯电路设计.......................................................................132.3.5存储电路设计..................................................................................142.4本章小结.....................................................................................................15第三章多功能电能表软件设计.....................................................................163.1软件设计.....................................................................................................163.1.1软件开发平台MDK........................................................................163.1.2软件设计流程..................................................................................163.2主程序设计.................................................................................................173.3初始化子程序设计.....................................................................
本文标题:基于STM32的多功能电能表的设计(毕业设计)
链接地址:https://www.777doc.com/doc-6926529 .html