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

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

届毕业生

毕业设计说明书题目: 基于单片机的称重控制系统设计

院系名称:

专业班级:

学生:学号:

指导教师:教师职称:

摘要

由于称重器具在商业贸易中的重要作用,称重技术的发展一直都受到人们的关注。本文设计实现了一种新型的多功能电子称重系统,该系统采用了最为常见的C51系列单片机STC89C52作为主控芯片,系统可以准确称量待测物的质量,使用者设置好单价后,系统还能自动地计算总价并可以把测量结果直观地显示在液晶屏幕上,同时本系统还具有超量程自动报警功能。另外本系统还扩展了电子万年历和电子温度计的功能,使得系统更加实用。本文论述了课题提出的背景,系统方案确定的依据以及系统具体硬件电路的设计方案和软件编程的基本思路,最后针对系统的测试结果进行了分析。

关键词:电子称重系统;单片机;称重传感器;A/D转换;时间和温度;人机交互

Title Design of weighing control System Based On MCU

ABSTRACT

Due to the important role of weighing apparatus in the trade, development of

weighing technology has been paid close attention to by people. This paper presents

a new type of multifunctional electronic weighing system .This design is based on the

most common C51 series microcontroller STC89C52 as a control core, it realized the

basic functions of electronic scales. This design can acquisition quality accurately,

display test data intuitively, set the price for diffident things and automatic alarm

when it is over range. At the same time, the system also extends the function of electronic calendar and the thermometer, making the system more intelligent and practical. This paper discusses the background of the subject,how the system scheme

is determined, design of the hardware circuit system and software programming. At the

end of the paper, the system test results were analyzed.

Key Words Electronic scale; single chip microcomputer; sensor; A/D conversion;

human-computer interaction; time and temperature

目录

摘要.......................................................................... I ABSTRACT..................................................................... II 第1章前言 (1)

1.1选择课题的背景和意义 (1)

1.2电子秤的现状及未来的发展趋势 (1)

1.3设计的主要任务 (2)

第2章系统方案设计 (3)

2.1系统总体构想及其工作原理 (3)

2.2系统方案的确定 (4)

2.3各个模块选型的分析 (5)

第3章系统硬件电路的设计 (16)

3.1MCU的最小系统电路设计 (16)

3.2称重传感器和A/D转换芯片HX711的电路设计 (16)

3.3数据输入模块的电路设计 (17)

3.4液晶显示模块的电路设计 (17)

3.5报警模块的电路设计 (18)

3.6时钟模块和温度模块的电路设计 (18)

第4章系统软件部分的设计 (19)

4.1编程语言和开发工具的选择 (19)

4.1.1 编程语言的选择 (19)

4.1.2软件开发环境的选择 (19)

4.2程序设计的总体思路 (19)

4.3各个模块程序设计说明 (21)

4.3.1 键盘扫描程序 (21)

4.3.2 A/D转换程序设计 (21)

4.3.3LCD显示程序设计 (22)

4.3.4 报警模块程序设计 (23)

4.3.5 时钟模块程序设计 (23)

4.3.6温度模块程序设计 (23)

4.4小结 (24)

第5章系统整体校调 (25)

5.1调试方法和步骤 (25)

5.2调试过程中出现的问题及其解决方法 (26)

5.3调试结果 (26)

第6章讨论与展望 (28)

6.1结论 (28)

6.2系统需改进的地方 (28)

致 (29)

参考文献 (30)

附录(部分源程序) (29)

相关文档
最新文档