毕业论文

打赏
当前位置: 毕业论文 > 自动化 >

AT89S52单片机电子秤研究与设计+电路图+程序

时间:2021-04-08 21:51来源:毕业论文
以AT89S52单片机为核心处理部件,综合使用SP20C-G501传感器、矩阵键盘、数字显示单元等功能模块,结合硬件电路设计与软件编程技术,给出一种电子秤的实现方案,并对方案进行了仿真验

摘要 : 电子秤作为一种称重计量仪器,广泛应用于家庭生活、商品流通等领域,为满 足并解决对称重提出的“快速、准确、连续、自动”称量要求,同时有效地消除人为误差, 使之更符合法制计量管理和工业生产过程控制的应用要求,本文在对电子称重的原理及实 现方法研究的基础上,以 AT89S52 单片机为核心处理部件,综合使用 SP20C-G501 传感器、 矩阵键盘、数字显示单元等功能模块,结合硬件电路设计与软件编程技术,给出一种电子 秤的实现方案,并对方案进行了仿真验证。实验结果表明,该方案简单易行,操作简单, 在实现称重功能的同时还具备超限报警等功能。65130

毕业论文关 键 词 : 单片机,电子称,AT89S52

Abstract:Electronic weighing scale as a measuring instrument, widely used in family life, commodities, and other fields, to meet and resolve on the weighing proposed "fast, accurate, continuous, automatic" weighing requirements, while effectively eliminating human error, so it more compatible with the application of legal metrology management and control of industrial processes, on the basis of the principles and implementation of electronic weighing research, AT89S52 microcontroller as the core processing components, integrated use SP20C-G501 sensor matrix keyboard, digital the display unit and other functional modules, a combination of hardware circuit design and software programming techniques to give a electronic scale implementations, and a simulation program. Experimental results show that the program is simple, easy to operate, while weighing the function also has overrun alarm.

Keywords:electronics,    microcontroller,   AT89S52

1  绪论5

1.1 称重技术的发展5

1.2 电子秤的组成以及工作原理5

1.3 基本实现思路5

系统方案论证与选型. 6

2.1 CPU 的选择方案6

2.2 传感器的选择 6

2.3 放大电路的选择方案.7

2.4 A/D转换器的选择.7

2.5 键盘处理部分方案论证.8

2.6 显示器部分的选择.8

2.7 超量程报警部分选择.8

3  硬件电路设计. 9

3.1 AT89S52 介绍.9

3.2 A/D 转换器与 AT89S52 单片机接口电路设计10

3.3 显示电路与 AT89S52 单片机的接口电路设计.13

3.4 键盘电路与 AT89s52 的接口电路设计13

3.5 报警电路的设计.14

4  系统软件设计.  15

4.1 主程序设计.16

4.2 子程序设计.18

4.2.1 A/D 转换启动及数据读取程序设计.18

4.2.2 数制转换子程序设计.18

4.2.3 显示子程序设计19

4.2.4 键盘扫描子程序的设计20

4.2.5 报警子程序设计21

5 展望未来.22 结论.23 参考文献.24 致谢.25 附录.26

1 绪论

1.1 称重技术的发展

称重与人们的生活密切相关,在我们的生活中,离不开称重。从以前的天平,到杆秤, 再到之后的地磅,最后现在各种各样的电子秤,还有超乎想象的红外线、超声波称重。近 年来,电子秤发展突飞猛进,性能、精度、体积、智能等因素更加满足人们的需求。

1.2 电子秤的组成及其工作原理

电子秤其原理和普通的杆秤的原理一样,都是将物体的质量等价的表示出来,与之相 比,电子秤更加的快捷,精确,方便。电子秤可以简单的分为三部分,首先称重,将物体 质量通过一定的函数关系转换成电信号,然后分析,通过电子秤里面的 cpu 分析得到物体 的质量,期间可以增加其他的运算,比如计算价格等,最后显示,一般使用 LCD 显示出数 值、价格等。 AT89S52单片机电子秤研究与设计+电路图+程序:http://www.751com.cn/zidonghua/lunwen_72607.html

------分隔线----------------------------
推荐内容