Wireless DAQ using ZigBee

Similar documents
Høgskolen i Telemark Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics.

NI mydaq HANS-PETTER HALVORSEN, Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics

NI Vision System HANS- PETTER HALVORSEN,

Virtual Instruments with LabVIEW

Data Acquisition HANS-PETTER HALVORSEN,

Datalogging in LabVIEW

Solutions. Discretization HANS-PETTER HALVORSEN,

Wireless DAQ System. In this project you are going to create a Wireless DAQ System, see Figure 1-1. Figure 1-1: Wireless DAQ system

Control and Simulation in. LabVIEW

Faculty of Technology, Department of Electrical Engineering, Information Technology and Cybernetics. SCADA System

DAQ in MATLAB HANS-PETTER HALVORSEN,

State Estimation with Observers

Weather System. In this project you are going to create a Weather System, see Figure 1-1. Figure 1-1: Weather system

NI USB-TC01 Thermocouple Measurement Device

Laboratory System. 1 Introduction

LabVIEW Tutorials. T.1 Temperature Measurement and Cold Junction Compensation (CJC) LUMS School of Science and Engineering

Exercise 5: Basic LabVIEW Programming

LabVIEW MathScript Quick Reference

University College of Southeast Norway. LM-900 Level Tank. Hans-Petter Halvorsen,

Simulation in LabVIEW. Hans-Petter Halvorsen, M.Sc.

Lab Exercise 2: Data Acquisition with NI LabVIEW

Data Acquisition in LabVIEW

Exercise 11: Discretization

CirrusSense Router Quick Start Guide. Connect your router. Configure your router for internet access

University College of Southeast Norway. Web Services. with Examples. Hans-Petter Halvorsen,

Wireless Data Acquisition in. LabVIEW

Modbus Hans-Petter Halvorsen

Hardware: Acquiring Data and Communicating with Instruments

Sensors and Actuators with Arduino. Hans-Petter Halvorsen, M.Sc.

Industrial IT Laboratory Work Hans-Petter Halvorsen

Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics. MathScript

Strain and Force Measurement

NI WSN-9791 Ethernet Gateway

Introduction to ERwin

Accsense Wireless System. Temperature Monitor

Hands-on Lab 2: LabVIEW NI-DAQ Basics 2

Dept. of Electrical, Computer and Biomedical Engineering. Instrumentation for the data acquisition laboratory

BE/EE189 Design and Construction of Biodevices Lecture 5. BE/EE189 Design and Construction of Biodevices - Caltech

Using SQL Server in C#

Data acquisition hardware

The mystem Project Board Quick Start

Table of Contents. The Botron B92700 OMNIGND is a Multi-Ground Continuous Monitoring Automation System.

Level control with DeltaV using MPC

Cube67 - Modular I/O station

Agilent 3630A Triple DC Power Supply. Agilent 34401A Digital Multimeter (DMM)

LabVIEW Real-Time Module for Mac OS X User Manual Addendum

The data acquisition components, and their relationship to each other, are shown below.

OpenStax-CNX module: m Thermometer VI * National Instruments

Wireless Sensor Network with LabView Michael Bizub & An Nguyen

Visual Studio Team Services

Read Temperature Data

Step-by-Step Data Acquisition Part II Exercise 2: Generating an Analog Output Waveform

Temperature control with DeltaV using MPC

Additional products and features

Create a Virtual Test Environment

Ch En 475: Introduction to Instrumentation and Signal Processing with Labview

Engineering Project-I. Module 1: Familiarization of LabVIEW and the Vernier Toolkit

LabVIEW Core 1. What You Need To Get Started. File Locations. The course installer places the course files in the following location: ni.

AI-102. IR Illuminator. Installation Guide. Rev IP Surveillance

GETTING STARTED GUIDE

Switch on / off. For switching off please press button for approx. 5 sec.

Temp-485-Pt100. A temperature sensor (Pt100 or Pt1000) communicating over the RS-485 bus with a simple communication protocol

Access Your 34972A Wirelessly with a TRENDnet Travel Router

HZS Internal Controller Expansion

Install the Software and Hardware

AC TO DC ADAPTERS

Determination of Drag Coefficient

KE2 BootloaderGuide Updating Firmware

Data Acquisition Laboratory

PHY 351/651 LABORATORY 1 Introduction to LabVIEW

Welcome. Thank you for choosing Arlo. Getting started is easy.

AirTouch 2 Zone Control System

CD-ROM (Software, Manual and Warranty) 5V DC, 2.5A Power Adapter

Expansion Module HZS 541-1S

Bluetooth Music Receiver

Strain gauge Measuring Amplifier GSV-1A8. Instruction manual GSV-1A8, GSV-1A8USB, GSV-1A16USB

Quick Installation Guide of Acer WLAN 11b Broadband Router

Contents. Technical Information

Web-enabled DAQ System

GETTING STARTED GUIDE

HUAWEI FT2260 Home Phone Connect Quick Start

GreenEye Monitor Specifications

QL-1110NWB. Applications for Use with Computers. Applications for Use with Mobile Devices. Quick Setup Guide (English) NOTE

1. Learn about LabView software and its different components

Wireless Sensor Adapter (WSA10) Installation Instructions

Quanser NI-ELVIS Trainer (QNET) Series: QNET DCMCT. DC Motor Control Trainer (DCMCT) User Manual. User Manual

LIYAN PROGRAMMABLE LOGIC CONTROLLER. LYPLC Ex1n2PT USER S MANUAL

PEACE OF MIND 24 / 7 / 365

PITE 3926C Battery Data Logger User Manual

Ch En 475: Introduction to Instrumentation and Signal Processing with Labview

Logger Pro 3. Quick Reference

DP-300+ Fast Ethernet Multi-Port Print Server

Hands-On Seminar. Evaluate CompactDAQ and LabVIEW for Your Application 09/05/2017. ni.com

Handy type 10-channel logger midi LOGGER GL200A Sales Manual GRAPHTEC

SHCM SMALL HYDRO CONDITION MONITORING. Web HMI (real time data, trends, spectrums, alarms )

Condition Monitoring System of Mine Air Compressors Based on Wireless Sensor Network

6220 Ethernet-Based Voltage Measurement Module

Temperature sensors TTM series. Miniature transmitters

User Manual RecoMedia Presentation made easy

Installing Sentor. Hardware Installation

Transcription:

Høgskolen i Telemark Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Wireless DAQ using ZigBee Cuong Nguyen, Hans- Petter Halvorsen 2013.10.29 Hardware Setup Faculty of Technology, Postboks 203, Kjølnes ring 56, N-3901 Porsgrunn, Norway. Tel: +47 35 57 50 00 Fax: +47 35 57 54 01

1 Introduction This tutorial will go through how to transfer temperature data acquired from a sensor to the computer wirelessly by using ZigBee technology on Windows 7 operative system. This documentation is created based on experiment by using the following equipment: Hardware Software! Temperature sensor Pt- 100! Connection board! ZigBee equipment - NI WSN- 9791 WSN Ethernet Gateway - NI WSN- 3202 Analog Input Node! Windows 7, 8 NB!!! Other OS versions besides Professional are experienced causing problems. (MAX is not able to detect NI WSN- 9791)! NI- WSN- 140 software! LabVIEW 2012 The data transferring procedure through ZigBee technology involves mainly three different steps; Step 1: Step 2: Step 3: Connect the temperature sensor pt- 100 to the node (NI WSN- 3202). Since pt- 100 is a resistance based sensor and inputs to the node device are required to be in Voltage. Therefore, direct connections between the two devices are not possible and the devices have to be connected together via the connection board. Install and configure NI- WSN- 140 software. Allows user to setup the Gateway, add the measurement node(s) and control the wireless network. Present the temperature value on the computer. Create a LabVIEW application to continuously retrieve and present the value on the computer. The acquired values are originally in Voltage format which needs to be converted into corresponding temperature. 2

3 Introduction Necessary Equipment Software NI WSN- 9791- WSN Ethernet Gateway Hardware NI WSN- 3202 - Analog Input Node Temperature sensor: PT- 100 AC to DC switching power supply Model: GPSUE- 6 Transducer board

2 Technical Implementation This section will explain the data acquiring process in details, which covers all the involving three steps stated above. By following the instructions, as the result temperature values obtained by the temperature sensor (Pt- 100) will be presented on the computer screen wirelessly. ZigBee is the technology behind the wireless data transferring procedure. 2.1 Step1: Physical Connection Pt- 100 is a temperature sensor based on a resistance (Ω) which various in corresponding to the changing in temperature, this element cannot be connected directly to the ZigBee node (NI WSN- 3202) because the node only understands Voltage as input. Due to this reason the two elements can only have communications with each other through the transducer board. Pt- 100 and AC to DC switching power supply are already connected to the Connection board. To read the temperature value from pt- 100, the NI WSN- 3202 - Analog Input Node needs to be connected to the connection board, where red cable shall be connected to AI0 and blue cable to AI GND as shown from Figure 2-1. Once the connection is established, just simply plug the power supply to the wall outlet. The Connection board will operate by 24 Voltage DC. Figure 2-1: Connection board - NI WSN- 3202 connection. 4

5 Technical Implementation 2.2 Step 2: NI- WSN Software Ni- WSN is the computer software, through which the users are able to configure the network in the Measurement & Automation Explorer (MAX) utility. Max provides an intuitive user interface to add and remove measurement nodes and configure wireless settings. The settings have effects on the central control unit, NI WSN- 9791 WSN Ethernet Gateway. 2.2.1 Download & Install Install the appropriate driver for NI WSN- 9791 WSN Ethernet Gateway.! From NI Hardware Drivers various options of drivers are available. Download the latest version ( NI- WSN x.x). The installing of NI- WSN is a straight forward procedure. Just simply follow instructions given of each steps and make sure to include Real- Time Features as shown in Figure 2-2 and select the updates option. Figure 2-2: MAX Software installation. 2.2.2 Configuration The Central control unit, NI WSN- 9791 WSN Ethernet Gateway can be configured by using the Measurement and Automation Explorer (MAX).

6 Technical Implementation Launch MAX and expand Remote Systems to confirm that MAX has auto detected the WSN- 9791 as shown on the figure on the next page. If the gateway does not appear, consult the Getting Started with NI Wireless Sensor Networks tutorial for more information. Confirm or change the default settings on the Network Settings tab. Make sure to click Apply to save any changes that you made. Figure 2-3: WSN- 9791 detection by MAX. Add the measurement node(s) to your wireless network! Select the WSN Nodes tab and click the Add WSN Node button or right- click the Gateway node.! Enter the type, serial number and ID number of the measurement node(s). Click Apply to save the changes. Establish connection with the gateway Figure 2-4: Assign an ID to a node.! To establish a connection with the gateway, press the Signal Strength button on each node for at least five seconds.

7 Technical Implementation! Upon connection, Select Refresh all on the WSN Nodes tab to view the last communication time, battery state, link quality, and network mode of the measurement nodes. Figure 2-5: Information of the node. 2.3 Step 3: Data Presentation When the equipment is properly configured in MAX, LabVIEW can be used to present the temperature value on the computer screen. Start LabVIEW and create a New Project. Figure 2-6: Create a new project in labview. Add WSN- 9791 to the project by right- clicking on the project name and select New» Targets and Devices. All modules will be listed with available I/O channels.

8 Technical Implementation Figure 2-7: Add a node to the project. Figure 2-8: Device selection.

9 Technical Implementation In order to create a LabVIEW application, right- click on My Computer and select New» VI and drag the corresponding I/O variables from the Project Explorer to the LabVIEW block diagram, as shown on the Figure 2-9. Build VI application and click Run to instantly acquire measurements from WSN. Figure 2-9: Select I/O port to be used in LabVIEW VI. Front panel of the LabVIEW program (VI app) reading from AI0 [Voltage 1-5]: Figure 2-10: Successful data achievement.

10 Technical Implementation Figure 2-11: "Test WSN.vi" is included in the LabVIEW project.

11 Technical Implementation Advance: The front panel shown in the previous figure present the value captured from the temperature sensor pt- 100 in Voltage. The value needs to be converted into temperature [ ]. Try to improve the LabVIEW application that shows both in Voltage and degree Celcius as illustrated in Figure 2-12. Tips: Use silver style as layout. Convert from Voltage to Temperature. Temperature [ ] = Voltage * a b (define parameters a & b) 1 [V] = 0 [ ] 5 [V] = 50 [ ] Figure 2-12: Front panel displaying current Voltage and temperature data.

12 Technical Implementation The block diagram of the improved front panel is shown in Figure 2-13, where both of the parameters 12,5 are used to convert from Voltage to degree Celcius. NB!!! These parameters can only be used for this specific case, where 1-5 Volt are converted to 0-50. For converting to a scale of 0-100, just simply replace both of the parameters 12,5 with 25. Figure 2-13: Voltage to temperature conversion.

Telemark University College Faculty of Technology Kjølnes Ring 56 N- 3918 Porsgrunn, Norway www.hit.no Hans- Petter Halvorsen, M.Sc. Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics E- mail: hans.p.halvorsen@hit.no Blog: http://home.hit.no/~hansha/