1、 本科毕业设计 (自然科学) 题 目: 超声波液位控制系统的设计 院(系、部) : 机电科学与工程系 学 生 姓 名: 指 导 教 师: 职 称 讲师 2014 年 5 月 18 日 摘要 I I 摘 要 对于超声波液位控制系统这个课题来说有一个不得不解决的实际问题:液位检测。 而为了解决这个问题,所以开发了一种基于单片机的超声波液位检测仪。深入讨论了用 超声波作为信号源进行液位检测的可行性以及它的优越性。首先,超声波可以在气体、 液体、固体和固溶体等介质中进行有效的传播。再者超声波没有有害辐射,具有穿透能 力强,方向性好,容易获得较集中的声能,在介质中传播距离远的特点。因此被广泛应 用于石油
2、、化工等诸多领域。而现在单片机技术已日渐成熟,价格低廉、性能优异、灵 活性高、稳定性好。因此本文采取了以 AT89C51 单片机作为系统核心部件与超声波技 术合二为一,设计出的一种非接触式液面检测控制系统,具有重要的现实意义和应用价 值。 关键词:液位测量;AT89C51 单片机;超声波传感器 摘要 II II Abstract The ultrasonic liquid level control system of this subject is a practical problem to solve: liquid level detection. In order to solve
3、this problem, so a kind of ultrasonic liquid level measuring instrument based on. Discusses the feasibility of liquid level detection and its superiority by ultrasonic signal source. First of all, gas,liquid, ultrasonic in solid and solution of effective communication is body medium.Furthermore the
4、ultrasonic no harmful radiation,has a strong penetrating ability,good directivity, easy access to a centralized energy, propagation distance in the medium. It is widely used in petroleum, chemical and many other fields. And now the single chip technology has become increasingly mature, low prices, e
5、xcellent performance, high flexibility, good stability. This paper takes AT89C51 MCU as the core component of Become system with ultrasonic technology, a non contact type liquid level detection and control system design, has the important practical significance and application value. Keywords: liqui
6、d level measurement; AT89C51 MCU; ultrasonic sensor 目录 III 目 录 摘 要 I 1 绪论 1 1.1 论文研究背景与意义 1 1.2 国内外发展的现状 1 2 设计总体思路 1 2.1 超声波液位控制系统的设计要求 错误错误!未定义书签。未定义书签。 2.2 设计具体内容 错误错误!未定义书签。未定义书签。 2.3 设计方案 错误错误!未定义书签。未定义书签。 3 硬件设计 2 3.1 单片机系统 2 3.1.1 AT89C51 性能 . 3 3.1.2 AT89C51 各引脚功能 . 3 3.2 外围电路的设计 2 3.2.1 超声波的发射电路 5 3.2.2 超声波的接收电路 错误错误!未定义书签。未定义书签。 3.2.3 LED 的显示电路的设计 . 错误错误!未定义书签。未定义书签。 3.2.4 电源电路 10 3.2.5 报警电路 .11 3.2.6 控制电路 12 3.3 控制系统的设计 13 3.