基于MSP430F149的矿井水文测量系统设计
发布时间:2018-08-05 17:54
【摘要】:奥灰水是引发煤矿突水事故的主要源头,给井下的工作人员生命安全带来危害。因此奥灰水和太灰水监测及治理是每个煤矿安全的重要工作之一。矿井水文测量系统以智能压力变送器为核心,以PT403传感器为前置测量元件,完成井下奥灰水和太灰水的数据采集,由智能压力变送器通过RS-485把传感器采集的数值传给上位机完成对奥灰水与太灰水的实时预警与监测。 文中详细介绍了水文检测系统的设计方案。矿井水文检测系统主要包括上位机和下位机两大主要部分。上位机部分为井上监控界面,使用visual basic6.0编程,RS-485通过串口服务器NPort5130模块与单片机进行通信,接收单片机采集的数据,进行井下实时监控。下位机部分是井下的测量系统,是以MSP430F149单片机处理器为核心,采用国产PT403压力探头为测量元件,把压力信号转化为电信号,送入MSP430F149进行数据处理,并通过RS-485串口把数据传给上位机。 上位机监控界面的设计主要利用visual basic6.0编程。由于visual basic6.0是一种面向对象的程序语言,其程序设计简单,对于初学者容易上手,它提供了基于控件的可视化窗口设计,在程序设计时给编程人员带来极大方便。visual basic6.0含有丰富的控件,它提供的winsocket控件,可以通过网口来进行数据传输,也可以通过串口软件来与单片机通讯,方便灵活。微软为windows系统内部封装有大量的应用接口函数,visual basic6.0也支持从应用程序中调用windows API函数(应用接口函数),使编程变得更加丰富。上位机不仅能进行数据监控,且能与短信猫进行通信,一旦井下数据发生异常,上位机就可以通过短信猫把数据发送相关负责人,从而可以对异常作出更快和更好地处理。 下位机的设计主要以TI公司生产的MSP430F149单片机微处理器作为核心。MSP430F149自身集成有12路A/D模块,可以实现模拟量信息采集。PT403压力探头为测量元件,该探头内部用热敏电阻对探头进行了温度补偿,信号经过LM358信号放大器件进行信号放大后送入处理器A/D通道。软件设计主要是对硬件功能的实现进行C语言编程,主要包括ADC信息采集程序设计、串口通信设计、LCD液晶显示程序设计、DS18B20温度采集程序设计、外部存储器AT24C02程序设计等。 PT403传感器由于其受到半导体材料特性的影响,在压力采集过程中受到温度的影响较大,通常表现为压力传感器的零点温度漂移和温度灵敏度失调。针对以上特点本文采用了数字滤波算法克服系统的随机误差和由于偶然因素引起的波动或者采样保持器不稳定引起的脉冲干扰。而对于由系统引起的误差本文采用了分段函数拟合的方法进行非线性校正,尽可能减小系统误差,提高智能变送器精度。
[Abstract]:Ordovician ash water is the main source of water inrush accidents in coal mines, which endangers the life and safety of underground workers. Therefore, the monitoring and control of Ordovician water and too ash water is one of the important work of every coal mine safety. The mine hydrological measurement system takes intelligent pressure transmitter as the core and PT403 sensor as the leading measuring element to complete the data acquisition of underground austenitic water and too grey water. The intelligent pressure transmitter transmits the data collected by the sensor to the upper computer through RS-485 to complete the real-time early warning and monitoring of the Ordovician and too grey water. The design scheme of hydrologic detection system is introduced in detail in this paper. Mine hydrological detection system mainly includes two main parts: upper computer and lower computer. The upper computer part is the well monitoring interface. RS-485 is programmed by visual basic6.0 to communicate with the single chip through the NPort5130 module of serial port server, receive the data collected by the single chip computer, and carry out real-time monitoring and control in the downhole. The lower part of the machine is a downhole measurement system, which takes MSP430F149 single chip processor as the core, adopts the domestic PT403 pressure probe as the measuring element, converts the pressure signal into electric signal, and sends the pressure signal into MSP430F149 for data processing. And through the RS-485 serial port to send the data to the upper computer. The design of upper computer monitoring interface mainly uses visual basic6.0 programming. Because visual basic6.0 is an object-oriented programming language, its program design is simple and easy for beginners, it provides a visual window design based on controls. Visual basic6.0 contains a lot of controls. The winsocket control it provides can transmit data through the network interface, and can communicate with the MCU through serial port software, which is convenient and flexible. Microsoft encapsulates a large number of application interface functions for windows systems. Visual basic6.0 also supports calling windows API functions (application interface functions) from applications, which makes programming richer. The upper computer can not only monitor the data, but also communicate with the short message cat. Once the underground data is abnormal, the upper computer can send the data to the responsible person through the short message cat, so that the abnormal can be handled faster and better. The design of the lower computer mainly takes the MSP430F149 microprocessor produced by TI company as the core. MSP430F149 itself integrates 12 Ar / D modules, which can realize the analog information collection. PT403 pressure probe can be used as the measuring element. The temperature of the probe is compensated by the thermistor inside the probe. The signal is amplified by the LM358 signal amplifier device and then sent to the processor A / D channel. The software design mainly carries on the C language programming to the hardware function realization, mainly includes the ADC information collection program design, the serial port communication design the LCD liquid crystal display program design and the DS18B20 temperature collection program design. External memory AT24C02 programming etc. PT403 sensors are greatly affected by temperature in the process of pressure acquisition because they are influenced by the characteristics of semiconductor materials. The pressure sensor is usually characterized by zero temperature drift and misadjustment of temperature sensitivity. In view of the above characteristics, the digital filtering algorithm is used to overcome the random error of the system and the pulse interference caused by the fluctuation caused by accidental factors or the instability of the sampling holder. In this paper, the piecewise function fitting method is used to correct the errors caused by the system in order to reduce the system error and improve the precision of the intelligent transmitter as much as possible.
【学位授予单位】:太原理工大学
【学位级别】:硕士
【学位授予年份】:2013
【分类号】:TD745
本文编号:2166544
[Abstract]:Ordovician ash water is the main source of water inrush accidents in coal mines, which endangers the life and safety of underground workers. Therefore, the monitoring and control of Ordovician water and too ash water is one of the important work of every coal mine safety. The mine hydrological measurement system takes intelligent pressure transmitter as the core and PT403 sensor as the leading measuring element to complete the data acquisition of underground austenitic water and too grey water. The intelligent pressure transmitter transmits the data collected by the sensor to the upper computer through RS-485 to complete the real-time early warning and monitoring of the Ordovician and too grey water. The design scheme of hydrologic detection system is introduced in detail in this paper. Mine hydrological detection system mainly includes two main parts: upper computer and lower computer. The upper computer part is the well monitoring interface. RS-485 is programmed by visual basic6.0 to communicate with the single chip through the NPort5130 module of serial port server, receive the data collected by the single chip computer, and carry out real-time monitoring and control in the downhole. The lower part of the machine is a downhole measurement system, which takes MSP430F149 single chip processor as the core, adopts the domestic PT403 pressure probe as the measuring element, converts the pressure signal into electric signal, and sends the pressure signal into MSP430F149 for data processing. And through the RS-485 serial port to send the data to the upper computer. The design of upper computer monitoring interface mainly uses visual basic6.0 programming. Because visual basic6.0 is an object-oriented programming language, its program design is simple and easy for beginners, it provides a visual window design based on controls. Visual basic6.0 contains a lot of controls. The winsocket control it provides can transmit data through the network interface, and can communicate with the MCU through serial port software, which is convenient and flexible. Microsoft encapsulates a large number of application interface functions for windows systems. Visual basic6.0 also supports calling windows API functions (application interface functions) from applications, which makes programming richer. The upper computer can not only monitor the data, but also communicate with the short message cat. Once the underground data is abnormal, the upper computer can send the data to the responsible person through the short message cat, so that the abnormal can be handled faster and better. The design of the lower computer mainly takes the MSP430F149 microprocessor produced by TI company as the core. MSP430F149 itself integrates 12 Ar / D modules, which can realize the analog information collection. PT403 pressure probe can be used as the measuring element. The temperature of the probe is compensated by the thermistor inside the probe. The signal is amplified by the LM358 signal amplifier device and then sent to the processor A / D channel. The software design mainly carries on the C language programming to the hardware function realization, mainly includes the ADC information collection program design, the serial port communication design the LCD liquid crystal display program design and the DS18B20 temperature collection program design. External memory AT24C02 programming etc. PT403 sensors are greatly affected by temperature in the process of pressure acquisition because they are influenced by the characteristics of semiconductor materials. The pressure sensor is usually characterized by zero temperature drift and misadjustment of temperature sensitivity. In view of the above characteristics, the digital filtering algorithm is used to overcome the random error of the system and the pulse interference caused by the fluctuation caused by accidental factors or the instability of the sampling holder. In this paper, the piecewise function fitting method is used to correct the errors caused by the system in order to reduce the system error and improve the precision of the intelligent transmitter as much as possible.
【学位授予单位】:太原理工大学
【学位级别】:硕士
【学位授予年份】:2013
【分类号】:TD745
【参考文献】
相关期刊论文 前10条
1 樊尚春;张秋利;秦杰;;基于样条曲线插值的压力传感器的温度补偿[J];北京航空航天大学学报;2006年06期
2 廖利芳;张劲松;李文耀;;基于GPRS的水文数据采集系统的设计[J];光通信研究;2007年01期
3 林汉;LM331压频变换器的原理及应用[J];国外电子元器件;1999年10期
4 田方正;皇甫大宏;沙永忠;;新一代机载数据采集系统的发展综述[J];测控技术;2007年03期
5 韩成浩;高晓红;;CAN总线技术及其应用[J];制造业自动化;2010年02期
6 李颀;张建军;李沙沙;丁明东;;基于串行通信的MATLAB GUI在压力传感器中的标定软件设计[J];计算机测量与控制;2010年07期
7 徐晖,李钢;基于Matlab的BP神经网络在大坝观测数据处理中的应用[J];武汉大学学报(工学版);2005年03期
8 胡温静;赵裕繁;陈添丁;;基于GSM模块的移动购物系统设计[J];现代电子技术;2009年15期
9 李建壮;杨彦涛;;传感器技术的应用与发展趋势展望[J];中国科技信息;2011年17期
10 梁伟锋;汪晓东;梁萍儿;;基于最小二乘支持向量机的压力传感器温度补偿[J];仪器仪表学报;2007年12期
,本文编号:2166544
本文链接:https://www.wllwen.com/kejilunwen/anquangongcheng/2166544.html