<?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">ENG</journal-id><journal-title-group><journal-title>Engineering</journal-title></journal-title-group><issn pub-type="epub">1947-3931</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/eng.2015.74014</article-id><article-id pub-id-type="publisher-id">ENG-55342</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Engineering</subject></subj-group></article-categories><title-group><article-title>
 
 
  New Measuring Method for Colorless Liquid Level Based on CLC100 Level Sensor and Powercast Wireless Sensor Kit
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>uanlin</surname><given-names>Yan</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Gerhard</surname><given-names>Lindner</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Yuming</surname><given-names>Shen</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Institute of Sensor and Actuator Technology, Coburg, Germany</addr-line></aff><aff id="aff1"><addr-line>Department of Control Science and Engineering, University of Shanghai for Science and Technology, Shanghai, 
China</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>ygl_effort@163.com(UY)</email>;<email>gerhard.lindner@hs-coburg.de(GL)</email>;<email>ym-shem@163.com(YS)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>03</day><month>04</month><year>2015</year></pub-date><volume>07</volume><issue>04</issue><fpage>177</fpage><lpage>189</lpage><history><date date-type="received"><day>9</day>	<month>February</month>	<year>2015</year></date><date date-type="rev-recd"><day>accepted</day>	<month>1</month>	<year>April</year>	</date><date date-type="accepted"><day>3</day>	<month>April</month>	<year>2015</year></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>
 
 
  In this paper, a new wireless measuring method for colorless liquid level measurement was presented, based on latest CLC100 liquid level sensor and Powercast wireless sensor development kit. The wireless system is divided into two parts, level measurement and data transmission part as well as data receiving and display part. First part included the capacitive liquid level sensor CLC100 and the wireless senor board. CLC100 sensor was used for liquid level measurement. Wireless sensor kit from Powercast Corporation included one wireless sensor board, which was used for signal transmission. A built-in PIC microcontroller was embedded in the transmission module, for the purpose of processing and data transmitting. Due to CLC100 sensor’s output voltage exceeding the sensor board’s input limitation, a voltage convertor was designed to connect the sensor and the wireless sensor board. The final results were voltages corresponding to the liquid level, and were processed by an independent PIC development board, and then sent to PC’s hyper terminal via serial-port by this PIC microcontroller. Experiments showed that this wireless sensor node prototype worked well.
 
</p></abstract><kwd-group><kwd>CLC100 Liquid Level Sensor</kwd><kwd> Powercast Wireless Sensor Kit</kwd><kwd> Colorless Liquid Level Measurement</kwd><kwd> Wireless Sensor</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Background and Overview</title><p>Liquid level is a key parameter existing in various industrial field or laboratory environments, and it’s also a very important parameter for automatic control, so it’s an important procedure to get liquid level quickly and accurately.</p><p>Situations like small range liquid level measurements, say for smaller than 100 mm, need very accurate results and low measuring deviations. And if the measuring is by a chemical furnace or other dangerous places, direct measurement by people should be avoided for safety reason; And if online remote measurement is needed while processing data coming from other sensor nodes, direct measurement is also not available. If the liquid level measurement happens in such situations above, wireless sensor node is the best choice.</p><p>There are some widely used liquid level measurement methods. For example, ultrasonic level detection method [<xref ref-type="bibr" rid="scirp.55342-ref1">1</xref>] , photoelectric detection, optical liquid level measurement method [<xref ref-type="bibr" rid="scirp.55342-ref2">2</xref>] , magnetostrictive level measurement [<xref ref-type="bibr" rid="scirp.55342-ref2">2</xref>] and so on. Ultrasonic method is the most common way, but it gets easily to be disturbed by noises, and it can’t be used in vacuum conditions [<xref ref-type="bibr" rid="scirp.55342-ref1">1</xref>] . Photoelectric detection is too critical to light sources, which means it can be easily affected by other light noise. So it’s very hard to measure the level exposed in nature sunlight accurately. Magnetostrictive way has advantages like high accuracy, multiple signal output, easily adaptive to different environments [<xref ref-type="bibr" rid="scirp.55342-ref2">2</xref>] . However, magnetostrictive meter has to be contacted to the liquid while measuring, this could be a fatal disadvantage for caustic liquid.</p><p>Moreover, if the measured liquid is colorless, it will be more difficult, and will bring new problems for light- based methods.</p><p>Recently, new type capacitive liquid level sensor CLC100 was invented for small range and critical measurement. It was chosen as the sensor part for the demo sensor node in this paper. Combined with Powercast’s wireless sensor kit’s wireless communication module, a new wireless measuring system is created.</p></sec><sec id="s2"><title>2. Introduction of Liquid Level Sensor</title><p>CLC100 level sensor is the latest level measurement product from Sensortechnics Corporation in Germany in 2012 [<xref ref-type="bibr" rid="scirp.55342-ref3">3</xref>] . It uses the new contact-free capacitive sensor technology to measure the liquids level or the pulverized powers in different kinds of containers. It’s easy to calibrate it and quite flexible to use it. It can be easily mounted outside of almost any non-metallic containers. It has a great application prospect, for example, chemical and pharmaceutical industries applications, medical technology field, biotechnology as well as food and beverage measurement.</p><p>Currently, this sensor is quite new that it hasn’t been applied into many industrial fields, and there are few applications introduced on journals. MarcinTomasik and his colleagues in Agricultural University of Krak&#243;w in Poland wrote an article with respect to apply this sensor in autonomous milk measurement in milking units [<xref ref-type="bibr" rid="scirp.55342-ref3">3</xref>] .</p><p>Detail information of CLC100 liquid level sensor is introduced here. The general appearance of this sensor is seen in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>It has some unique features:</p><p>1) Contact-free measurement and can detect water level continuously. This characteristic is very helpful when the surface of container isn’t so smooth. We don’t need to stick the sensor tightly on the surface, instead, fix it parallel with the container’s surface. But the total distance between the sensor and liquid should smaller than 5 mm. Standard mounting is shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>2) It can measure not only liquid, but also solids like pulverized materials. Because CLC100 is capacitance sensitive element, powders can also be detected by affecting the working capacitance.</p><p>3) It also can be taken as a position sensor. Because displacement and object position can be changed into some liquid lever measurement, so CLC100 can also be used in small positon measurement applications.</p><p>4) It can measure almost any non-metallic material containers.</p><p>Key electrical parameters are seen in <xref ref-type="table" rid="table1">Table 1</xref>.</p><p>CLC100 can be mounted easily. Take a cylinder as example, schematic diagram is shown <xref ref-type="fig" rid="fig2">Figure 2</xref> [<xref ref-type="bibr" rid="scirp.55342-ref4">4</xref>] .</p><p>Before using this sensor, it should be mounted as required, and need to be calibrated. And calibration proce-</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> CLC100 liquid level sensor</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x5.png"/></fig><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Mounting of CLC100</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x6.png"/></fig><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Electrical parameters of CLC100</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Supply voltage (V<sub>s</sub>)</th><th align="center" valign="middle" >5.5 - 15 V, typically 9 V</th></tr></thead><tr><td align="center" valign="middle" >Output voltage (R<sub>i</sub> = 1 KΩ)</td><td align="center" valign="middle" >0.5 - 4.5 V</td></tr></tbody></table></table-wrap><p>dures will be presented in experiments part.</p><p>CLC100 liquid level sensor can output two kinds of signals: analog voltage and digital hex numbers corresponding to the analog voltage. In this paper analog mode is used.</p><p>The measuring range of CLC100 is 0 - 100 mm, and the corresponding analogy output voltage is 0.5 - 4.5 V. The liquid level and voltage follow a linear relationship strictly. The relationship can be drawn like this (see <xref ref-type="fig" rid="fig3">Figure 3</xref>).</p><p>By the way, CLC100 sensors can be used in series, which means larger measurement range can be reached by using several sensor in series.</p><p>According to the datasheet of CLC100, 0% - 100% liquid level corresponds to single value between 0x01 - 0xEF, and also corresponds to the values between 0.5 - 4.5 V. So the theoretical resolution is: 100 mm/255 = 0.392 mm.</p><p>And according to the relation figure above, the analog output voltage is:</p><p>Analog voltage (V) = 0.04 (V/mm) &#215; liquid level (mm) + 0.5</p><p>The theoretical voltage resolution is 0.016V approximately.</p></sec><sec id="s3"><title>3. Introduction of Powercast Wireless Sensor Kit</title><p>Wireless sensor development kit is a wireless sensor development platform from PowerCast Corporation in United Stated. This kit is used for developing battery-free wireless sensor applications powered by RF energy (radio wave energy). The RF energy transmits radio frequency energy over distance using common radio waves.</p><p>Because radio waves have no certain direction, so any radio harvester in any the common radio field can get energy. It’s very flexible. Besides, radio frequency energy stays reliable in the environment, not influenced by time, sunlight or weather. This makes the harvesting process easy to be controlled, and easier to be applied into real applications.</p><p>Since from 2007, a lot of patents about implementations of wireless power transmitter and receivers every year [<xref ref-type="bibr" rid="scirp.55342-ref5">5</xref>] . RF energy harvesting technology has been well studied in the past ten years, and according to Moore’s law, the performance of RF energy harvesting technology could be doubled every two years [<xref ref-type="bibr" rid="scirp.55342-ref6">6</xref>] . And finally in year 2011, PowerCast developed this creative wireless development platform. It contains four parts: one radio frequency transmitter, two evaluation boards, two wireless sensor boards, one ultra-low power consumption (XLP) development board.</p><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Corresponding relationship between voltage and liquid level</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x7.png"/></fig><sec id="s3_1"><title>3.1. Radio Frequency Transmitter</title><p>TX91501 Powercast Radio frequency Transmitter is the power source of the evaluation board and wireless sensor board (<xref ref-type="fig" rid="fig4">Figure 4</xref>). It is a box to transmit broadcast energy in distance. Maximum working distance is around 12 m.</p><p>This transmitter is integrated with an 8 dBi integrated antenna, and transmits 915 MHz radio waves. The maximum transmitting power is set as 3 watt.</p><p>This RF energy transmitter is designed for low power consumption applications. Such as wireless battery charging, battery free wireless sensor nodes or wireless triggers.</p><p>Before this transmitter is used, receiving signal strength was tested within its effective working range, to make it clear which distance is the best for our wireless sensor node design. According to transmitter’s datasheet, its working range is about 12 meters. 12 points were selected in its range unequally. When it’s closer to the transmitter, more test points were tested, and less points were tested when it’s farer to the transmitter.</p><p>The RF energy was harvested by the evaluation board with the default program, and 6 dBi directional patch antenna was used to receive radio waves. Linear gain of this antenna is 4.1, energy pattern is: 122˚ (horizontal), 68˚ (vertical). The evaluation board will be explained in the next chapter.</p><p>Each point was tested 5 times, and average values were taken. Experiments results are shown in <xref ref-type="table" rid="table2">Table 2</xref>.</p><p>According to the experiments, highest conversion efficiency was reached at distance 1.5m. When it got closer or far away, the conversion efficiency would come down. So in the later experiments, the evaluation board for energy harvesting was always put at distance around 1.5 meters.</p></sec><sec id="s3_2"><title>3.2. Evaluation Board</title><p>Evaluation board is the access point. It is used to receive RF energy and transfer it into electrical charge energy. This energy will drive evaluation board itself and the wireless sensor board also. See <xref ref-type="fig" rid="fig5">Figure 5</xref> for the outlooking of evaluation board and its antennas.</p><p>There are two types of antennas, whose parameters are shown in <xref ref-type="table" rid="table3">Table 3</xref>.</p><p>In the whole experiments, patch antenna was used, because it had a bigger antenna gain, and could provide more energy at the same distance compared with dipole antenna.</p><p>P2110 power harvesting chip is the energy harvester receiver on evaluation board. Connected to antenna, it can convert RF energy into DC voltage. It has a high conversion efficiency and it can output voltage up to 5.25 V [<xref ref-type="bibr" rid="scirp.55342-ref7">7</xref>] . And it has a wide range RF operating range.</p><p>The converted DC Voltage is stored in capacitors. There are two integrated capacitors and one external interface for another customized capacitor. One of the three is selected according to the power of the sensor we use. For higher power consumption sensors connected to the wireless sensor board, bigger capacitor should be selected. When sufficient charge is stored, the P2110 provides the regulated output power to the evaluation board and the wireless sensor board until the sensor operation is completed, or until the power is turned off at the low- voltage threshold on the capacitor. The threshold is around 2.2 V.</p><p>The charging and discharging diagram can see from <xref ref-type="fig" rid="fig6">Figure 6</xref>.</p><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Signal strength at different distance to the transmitter</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Distance (m)</th><th align="center" valign="middle" >Received signal strength (mW)</th><th align="center" valign="middle" >Output of power harvester (mW)</th><th align="center" valign="middle" >RF to DC conversion efficiency</th></tr></thead><tr><td align="center" valign="middle" >0 - 0.3</td><td align="center" valign="middle"  colspan="3"  >Too short to be used</td></tr><tr><td align="center" valign="middle" >0.35</td><td align="center" valign="middle" >66.22</td><td align="center" valign="middle" >31.80</td><td align="center" valign="middle" >48.0%</td></tr><tr><td align="center" valign="middle" >0.50</td><td align="center" valign="middle" >32.50</td><td align="center" valign="middle" >15.50</td><td align="center" valign="middle" >47.7%</td></tr><tr><td align="center" valign="middle" >0.70</td><td align="center" valign="middle" >16.51</td><td align="center" valign="middle" >7.90</td><td align="center" valign="middle" >47.7%</td></tr><tr><td align="center" valign="middle" >0.80</td><td align="center" valign="middle" >12.60</td><td align="center" valign="middle" >6.02</td><td align="center" valign="middle" >47.6%</td></tr><tr><td align="center" valign="middle" >1.00</td><td align="center" valign="middle" >8.10</td><td align="center" valign="middle" >4.10</td><td align="center" valign="middle" >50.6%</td></tr><tr><td align="center" valign="middle" >1.50</td><td align="center" valign="middle" >3.61</td><td align="center" valign="middle" >2.00</td><td align="center" valign="middle" >55.5%</td></tr><tr><td align="center" valign="middle" >2.50</td><td align="center" valign="middle" >1.30</td><td align="center" valign="middle" >0.66</td><td align="center" valign="middle" >50.8%</td></tr><tr><td align="center" valign="middle" >4.00</td><td align="center" valign="middle" >0.51</td><td align="center" valign="middle" >0.24</td><td align="center" valign="middle" >47.1%</td></tr><tr><td align="center" valign="middle" >6.00</td><td align="center" valign="middle" >0.23</td><td align="center" valign="middle" >0.11</td><td align="center" valign="middle" >47.8%</td></tr><tr><td align="center" valign="middle" >9.00</td><td align="center" valign="middle" >0.10</td><td align="center" valign="middle" >0.03</td><td align="center" valign="middle" >30.0%</td></tr><tr><td align="center" valign="middle" >12.00</td><td align="center" valign="middle" >0.06</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >&gt;12</td><td align="center" valign="middle"  colspan="3"  >Out of range</td></tr></tbody></table></table-wrap><p>Note: The test experiments were done on open areas without any block stuff between the transmitter and the energy harvester, and the receiving antenna faced exactly to the transmitter. When it comes to real applications, if these conditions can’t be met, less RF energy can be harvested.</p><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Antenna information</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Name</th><th align="center" valign="middle" >Type</th><th align="center" valign="middle" >Energy pattern</th><th align="center" valign="middle" >Antenna gain</th></tr></thead><tr><td align="center" valign="middle" >Dipole antenna</td><td align="center" valign="middle" >Omni-directional vertical polarized</td><td align="center" valign="middle" >360˚</td><td align="center" valign="middle" >1.25 (1.0dBi)</td></tr><tr><td align="center" valign="middle" >Patch antenna</td><td align="center" valign="middle" >Directional vertical polarized</td><td align="center" valign="middle" >122˚ (horizontal) 68˚ (vertical)</td><td align="center" valign="middle" >4.1 (6.1dBi)</td></tr></tbody></table></table-wrap><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Power transmitter</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x8.png"/></fig><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> Evaluation board and its antennas</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x9.png"/></fig><p>If bigger capacitor is used, it will be charged slower but provide longer operation time for the evaluation board; smaller capacitor will be charged quicker and can provide shorter operation time, and it may not enough to drive the whole evaluation board and the sensor board. The required capacitor can be calculated from the following equation:</p><disp-formula id="scirp.55342-formula531"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-8102349x10.png"  xlink:type="simple"/></disp-formula><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-8102349x11.png" xlink:type="simple"/></inline-formula>: Output voltage of chip P2110;</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-8102349x12.png" xlink:type="simple"/></inline-formula>: Average output current from chip P2110;</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-8102349x13.png" xlink:type="simple"/></inline-formula>: Operation time of evaluation board.</p><p>P2110 energy harvesting chip can be applied in battery free wireless sensors, like the evaluation board and the wireless sensor board used in this paper. It can also be applied in other applications like wireless trigger or other electronic units. Here is a typical application circuit, see it from <xref ref-type="fig" rid="fig7">Figure 7</xref> .</p></sec><sec id="s3_3"><title>3.3. Wireless Sensor Board</title><p>Wireless sensor board is the attached board for evaluation board. The working power is also provided by the P2110 energy harvesting chip. This board is composed of four main parts: built-in PIC microcontroller, wireless communication antenna, built-in sensors and one extended voltage interface for reading extended sensor’s output voltage. Also the interface can also provide 3 V voltage supply to the extended sensor if it is low-power con- sumption sensor, but this voltage can’t be adjusted like evaluation board. Due to this reason, extra power supply was provided for the liquid level sensor. This part could be solved when other suitable lower-voltage supplied sensors is applied instead.</p><p>The general appearance of this wireless sensor board can see from <xref ref-type="fig" rid="fig8">Figure 8</xref> [<xref ref-type="bibr" rid="scirp.55342-ref8">8</xref>] .</p><p>The antenna module is a combination of a MRF24J40 communication chip and one antenna (the left part in <xref ref-type="fig" rid="fig8">Figure 8</xref>). The built-in sensors include one thermistor temperature sensor NCP18XH103F03RB; one light in-</p><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> Charging and discharging diagram</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x14.png"/></fig><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> Typical application circuit of power harvesting</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x15.png"/></fig><fig id="fig8"  position="float"><label><xref ref-type="fig" rid="fig8">Figure 8</xref></label><caption><title> Wireless sensor board</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x16.png"/></fig><p>tensity sensor TEMT6000X01; one humidity sensor HIH-5030. The extended interface was mainly used in the paper experiments for developing new wireless sensor prototype. But they were not used in this liquid level measurement design. Extended analog voltage-reading port was used for our liquid level sensor. This board also has a built-in analog to digital convertor, and the A/D conversion and the wireless communication are controlled and optimized by a built-in PIC microcontroller.</p><p>The communication chip is MRF24J40MA, which is a complete 2.4 GHz IEEE 802.15.4 compliant surface mount module. It has a small size of 17.8 mm &#215; 27.9 mm, low current consumption of 19 mA when working and receiver, and 23 mA when working as transmitter. And in sleep mode, it comes down to 2 μA. Its operation Band is 2.40 - 2.48 GHz, and the communication rate is 250 kbps. Besides, it is integrated with targeted crystal, internal voltage regulator, matching circuitry and one communication antenna [<xref ref-type="bibr" rid="scirp.55342-ref9">9</xref>] .</p><p>MRF24J40 communicates with PIC controllers via a four-line SPI bus, and it can be directly connected to PIC microchip, because there is an integrated SPI module inside. The interface of MRF24J40 and PIC24F16 microcontroller is shown in <xref ref-type="fig" rid="fig9">Figure 9</xref>.</p><p>These chips can communicate with each other at distance around 120 meters. For designing wireless sensor communications in this paper, this working range is enough.</p><p>Other features of MRF24J40 communication chips see below [<xref ref-type="bibr" rid="scirp.55342-ref9">9</xref>] :</p><p>・ Integrated Low Phase Noise VCO, Frequency Synthesizer and PLL Loop Filter;</p><p>・ Digital VCO and Filter Calibration;</p><p>・ Integrated RSSI ADC and I/Q DACs;</p><p>・ High Receiver and RSSI Dynamic Range MAC/Baseband Features;</p><p>・ Hardware CSMA-CA Mechanism, Automatic ACK Response and FCS Check;</p><p>・ Supports all CCA modes and RSS/LQI;</p><p>・ Automatic Packet Retransmit Capable;</p><p>・ Hardware Security Engine (AES-128) with CTR, CCM and CBC-MAC modes;</p><p>・ Supports Encryption and Decryption for MAC Sub-layer and Upper Layer.</p></sec><sec id="s3_4"><title>3.4. XLP Development Board</title><p>Ultra-low power consumption (XLP) development is a universal PIC microcontroller board originally from Microchip, and is included in this wireless sensor development platform. The main units on this board are a PIC24F16KA102 microcontroller and its basic peripherals. It’s the control board of signal receiving and data displaying. One access point (signal receiving board based on MRF24J40 module) is matched with this development board by a 28 pins interface.</p><p>The general appearance of the control board and wireless its access point are seen in <xref ref-type="fig" rid="fig1">Figure 1</xref>0. It works under 3.3 V voltage, and be powered through a USB cable or by two dry cells.</p><p>The red access point is a communication MRF24J40 module with an antenna. This module is the same with the module integrated in wireless sensor board. One performs as transmitter and the other works as receiver.</p><p>This development board consists of a PIC microcontroller development board and one PIC tail board. In each part the PIC, controllers are PIC24F16KA102, but with different package. The tail board is an antenna board used for receiving signals coming from the sensor board.</p></sec></sec><sec id="s4"><title>4. Wireless Liquid Level Sensor Implementation</title><p>The general frame of this wireless liquid level sensor implementation can be seen in <xref ref-type="fig" rid="fig1">Figure 1</xref>1.</p><fig id="fig9"  position="float"><label><xref ref-type="fig" rid="fig9">Figure 9</xref></label><caption><title> The interface between PIC24F16 and MRF24J40</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x17.png"/></fig><fig-group id="fig10"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>0</label><caption><title> XLP development board and its access point.</title></caption><fig id ="fig10_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x18.png"/></fig><fig id ="fig10_2"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x19.png"/></fig></fig-group><fig id="fig11"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>1</label><caption><title> Structure of sensor node</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x20.png"/></fig><p>In this paper, Microprocessor is PIC24F16KA102;</p><p>The components are as follows:</p><p>Sensor used: CLC100 liquid level sensor;</p><p>Transceiver: two MRF24J40 modules;</p><p>Power supply: wireless sensor board is powered by its RF energy transmitter. But due to the liquid level sensor we used in the experiment need higher voltage supply, so an independent 9 V voltage was supplied additionally. This could be changed while other lower power consumption liquid level sensor is applied.</p><p>The wireless sensor board itself has an analog extended port for reading external sensors’ output. The reading voltage range is: 0 - 3000 mV, and this value will be processed by the built-in microcontroller, and be sent out by the built-in antenna. But the output range of CLC 100 sensor is: 0.5V - 4.5 V, so voltage convertor need to be designed.</p><sec id="s4_1"><title>4.1. DC-DC Conversion Circuit</title><p>The goal was to convert voltage range 0.5 - 4.5V into range 0 - 3V. The converting thinking consisted of two parts: first, using a subtractor circuit to decrease the sensor’s output voltage to range 0 - 4V; second, using a reverse amplifier to decrease the voltage range again into 0 - 3 V. The amplification was set to 0.75 according this requirement. The implementation circuit is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>2.</p><p>LM324 was a widely used amplifier in electronic designs, and it was adopt in this circuit as well. LM324 could work under large voltage range: 3 - 32 V, and it worked well under dual power supply. In our experiments, &#177;5 V was provided. Besides, 6 resistors were used in the design, their values are shown in <xref ref-type="table" rid="table4">Table 4</xref>.</p><p>This DC-DC conversion circuit has two parts. The left half part is subtractor circuit. 0.5 V is the provided as reference voltage, and will be subtracted by every input voltage in real-time. Because the minimum voltage we can get from CLC100 liquid level sensor is 0.5 V, so a negative value will be get after this subtraction. The right half, starting from resistor R5 to the end, is the amplifier circuit with 0.75 times amplification. Each part has a voltage meter, monitoring the correctness of output.</p><p>At the upper-left corner, a cell batter is used for simulating the sensor’s output voltage, and in the circuit pasted here, 4.5 V is set, which is the maximum output of CLC100 sensor. The rightest part of this circuit is the DC-DC convertor’s output. When CLC100 output reaches its maximum measuring level (HIGH value), it outputs 4.5 V through its analog pin, and here 4.5 V battery is the replacement in Proteus. −4 V and 3 V can be read from the two voltage meters. 3 V is the final voltage we need, and it maximum value need to be converted. Results here show that this conversion circuit works well. And of course the whole voltage range, 0.5 - 4.5 V, was tested and verified by step of 0.1 V ascendingly from 0 V in Proteus. Simulation showed that this conversion circuit worked very well on our required voltage conversion purpose.</p><p>The real circuit was also built on bread board, and was tested as well. Bread board implementation seen as <xref ref-type="fig" rid="fig1">Figure 1</xref>3.</p><p>The &#177;5 V, 0.5 V, GND, circuit input (sensor’s output) and the DC-DC output are marked in the figure.</p></sec><sec id="s4_2"><title>4.2. Implementation Frame of Wireless Liquid Level Sensor</title><p>After the voltage convertor is designed, CLC100 can be connected to the wireless sensor board through it. Liquid level sensor, voltage convertor and the wireless sensor board make up a wireless liquid level sensor node. All kinds of liquid level can be measured by this node and data will be transmitted through the built-in antenna.</p><p>The sensor node construction frame is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>4.</p><p>We can see that, the built-in A/D convertor, one PIC microcontroller and one wireless module are the main components of our wireless sensor board.</p><fig id="fig12"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>2</label><caption><title> DC-DC conversion circuit</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x21.png"/></fig><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Resistors used in the conversion circuit</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Resistor</th><th align="center" valign="middle" >R1</th><th align="center" valign="middle" >R2</th><th align="center" valign="middle" >R3</th><th align="center" valign="middle" >R4</th><th align="center" valign="middle" >R5</th><th align="center" valign="middle" >R6</th></tr></thead><tr><td align="center" valign="middle" >Resistance</td><td align="center" valign="middle" >10 K</td><td align="center" valign="middle" >10 K</td><td align="center" valign="middle" >10 K</td><td align="center" valign="middle" >10 K</td><td align="center" valign="middle" >4 K</td><td align="center" valign="middle" >3 K</td></tr></tbody></table></table-wrap><fig id="fig13"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>3</label><caption><title> Beard board implementation of conversion circuit</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x22.png"/></fig><fig id="fig14"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>4</label><caption><title> Construction frame of liquid level sensor node</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x23.png"/></fig><p>When data is transmitted out from wireless liquid level sensor node, it comes to the data receiving antenna. This antenna module is the same with the data transmitting module in construction. Data will be captured by the PIC microcontroller in XLP development board, and then the data will be sent to PC, and displayed in a hyper terminal.</p><p>Data flow and the hardware modules are shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>5.</p><p>XLP: Ultra Low Power Consumption.</p></sec><sec id="s4_3"><title>4.3. Experiments and Discussions</title><sec id="s4_3_1"><title>4.3.1. Experiments</title><p>Normal glass cup is chosen as the container, filled with tap water as liquid. The mounting of CLC100 and the measuring setup is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>6.</p><p>CLC100 liquid level sensor should be calibrated before used. The Calibration is called teach-in [<xref ref-type="bibr" rid="scirp.55342-ref4">4</xref>] . Calibration is to tell the sensor the measuring range: the lowest water level (LOW value) and the highest water level (HIGH value). Water level below the lowest level will be determined as the LOW value, and water level higher than the highest will be determined as HIGH value. The two values will be stored in the built-in E<sup>2</sup>PROM.</p><p>The calibration steps are as follows:</p><p>1) Connect sensor to +9 V power supply (V<sub>S</sub> pin) and ground (GND pin).</p><p>2) Wait for 2 seconds for a successful start-up.</p><p>3) Calibrate LOW value first: connect the teach-in pin (TI) to voltage +0.3 V.</p><p>4) Wait for 1.5 seconds.</p><p>5) Calibrate HIGH value then: connect the TI pin to voltage 4.8 V.</p><p>6) Wait for 1.5 seconds.</p><p>After the steps above, two LOW and HIGH value will be stored in the built-in E<sup>2</sup>PROM, and they can be reset by the next teach-in process. For one application, only one calibration is needed. When the sensor is used for</p><fig id="fig15"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>5</label><caption><title> Date receiving and processing module</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x24.png"/></fig><fig id="fig16"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>6</label><caption><title> Image of measuring setup</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x25.png"/></fig><p>another container’s liquid level measurement, new calibration should be made, following the same procedures. In this paper’s experiments, LOW value and HIGH value were set to 0 mm and 100 mm by a ruler.</p><p>During experiments, 6 points are chosen between LOW level and HIGH level (these two points are included). 5-times repetitive experiments were made, and average values were calculated. The relationship between output voltage and water level is listed in <xref ref-type="table" rid="table5">Table 5</xref>. Theoretical voltages were also calculated for comparison purpose.</p><p>Put the 6 value points into the voltage-liquid level chart, shown <xref ref-type="fig" rid="fig1">Figure 1</xref>7.</p><p>From the above table and chart, we can see deviation existed in the experiment. There could be two reasons: first, because the liquid level sensor need be calibrated before used, and in this experiment, the normal 20 cm- long ruler (0.5 mm resolution) was used, and this calibration could lead to a small deviation. Second, both the sensor output signal and the sampled signal by sampling board were analog signal, and they could be influenced by electrical noise in the experimental environment, like, power supply box. Besides, the sampling board and the development board used different ground connections, and this could also be a reason.</p></sec><sec id="s4_3_2"><title>4.3.2. Results Display Interface</title><p>Voltage outputs are transferred wirelessly to the data-processing microcontroller, and then transferred to PC and displayed in hyper terminal. “Extrnl” value (in the red rectangles) stands for out analog voltage value. The display interface is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>8.</p><p>In these experiments, there existed 20 mV noise, which means 0.4 mm deviation in liquid level measurement.</p></sec></sec></sec><sec id="s5"><title>5. Conclusions</title><p>In this paper, a new wireless measuring system for colorless liquid level measurement is designed. This new measuring system is based on the latest products: CLC100 liquid level sensor and Powercast wireless sensor kit.</p><p>The whole system is divided into two parts, level measurement and data transmission part (WSN part), data receiving and display part. First part includes a new type capacitive liquid level sensor CLC100 and the wireless senor sampling board. The CLC100 is used for liquid level measurement; the wireless sensor board is used for signal transmission, which is based on core communication chip MRF2J40. A PIC built-in microcontroller is</p><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> Experiments results</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Water level (mm)</th><th align="center" valign="middle" >0.0</th><th align="center" valign="middle" >20.0</th><th align="center" valign="middle" >40.0</th><th align="center" valign="middle" >60.0</th><th align="center" valign="middle" >80.0</th><th align="center" valign="middle" >100.0</th></tr></thead><tr><td align="center" valign="middle" >Theoretical voltage (V)</td><td align="center" valign="middle" >0.500</td><td align="center" valign="middle" >1.300</td><td align="center" valign="middle" >2.100</td><td align="center" valign="middle" >2.900</td><td align="center" valign="middle" >3.700</td><td align="center" valign="middle" >4.500</td></tr><tr><td align="center" valign="middle" >Real voltage (V)</td><td align="center" valign="middle" >0.542</td><td align="center" valign="middle" >1.332</td><td align="center" valign="middle" >2.241</td><td align="center" valign="middle" >3.057</td><td align="center" valign="middle" >3.827</td><td align="center" valign="middle" >4.519</td></tr></tbody></table></table-wrap><fig id="fig17"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>7</label><caption><title> Comparison of theoretical values and real values</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x26.png"/></fig><fig id="fig18"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>8</label><caption><title> Display interface of voltage</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-8102349x27.png"/></fig><p>embedded in the transmission module, for the purpose of processing and transmitting data.</p><p>Due to sensor’s output voltage exceeding the sensor board’s input limitation, a voltage convertor is designed to connect the sensor and the wireless sensor board. The final results are voltages corresponding to the liquid level, and are processed by an independent PIC development board, and then sent to PC’s hyper terminal via serial-port by this PIC microcontroller. Experiments show that this wireless sensor node prototype worked well.</p><p>But there are still problems need to be solved. For example, the liquid level sensor we used is not low- power consumption sensor, thus an extra power supply is need on measuring site. In the future, this sensor could be replaced by other low-power consumption liquid level sensor. And the values displayed on screen are voltage values, which haven’t been converted into physical level units. In later studying works, this should be done.</p></sec></body><back><ref-list><title>References</title><ref id="scirp.55342-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Yuan, X.P. and Chen, Y. (2009) Commonly Used Research Methods in Liquid Level Detection. Energy Technology and Management, 1, 120-122.</mixed-citation></ref><ref id="scirp.55342-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Yang, Z.H. and Li, H. (2009) Situation and Development Trend of New Liquid Level Detection Technology. Industry and Mine Automation, 6, 61-64.</mixed-citation></ref><ref id="scirp.55342-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Tomasik, M., Juszka, H. and Lis, S. (2012) Communication System Control and Measurement System in the Autonomous Milking Machine. Inzynieria Rolnicza, 16, 303-310.</mixed-citation></ref><ref id="scirp.55342-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">CLC Series Miniature Capacitive Continuous Liquid Level Sensors Datasheet. Sensor Technics.  
www.sensortechnics.com</mixed-citation></ref><ref id="scirp.55342-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Greene, C.E., Harrist, D.W. and McElhinny, M.T. (2007) Implementation of a Wireless Power Transmitter and Method. US Patent.</mixed-citation></ref><ref id="scirp.55342-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Shearer, J.G., Greene, C.E. and Harrist, D.W. (2010) Power Transmission Network. US Patent.</mixed-citation></ref><ref id="scirp.55342-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Datasheet, P. (2011) P2110-915MHz RF Power Harvester Receiver. Powercast Corporation.</mixed-citation></ref><ref id="scirp.55342-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">User Manual of Lifetime Power Energy Harvesting Development Kit for Wireless Sensors.  
www.powercastco.com</mixed-citation></ref><ref id="scirp.55342-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">(2008) MRF24J40MA Data Sheet. Mircochip Technology Inc.</mixed-citation></ref></ref-list></back></article>