Professional Documents
Culture Documents
BU/16C/ENG/2110
Baze University
Abuja, Nigeria
[January, 2021]
SMART WATER METER
in
Baze University
Abuja, Nigeria
[January, 2021]
DECLARATION
BAZE UNIVERSITY
I, Abdulrazaq Muhammad Sani, confirm that this report and the work presented
in it are my achievements.
Signed: .......................................................
Date: ...........................................................
i
CERTIFICATION
This is to certify that this thesis is fully adequate in scope and quality as undergraduate project
work for the award of the degree of Bachelor of Engineering in Electrical and Electronics
Engineering.
----------------------------------------------------- ------------------
Name and Signature of First Supervisor Date
----------------------------------------------------- -----------
-------
Name and Signature of Second Supervisor (if applicable) Date
This is to certify that this thesis satisfies the requirements as a graduation project for the award of
the degree of Bachelor of Engineering in Electrical and Electronics Engineering.
----------------------------------------------------- ------------------
Name and Signature of H.O.D, Date
Department of -----------------
Engineering
This is to confirm that this thesis satisfies the requirements as a graduation project for the award
of the degree of Bachelor of Engineering in Electrical and Electronics Engineering.
----------------------------------------------------- ------------------
Name and Signature of External Examiner Date
----------------------------------------------------- ------------------
Name and Signature of Dean, Date
Faculty of Engineering
ii
DEDICATION
I dedicate this project to Almighty God my creator, my source of inspiration, wisdom,
knowledge and understanding.
I also dedicate this project to my father, Barrister Muhammad Sani, my mother, Asabe
Abubakar, my siblings Abdulrasheed, Ruqayya, Zainab, and Fadeela for their endless love,
encouragement, and support, my love for you all will never be quantified. God bless you all
iii
ACKNOWLEDGEMENT
First and foremost, I would like to offer my sincere gratitude to my research supervisor Dr. Najashi
Bara’u Gafai, for his guidance, supervision, encouragement, and support throughout this study.
I would not know what research is and how to research if the lecture series of thesis writing and
research methodologies were not offered. So, I would like to offer my sincere gratitude to Dr.
Najashi Bara’u Gafai for feeding the knowledge and guidance for doing researches.
I would also like to thank all the lecturers of the Faculty of Engineering – Baze University, for
their guidance and encouragement to get the maximum use of knowledge and capabilities. Also, I
would like to thank my coursemates Mahmud Jibril Inuwa, Michael Ari, and Khadija Aliyu Kaita
for their support.
Finally, I would like to extend my deepest gratitude to Ibrahim Saleh Babandi for his continuous
support given in every possible way to make this project a success.
iv
ABSTRACT
In recent years, water demand has increased in households. Consumer awareness regarding daily
water consumption is very low. Traditional water meter unable to get daily consumption efficient
manner and water consumption has been calculating once in a month. It has been calculated
manually. With the advancement of information technology, over the past years, there has not been
any attempt to enhance manual meter reading to automate within Nigeria.
The main objective of this project is to propose and implement a system to identify customer
behaviors and patterns of consuming water using the Smart Water Meter System (SWMS). In
developing nations, the technology of employing smart water meters new to society. Cost savings
and improved operational efficiency of meter reading personnel were achievable.
In some cases, existing water meters are fixed in the backyards, and difficult in granting access to
enter the premises. In such a situation, meter reading personnel has to wait until the customer
opens the gate. There are cases where the customer has been locked and out of the premises and
unable to get the meter reading. In such a situation the meter reading personnel calculates the bill
using an average monthly reading as the current month's consumption. Customer’s point of view
this calculation will not be feasible when the actual reading exceeds the monthly consumption as
charges may vary according to the tariff category they belong. These customers have been
instructed to read their meters themselves and inform a substation after receiving the monthly bill
for alteration. This will be an extra cost to the billing as an officer has to be appointed to solve
these matters.
The proposed system consists of Smart Water Meter (Developed using The Arduino Uno -
microcontroller board, Flow Sensor, SD Card module, and Wi-Fi Shield), Web application. Instant
meter reading has been saved to memory in the control board and periodical time interval data will
be uploading to the cloud system. Customers can be logging into the cloud system and able to
upload their meter reading, download the bill, and upload the evidence of payment during the
given period. With this system, it is expected to facilitate consumers to make better service and
save the water as a resource.
v
TABLE OF CONTENTS
DECLARATION ...................................................................................................................... i
CERTIFICATION ................................................................................................................... ii
DEDICATION ........................................................................................................................ iii
ACKNOWLEDGEMENT .......................................................................................................iv
ABSTRACT .............................................................................................................................. v
CHAPTER 1 .............................................................................................................................. 1
INTRODUCTION..................................................................................................................... 1
1.1 Prologue ........................................................................................................................................1
1.2 Background of Study and Motivation .........................................................................................1
1.3 Research Problem ........................................................................................................................2
1.4 Aim ...............................................................................................................................................3
1.5 Objectives .....................................................................................................................................3
1.6 Summary ......................................................................................................................................3
CHAPTER 2 .............................................................................................................................. 4
LITERATURE REVIEW .........................................................................................................4
2.1 Early Developments .....................................................................................................................4
2.2 Modern Trends.............................................................................................................................5
2.3 Future Challenges ........................................................................................................................5
2.4 Previous Works ............................................................................................................................6
2.5 Summary ......................................................................................................................................8
CHAPTER 3 .............................................................................................................................. 9
MATERIALS AND ANALYSIS TECHNIQUES ....................................................................9
3.1 Materials .......................................................................................................................................9
3.1.1 Flow Sensor............................................................................................................................9
3.1.2 Arithmetic ............................................................................................................................ 10
3.1.3 The Microcontroller board – Arduino Uno ........................................................................ 11
3.1.4 Wi-Fi Module ....................................................................................................................... 13
3.1.5 Web Application .................................................................................................................. 13
3.1.6 Data Model .......................................................................................................................... 13
3.1.7 Smart Water Meter ............................................................................................................. 14
3.1.8 Cloud Computing ................................................................................................................ 15
3.1.9 Technology Stack ................................................................................................................. 15
3.2 System Design ............................................................................................................................. 16
3.2.1 Top Level Architecture of Smart Water Meter .................................................................. 16
vi
3.2.2 Software and Hardware Used .............................................................................................17
3.2.3 Implementation of UDP Server ...........................................................................................17
3.2.4 Upload Code Using USB TTL Converter ...........................................................................18
3.2.5 Upload code using Arduino Uno Board (without USB TTL converter).............................18
3.2.6 Implementation of Server Program ....................................................................................18
3.2.7 Universal Asynchronous Receiver and Transmitter (UART) ............................................18
3.2.8 Interconnection of ESP8266 Module and Arduino Uno Board ..........................................19
3.2.9 Implementation of Water Flow Sensor ...............................................................................19
3.2.10 Implementation of Real-Time Clock .................................................................................20
3.2.11 Implementation of Micro SD Card Module ......................................................................21
3.2.12 Interconnection of Micro SD Card Module and Arduino Uno Board .............................22
3.2.13 Integrated Different Module to Main System ...................................................................22
3.2.14 Online Platform .................................................................................................................23
CHAPTER 4 ........................................................................................................................... 26
RESULTS AND DISCUSSION ............................................................................................. 26
4.1 Results.........................................................................................................................................26
4.2 Discussion ...................................................................................................................................27
4.2.1 Key Benefits .........................................................................................................................27
4.2.2 Cons of Smart Meters ..........................................................................................................28
4.2.3 Limitations of Smart Meters ...............................................................................................28
CHAPTER 5 ........................................................................................................................... 30
CONCLUSION AND RECOMMENDATION ..................................................................... 30
5.1 Conclusion ..................................................................................................................................30
5.2 Recommendation for Future Work ...........................................................................................30
REFERENCES ....................................................................................................................... 31
APPENDICES ........................................................................................................................ 33
APPENDIX A – Configuration and Installing Modules .................................................................33
APPENDIX B – Use Case Diagram .................................................................................................38
APPENDIX C – Flow Chart ............................................................................................................39
APPENDIX D – The Online Platform .............................................................................................41
APPENDIX E – Codes .....................................................................................................................44
APPENDIX F – Text File for Smart Water Meter Reading ...........................................................46
vii
LIST OF TABLES
Table 2.1: Comparison of all the systems .................................................................................... 5
Table 2.2: Comparison of Smart and Analog Meter .....................................................................5
Table 2.3: Summary of literature of Smart Water Meters ............................................................ 6
Table 3.1: Specifications of Water Flow Sensor ..........................................................................9
Table 3.2: Interconnection of ESP8266 Module and Arduino Uno Board .................................. 19
Table 3.3: Pin layout for the Flow Sensor .................................................................................. 19
Table 3.4: Calibration factor of the flow sensors ....................................................................... 20
Table 3.5: Interconnection of DS3231 RTC Module and Arduino Uno Board ........................... 21
Table 3.6: Interconnection of Micro SD Card Module and Arduino Uno Board ......................... 22
viii
LIST OF FIGURES
Figure 3.1: Turbine of Flow Meter.............................................................................................. 9
Figure 3.2: YF-S201 Water Flow Sensor .................................................................................. 10
Figure 3.3: Arduino Uno – Microcontroller Board .................................................................... 12
Figure 3.4: Arduino Uno – Microcontroller’s Pin Plan .............................................................. 12
Figure 3.5: ESP8266 Wi-Fi Module.......................................................................................... 13
Figure 3.6: Arduino Platform .................................................................................................... 14
Figure 3.7: Cloud Architecture ................................................................................................. 16
Figure 3.8: Top Level Architecture of Smart Water Meter ........................................................ 17
Figure 3.9: USB TTL converter and ESP8266 .......................................................................... 18
Figure 3.10: Universal Asynchronous Receiver and Transmitter ............................................... 19
Figure 3.11: DS3231 Module ................................................................................................... 21
Figure 3.12: Water Meter Circuit Diagram ............................................................................... 23
Figure 4.1: Tested water consumption in a 4-bedroom of six residents ...................................... 26
ix
CHAPTER 1
INTRODUCTION
1.1 Prologue
A new technology platform is required to sustainably manage urban water resources in Nigeria.
This can be achieved by real-time monitoring of water consumption at domestic, corporate, and
city levels. It will enable the implementation of efficient resources and demand management
strategies. This project aims to better understand the consumption pattern of the customer and
extracting water meter reading data with less human interaction in an efficient manner. This
chapter presents the background of the study, the motivation of the research, research problems,
and the aims and objectives of the research.
Digital water meter allows extracting meter reading electronically with less human interaction.
Cost savings and improved operational efficiency are achievable. Mainly cost savings that could
be created from improved efficiency of meter reading personnel. Once meter reading data is
available, it can be captured and processed like any other signal. Internet, Mobile communication
technology, and other data communication technology makes it possible to bring this signal to
mobile phone or handheld device [3]. This data will be converting information to get a better
understanding of the consumption patterns of water consumers. Smart Water Meters can serve as
networks that can be installed in thousands of households to collect periodic measurements that
are reported in real-time [4].
Water Metering is the process of measuring water use. There are two bases of measuring flow,
these are volumetric basis and weight basis. The basic relationship for determining the liquid’s
1
flow in a pipe is given by the product of the cross-sectional area of the pipe and the average velocity
of the flow. The other factors that affect the liquid flow rate include the liquid’s viscosity, density,
and the friction of the liquid in contact with the pipe [5].
In some cases, existing water meters are fixed in the backyards and therefore it is difficult to get
access to the premises. In such situations, meter reading personnel has to wait until the customer
opens the gate. There are cases where the customers lock their premises, in such a situation, meter
reading personnel is unable to get the meter reading. Water Board is instructed to calculate the
bills using an average monthly water consumption. Obviously, from the customer’s point of view,
this calculation will not be feasible when the actual reading exceeds the monthly consumption.
Because next month, customers have to pay higher bill value because charges may vary according
to the tariff.
Studies indicate that the implementation of a prepaid water meter entrenches social inequality and
poverty in society: as the rich use more water as they can pay for it. The two biggest barriers to
prepaid metering in the North American market have been the high cost of meter as customers
have to pay between USD225 – USD400 per installation [1]. Besides, it is viewed as economic
discrimination in terms of racial, social, or cultural profiling. The poor have to consider their
consumption, hindering their water requirements, and productive water use for improving their
livelihood strategies. Productive use of water includes uses such as brewing, animal watering,
construction, and small-scale. An aspect of good neighborliness is lost in cases where prepaid
water meters are introduced, this is because water is likely to be treated as an individualized market
commodity thereby largely excluding the poor from accessing it [6].
Since its development in the United Kingdom, the use of these meters has spread through countries
like Brazil, Egypt, Uganda, Curacao, Nigeria, Tanzania, Swaziland, Sudan, Malawi, Namibia, and
South Africa. Where the common evidence found, that the prepaid system for water supply being
2
enforced on the poor is dangerous environmentally, socially, politically and questionable morally
[7].
Sudden changes in pressure can damage meters to the extent that many meters in cities and
developing countries are not functional. Also, some types of meters become less accurate as they
age, and under-registering consumption leads to lower revenue if defective meters are not regularly
replaced. Many types of meters also register air flows, which can lead to over-registration of
consumption, especially in systems with intermittent supply, when water is re-established and the
incoming water pushes air through the meters. Also, the real working life of prepaid meters is only
about five (5) to seven (7) years, compared to the estimated fifteen (15) to twenty (20) years for
conventional meters [6].
1.4 Aim
This project aims to;
1.5 Objectives
The objectives of this project can be summarized as follows;
Develop an online platform to upload meter reading, calculate customer’s bills, receive
their bill information, send their evidence of payment using WordPress.
To estimate household water consumption and pattern by recording accurate readings.
To analyze water-saving potential for the residential sector.
1.6 Summary
This chapter gives an overall picture of the entire project. As such, we described the
background of the study and motivation of the research, research problems, aims, and
objectives. Chapter two presents a critical review of the literature on Smart Water Meter.
3
CHAPTER 2
LITERATURE REVIEW
This chapter provides a literature review of the developments and challenges of the Water Meter
System. For this purpose, the review of the past researches has been presented under three major
sections namely, early developments, modern trends, and future challenges.
WPAN (Wireless Personal Area Network) covers a small geographical area, and it uses the IEEE
802.15 standard. It allows devices to provide communication with each other. Bluetooth is the
standard for enabling wireless communication among mobile computers, mobile phones, and
portable handheld devices. Wireless Local Area Network (WLAN) allows sharing information
between different equipment located in a limited distance. WMAN networks use Worldwide
Interoperability for Microwave Access (WiMAX) technology to connect to wide areas
(metropolitan width). It is a wireless communication standard designed with a transfer rate of 30-
40 Mbps. It can transmit much more data and handle over far greater distances [10].
4
Wi-Fi (Wireless Fidelity) networks as the name implies have no physical wired connection
between the sender and receiver, the communication is done by using radio frequency (RF). RF
current is supplied to an antenna, an electromagnetic field is generated, it is then able to broadcast
through space. The keystone of any wireless network is an access point (AP). The primary job of
an access point (AP) is to broadcast wireless signal computers or mobile devices can detect. To
connect to an access point and join a wireless network, the device must be equipped with wireless
network adapters [11].
5
2.4 Previous Works
Transferring technique, protocol, and future challenges have been discussed so far. As per the
literature review, low-cost data transferring techniques and low power consumption techniques are
more relevant. The literature review has identified various unsolved problems including security,
efficiency, and reliability of Smart Water Meters.
6
then relays the data reliability has been
to the control center. taken.
Smart Metering System Malaysia ZigBee, GSM This system uses a The collector node is
for a Power Utility mesh network however a
Company [15] topology to allow bottleneck, as well
meters too far away as a single point of
from the collector failure as all data
node to transmit needs to flow
their data to nearby through this node to
meters for reach the central
forwarding to the computer.
collector node. This
approach increases
the effective
coverage range of
the collector node.
Smart Water Meters South Korea Magnetic hall The already installed
using Magnetic Sensing sensors sensing a water meter
[16] magnet attached to measures flow by
the impeller of a monitoring a
water meter. rotating magnetic
coupling.
Smart Water Meters South Korea An external camera It requires no An image
using Image Processing module is used to modification of the processing based
[16] capture the water existing meter’s approach would
meter’s display for internal structure. have to be
processing. developed with
specific water meter
models in mind as
the displays would
differ.
Smart Water Meters South Korea A capacitor is The system was
using Capacitive formed by the tested using 300 test
Sensing [16] combination of the samples over 30
metal arrow, the days and had a
copper foil, and the success rate
water between these exceeding 95%.
two conductive
objects.
7
Furthermore, in the comprehensive literature review, some problems need to be addressed in
further research. According to Table 2.3, despite many solutions being available for wireless
sensor networks, they are rather expensive. Therefore, developing a low-cost solution has become
necessary.
The limited number of researches on Smart Water Meter with Wi-Fi connectivity has been
recorded in the literature [17].
2.5 Summary
This chapter presented a comprehensive literature review on the Smart Water Meter research and
identified the research problems as inadequate attention to the reliability of wireless protocols.
8
CHAPTER 3
MATERIALS AND ANALYSIS TECHNIQUES
3.1 Materials
3.1.1 Flow Sensor
The Flow Sensor is a device that detects and measure water flow through pipes. The water flow
meter works with the flow sensor to calculate water flow. The water flows through the rotor blade;
Rotor will start to rotate. Thus, pulses produce an output frequency that is directly proportional to
the volumetric flow rate/total flow rate through the meter [18]. Figure 3.1 shows the Turbine of
Flow Meter block diagram.
9
Output Fall Time 0.18 μs
Flow Rate Pulse Frequency (Hz) = 7.5 * Flow rate (L/min)
Durability Minimum 300,000 cycles
Cable Length 15cm
1/2” nominal pipe connections, 0.78” outer
Size 2.5” x 1.4” x 1.4”
A = cross-sectional area of the pipe. (viscosity, density, and friction of the liquid in contact with
the pipe also influence the flow rate of water) [19]
In other words:
10
𝑝𝑢𝑙𝑠𝑒𝑠
𝐹𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦(𝑠𝑒𝑐𝑜𝑛𝑑) 𝑡𝑖𝑚𝑒 𝑙𝑎𝑝𝑠𝑒𝑑 (𝑠𝑒𝑐𝑜𝑛𝑑𝑠)
𝐿𝑖𝑡𝑟𝑒𝑠 = ×
7.5 60
𝑃𝑢𝑙𝑠𝑒𝑠
𝐿𝑖𝑡𝑟𝑒𝑠 =
7.5 × 60
11
Figure 3.3 illustrates the major components of the Arduino Uno microcontroller board and figure
3.4 explains the Microcontroller’s Pin Plan of the Arduino Uno.
12
3.1.4 Wi-Fi Module
The ESP8266 has a fully Transmission Control Protocol stack support. It can also be configured
as a web server. The module accepts commands via a simple serial interface. The ESP8266 module
is an extremely cost-effective board than Wi-Fi Shield [23]. ESP8266 Wi-Fi Module is shown in
figure 3.5
13
3.1.7 Smart Water Meter
Smart Water Meter has five major components namely Flow sensor, Arduino Hardware Interface,
Real-time Clock Module, SD Card Data Logger Module, and Wi-Fi Module.
Arduino is an open-source electronics platform based on easy to use hardware and software. A
developer can send a set of instructions to the microcontroller. All Arduino boards are open-source,
empowering users to build them independently, and ultimately adapt them to their particular needs
[26].
14
3.1.7.4 Real-Time Clock Module
The DS3231 is an extremely accurate I2C real-time clock (RTC) with an integrated temperature-
compensated crystal oscillator (TCXO) and crystal. The device consists of an inbuilt battery to
maintain accurate time when the main power is interrupted. The RTC maintains seconds, minute,
hour, day, month, and year information. The clock operates either a 12-hour or 24-hour format
with AM/PM indicator [28].
The SD Card Module is required to save meter reading data. The measurements are read from
sensors (Flow Sensor and Real-Time Clock) and log in to the text file on the SD Card. The data
required is transferred to a mobile device later for the billing. SD Card is cheap and has a massive
storage solution. The Arduino development environment supports a built-in library that supports
the SD Card data logger module.
ESP8266 Module is based on the ESP8266 system on chip (SoC) which consists of a Wi-Fi serial
transceiver. This chip implements a full TCP/IP protocol stack. It has a great computational power
onboard feature. Hosting a simple TCP or UDP on-board server can make a very compact Internet
of Things (IoT) solution [29].
Front End
Back End
15
3.1.9.1 Front End
The front end refers to the client part of the cloud computing system. A Cloud computing platform
is required applications and interfaces (Web Browser).
The Back End refers to the cloud itself. It contains all of the resources essential to provide cloud
computing services. It contains huge data storage, virtual machines, security mechanism, services,
deployment models and servers, etc.
Every module will be described individually in this chapter. Figure 3.8 illustrates the Top Level
architecture of the Smart Water Meter.
16
Figure 3.8: Top Level Architecture of Smart Water Meter
A separate billing system was developed for the water board. JavaScript was used for the
development of web applications which is an open-source scripting language having Object-
Oriented features. MySQL database uses to keep a record of customer information, water
consumption, and charges. WAMP server consists of Apache, MySQL, and PHP. The cost of an
open-source stack is comparatively low when compared to other technologies such as ASP.NET
and Java.
17
3.2.4 Upload Code Using USB TTL Converter
3.2.5 Upload code using Arduino Uno Board (without USB TTL converter)
Arduino Uno Board is directly connected to ESP8266 (without USB TTL converter) to upload the
UDP server program. It is required to upload a blank Arduino code into the Arduino Uno Board.
This method is time-consuming than the previous method (discussed in 3.2.4). If blank code does
not upload to Arduino Uno Board, and it ends up with an error message, refer to Appendix B for
detailed instruction.
18
Figure 3.10: Universal Asynchronous Receiver and Transmitter
3.2.8 Interconnection of ESP8266 Module and Arduino Uno Board
Table 3.2: Interconnection of ESP8266 Module and Arduino Uno Board
ESP8266 Module Arduino Uno Board
RX 5
VCC 3.3V
GP100 *GND
(at the time of upload)
Rest -
GP102 -
CH_PD 3.3V
GND 3.3V
TX 6
19
Table 3.4: Calibration factor of the flow sensors
Pipe connections Model Calibration
(Inch)
½ YF-S201 Hall Effect Water Flow 7.5
Sensor
¾ YF-S403 Hall Effect Water Flow 4.0
Sensor
Data wire of the flow sensor connected to Arduino Uno Board pin 2 and its calibration factor fine-
tune as 4.15 in the program, as shown in Appendix E – Figure 2
20
3.2.10.3 Interconnection of DS3231 Real Time Clock and Arduino Uno Board
Pin layout for the DS3231 Real Time Clock Module and Arduino Uno Board are as follows:
Table 3.5: Interconnection of DS3231 RTC Module and Arduino Uno Board
DS3231 Real Time Clock Module Arduino Uno Board
SCL SCL
SDA SDA
VCC 5V
GND 3.3V
3.2.10.4 Setting up Date and Time to DS3231 Real-Time Clock
The date and Time of the module have to be initialized when using the module for the first time.
The code for initialization is illustrated in Appendix A – Figure 7. The RTC battery's purpose is
to keep the clock running when there is a power failure. Figure 3.11 shows the components of the
DS3231 module.
21
3.2.12 Interconnection of Micro SD Card Module and Arduino Uno Board
Table 3.6: Interconnection of Micro SD Card Module and Arduino Uno Board
Micro SD Card Module Arduino Uno Board
CS 4
SCK 13
MOSI 11
MISO 12
VCC 5V
GND GND
22
3.2.13.2 Integrated complete Water Meter
• Domain
• WordPress
• Hosting
• Website
• Plugin
3.2.14.1 Domain
The domain DigitalAgeWaterSystem.com is used. Purchased from NameCheap Registry for
approximately $9.00 for one year.
3.2.14.2 WordPress
The WordPress zip file was downloaded from wordpress.org. This will be extracted in the cPanel
of the hosting plan. The programming languages that made up WordPress are; PHP, MySQL,
JavaScript, HTML, and CSS.
23
3.2.14.3 Hosting
A one-year Stellar Hosting plan was also purchased from NameCheap Registry for approximately
$17.00. This comes along with cPanel where website development and management are carried
out.
The domain name was then hosted on the stellar plan. The process involves;
Thereafter, a username and password were created (in the cPanel) for the WordPress dashboard.
3.2.14.4 Website
From the WordPress dashboard, the website was managed. The process involved;
i. Creating two posts on the home page: This is done in the “post” tab in the WordPress
dashboard. The post title is: “Welcome to Water Management System Website: About the
Project” and “How the Website Works”.
ii. A page labeled “Upload Reading” was created in the “Pages” tab of the WordPress
dashboard. This page enables the consumers to upload their monthly reading in form of a
.txt file. The “Upload files” plugin was used for this purpose.
iii. Another page labeled “Current bill” was created in the “Pages” tab of the WordPress
dashboard. This page enables the consumers to download their monthly bills in form of a
.txt file. The “Download” plugin was used for this purpose.
iv. Another page labeled “Upload Receipt” was created in the “Pages” tab of the WordPress
dashboard. This page enables the consumers to upload their evidence of payment (receipt).
The “Upload files” plugin was used for this purpose.
24
v. All pages edit and update are done in WordPress (not cPanel).
3.2.14.5 Plugin
A WordPress plugin is software that can be uploaded to extend and expand the functionality of
your WordPress site. There are tons of WordPress plugins available for free download from the
wordpress.org plugin directory. There are also premium or paid WordPress plugins.
Plugins were downloaded from the Plugins> Add New, tab in the WordPress dashboard.
i. Akismet Anti-Spam: Version 4.1.6 created by plugin profile known as ‘Automattic’. Its
function is to protect the website from spam.
ii. Download Manager: Version 3.1.09 created by plugin profile known as ‘W3 Eden’. Its
function is to manage, protect, and track file downloads. This was used on the site to enable
bill download.
iii. Password Protect WordPress Lite: Version 1.5.2 created by plugin profile known as
‘BWPS’. Its function is to password-protect the WordPress site. This was used on the
website to enable file upload and download only after login.
iv. WordPress File Upload: Version 4.14.4 created by plugin profile known as ‘Nickolas
Bossinas’. Its function is to enable file upload. This was used in the site to enable reading
.txt files and receipts.
25
CHAPTER 4
RESULTS AND DISCUSSION
4.1 Results
The outcome of this project is a simple Arduino-controlled smart water meter that measures the
amount of water consumed by the residential sector. During the operation of the meter, water flows
through the flow sensor which is a device that detects and measures water flow through pipes. The
water flow follows through the rotor blade. Thus, pulses produce an output frequency that is
directly proportional to the volumetric flow rate/total flow rate through the meter. The
microcontroller then communicates with the Real-Time Clock Module, SD Card Data Logger
Module, and Wi-Fi Module.
1st Week
700 650
592 603 579
600 570 560
500
LITRES
400
309
300
200
100
0
MON TUE WED THURS FRI SAT SUN
DAYS
2nd week
800
700
600
500
LITRES
400
300
200
100
0
MON TUE WED THURS FRI SAT SUN
DAYS
26
The figures 4.1 and 4.2 above represents the results of water consumed in a 4-bedroom consisting
of six residents in a week. It is plotted to show the graphical image of water consumption by the
residents. The smart water meter was placed on the outgoing pipe from the tank connected to the
house, the average water consumed daily in the first week as calculated with this data is 552 litres
and 564 litres in the 2nd week. So using percentage error to calculate the percentage of water saved
between week one and two, the water consumed in week one is saved by 2.128% compared to
week two.
Refer to Appendix F for the meter reading text file which contains data for Monday 14th September
2020 and Tuesday 15th September 2020. The reading is used to plot the graph in figure 4.1 The
completed smart water meter would be more feasible to the ‘GSM Based Automatic Energy Meter
Reading System with Instant Billing’ because, in locations where the standard SMS charge rate is
high, maintenance of the smart water would also be high.
4.2 Discussion
4.2.1 Key Benefits
Accurate bills: The smart meter sends your readings automatically so you will always be
billed for what you use.
If you have a standard (non-smart) meter and forget to submit a reading, your supplier will
have to estimate how much energy you’ve used over the billing period. They estimate
based on the typical amount of energy you have used in the past or how much they think
you will use. Sometimes the supplier’s estimates are inaccurate, especially if they don’t
have a lot of information about your usage.
With a smart meter, not only will you avoid inaccurate shock bills but also you can also
avoid building a large final bill at the end of your tariff.
Highlights Faulty Appliances: The In-Home Display shows how much energy you’re
using at any given time, allowing you to notice any sudden spikes which may be associated
with a faulty appliance. By identifying these promptly, you can ensure it is dealt with
quickly and safely.
Saving the Planet: Smart meters improve your awareness of energy consumption. By
changing behavioral habits and informing decisions to buy more energy-efficient
appliances there is less pressure on the electricity grid. Smart Energy GB estimate a 24%
decrease in emissions from homes and businesses by 2030.
27
4.2.2 Cons of Smart Meters
One of the cons could be the need to ask power suppliers for the professional installation
of smart meters. In most cases, it is free and uncomplicated, though the transition may
require some learning in the beginning.
PV owners may come across some inconveniences when dealing with the older generation
of smart meters unable to properly measure power usage and excess production when it
comes to renewables.
28
Automated data collection using Smart Water Meter is efficient than manual meter reading.
Several users can benefit from the Smart Water Meter system in multiple ways. National Water
Supply and Drainage Board, Domestic Water Consumers, Private, State Sector Consumers, and
Meter Readers can directly benefit from this project.
How It Works: The input is a Water Meter reading data captured by using a water meter and the
output of the system would be the current cost and consumption of water by customers. The
monthly meter reading .txt file is saved on the SD card using the SD card module. Decision support
information is available for Hourly, Daily, Weekly, and Monthly consumption. Water leakage
information can be identifying after analysing individual data. Smart Water Meter has an
identification number and it will be used to identify the device uniquely. The device will be
registered and activated before getting installed on the consumer’s premises. Every user has an
authentication process before using the facilities of the system. Consumers would be able to eject
the SD card on their SWM and upload the meter readings saved as a .txt file to the WordPress
online platform provided. As stated earlier, every meter has an identification number saved in the
.txt file to be uploaded.
Bill calculation platform is also provided where personnel for the water providers receives the
meter readings and therefore use the information in the uploaded .txt file to provide the bill for a
consumer, therefore, sending it as feedback to the consumer to pay for water consumed for the
given time (daily, monthly, bi-monthly) as the case may be.
The main risk has been identified the system requires 5v power to be operated. In the event of
power failure, the system has to turn to backup power (UPS), solar power can be used as an
alternative. The Smart Water Meter system is eligible to collect customer water consumption data.
This data collection approach would be a new experience for customers and Meter Readers.
Therefore, such a set of data could be used to generate new knowledge.
29
CHAPTER 5
CONCLUSION AND RECOMMENDATION
5.1 Conclusion
The customers, Water Meter Reader, and Water Board are mainly benefited by the proposed
system. In the current system, customers are unable to retrieve information on the current month's
water consumption and cost after the last water bill (Unbilled period). The advantage of the new
system, customers will be able to get information on their usage at any time (instant). Meter readers
can collect meter reading data electronically efficiently than the earlier system. Water Board can
easily detect water leaks in customer premises when analysing individual customer data. It will
prevent losing money without getting the benefit. The system will provide information on water
consumption every fifteen minutes and it will help to analyse water usage patterns and predict the
water demand in the future.
Following features of SWMS system manage entire national pipe borne water system efficient
manner.
Capture meter reading
View water consumption
Analyse the consumption pattern and demand management of water
Estimate household water consumption
Analyse water-saving potential for the residential sector
The main risk has been identified the system require 5v power to operation. System can connect
to national electricity grid. when power failure system has to turn to backup power (UPS). The
national electricity grid has not been covered in particular areas, solar power can be used as a
substitute.
The SWMS system eligible to collect customer water consumption data. This data collection
approach would be a new experience to customers and Meter Readers. Therefore, such a set of
data could be used to generate new knowledge.
30
REFERENCES
[2] P. Mwangi, E. Mwangi, and P. M. Karimi, "A Low-Cost Water Meter System based on the Global
System for Mobile Communications," International Journal of Computer Applications (0975-8887),
2016.
[3] L. L. Nguyen, H. T. Huynh, and T. D. Nguyen, "A Low Cost and Low Power Consumption Automatic
Water Meter Reading System," Hardware Investigation and Network Design, 2015.
[4] A. S, S. M. N, A. S, K. Natarajan, and K. Shobha, "An IoT based 6LoWPAN enabled Experiment for
Water Management"," IEEE ANTS, 2015.
[5] M. R, "Flow of Industrial Fluids: Theory and Equations.," CRC Press, New York, 2004.
[6] K. A. D and L. K. Ehrhardt, "Advanced Metering Initiatives and Residential Feedback Programs,"
Beirut, 2010.
[8] K. Ashna and S. N. George, "GSM based Automatic Energy Meter Reading System with Instant
Billing," in Automation, Computing, Communication, Control, and Compressed Sensing, 2013, pp.
65-72.
[9] G. L. Praashanthi and K. V. Prasad, "Wireless Power Meter Monitoring with Power Theft Detection
and Intimation System using GSM and ZigBee Networks," p. 4, 2014.
[10] M. D. Oskouei and S. N. Razavi, A Study on WiMAX: IEEE 802.16 Standard, pp. 802-816, 2015.
[12] P. R. Daware and S. S. Patil, "A Review on Intelligent Automatic Meter Reading and E-Billing System
using Power Line Communication," p. 1341, 2013.
[13] Z. Zheng, X. Zhou and W. Z. Design, "Design and Implementation of Remote Meter Reading
System," Proceedings of the 2nd International Conference on Software Technology and Engineering
(ICSTE '10), pp. 247-250, 2010.
[14] S. C. Hsia, Y. J. Chang and S. W. Hsu, "Remote Monitoring and Smart Sensing for Water Meter
System and Leakage Detection," IET Wireless Sensor Systems, pp. 402-408, 2012.
[15] M. Y. Nayan, A. H. Primicanta and M. Awan, "Hybrid Automatic Meter Reading System,"
Proceedings of the International Conference on Computer Technology and Development (ICCTD
'09), pp. 264-267, 2009.
[16] Y. W. Lee, S. Eun and S. H. Oh, "Wireless Digital Meter with Low Power Consumption for Automatic
Meter Reading," Proceedings of the International Conference on Convergence and Hybrid
Information Technology (ICHIT '08), p. 2008, 639-645.
31
[17] D. N. Thanth and A. Borole, "Wi-Fi BAsed Smart Energy Meter," IJRCCT, pp. 282-285, 2015.
[20] M. T. Islam and R. C. Talukder, "Design and Development of a Microcontroller Based Water Flow
Control System Using Servo Motor," Dhaka, 2016.
[21] Ettron, "Arduino Tutorial for Beginners," 6 September 2020. [Online]. Available:
https://ettron.com/arduino-tutorial-for-beginners-learn-what-is-arduino/.
[23] Instructables, "Using the ESP8266 Module," 4 June 2020. [Online]. Available:
https://www.instructables.com/id/Using-the-ESP8266-module/.
[24] K. Kramer, "Sun Microsystems Announces Completion of MySQL Acquisition; Paves Way for
Secure, Open Source Platform to Power the Network Economy," Sun Microsystems, p. 17, 2008.
[25] T. Electronics, "Water Flow Sensor YF-S201," 16 March 2020. [Online]. Available:
https://www.tomsonelectronics.com/products/water-flow-sensor-yf-s201.
[29] OpenElectronics, "Top 5 Wireless ways to Communicate with your Controller," 5 June 2020.
[Online]. Available: https://www.open-electronics.org/top-5-wireless-ways-to-communicate-with-
your-controller/.
32
APPENDICES
APPENDIX A – Configuration and Installing Modules
A USB-TTL adapter driver has to be installed on the PC before connecting the adapter. USB to
Serial Com port driver not installed, Arduino IDE unable to detect port as illustrated in Figure 1.
USB-TTL converter connected to the computer to upload program and comm port has to be
selected in Arduino IDE when there was more than one comm port activated as illustrated in Figure
2.
33
Figure 2: Comm Port Selection
When connecting specific modules to the Arduino IDE, it needs to install a specific program
supplied by the device vendor as shown in Figure 3.
34
Figure 3: Include Libraries
Before uploading to Arduino IDE, change the board to “Generic ESP8266 Module” as in Figure
5.
35
Figure 5: Generic ESP8266 Module Selection
Arduino IDE needs to install the DS3231 module library supplied by the device vendor as
illustrated in Figure 6.
36
The date and Time of the module initialization coded as follows in Figure 7.
37
APPENDIX B – Use Case Diagram
38
APPENDIX C – Flow Chart
39
Figure 2: SD Card Reading
40
APPENDIX D – The Online Platform
Online Platform: The online platform created (https://www.digitalagewatersystem.com) serves
many purposes such as uploading monthly readings, downloading bills, and uploading evidence
of payment.
41
Figure 3: Select file for upload
42
Figure 5: Upload evidence of payment
43
APPENDIX E – Codes
44
Figure 5: Error message when the SD Card is not compatible
45
APPENDIX F – Text File for Smart Water Meter Reading
Reading Time Date
0000000000 13:00:00 14.09.2020
0000131597 14:00:00 14.09.2020
0000259298 15:00:00 14.09.2020
0000259298 16:00:00 14.09.2020
0000289969 17:00:00 14.09.2020
0000314192 18:00:00 14.09.2020
0000347095 19:00:00 14.09.2020
0000372841 20:00:00 14.09.2020
0000398130 21:00:00 14.09.2020
0000488300 22:00:00 14.09.2020
0000592513 23:00:00 14.09.2020
0000000000 00:00:00 15.09.2020
0000000000 01:00:00 15.09.2020
0000000000 02:00:00 15.09.2020
0000000000 03:00:00 15.09.2020
0000000000 04:00:00 15.09.2020
0000000000 05:00:00 15.09.2020
0000007095 06:00:00 15.09.2020
0000088841 07:00:00 15.09.2020
0000098130 08:00:00 15.09.2020
0000188300 09:00:00 15.09.2020
0000200013 10:00:00 15.09.2020
0000215080 11:00:00 15.09.2020
0000257985 12:00:00 15.09.2020
0000259298 13:00:00 15.09.2020
0000298298 14:00:00 15.09.2020
0000379996 15:00:00 15.09.2020
0000390192 16:00:00 15.09.2020
0000401709 17:00:00 15.09.2020
0000410841 18:00:00 15.09.2020
0000438130 19:00:00 15.09.2020
0000488300 20:00:00 15.09.2020
0000532907 21:00:00 15.09.2020
0000569109 22:00:00 15.09.2020
0000569765 23:00:00 15.09.2020
0000570213 00:00:00 16.09.2020
46