基于单片机的智能电子秤设计范本
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
谄I普fl
HUAIHAI INSTITUTE OF TECHNOLOGY
本科毕业设计
基于单片机的智能电子秤设计
Desig n of in tellige nt electro nic scale based
on
MCU b5E2RGbCAP
学院:电子工程学院
专业班级:电子信息工程DZ电子091班
学生姓名:孙昕学号:2011140603
2013 年 6 月
基于单片机的是能电子秤设计
摘要:伴随着广泛应用的微电子技术,人们对电子秤的要求越来越高。本电路的控制核心为AT89S52单片机,和称重电路,显示电路,键盘电路一起构成的智能称重系统,自动称重系统,以实现各种不同的控制功能。
这个系统是为了电子称的称重、计算价格还有数据处理进行钻研的。为了
详细说明如何用单片机对采样的数据进行处理,本实验研究了对数据采集、转换、计算等问题。并且讨论了单片机系统中最重要的计算问题,讨论的结果表明用本系统用软件设计的话将会是系统更加完美。本文给出了智能电子硬件设计,详细的分析了基础上已知软件的电子控制方法。可以说,本设计完成的电子秤在最大程度上满足了应用的需求。本设计中的电子秤有很多特点,如功耗低、性价格比高、简单方便的系统设计、速度快、测量的数据准确等特点。因为单片机控制的电子称不仅构造一目了然,而且制造的资金也很少,因此大部分的人们都很喜爱,本文将对于这些进行详细讨论。
关键词:AT89S52,压力传感器,单片机,A/D转换
Design of intelligent electronic scale based on MCU
Abstract: With the exte nsive applicatio n of microelectro nics tech no logy, people have become increasingly demanding electronic scales. The core of the control circuit for the AT89S52 microcontroller, and weighing circuit, display circuit, keyboard circuit together constitute the intelligent weighing system, automatic weighi ng system, in order to achieve a variety of con trol functions.
This system is known for electronic weighing, calculating prices have to delve into the data processing. For detailed instructions on how to use microcontroller sampled data process ing, this experime ntal study on data acquisiti on, conv ersi on, calculation and other issues. SCM system and discusses the most important calculation discussed results show the system used with the software design, then the system will be more perfect. In this paper, intelligent electronic hardware design, based on a detailed analysis of the electronic control method known software. It can be said, the design is completed electronic scales to the maximum exte nt to meet the applicati on requireme nts. The desig n of the electro nic scale has many characteristics, such as low power consumption, sexual price is high, the system desig n is simple and convenien t, fast, and accurate measureme nt data characteristics. Because microprocessor con trolled electr oni cs, said not only con struct a gla nee, and made very little mon ey, so most of the people were like, this article will discuss these in detail.
Keywords: AT89S52; pressure sensqr microcontroller ;A/D conversion
目录
1.绪论 ............................ 5 p1EanqFDPw
1.1 电子秤的发展现状和发展趋势............................. 5DXDiTa9E3d
1.2 项目研究的意义................................................................ 6..RTCrpUDGi T
1.3 可行性分析................................................................ 6..5PCzVD7Hx A
2.系统方案论证与选型 ...................... 6jLBHrnAILg
2.1 设计要求............................................... xH6AQX74J0X
2.2 整体功能................................................................ 7..L.DAYtRyKf E
2.3 电子秤的工作原理....................................... 7..Zzz6ZB2Ltk
2.4 总体设计方案........................................... 8..dvzfvkwMI1
3. 系统硬件设计......................... 8rqyn14ZNXI
3.1 单片机概述............................................. Em8xvxOtOco
3.2 AT89S52 单片机简介 .................................... 8..SixE2yXPq5
3.3 最小系统电路.......................................... 1..16ewMyirQFL
3.4 键盘电路............................................................... 1..2kavU42VRU s
3.5 时钟电路.............................................. 1..
4.
y6v3ALoS89
3.6 液晶显示电路............................................................... 1..5M2ub6vSTn P
3.7 压力感应电路............................................................... 1..70YujCfmUC w
3.8 电源电路............................................................... 2..0eUts8ZQVR d
3.9 本章小结...............................................
2sQ0sAEJkW5T
4 系统软件设计 ........................ 20GMsIasNXkA
4.1 编程语言及开发工具的选择...............................
2T1IrRGchYzg
4.2 主程序设计............................................................... 2..17EqZcWLZN X
4.3 显示模块流程图及子程序的设计........................... 2. 2lzq7IGf02E
4.4 按键处理程序