当前位置:文档之家› 智能压力传感器的研究与开发定稿

智能压力传感器的研究与开发定稿

智能压力传感器的研究与开发摘要为了提高压力传感器的精度,解决功能单一的问题设计了一种新型的智能压力传感器。

该压力传感器以MSP430单片机为控制核心,通过A/D转换接口实现对压力传感器的温度和压力信号的采集,利用BP网络算法实现了对采集信号的数据拟合,利用LED显示,利用RS485串口通讯实现数据交换及压力值输出,完成功能要求。

详细叙述了压力传感器的温度补偿方法,重点讨论了人工神经网络中的BP网络算法。

BP网络算法主要包括BP网络的结构,基于MATLAB神经网络工具箱的BP网络仿真。

根据BP网络的数据连接关系实现了BP网络的C语言表示,根据BP网络的权值、阈值由数组连接实现了向MSP430单片机的程序移植,完成信号的控制。

提出了基于遗传模拟退火BP网络算法的压力传感器温度补偿系统。

设计了压力传感器的硬件电路。

利用MPM280压力传感器测量压力,通过放大器实现温度和压力信号的放大,利用MSP430自带A/D转换的12位MSP430单片机实现信号处理,通过RS485实现输出,设计了显示功能,设计了丰富的电源电路,并且通过相应的电压转换芯片实现对各个模块的不同电压供电。

实现了压力传感器的软件设计,在MSP430编译软件IAR上利用C语言实现了初始化子程序,温度和压力A/D采样程序,BP网络信号处理子程序,显示子程序和RS485通讯子程序。

设计了基于MATLAB GUI的串行通讯压力传感器标定软件,在GUI上实现了对单片机的信号采集,BP网络训练以及对单片机的串行通信实现的在线标定的功能。

研究设计的智能压力传感器具有体积小、精度高,并实现了基于MATLAB的BP网络在线标定。

通过仿真对软、硬件进行了充分的调试,效果良好,在工业现场已经应用实现,在众多压力测控系统中有着广阔的应用前景。

关键词:压力传感器,MSP430单片机,温度补偿,BP网络算法RESEARCH AND DEVELOPMENT OF SMART PRESSURE SENSORABSTRACTA new type of smart pressure sensor is designed for the problem of pressure sensor's output low precision and single function.The pressure sensor takes the MSP430 MCU as control core, and temperature and pressure signal gathering is realized through A/D converter interface and the data fitting of the collected signals is realized by BP network algorithm, and the functional requirements are completed with the use of LED display, with the use of RS485 serial communication for data exchange and the pressure value output.This paper describes a pressure sensor temperature compensation method, focused on the artificial neural network BP network algorithm. BP network algorithm includes BP network structure, based on MATLAB neural network toolbox of the BP network emulation. The BP network is expressed by C language according to BP network data connection relations, as well as the BP network to the MSP430 microcontroller program transplantation according to BP network weights, the threshold achieved by the array of connections. And the genetic simulated annealing algorithm for BP network pressure sensor’s temperature compensation system is proposed.The circuit of this pressure sensor is designed, using MPM280 pressure sensors to measure pressure, using amplifier to deals with temperature and pressure, using A/D conversion of 12-bit MSP430 microcontroller for signal processing, achieved output through the RS485, display is designed, the design of power supply circuit is enough, and through the corresponding voltage conversion chip for each module of the different voltage supply.To achieve a pressure sensor-based software design, software, IAR's MSP430 compiler to use C language to achieve the initialization subroutine, temperature and pressure of A/D sampling procedures, BP network signal processing routines, display routines, and RS485 communications subroutines, designed based on MATLAB GUI for serial communication pressure sensor calibration software, in the GUI to achieve signal acquisition of MCU, BPnetwork training and the microcontroller serial communication to achieve on-line calibration function.The research design of smart pressure sensor system has the characteristics of small siz e、low cost、reliability、fast response and high degree of intelligence , and the online calibration of BP network in MATLAB is realized.A full debugging for the hardware and software is achieved through simulation,and has a good effect.The application in the industrial field has been achieved,and in many pressure measurement and control system has broad application prospects.KEY WORDS:Pressure sensor, MSP430 microcontroller, temperature compensation, BP network algorithm目录1 绪论1.1 传感器相关介绍信息革命的两大重要支柱是信息的采集与处理,信息采集的关键是传感器,传感器技术[1,2]已经成为现代信息技术的重要支柱之一,在当代科学技术领域有着重要的地位。

传感器的性能在很大程度上决定着整个信息技术的性能,其生产能力与应用水平直接影响到技术的发展与应用。

传感器种类繁多,其是和人类的感觉器官相对应的元件。

国家标准的定义是:能够感受规定的被测量并按照一定的规律转换成可用输出信号的器件与装置,通常是由敏感元件和转换期间组成。

智能传感器,据H o ne yw el l工业测量与控制部产品经理To m Gr if fi t h s的定义:“一个良好的‘智能传感器’是由微处理器驱动的传感器与仪表套装,并且具有通信与板载诊断等功能,为监控系统和/或操作员提供相关信息,以提高工作效率及减少维护成本。

”智能传感器的特征是带有微处理器,本身具有采集、处理以及交换信息的能力,是传感器集成化与微处理机相结合的产物。

与一般传感器相比,智能传感器具有三个优点:通过软件技术可实现高精度的信息采集,而且成本低;具有一定的编程自动化能力;功能多样化。

总体而言,智能传感器[3,4]的有以下功能:(1)具有双向通讯、标准化数字输出或者具有符号输出功能;(2)能够自动采集数据并能够对数据进行预处理;(3)具有自动补偿功能;(4)具有判断、决策处理的功能(5)具有数据存储、记忆与信息处理功能;(6)能够自动进行检验、自选量程、自寻故障;(7)具有自校零矫正、自标定、自校正功能;(8)具有一定的高精度;1.2 智能压力传感器介绍1.2.1压力传感器压力传感器是测量压力﹑压强的仪器,一般意义上讲压力传感器主要由测量元件传感器,测量电路和过程连接件组成,他能过将气体,液体等压力信号转化成标准的电信号,以供控制领域使用,或者进行二次测量。

本文选择的传感器是压阻式压力传感器,压阻式压力传感器是应用最广泛的压力传感器之一。

压阻式压力传感器是利用硅的压阻效应和微电子技术制成的,易于微型化和集成化等特点,因此获得广泛应用,而且是发展迅速的一种新的物性型传感器,它具有灵敏度高、动态响应好、精度高等特点。

相关主题