1、 1 西华大学电气信息学院智能化测控应用系统设计报告 智能液位传感器 摘 要 摘 要: 介绍了压力传感器的应用,设计了智能液位传感器。此设计通过压力传感器测出液体的压力,输出 0 - +5V的模拟电压通过 ADC0804采集转换成数字量送入单片机处理,由 RS232 串口通信送到上位机,并显示出高度。此设计能完成 0-1.5m 高度的液位测量,能精确到厘米。此设计主要由压力传感器,单片机, ADC0804 转换器构成。 关键词 : 智能液位传感器,单片机, AD转换器 Abstract: This article introduces the application of pressure s
2、ensor, and designs a intelligent level sensor. This design detects the liquid pressure through the pressure sensors, and it will send the voltage from 0 to 5V which is converted into digital quantity by the simulation ADC0804 acquisition to the SCM processing. Then the digital will be sent to the PC
3、 which shows the high by RS232 serial interface communication. This design can finish 0 to 1.5 m high level measurement, and accurate to cm. This design main have pressure sensor, a single-chip microcomputer, and ADC0804 converter to form. Keywords: Intelligence level sensor , Single-chip microcompu
4、ter, AD converter 2 西华大学电气信息学院智能化测控应用系统设计报告 目录 1 绪论 . 4 1.1 设计目的 . 5 1.2 设计任务与要求 . 5 1.3 智能液位传感器的基本原理 . 5 2 总体方案设计 . 6 2.1 智能液位传感器设计方案框图 . 6 2.2 方案论证 . 7 2.3 方案可能的扩展功能 . 8 3 单元模块电路的设计 . 9 3.1各单元模块功能介绍及电路设计 . 9 3.1.1 传感器输出部分 . 9 3.1.2 ADC0804 数据采集转化部分 . 9 3.1.3 单片机最小系统模块 . 10 3.1.4 RS232 模块 . 11 3.2
5、电路参数计算及 元器件的选择 . 12 3.2.1 元器件的选择 . 12 3.3 特殊元器件介绍 . 13 3.2.1 ADC0804 . 14 3.1.2 压力传感器 D3B . 16 3.4 个单元模块的联接 . 17 4 软件设计 . 19 4 1 软件设计原理及所用的工具 . 19 4.1.1 单片机部分 . 19 4.1.2 上位机 VB部分 . 20 4.2 软件的设计流程框图 . 22 4.3 软件设计总结 . 23 5 系统调试 . 24 5.1 硬件结构部分 . 24 5.2 VB部分 . 24 5.3 压力传感器部分 . 25 6 系统功能及指标参数 . 26 6.1系统功能 . 26