<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JCC</journal-id><journal-title-group><journal-title>Journal of Computer and Communications</journal-title></journal-title-group><issn pub-type="epub">2327-5219</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jcc.2015.35020</article-id><article-id pub-id-type="publisher-id">JCC-56608</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  Design and Implementation of a Wireless Networked Water Level Control System
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Lixuan</surname><given-names>Lu</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ross</surname><given-names>Lewis</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ming</surname><given-names>Hu</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ryan</surname><given-names>Lin</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Faculty of Energy Systems and Nuclear Science, Faculty of Engineering and Applied Science, University of Ontario Institute of Technology, Oshawa, Canada</addr-line></aff><aff id="aff2"><addr-line>Faculty of Energy Systems and Nuclear Science, University of Ontario Institute of Technology, Oshawa, Canada</addr-line></aff><pub-date pub-type="epub"><day>25</day><month>05</month><year>2015</year></pub-date><volume>03</volume><issue>05</issue><fpage>159</fpage><lpage>163</lpage><history><date date-type="received"><day>February</day>	<month>2015</month>	</date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
   The design of a wireless water level control system is introduced and discussed in detail. In this system, the wireless Proportional Integral (PI) controller is developed using the LabVIEW graphical user programming language. Zigbee wireless technology is chosen for the wireless data transfer system. The experimental testbed was built and the system software and hardware were implemented. In order to compare the performance of the wired and wireless system, a corresponding wired water level control system was built. Experimental results show that under the same PI parameters, the settling time of the wired system is 3.3 times faster than the wireless system. However, the percent overshoot using the wireless controller is 4% smaller. 
 
</p></abstract><kwd-group><kwd>Wireless Networked Control System</kwd><kwd> Zigbee Wireless Protocol</kwd><kwd> Labview Graphical Programming</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Traditionally, control systems rely on physical connections (wires and cables) to interconnect all the components within the system, such as sensors and actuators. Recently, with the advancements made in wireless technology, and with systems increasing in reliability, it is becoming more and more feasible to consider the application of wireless process control systems to large scale industrial applications [<xref ref-type="bibr" rid="scirp.56608-ref1">1</xref>]-[<xref ref-type="bibr" rid="scirp.56608-ref3">3</xref>].</p><p>Some of the anticipated benefits of an eventual wireless implementation include: (1) reduction of costs, since the need for long wires will be eliminated; (2) provision of control system redundancy, since the wireless system could act as a backup in the event of a loss of primary (wired) system control; and (3) simplification of maintenance, since maintenance will be localized to a few wireless nodes versus hundreds of feet of cables.</p><p>The objective of this research is to design and implement a wired and a wireless networked water level control system, so that the performance of these two systems can be compared. These implementations are carried out in a laboratory environment. The purpose is to show that wireless technology could produce suitable, sustainable and comparable results with the control algorithm implemented.</p><p>The paper is organized as follows: Firstly, the overall design of the wired and wireless system is presented. This includes the overall system structure and Zigbee wireless communication design. Subsequently, the physical system is introduced with specific selection of individual components. Wired and wireless controllers are presented. Following this, the performance results of both the wired and wireless water level system are compared. These include the transient responses and setting times of the two systems. Finally, conclusions are drawn.</p></sec><sec id="s2"><title>2. System Design</title><sec id="s2_1"><title>2.1. Functional and Performance Requirements</title><p>In order to show that wireless control system could be a feasible idea to control water level in a closed loop system, both functional and performance requirements described below are considered.</p><p>There are four functional requirements that have to be met in order for the system to work: 1) Be able to control inflow; 2) Be able to control outflow; 3) Be able to measure the water level; and 4) Be able to communicate data in real time. Meanwhile, three performance requirements have to be met: 1) All equipment should operate with consistency under the same circumstances; 2) The wired system should produce consistent results with the same input; and 3) The wireless system should produce consistent results with the same input.</p></sec><sec id="s2_2"><title>2.2. Wired System Design</title><p>Based on the functional and performance requirements, the overall design of the wired system is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>. In this design, the proportional valve is used at the inflow of the process tank to control the overall inflow rate. The open tank is raised above the process tank. By using gravity and the pressure height difference, the flow before the proportional valve is then provided. The pump is used to control the outflow. It is operated under DC power and can be operated proportionally in accordance to the supplied power. An ultrasonic level sensor is used to provide the level measurement. Signals from the proportional valve and the level sensor are sent to a PI controller, which is implemented in Lab VIEW. The controller then sends commands to the proportional valve to control the water level to a specified set point.</p></sec><sec id="s2_3"><title>2.3. Wireless System Design</title><p>For the wireless system, the wires between the proportional valve to the controller and the level sensor to the controller are eliminated. Instead, these signals are transmitted wirelessly. Since the wireless system use wireless protocols in place of cables to transmit data, it is important to understand the various protocols available. Three most prominent wireless protocols are considered in this research: Wi-Fi (IEEE 802.11), Bluetooth and ZigBee (IEEE 802.15.4) [<xref ref-type="bibr" rid="scirp.56608-ref4">4</xref>]-[<xref ref-type="bibr" rid="scirp.56608-ref6">6</xref>]. Zigbee protocol is chosen for this project. ZigBee is mainly designed for measurement and control. It operates in the 2.4 GHz band and is able to connect up to 256 devices per network. It has a signal radius of 30m, and can accommodate three different topologies: star, peer-to-peer and mesh [<xref ref-type="bibr" rid="scirp.56608-ref7">7</xref>]. ZigBee also</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title>Wired water level control system design</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/56608x3.png"/></fig><p>uses CSMA/CA and requires a mandatory RTS/CTS handshake before the data will be sent. When the channel is not busy, the data will be sent immediately.</p></sec></sec><sec id="s3"><title>3. System Implementation―Wired System</title><p>After comparison of the advantages and disadvantages of different types of devices, the components chosen to build the wired system are as follows: 1) peristaltic pump; 2) paddlewheel flow meter; 3) ultrasonic level sensor; 4) general service and proportional solenoid valves; 5) nylon tubing and 6) 2 L transparent graduated cylinder. <xref ref-type="fig" rid="fig2">Figure 2</xref> is the overall system with the actual equipment used.</p><p>A PI controller is designed in LabVIEW to perform control of liquid level. The control parameters are tuned according to Zigler-Nicoles method [<xref ref-type="bibr" rid="scirp.56608-ref8">8</xref>]. The block diagram of the controller for the wired system is shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p></sec><sec id="s4"><title>4. System Implementation―Wireless System</title><p>Several potential configurations for wireless communication have been proposed and the final design is shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>. The programmable logic controller from Automation direct cooperation can be programmed and managed by its design software called Direct SOFT 5. With this software, the functions of converting analog values to digital values and combining multiple data into a single data string can be achieved. The Zigbee wireless modem performance was tested by software X-CTU which was provided with the Zigbee package [<xref ref-type="bibr" rid="scirp.56608-ref9">9</xref>]. The</p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title>Wired level control system implementation</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/56608x4.png"/></fig><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Block diagram of the wired PI controller</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/56608x5.png"/></fig><p>method was to create a wireless data transfer loop, then calculate the data transfer time out and package lost. The wireless controller is also implemented in LabVIEW. The block diagram of the wireless controller is shown in <xref ref-type="fig" rid="fig5">Figure 5</xref>.</p></sec><sec id="s5"><title>5. Experimental Results</title><p>Six experiments were run with two sets of different PI parameters for both the wired and wireless systems. These experiments show comparable results. The comparison of the responses of these two systems is shown in <xref ref-type="fig" rid="fig6">Figure 6</xref>. As can be seen, for Kp = 4 and Ki = 0.020, the wireless system was found to be less stable than the wired system. There was more noise and rapid degeneration of the signal during the wireless runs, which resulted in longer settling times. Interestingly enough, the wireless system offered better performance in terms of the percent overshoot, being marginally (4%) less than the wired system’s percent overshoot. In general, the</p><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Wireless communication layout</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/56608x6.png"/></fig><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> Block diagram of the wireless PI controller</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/56608x7.png"/></fig><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> Summary of the performance data for wired vs. wireless @ Kp = 4, Ki = 0.020</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/56608x8.png"/></fig><p>wired system offered lower settling times. However, the percent overshoot exceeded that of the wireless system by a factor of 3.3.</p></sec><sec id="s6"><title>6. Conclusion</title><p>In conclusion, a wireless water level control system is designed and implemented. Prior to implementing the wireless system, the wired system is constructed and its performance tested. The design are carried out based on both functional and performance requirements. Different components and equipment are compared and the optimal ones selected to construct the physical system. Both wired and wireless controllers are implemented in LabVIEW. Communication through Zigbee wireless channel is achieved. The performance of the wired and wireless system is compared with different control parameters. It is found that the wired system revealed faster settling time. However the percent overshoot using the wireless controller was found to be smaller.</p></sec><sec id="s7"><title>Cite this paper</title><p>Lixuan Lu,Ross Lewis,Ming Hu,Ryan Lin, (2015) Design and Implementation of a Wireless Networked Water Level Control System. Journal of Computer and Communications,03,159-163. doi: 10.4236/jcc.2015.35020</p></sec></body><back><ref-list><title>References</title><ref id="scirp.56608-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Katayama, T., Mckelvey, T., Sano, A., Cassandras, C. and Camp, M. (2005) Trends in Systems and Signals. Proc. 16th IFAC World Congress.</mixed-citation></ref><ref id="scirp.56608-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Hossain, A. and Fathizadeh, M. (2004) Wireless Interface to New and Retrofitting of Existing Industrial Systems for Monitoring, Controlling and Data Acquisition in a Noisy Industrial Environment. Proc. of the ISA/IEEE Sensors for Industry Conference, 139-145.</mixed-citation></ref><ref id="scirp.56608-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Naman, A.T., Abdulmuin, M.Z. and Arof, H. (2000) Implementation and Performance Evaluation of a Wireless Feedback Loop for Water Level Control. Proc. of TENCON 2, 56-59.  
http://dx.doi.org/10.1109/TENCON.2000.888388</mixed-citation></ref><ref id="scirp.56608-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Geier, J. (2002) 802.11 MAC Layer Defined.</mixed-citation></ref><ref id="scirp.56608-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Bluetooth Website, accessed on Feb. 11, 2015. www.bluetooth.com</mixed-citation></ref><ref id="scirp.56608-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Ye, W. (2005) Medium Access Control in Wireless Sensor Networks. Guest Lecture for University of California, Los Angeles.</mixed-citation></ref><ref id="scirp.56608-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">ZigBee Tutorial, accessed on Feb. 11, 2015. http://www.tutorial-reports.com/wireless/zigbee/tutorial.php</mixed-citation></ref><ref id="scirp.56608-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Dorf, R.C. and Bishop, R.H. (2005) Modern Control Systems. Pearson Prentice Hall, Upper Saddle River.</mixed-citation></ref><ref id="scirp.56608-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">XBee-PRO PKG-U USB RF Modem. MaxStream, Inc., Lindon, 2007.</mixed-citation></ref></ref-list></back></article>