大连建站企业,网站怎么做防盗,微信平台网站开发,wordpress 中英文双语超声波自动测量物体液位系统的设计(任务书,毕业论文15000字)摘要本系统以STC89C52单片机为核心#xff0c;通过硬件电路连接和软件程序的编写实现通用型超声波自动测量物体液位系统的设计。其主要原理是由单片机控制超声波发射电路发射超声波#xff0c;超声波接收电路接收遇…超声波自动测量物体液位系统的设计(任务书,毕业论文15000字)摘要本系统以STC89C52单片机为核心通过硬件电路连接和软件程序的编写实现通用型超声波自动测量物体液位系统的设计。其主要原理是由单片机控制超声波发射电路发射超声波超声波接收电路接收遇到液面后反射回来的超声波回波单片机计时所用时间, 将测得时间带入相应公式即可求得当前液位;利用按键可以手动设置容器深度也可以在容器为空时自动测量出容器深度,达到通用型液位检测仪的设计;DS18B20测温模块实现当前空气温度的测量;最后通过LCD12864液晶不断更新显示当液位与温度。若液位超出预设的最高值,同时LED亮起报警。硬件部分包括STC89C52单片机超声波测距部分 LCD12864液晶显示部分DS18B20测温部分按键部分和LED报警部分。软件设计分为两块主程序和中断子程序。主程序完成初始化、超声波发射和接收距离计算、时间值的读取结果显示等工作,中断服务子程序主要完成报警工作。关键词超声波测距单片机液位测量温度补偿通用型测液位系统AbstractThis system use STC89C52 microcontroller as the core, through a combination of hardware and written of software program, achieve the design of general type liquid level measurement system. The main principle is controlled by the microcontroller ultrasonic transmitter circuit launch ultrasound and receives the echo reflected surface encountered while recording the time used microcontroller. Take the measured time into the appropriate formula to obtain the current level. We can set the depth of the container by keys. It is also very convenient to automatically measure the depth of containers by pressing a key when the containers are empty. So that, we can achieve a general type liquid level measurement system. The DS18B20 module can test the current temperature, and put the measured temperature into the temperature compensation formula can making the measurement more accurate results. Last updated through the LCD liquid crystal display the current level and the temperature. If the level exceeds the preset maximum value, LED display a warning red light alarm.STC89C52 microcontroller hardware including, ultrasonic distance measuring module, LCD12864 module, DS18B20 temperature test module, keys module and the LED alarm module. Software design is divided into two parts, the main program and interrupt service routine. Main program to initialize, transmit and receive ultrasound, distance calculation, get the time and the results display most of the major work. Interrupt service routine mainly finish the work of alrm.Key words: Ultrasonic distance measurement; SCM; liquid level measurement; Temperature Compensation; Universal liquid level measurement system目录第一章 绪论11.1 课题的意义和背景11.2 液位测量系统的现状11.3 国内外液位监测技术的发展方向和发展现状21.4 本章小结3第二章 超声波测液位系统42.1 超声波与超声波传感器42.2 超声波测液位原理42.2.1 超声波测距原理42.2.2 超声波测液位原理52.3 总体方案设计62.4 本章小结6第三章 硬件系统设计73.1 单片机系统73.1.1 单片机系统概述73.1.2 STC89C52单片机73.2 发射电路比较103.3 接收电路比较113.4 超声波模块133.4.1 超声波模块工作原理与特点133.4.2 超声波模块内部结构与工作时序143.5 LCD12864液晶显示模块163.6 温度测量模块173.7 报警模块183.8 按键设置模块193.9 系统电路连接193.10 本章小结20第四章 软件系统设计214.1 总体设计思想214.2 系统主程序224.3 温度补偿子程序224.4 基于LCD12864的显示子程序234.5 按键设置子程序244.6 基于DS18B20的测温子程序264.7 报警子程序274.8 本章小结27第五章 系统调试分析285.1 硬件调试285.2 故障问题解决285.3 实验数据295.4 误差分析30结论31参考文献32致谢33