基于单片机的称重控制系统设计

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

基于单片机的称重控制系统设计I届毕业生毕业设计说明书题目:基于单片机的称重控制系统设计院系名称:专业班级:学生姓名:学号:指导教师:教师职称:基于单片机的称重控制系统设计II摘要由于称重器具在商业贸易中的重要作用,称重技术的发展一直都受到人们的关注。本文设计实现了一种新型的多功能电子称重系统,该系统采用了最为常见的C51系列单片机STC89C52作为主控芯片,系统可以准确称量待测物的质量,使用者设置好单价后,系统还能自动地计算总价并可以把测量结果直观地显示在液晶屏幕上,同时本系统还具有超量程自动报警功能。另外本系统还扩展了电子万年历和电子温度计的功能,使得系统更加实用。本文论述了课题提出的背景,系统方案确定的依据以及系统具体硬件电路的设计方案和软件编程的基本思路,最后针对系统的测试结果进行了分析。关键词:电子称重系统;单片机;称重传感器;A/D转换;时间和温度;人机交互基于单片机的称重控制系统设计IIITitleDesignofweighingcontrolSystemBasedOnMCUABSTRACTDuetotheimportantroleofweighingapparatusinthetrade,developmentofweighingtechnologyhasbeenpaidcloseattentiontobypeople.Thispaperpresentsanewtypeofmultifunctionalelectronicweighingsystem.ThisdesignisbasedonthemostcommonC51seriesmicrocontrollerSTC89C52asacontrolcore,itrealizedthebasicfunctionsofelectronicscales.Thisdesigncanacquisitionqualityaccurately,displaytestdataintuitively,setthepricefordiffidentthingsandautomaticalarmwhenitisoverrange.Atthesametime,thesystemalsoextendsthefunctionofelectroniccalendarandthethermometer,makingthesystemmoreintelligentandpractical.Thispaperdiscussesthebackgroundofthesubject,howthesystemschemeisdetermined,designofthehardwarecircuitsystemandsoftwareprogramming.Attheendofthepaper,thesystemtestresultswereanalyzed.KeyWordsElectronicscale;singlechipmicrocomputer;sensor;A/Dconversion;human-computerinteraction;timeandtemperature基于单片机的称重控制系统设计IV目录摘要...........................................................................................................................................IIABSTRACT..................................................................................................................................III第1章前言..............................................................................................................................11.1选择课题的背景和意义............................................................................................................11.2电子秤的现状及未来的发展趋势............................................................................................11.3设计的主要任务........................................................................................................................2第2章系统方案设计...............................................................................................................32.1系统总体构想及其工作原理....................................................................................................32.2系统方案的确定........................................................................................................................42.3各个模块选型的分析................................................................................................................5第3章系统硬件电路的设计..................................................................................................163.1MCU的最小系统电路设计.......................................................................................................163.2称重传感器和A/D转换芯片HX711的电路设计..................................................................163.3数据输入模块的电路设计......................................................................................................173.4液晶显示模块的电路设计.......................................................................................................173.5报警模块的电路设计...............................................................................................................183.6时钟模块和温度模块的电路设计...........................................................................................18第4章系统软件部分的设计..................................................................................................194.1编程语言和开发工具的选择..................................................................................................194.1.1编程语言的选择...............................................................................................................194.1.2软件开发环境的选择........................................................................................................194.2程序设计的总体思路...............................................................................................................194.3各个模块程序设计说明...........................................................................................................214.3.1键盘扫描程序...................................................................................................................214.3.2A/D转换程序设计............................................................................................................214.3.3LCD显示程序设计...........................................................................................................224.3.4报警模块程序设计...........................................................................................................234.3.5时钟模块程序设计...........................................................................................................234.3.6温度模块程序设计............................................................................................................234.4小结...........................................................................................................................

1 / 45
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功