Vous êtes sur la page 1sur 5

Available online at www.sciencedirect.com Available online at www.sciencedirect.

com

Procedia Engineering
www.elsevier.com/locate/procedia

ProcediaProcedia Engineering 15 000000 Engineering 00 (2011) (2011) 2639 2643

Advanced in Control Engineering and Information Science

Sensors State Monitoring based on LabVIEW and Wireless Nodes


Tianbing Ma*,Fei Du,Chuanzhi Fang
College of Mechanical Engineering ,Anhui University of Science and Technology ,Anhui province,Huainan 232001,PR China

Abstract Sensors state monitoring is vital especially in alarm system or mining monitoring system.Traditonal monitoring method by wire conmmunication exists poor reliability and short transmitting distance.This paper designs a sensor state monitoring system based on LabVIEW and wireless nodes.RF905 wireless module,single chip microcomputer,serial bus and LabVIEW are used in the system. Experiment results show that LabVIEW program can romote monitor the sensors state real-time and accurately.

2011 Published by Elsevier Ltd. Selection and/or peer-review under responsibility of [CEIS 2011]
Keywords:Wireless communication;LabVIEW;Serial ports;Sensors State monitoring

1. Introduction LabVIEW software from NI company is programmed by visual graphic G language which is more intuitive concise compared with traditional text. In order to save expensive Data Acquisition Board cost and romote monitor the sensors state, this system use LabVIEW serial port module for communication between PC and SCM(Single Chip Microcomputer).In the paper the communication mode of RF905 wireless module is studied. Data are sent and received by 905 module during SCM drive program running. The detailed alarm interface made by LabVIEW software is also described.Lastly program is accomplished by calling the labview serial port module and reading MCU data through RS232 serial interface to judge that the sensors work correctly or not.
* Corresponding author. Tel.:+86-554-663-3109; fax: +86-554-666-8934;. E-mail address: dfmtb@163.com.

1877-7058 2011 Published by Elsevier Ltd. doi:10.1016/j.proeng.2011.08.496

2640 2

Tianbing Ma et Procedia Engineering 00 (2011) 000000 Tianbing Maet al/ al. / Procedia Engineering 15 (2011) 2639 2643

2. System Work Principle and Hardware Circuit System diagnostic principle are shown as Fig.1.Sensors state can be transmitted by wireless communication and their conditions are shown in LabVIEW interface by indicator lights.RF905 module is chosen as transceiver module, and 905 transceiver works at the ISM band of 433/868/915MHz. The module as Fig.2 is made up of a power amplifier, a crystal oscillator and a regulator composition. It is easy for programming configuration through the SPI interface. Current consumption is low.When transmitting power is -10dbm, emission current is 10mA and receiving current is 12.5mA.Powerdown mode into electricity can be implemented easily.

Tianbing Ma et al.Procedia Engineering 00 (2011) 000000 2643 Tianbing Ma/ / Procedia Engineering 15 (2011) 2639
Fig. 1 System diagnostic principle Fig. 2 RF905 module circuit

2641 3

3. RF905 Module Transceiver Program RF905 as data transmission medium, it works at ShockBurst mode. ShockBurst technology can provides high-speed data transmission without need of expensive high-speed MCU. The high-speed signal process realtion to RF agreement can be done in chip [1]. RF905 provides a SPI interface to micro controller. RF905 with ShockBurst mode reduces the average current consumption by reducing chromaticity of digital application part during maximum rate connection process. In ShockBurst RX mode, address matching and data ready signal inform MCU to automatically generate leading yards and CRC checking code, data ready signals inform MCU that data transmission has been completed. The process of RF905 sending and receiving data are as follows.

Fig. 3 Data sending flow chart

Fig. 4 Data receiving flow chart

4. Serial Debugging Before making LabVIEW interface,we debug the serial with MCU-tools,then different data are shown respectively by a string form[2-3]. As shown in follow four figures,32 bytes for a cycle, when one or a few sensors make mistakes, 8bits of the last byte show different value, then sensors states can be monitored and displayed.

2642 4

Tianbing Ma et Procedia Engineering 00 (2011) 000000 Tianbing Maet al/ al. / Procedia Engineering 15 (2011) 2639 2643

Fig. 5 Data 1 on MCU-tools

Fig. 6 Data 2 on MCU-tools

Fig. 7 Data 3 on MCU-tools

Fig. 8 Data 4 on MCU-tools

5. LabVIEW Test and Discussion LabVIEW calls data from MCU by using a serial port module[4-5].The working condition of serial parameters must be the same as the microcontroller program. A visual interface is made to timely show every sensor state.

Tianbing Ma et al.Procedia Engineering 00 (2011) 000000 2643 Tianbing Ma/ / Procedia Engineering 15 (2011) 2639
Fig.9 The block program of LabVIEW

2643 5

Fig.10 Monitoring interface of front panel

Fig.11 The experimental photo

Fig.9 shows the whole monitoring program including initialization, reading serial port and the serial data from microcontroller.Fig.10 is the monitoring interface and the lights indicate that eight sensors states timely. If sensors work normally, the lamps are lighted, otherwise go out. 6. Conclusions This paper puts forward a new way of sensors states monitoring based on LabVIEW and wireless nodes. Wireless module transmits data, then wireless station by microcontroller collects data and sends them to the wireless terminal. It is more economical that LabVIEW can read data by a serial port than the traditional data acquisition card.Experiment results show that the system is reliable and accurate, so that it can be applied in many fields such as explosion-proof performance requirements higher or remote alarm system. Acknowledgements This research is supported by the Key Foundation of Anhui province of China for Outstanding Young Teachers in University under Grant No.2009SQRZ060ZD. References
[1]Yang WP and Liu JF. Bus-stop Auto-announce System Based on nRF905.Communications Technology, 2009;42(10):134136 [2]Peng XH and Xu AJ. Single-chip microcomputer application design high-level language.Beijing:Publishing House of Electronics Industry ;1999 [3]Liu YL.Communication between MCS - 51 SCM and PC based on MAX232. Beijing:Publishing House of Electronics Industry; 1999 [4]Liu J.G. and Jiang JJ. LabVIEW design program tutorial.Beijing:Publishing House of Electronics Industry; 2008 [5]Chen SX and Liu X. A valuable book of LabVIEW.Beijing:Publishing House of Electronics Industry;2011,p.420-426

Vous aimerez peut-être aussi