Professional Documents
Culture Documents
1,3
Faculty of Engineering, Universiti Putra Malaysia, 43400 UPM Serdang, Selangor, Malaysia
Faculty of Engineering, Islamic Azad University of Qazvin, 1655, Barajin, Qazvin, Iran
3
Institute of Advanced Technology, Universiti Putra Malaysia, 43300 Serdang, Selangor, Malaysia
*Corresponding Author: rasoul.garmabdari.my@ieee.org
2
Abstract
The water usage is increasing twice of the rate of global population growth
within the last century. According to the statistical studies, the global
population is growing by roughly 80 million people annually, representing
increased freshwater demand of around 64 billion cubic meters in the same
period of time. This amount of water is being consumed in three fields
comprising irrigation 70%, industry 20% and domestic usage 10%.Therefore,
monitoring and controlling of natural water resources are counted as two most
vital issues in water crisis. For the purpose of control and supervision on natural
water sources, the water consumption parameters such as instantaneous
consumption, flow rate, and accumulated consumption should be measured and
monitored. This paper presents a new monitoring algorithm implemented in
Labview to monitor, calculate and plot the mentioned parameters based on the
rotary encoders such as electromagnetic, ultrasonic, capacitive, or even halleffect sensors based. The results show that, the algorithm is capable to measure
and display flow rate, instantaneous and cumulative consumption. It is also able
to recognise and present the fluid flow direction and the system fault.
Keywords: Water measurement, Rotary encoder, Flow rate, Monitoring algorithm.
1. Introduction
Although there are various techniques to monitor and measure water flow rate,
instantaneous and cumulative water consumption parameters, but they require
different equipment to measure and register each one of them. For instance, a water
meter and flow meter are needed to measure consumption and flow rate respectively.
Furthermore, the peripheral software may be required to extract the statistical
66
Nomenclatures
Vx
Vy
Abbreviations
C.P
CC
CET
F.R
MFR
MR
RPM
Counted Pulses
Cumulative Consumption
Constant Elapsed Time Technique
Flow Rate
Mean of Flow Rate
Magneto Resistive Sensor
Round per Minute
68
R. Garmabdari et al.
sensor based. Although, the proposed Labview based measurement system can be
applied for all types of encoders and the functionality of different blocks of
algorithm are similar, but the approach and method of acquisition data and
calculation blocks must be changed according to the data encrypting procedure.
The hall-effect sensor based angular position encoders are normally utilised in
automotive and industrial applications due to their long life, low power
consumption, and also low cost implementation [7]. The operation principle of
hall-effect sensors is based on the induced voltage in two sides of a hall material
when it is located in a magnetic field according to the angle between materials
surface axis and the magnetic flux.
The hall-effect encoders can be classified to different types in aspect of
configuration and application. Some encoders are assigned to only detect and
count the number of complete rotations of rotary shaft [8, 9]whereas another
group is developed to calculate the angular position of rotating shaft with respect
to either a reference point or the last position of rotary shaft. The proposed
algorithm can be applied to both groups of encoders but the only blocks that
should be modified is the calculation and acquisition blocks according to the
output of sensors and utilised measurement technique. For instance, the encoder
which is shown in Fig. 1(a) computes the angular position of rotary shaft utilising
two hall-effect sensors which are separated by 90 degree angular distance. In this
encoder, the angular position of rotary shaft is formulated as follows [10]
=
{
= 1
(1)
On the other hand, rotary encoders may also be designed to only recognise
and count the number of complete rotations, in order to calculate rotational speed
and detect the direction of rotation. In this case, the number of applied sensors
and actuators can be reduced according to the required accuracy. Since digital
sensors are generally used in this type of rotary encoders, one or more digital
signals are provided at the output of readout circuit. The calculation block of
display algorithm is designed based on inspection of the sequential codes which
are generated by the affected sensors. The structure of a three sensor rotary
encoder implemented on a water meter is presented in Fig. 1(b) [9].
In this apparatus, since three digital hall-effect sensors have been sequentially
located on the dial plate, the generated code at the output of interface circuit will
also be sequential according to the direction of rotation and arrangement of
sensors position.
70
R. Garmabdari et al.
utilising this algorithm. The input of the algorithm is an encrypted data string
comprising the number of complete rotations and the BCD code of current state.
This data is transmitted from the interface circuit to the computer (P.C) using
RS232 serial protocol. At the first step of algorithm, the encrypted string is
received via a serial port based on predetermined settings.
START
Read Input Data
Current consumption, the BCD code of current state
No
Data is valid?
Yes
Data separation
Store the current state BCD code
Store the consumption
Fault occurred?
Yes
No
END
72
R. Garmabdari et al.
. []
[]
= []
(2)
. = =
.
0
(3)
The mean of flow rate ()during a certain period of time which normally
is considered every one hour, can be computed to determine the peak usage hours.
The mean of flow rate can be extracted using an independent timer to measure the
intervals and it also can be calculated as below.
=
=1(.)
=1
(4)
where the index refers to the number of calculated flow speeds.The . and
represent the counted pulse and measured actual time in each speed calculation
respectively, and denotes the total number of calculated speed within the time
period of independent time like one hour. The implemented computation stage of
the algorithm base on Labview program is shown in Fig. 6.
As it can be seen timers A and B are utilised to calculate the flow rate as
explained above and timer C is applied to calculate the mean of flow rate during
every hour. In order to make a pulse counter, the current consumption is
compared with the previous stored value, and if it was not repetitive, the pulse
counter is incremented by one, Otherwise; the value of pulse counter will remain
unchanged. The computed results should be plotted on graphs versus absolute
time as the penultimate stage of algorithm. For this purpose three waveform chart
are utilised as shown in Fig. 6.
4. The Outputs
The proposed algorithm to measure flow rate, instantaneous consumption, the mean
of flow rate and accumulated consumption was implemented in a hall sensor based
rotary encoder [8]. The rotary encoder detects the number of rotations according to
the sequence of happen states during rotation as explained above. The graphs are
plotted versus absolute time as shown below. As it can be seen from Fig. 7(a), the
flow rate is calculated as a positive value even while the direction of flow is
reversed. Figure 7(b) represents the instantaneous consumption which its gradient
slope is proportional to the flow rate whether in forward or reverse direction.
Therefore, the flow rate and direction of flow can be calculated from the
instantaneous consumption.
74
R. Garmabdari et al.
5. Conclusion
The implemented algorithm was tested using Labview program and its operation
was verified to plot the flow speed, instantaneous consumption. The functionality
to diagnose the fault and direction has also been confirmed. As a result the
employed algorithm can accurately collect the necessary data utilising minimum
number of measurement equipment. Moreover, all data of the system are saved
into separate files in the database to be used for statistical analysis. The
implemented monitoring algorithm can be utilised by water distributor
organisations in order to monitoring and control the consumption based on water
demand and more importantly to conserve water resources.
Acknowledgment
The authors would like to thank to University Putra of Malaysia and Ministry of
Education, Malaysia for supporting this work under the Fundamental Research
Grant Scheme.
References
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
Martnez, J.; Alvarez, R.; Cortez, P.; Mejia, V.; and Zarate, V. H. (2007). An
automation system based on labview to control the test of mechanical flow
meters. Water Resources Management,IV (I), 603-611.
Miyashita, K. (1987). Features of a magnetic rotary encoder. IEEE
Transactions onMagnetics, 23(5), 2182-2184.
Kikuchi, Y.; and Nakamura, F. (1997). Consideration of magnetization and
detection on magnetic rotary encoder using finite element method.
Transcations on Magnetics,33(2), 2159-2162.
Kikuchi, Y.; and Nakamura, F. (1997). Index phase output characteristics of
magnetic rotary encoder using a magneto-resistive element. IEEE
Transactions on Magnetics, 33(5), 3370-3372.
Rummer, R.; and Rummer, D. (1993). An inexpensive digital rotation sensor.
Computers and electronics in agriculture,9(3), 269-274.
Dynamics Research Corp. (1980). Techniques For Digitizing Rotary and
Linear Motion (10-11). Wilmington: Wilmington, Mass.
Nyce, D. (2004). Linear position sensors: theory and application (109). New
Jersey: Wiley-Interscience.
Garmabdari, R.; Shafie, S.; and Isa, M. (2012). Sensory system for the
electronic water meter. Institute of Electrical and Electronik Engineering,
International Conference on Control Applications (IEEE ICCA), 223-226.
Sr, A.H.; Gallon, R.; and Harvey, I. (2011). Encoder-type register for an
automatic water meter reader. US Patent 8,051,723.
Lee, Y.Y.; Wu, R.H.; and Xu, S.T. (2011). Applications of linear Hall-effect
sensors on angular measurement. Institute of Electrical and Electronik
Engineering-International Conference on Control Applications, 479-482.
Li, Y.; Gu, F.; Harris, G.; Ball, A.; Bennett, N.; and Travis, K. (2005). The
measurement of instantaneous angular speed. Mechanical Systems and Signal
Processing, 19(4), 786-805.
Arif, S.; Imdadullah, I.; and Asghar, J. (2011). Rotating magnetic field based
instantaneous angular speed measurement of low speed rotating machines. In
Multimedia, Signal Processing and Communication Tech. 252-255.
Pu, J.; and Wang, H. (2012). A novel variable M/T method for speed measurement
with high precision in a wide speed range. Atlantis Press. 1855-1858.
Tsuji, T.; and Hashimoto, T. (2009). A wide-range velocity measurement
method for motion control. Industrial Electronics, 56(2), 510-519.
15. Bitter, R.; Mohiuddin, T.; and Nawrocki, M. (2006). LabVIEW: Advanced
Programming Techniques (Second Ed.). CRC press, Boca Raton, London,
New York, 221-223.
16. Garmabdari, R.; Shafie, S.; and Isa, M. (2013). Measurement technique for
bidirectional four sensor rotary encoder. Institute of Electrical and Electronik
Engineering-International Conference on Smart Instrumentation, Measurement
and Applications, 1-5.