单片机的薄膜谐振式水位传感器的高度测量用频率计的设计与制作(
1.无需注册登录,支付后按照提示操作即可获取该资料.
2.资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用.
密 惠 保
如有需要请联系 QQ:306826066
[来源:http://www.think58.com]
摘 要
本文介绍了一种以单片机(AT89C51)为核心与薄膜谐振式水位传感器配套使用的液位高度测量用频率计的设计与制作。还介绍了谐振式水位传感器的新型传感原理,传感器的结构,数字振荡电路的特点,阐述了水位与频率的对应关系。薄膜谐振式水位传感器内置三点式水位传感器振荡电路,该振荡电路的固有频率随水位的变化而变化,通过检测该振荡电路的固有频率来判定水位的高低。
该频率计直接利用单片机内部的计数器对薄膜谐振式水位传感器的频率脉冲信号进行计数,然后利用单片机的定时功能实现对频率的检测,最后通过LED动态显示电路显示数值。在设计中应用了单片机的运算和控制功能,满足测量的精度要求,该频率测量仪器测量误差小于±10Hz测频性能稳定可靠,可单独使用,也可方便嵌入系统中。 [资料来源:http://www.THINK58.com]
该频率计具有结构简单、价格低、精度高、操作简单、并且降低产品的成本,有利于新产品的设计与研制、等特点。随着单片机应用技术的发展,越来越多的测量仪器都采用单片机作为系统进行设计,应用单片机进行系统设计时系统结构简单、控制方便、硬件设计需要外围器件较少,软件设计可采用汇编语言编程,汇编语言具有编程方便、运算效率高、占用内存少等优点。 [资料来源:http://www.THINK58.com]
关键词: 液位检测;频率测量;传感器;单片机 [资料来源:http://www.THINK58.com]
Abstract
This paper presents the design and fabrication of a Microprocessor (AT89C51)based film resonant with the water level sensor supporting the use of the liquid level measurement frequencymeter.The principle of new resonator water level sensor is mainly introduced.The internal structure of this Sensor and the characteristic of numeral oscillation circuit are analyze dindetails.There ationship between frequently and water level is expounded.Films resonant water level sensor built-in three-point level sensor oscillation circuit.The oscillator circuit changed with the natural frequency of the water level. By detecting the oscillation circuit natural frequency to determine the level of water. [资料来源:http://www.THINK58.com]
The frequencymeter use the Microprocessor internal counter to counting the film resonant frequency of the water level sensor pulse,then Microprocessor regular function to achieve frequency testing, final adoption of LED display circuit dynamic numerical show.Application of the design of the 89C51 operation and control functions,Meet the required precision measurement,The error of the frequency measurement instrument is less than ±10Hz,Performance measurement frequency stability and reliability,Also it can be used alone, and easily embedded in the system.
The frequency- meter also has a simple structure, low cost, high accuracy and simple operation,reduce the cost of the product and facilitate the design and development of new product and so on. With the development of the Microprocessor technology, a growing number of measuring instruments are used as a single chip computer system design. Microprocessor system design is simple, easy to control, hardware design requires fewer external components, Software Design use assembly language programming, because assembly language with high computational efficiency and low memory consume.
[资料来源:http://think58.com]
Keywords: Water Level Measurement; Frequency Measurement; Sensors;
Microprocessor
目 录
1 绪论...............................................................1
1.1选题的目的及意义 1
1.2 频率测量仪器的现状及发展 1
1.3 频率计的设计内容及要求 2
2 薄膜谐振式水位传感器应用...........................................3
2.1 薄膜谐振式水位传感器概述 3
2.1.1 薄膜谐振式水位传感器的结构 3
2.1.2水位传感器的工作原理 3
2.2薄膜谐振式水位传感器的功能简介 4
2.2.1水位检测 4
2.2.2水位与频率关系的对应 4
3 频率计总体方案设计.................................................6
3.1方案论证与比较 6
3.1.1 方案一 6
3.1.2 方案二 7
3.2 方案选择 7 [资料来源:http://think58.com]
4 频率计硬件分析与设计...............................................8
4.1频率计系统的组成与基本工作原理 8
4.1.1 系统组成 8
4.1.2 系统设计原理 8
4.1.3 测频原理 9
4.2 AT89C51单片机在本系统中的应用 9
4.2.1 AT89C51简介 9
4.2.2 AT89C51器件的基本结构 11
4.2.3 AT89C51的定时器/计数器 13
4.2.4 AT89C51外围电路设计 14
4.3 地址锁存器74LS373介绍 14
[版权所有:http://think58.com]
4.4 八路反相缓冲器74LS240应用 15
4.5 显示电路 16
4.5.1显示电路设计 16
4.5.2单片机驱动数码管原理 17
4.6 硬件总电路图 17
5 软件设计.........................................................18
5.1主程序设计 18
5.2 中断服务子程序设计 19
5.3 显示子程序设计 20
6 运行与调试........................................................21 [资料来源:http://THINK58.com]
6.1硬件调试 21
6.2 软件程序调试 22
6.2.1 MedWin仿真软件简介 22
6.2.2 汇编语言程序的仿真调试 22
6.3系统联调 23
7 结论与展望........................................................25
7.1 结论 25
7.2 展望 25
谢辞................................................................26
参考文献............................................................27
附录 1..............................................................28 [版权所有:http://think58.com]
程序清单 28
附录 2..............................................................33
硬件总电路图 33
1绪论
1.1选题的目的及意义
频率测量仪器在生产和科研的各个部门都有使用,也是某些大型系统的重要组成部分;利用单片机的定时计数功能设计的信号频率测量仪,可单独使用,也可方便嵌入系统中。实现频率测量有专用的频率测量仪器,但不易用于特殊场合。本文介绍了一种以单片机为核心构成的与薄膜谐振式水位传感器配套使用的专用频率计。该频率计直接用单 [来源:http://www.think58.com]
[资料来源:http://think58.com]
[资料来源:http://think58.com]