毕业论文 下载本文

内容发布更新时间 : 2024/5/21 17:37:37星期一 下面是文章的全部内容请认真阅读。

西安航空职业技术学院

毕 业 设 计(论 文)

论文题目: 基于AT89C51的便携电子秤设计

所属系部: 电子工程系

指导老师: 职 称: 讲师

学生姓名: 班级、学号:

专 业: 应用电子技术

西安航空职业技术学院制 2011年 12 月 15日

西安航空职业技术学院

毕业设计(论文)任务书

题目: 基于AT89C51的便携电子秤设计

任务与要求:

(1)电子称可以测量0~10kg范围的物体。

(2) 测量的精度为0.01kg。

时间: 2011 年 10 月 8 日 至 2011 年 12月 8 日共 8 周 所属系部: 电子工程系 学生姓名:

学 号:

专业: 应电用电子技术

指导单位或教研室: 应用电子技术教研室 指导教师:

职 称: 讲师

西安航空职业技术学院制

2011年12月15日

毕业设计(论文)进度计划表

日 期 2011.10.08至2011.10.09 2011.10.10至2011.10.17 工 作 内 容 论文选题 执 行 情 况 完成 指导教师 签 字 查阅相关文献资料 完成 2011.10.18至电路的软件与硬件设计 2011.11.08 2011.11.09拟定论文提纲及基本框至架 2011.11.15 2011.11.16至2011.11.23 2011.11.24至2011.12.06 2011.12.07至2011.12.08 撰写论文初稿 完成 完成 完成 完善并修改论文 完成 论文定稿 完成 教师对进度计划实施情况总评 签名 年 月 本表作评定学生平时成绩的依据之一。

基于单片机的便携电子秤系统硬件部分

摘要

随着微电子技术的应用,市场上使用的传统称重工具已经满足不了人们的要求。为了改变传统称重工具在使用上存在的问题,在本设计中将智能化、自动化、人性化用在了电子秤重的控制系统中。本系统主要由单片机来控制,测量物体重量部分由称重传感器及A/D转换器组成,加上显示单元,此电子秤俱备了功能多、性能价格比高、功耗低、系统设计简单、使用方便直观、速度快、测量准确、自动化程度高等特点。本系统以AT89C51单片机为主控芯片,外围附以称重电路、显示电路、报警电路、键盘电路等构成智能称重系统电路板,从而实现自动称重系统的各种控制功能。此设计所完成的智能称重系统很大程度上满足了应用需求。

关键词 : AT89C51;称重传感器;A/D转换器;LCD显示器

Abstract: With the application of micro-electronics technology, tradition ponderation instrument used in market has been not satisfaction with hunman requirements already. In order to make up for the traditional apparatus shortcoming, we improve the apparatus's control system with intelligence and automation. This system is mainly controlled by microcontroller, the section of height measurement accomplish by supersonic sensor, the section 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 mainly controlled by the microcontroller AT89C51 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 function of the apparatus.

Key words: AT89C51,ponderation –sensor,A / D converter,LCD display;

目 录

1 绪 论 .................................................................................................................................................................. 1 1.1引言 ............................................................................................................................................................. 1 1.2 选题背景和意义 ........................................................................................................................................ 1 1.3 国内外电子称发展及成果 ........................................................................................................................ 2 2系统方案设计 ..................................................................................................................................................... 4 2.1 系统总体设计方案比较与论证 ................................................................................................................ 4 2.2 硬件的方案设计与论证 ............................................................................................................................ 6 2.2.1 传感器 ............................................................................................................................................... 6 2.2.2 前级放大器部分 ............................................................................................................................... 9 2.2.3 信号转换 ......................................................................................................................................... 10 2.2.4 控制单片机的选型 ......................................................................................................................... 12 2.2.5 显示模块 ......................................................................................................................................... 13 2.2.6 键盘输入 ......................................................................................................................................... 15 2.2.7 电源模块 ......................................................................................................................................... 16 2.3 具体实施方案简介 .................................................................................................................................. 17 3系统硬件设计 ................................................................................................................................................... 18 3.1 AT89C51的主控电路 ............................................................................................................................... 18 3.1.1 AT89C51简介 .................................................................................................................................. 18 3.1.2 引脚说明 ......................................................................................................................................... 18 3.1.3 电路具体设计 ................................................................................................................................. 20 3.2 信号放大电路 .......................................................................................................................................... 21 3.2.1 芯片INA126简介 ........................................................................................................................... 21 3.2.2 INA126特点及引脚说明 ................................................................................................................ 21 3.2.3 具体电路设计 ................................................................................................................................. 22 3.3 信号转换电路 .......................................................................................................................................... 22 3.3.1芯片LM331应用 .............................................................................................................................. 22 3.3.2 LM331功能介绍 .............................................................................................................................. 22 3.3.3 具体电路设计 ................................................................................................................................. 23 4系统软件设计 ................................................................................................................................................... 25 4.1 C语言在单片机中的应用 ....................................................................................................................... 25 4.2 电子称的软件设计与实现 ...................................................................................................................... 25 4.3主程序流程图 ........................................................................................................................................... 26 4.4 子程序设计 .............................................................................................................................................. 27 4.4.1 V/F转换启动及数据读取程序设计 .............................................................................................. 27 4.4.2显示子程序设计 .............................................................................................................................. 28 4.4.3键盘扫描子程序的设计 .................................................................................................................. 29 结束语 .................................................................................................................................................................. 30 谢 辞 .................................................................................................................................................................. 31 文 献 .................................................................................................................................................................. 32