摘要液位测量在工业生产和现代生活中广泛的应用。随着自动化工业的发展,工业实际应用对液位测量的精度和速度有更高的要求。单片机控系统具有精度高,可控性强,设计方便,造价低等优点。
本文将采用单片机进行非接触式测量液位计的设计,能实现测量范围为1~400cm。整个系统包含硬件部分和软件部分。其中,选用STC89C51RC单片机作为整个系统的控制模块,选用显示数码管作为显示模块,选用HC-SR04超声波模块作为发射、接收模块。软件部分通过编写C语言控制程序实现。在测量时,单片机控制超声波发射电路发射超声波,经过反射后由单片机接收电路接收,通过超声波传播的时间可以计算出测量的距离。18985 毕业论文关键词 超声波 液位 STC89C51RC 测距
毕业设计说明书(论文)外文摘要
Title Design of ultrasonic liquid level meter
Abstract
Level measurement is widely used in industrial production and modern life.With the development of industrial automation,In the field of industrial practical application, the level measurement should have higher requirements in accuracy and speed.SCM control system with high precision, good controlling, simple design, and low cost.
This article will use the MCU to design a level measurement system with non-contact, which can measure range of 1~400cm.The whole system including hardware and software components.Besides,use STC89C51RC SCM as control module of the system, use digital display as the display module, use a HC-SR04 as ultrasonic transmitter and receiver modules. Software written in C language which use to control the whole system. In the measurement, the MCU control ultrasonic transmitter to send ultrasonic, and the reflecting singal is received by the ultrasonic receiver circuit.the measured distance can be calculated by the ultrasonic wave propagation time.
Keywords ultrasonic level STC89C51RC measure distance
目 录
1 绪论1
1.1 课题背景及意义1
1.2 课题的发展现状 1
1.3 超声波介绍 2
2 设计方案论述 4
2.1 系统方案 5
2.2 计时精度 6
2.3 论证设计方法 6
3 硬件电路设计 10
3.1 单片机系统设计 10
3.2 发射电路设计 14
3.3 接收电路设计 15
3.4 数码管显示模块 15
3.5 键盘电路设计 16
3.6 HC-SR04超声波模块 16
4 软件电路设计 17
4.1 主程序设计 17
4.2 主程序流程图 18
4.3 中断程序设计 20
4.4 部分仿真与调试 20
结束语 26
致谢 27
参考文献 28
附录A整体电路图 29