1、 I 基于单片机控制的电子秤基于单片机控制的电子秤 XX XX 学院 XXX 班 学号 XXXXX 指导教师 XXX 摘摘 要要 随着微电子技术的应用,市场上使用的传统称重工具已经满足不了人们 的要求。 为了改变传统称重工具在使用上存在的问题, 在本设计中将智能化、 自动化、 人性化用在了电子秤重的控制系统中。 本系统主要由单片机来控制, 测量物体重量部分由称重传感器及 A/D 转换器组成,加上显示单元,此电子 秤俱备了功能多、性能价格比高、功耗低、系统设计简单、使用方便直观、 速度快、测量准确、自动化程度高等特点。 本系统以 AT89S52 单片机为主控芯片,外围附以称重电路、显示电路、 报
2、警电路、键盘电路等构成智能称重系统电路板,从而实现自动称重系统的 各种控制功能。可以说,此设计所完成的电子秤很大程度上满足了应用需求。 关键词:关键词:键盘 AT89S52 称重传感器 A/D 转换器 LCD 显示器 II The electronic scaledesign based on microcontroller Abstract With the application of micro-electronics technology, tradition ponderation instrument used in market has been not satisfaction
3、 with hunman requirements already. In order to make up for the traditional apparatus shortcoming, we improve the apparatuss control system with intelligence and automation. This system is mainly controlled by microcontroller, the section of height measurement accomplish by supersonic sensor, the sec
4、tion of weight measurement accomplish by weight sensor and A/D transformer, this apparatus have many characteristic such as having more function, consume less energy, small and move easily, low price, measure precisely, the speed is quick, automatic work without people and so on. The system is mainl
5、y controlled by the microcontroller AT89S52, the periphery is consist of the circuit of clock and calendar, the circuit of measure height and weight, the circuit of display and print, all of these comprise the circuit board of the intelligent apparatus of height and weight. It can achieve all functi
6、on of the apparatus. Keywords: keyboard AT89S52 ponderationsensor A/Dconverter LCDDisplay 目目 录录 III 前前 言言 1 第第 1 1 章章 总体方案设计总体方案设计 . 3 第 1.1 节 称重技术和衡器的发展 . 3 第 1.2 节 电子秤的组成 4 第 1.3 节 设计思路. 6 第第 2 2 章章 系统方案论证与选型系统方案论证与选型. 7 第 2.1 节 控制部分 . 7 第 2.2 节 数据采集部分 8 第第 3 3 章章 硬件电路设计硬件电路设计 . 14 第 3.1 节 AT89S52 的最小系统电路 . 15 第 3.2 节 电源电路设计 18 第 3.3 节 数据采集部分电路设计 . 19 第 3.5 节 键盘电路与 AT89S52 单片机接口电路设计. 26 第 3.6 节 报警电路的设计 . 27 第第 4 4 章章 系统软件设计系统软件设计 . 29 第 4.1 节 主程序设计 29 第 4.2 节 子程序设计 31 第 4.3 节 仿真 35 结结