1、 毕毕 业业 设设 计计 (论论 文文) 机械与电气工程 学院 专业 题目:基于磁伸缩的线性液位计设计(软件设计) 完 成 日 期: 20011 年 5 月 20 日 基于磁伸缩的线性液位计设计(软件设计)基于磁伸缩的线性液位计设计(软件设计) Based on magnetostrictive linear liquidometer design (software design) 摘 要 本设计为基于磁致伸缩原理的线性液位计设计,共包括稳压电源、A/D转换显示电 路、按键控制电路、RS485通讯电路和单片机控制电路五个部分。首先通过磁致伸缩液位 传感器对液位进行实时采集,但由于输出是标准的
2、4-20mA电流信号,故不需进行信号的 放大,直接送A/D转换电路进行转换,然后经AT89S51单片机并存放数据,同时将采集的 液位送入液晶显示模块进行显示。本系统可通过六个按键“设置,加1,减1,左移,右 移,确认”, 分别用于控制对单片机的时间和液位初值。另外,本系统还可通过RS485 电路对数据进行远距离传输。 关键词关键词: 磁致伸缩液位计 实时采集 AT89S51 RS485通讯 Abstract This design based on magnetostrictive principle for the design of linear liquidometer real-tim
3、e control, level position with LCD actual pressure and time, with buttons adjust clock and level cap height, system level minimum degree of distinction 0.1 mm. Including : manostat, signal processing and amplifying circuit, A/D conversion display circuit, button control circuit, RS485 communication
4、circuit and single-chip microcomputer control circuit. Design for the control chip AT89S51, the chip powerful function, and can satisfy the design. Keywords: : level gauge Level measurement AT89S51 RS485uniform 基于磁伸缩的线性液位计设计 目 录 基于磁伸缩的线性液位计设计(软件设计) 2 摘 要 3 Abstract 4 第一章 绪 论 . 7 第二章 系统总体设计 . 8 2.1 研究内容 8 2.2 课题分析 9 2.3 单片机核心部分的总体设计 9 2.4 研制过程 . 10 2.5 其他说明 . 11 第三章 硬件设计 12 3.1 MCS-51 系列单片机内部结构及功能部件 12 3.2 MAX197 的概述 . 16 3.2.1 MAX197 的控制字 . 17 3.2.2 数据的读取 19 3.3 LCD12864 简介 20 3.3.1 概述 20