Automated Water Billing System
Automated Water Billing System
Automated Water Billing System
Institute of Technology
Electrical & computer Engineering
Department
Automated water billing system with mobile banking System
BY
Name of Candidates:
1.
Gebeyaw Tigabu
2.
Ibrahim Samuel
3.
Israel Yohannes
ID No
0426/05
0564/05
0566/05
June, 2008
Gondar, Ethiopia
UNIVERSITY OF GONDAR
SCHOOL OF TECHOLOGY
ELECTRICAL AND COMPUTER ENGINEERING
DEPARTMENT
Id.no
0426/05
0564/05
0566/05
Approval by Committee
The undersigned certify that the above candidate/s has fulfilled the condition of the project
paper in partial fulfillment of the course mini project for Electrical and Computer Engineering
Department.
Belete Bantalem
__________________
Chairman, Dept. Head
___________
Signature
Date
Committee
Eyob Solomon
Advisor/Supervisor
________________
Signature
__________________
Examiner
_____________
Date
___________
Signature
Date
Page i
Declaration
we, the undersigned, declare that this project, Automated water billing system with mobile
banking System , is our own work, and has not been presented for in any other place, and
all sources of materials used for the project have been fully acknowledged.
Signature
___________________
___________________
___________________
Place: Gondar
This project has been submitted for examination with my approval as a university advisor.
________________
Signature
Page ii
Abstract
Water meter reading is a monotonous and an expensive task. Now the meter reader people goes
to each meter and take the meter reading manually to issue the bill which will later be entered
in the billing software for billing and payment automation. If the manual meter reading and bill
data entry process can be automated then it would reduce the laborious task and financial
wastage. Automatic Water Meter Reading (AMR) System is a metering system that is to be
used for data collecting from the meter and processing the collected data for billing and other
decision purposes. In this paper we have proposed an automatic meter reading system which is
low cost, high performance, highest data rate, highest coverage area and most appropriate for
Bangladesh perspective. In this AMR system there are four basic units. They are reading unit,
communication unit, data receiving and processing unit and billing system.
Billing is a critical function of both the Electricity and the Water Boards towards getting a
meter read. Meter reading even though it looks simple and is far from simple and involves
processes that can give various problems. Paying a utility bill in Ethiopia and most developing
nations is time consuming. It takes more than a quarter a day or more, to pay a utility bill in
most of these nations with queues usually several meters long in any of water supply service
office.
This proposed system gives information about the design of a GSM based water billing
system. This is achieved by using microcontroller and GSM module. The deployment of the
proposed system uses the existing GSM network. Water flow Sensor gives output proportional
to flow in square wave form, we can collect the output and can store in microcontroller. One of
the ports of micro controller will be configured as input port. Sensors output is connected to
input port of controller , here at the falling edge of the wave controllers counter will be set till
the wave ends. Meanwhile counter value will be incremented as per duration of the wave. At
the end the value present in the timer will be given at output port by converting to decimal
digits. Monthly water usage can be sent to municipal corporation office within fraction of
seconds in the form of text message by using existing GSM network.
Microcontroller will give amount of water usage by user in the form of decimal values to the
GSM Modem. GSM modem receives water usage as a number string of numbers. GSM modem
then formats the value in the Message form by using AT commands. It then transmitted to
another GSM modem through existing GSM network. Billing software calculates bills based on
amount of water used and store the values to the data base for each individual customer. After
that calculated bill can be sent through SMS to the customer with their mobile phone. Then the
customer can see the amount of bill and pay the bill within mobile banking by using their
mobile phone. When the customer pay the amount of bill the bank staff send a report to the
water supply station data base through GSM network and then the water station database
administrator update the customer information.
Page iii
Page iv
Table of Contents
Abstract ..................................................................................................................................................... iii
CHAPTER ONE: INTRODUCTION ........................................................................................................ 1
1.1 Introduction/ Background of the Study............................................................................................ 1
1.2 Goals of the Project.......................................................................................................................... 2
1. 3 Objective of the Project .................................................................................................................. 2
1.3.1 General Objective ..................................................................................................................... 2
1.3.2 Specific Objective ..................................................................................................................... 2
1.4 Problem Statement ........................................................................................................................... 3
1.5 Operational and Research Assumptions .......................................................................................... 3
1.6 Significance of the Study ................................................................................................................. 4
1.7 Scope of the Project ......................................................................................................................... 4
1.8 Resource Requirement ..................................................................................................................... 5
CHAPTER TWO: SYSTEM ANALYSIS................................................................................................ 6
2.1 Development Methodology ............................................................................................................. 6
2.1.1 Planning and Data Gathering .................................................................................................... 6
2.1.2 System Model and Design ....................................................................................................... 7
2.1.3 Software Development.............................................................................................................. 7
2.1.4 System Testing and Implementation ......................................................................................... 7
2.1.5 Evaluation and Recommendation ............................................................................................. 7
2.2 EXISTING SYSTEM ...................................................................................................................... 9
2.2.1 Problems of the existing system................................................................................................ 9
CHAPTER THREE: LITERATURE REVIEW.................................................................................................... 11
3.2 PROPOSED SYSTEM OVERVIEW ..................................................................................................... 11
3.3 SYSTEM REQUIREMENTS.............................................................................................................. 14
3.3.1 FUNCTIONAL REQUIREMENTS .............................................................................................. 14
3.4.2 Nonfunctional requirements .................................................................................................. 15
CHAPTER FOUR: SYSTEM MODELS ...................................................................................................... 16
4.1 Scenarios ........................................................................................................................................ 16
4.2 Use case model .............................................................................................................................. 16
4.3 Class diagram ............................................................................................................................. 17
4.4 DYNAMIC MODELS ....................................................................................................................... 21
4.4.1 Activity diagram ...................................................................................................................... 21
Page v
Page vi
List of figures
Page no
Page vii
List of tables
page no
List of abbreviations
AMR------------------------------------ Automation meter reading
GSM------------------------------------ global system mobile
SMS------------------------------------ short message service
MsSQL-------------------------------- Microsoft structured query language
MCU----------------------------------- microcontroller
ROM----------------------------------- read only memory
RAM-------------------------------- random access memory
DSP--------------------------------- digital signal processing
CPU-------------------------------- computer processing unit
PEROM--------------------------- programmable and erasable read only memory
LCD------------------------------- liquid crystal display
Page viii
Page 1
Page 2
Page 3
Page 4
Page 5
Page 6
Page 7
start
start
Hardware
implementation
operational
Calibrate
Calibrate the
the
system
system
Software implementation
Integration of hardware
and software
Prototype testing
Correct
values
Result analysis
Conclusion and
recommendation
end
Fig2.1
Fig. methodology
methodologyflow
flowchart
chart
Page 8
We dont get an accurate reading of the consumption in units at the end of the month
due to improper functioning of hardware in some parts and hence there is also no easy
way to make repairs timely.
The payment of the users is not in timely manner and hence the whole system is
not properly organized. Even if the user wants to pay there is not facility to payment
method which can be achieved quickly. Paying utility bills for such basic services like
water still takes more than a quarter a day in Ethiopia and many other nations in Africa.
Customers to these utility companies have to spend very unproductive hours queuing to
pay bills in form of cash at the water supply service.
The officials who collect the reading of the meter visit irregularly. If faulty bill is
provided to the consumers then just to make the changes the consumers should make
frequent trips to the water supply service. This leads to wastage of time money and other
resources.
Page 9
When water meter units collector visits the house for collecting the units he generates
the bill and if door is locked then he will keep the bill on the door latch and due to
winds it may be lost and the consumer will not have any information about that and
next month he will have to pay the due amount also.
In addition to this, there may be billing errors and disputes and sometimes water supply
services estimate readings that the user usage, this leads to unfair paying utility bills because
of this reason customers complain to the services and they wouldnt have confidence in
service. Walking many kilometers to be able to pay water usage utility bills is
inconvenient and costly for customers and they waste their time to go to utility service to
pay the bills. Even they may face accident in transportation. The collection mechanisms
available are cash, which customers also stand a risk if unpaid, and as a consequence face
high charges.
Page 10
Page 11
Page 12
LCD DISPLAY
WATER FLOW
METER
GSM
MODEM
Power supply
AT89S52
Microcontroller
GSM network
Sever +
database
Data
processing &
generation f
bill
Fig 3.1
In above block diagram water flow Sensor gives output proportional to flow in square wave
form, we can collect the output and can store in microcontroller. One of the ports of micro
controller will be configured as input port. Sensors output is connected to input port of controller
Page 13
The development of a wireless billing SMS model is expected to make the life of
a utility-bill payer easy
The system must avoid estimate reading of the customers water usage
The system must avoid queue around the water supply service to pay the bill
The system shall allow water station database to have record, store and update the
customers information
The system shall allow digital water flow sensor meter to count the water usage
in digital form
The system must send the amount of water usage within a month using SMS to
the water station database
The system shall allow water station database to calculate/generate the individual
bill amount according to their usage
The system shall allow water station database to send the bill amount to the
customers with SMS
Page 14
The system shall allow customers to pay the bill with mobile banking in mobile
phone.
The above have mentioned are the functionalities of the system will do.
3.4.2 Nonfunctional requirements
Non-functional requirement describe invisible aspects of the system that are not directly related
to the system. Unlike functional requirement the non-functional requirement deals with
additional quality of the system such as:
1. Availability: The system is available for 24 hours. Unless some failures an internet
connection problem occurs or light goes off, our system is available at any time.
2. Reliability: The system will consistently perform its intended function.
3. Efficiency: The system is efficient based on the concept of resource consumption.
4. Easy to use: Our system is user friendly and understandable by customers who
know how to use the mobile banking.
5. Service: The service that the website provides is easily understandable by
customers who know how to use the internet. Moreover, the project is frequently
measured in cost and time.
6.
Scalability: Any increase in the number of user shall not degrade system
availability to an extent noticeable by any users.
Page 15
provide a higher-level view of the system. They provide the simplified and graphical
representation of what the system must actually do. As a result, they are the blueprints for our
system.
There are four actors that involved in the online cinema ticket reservation system these are
discussed below.
1. Customer
Customer creates mobile banking account.
Customer login mobile banking account to pay water consumption.
Customer views a received water bill amount with mobile phone.
Customer views account balance.
Customer pay received bill amount with mobile banking.
Customer receives receipt from database station with SMS.
Close the system after they finish what they want to do.
2. Database operator
The operator login to station database.
The operator reads individual customers meter reading values that are sent from
microcontroller.
The operator calculates the consumption of water bill amount.
The operator sends the calculated bill amount to the customer with SMS.
The operator receives report from bank.
The operator updates customer information.
The operator sends receipt to the customer with SMS.
Page 16
Class diagram is a type of static diagram that describes the structure of a system by showing the
system classes, their attributes, operations and the relationships among objects. Class diagram is
the main building block of object oriented modeling. Furthermore, it is used both for general
conceptual modeling of the systematic of the application, and for detailed modeling translating
the models into programming code.
Page 17
Description
This is a base class in which customer, bank staff and database operator
inherit this class. This class provides address and login.
Public: yes
Relations
Association: None
Aggregation: None
Composition: Login
Generalization: None
Variables:
User_Id: string, userFName: string, userLName:
string, sex: char, age: integer, salary: integer,
loggedin: Boolean
Functions:
+Login(username: string, password: string):
Boolean
+Logout(): void
+setUserFName(string userFName): string
+getUserFName():void
Table 4.1 user description
Page 18
Description
Role:
Bank staff
Public: yes
Relations
Variables:
Functions:
Class
Description
This is a base class in which the customer information is stored and the
individual customers meter reading in the data base and then calculate the
bill amount and send the bill amount to the customer with SMS. This class
provides login.
Public: yes
Data base
Relations
Association: None
operator
Aggregation: None
Composition: Login
Generalization: user
Variables:
User_Id: string, userFName: string, userLName:
string, sex: char, age: integer, address: String,
loggedin: Boolean
Functions:
+Login(username: string, password: string):
Boolean
+Logout(): void
+calculate bill(User_Id: string): string
+send bill(User_Id: string):string
Table 4.3 Data base operator description
Page 19
Description
Role:
Public: yes
Relations
Variables:
Functions:
Class
microcontroller
Description
This class counts the customer water flow amounts and sends the reading
values of the meter to the water station database.
Public: yes
Relations
Association: None
Aggregation: None
Composition:None
Generalization: None
Variables:
Watermeter-id: string
Functions:
+countWaterFlow():String
+sendreadings():String
Page 20
Page 21
Page 22
Page 23
Introduction
A microcontroller (sometimes abbreviated C, uC or MCU) is a small computer on a
single integrated
circuit containing
processor
core,
memory,
and
programmable input/output peripherals. Program memory in the form of NOR flash or OTP
ROM is also often included on chip, as well as a typically small amount of RAM.
Microcontrollers are designed for embedded applications, in contrast to the microprocessors used
in personal computers or other general purpose applications.
Microcontrollers are used in automatically controlled products and devices, such as automobile
engine control systems, implantable medical devices, remote controls, office machines,
appliances, power tools, toys and other embedded systems. By reducing the size and cost
compared to a design that uses a separate microprocessor, memory, and input/output devices,
microcontrollers make it economical to digitally control even more devices and processes. Mixed
signal microcontrollers are common, integrating analog components needed to control nondigital electronic systems.
Some microcontrollers may use four-bit words and operate at clock rate frequencies as low as
4 kHz for low power consumption (mill watts or microwatts). They will generally have the
ability to retain functionality while waiting for an event such as a button press or other interrupt;
power consumption while sleeping (CPU clock and most peripherals off) may be just Nano
watts, making many of them well suited for long lasting battery applications. Other
microcontrollers may serve performance-critical roles, where they may need to act more like
a digital signal processor (DSP), with higher clock speeds and power consumption.
Intel 8051 and 80C51 are members of Intel MCS-51 family of 8-bit microcontrollers. In addition
to on-chip clock oscillator, 2 16-bit timers, 4 I/O ports and a serial port, all 8051 and 80C51
chips have 128 bytes of RAM and 4 KB masked ROM. If necessary, 8051 memory can be
expanded up to 128 KB by adding up to 64 KB of external program and data memory.
AT89C51 Microcontroller
Page 24
Features:
Compatible with MCS-51 Products
4K Bytes of In-System Reprogrammable Flash Memory
Endurance: 1,000 Write/Erase Cycles
Fully Static Operation: 0 Hz to 24 MHz
Three-level Program Memory Lock
128 x 8-bit Internal RAM
32 Programmable I/O Lines
Two 16-bit Timer/Counters
Six Interrupt Sources
Programmable Serial Channel
Low-power Idle and Power-down Modes
Page 25
Page 27
Page 28
Page 29
Pin No
Name
Ground (0V)
Ground
Vcc
VEE
Register Select
Read/write
Enable
DB0
DB1
DB2
10
11
DB3
8-bit data pins
DB4
12
DB5
13
DB6
14
DB7
15
Led+
16
Led-
Page 30
There are various cell sizes in a GSM system such as macro, micro, pico and umbrella cells.
Each cell varies as per the implementation domain. There are five different cell sizes in a GSM
network macro, micro, Pico and umbrella cells. The coverage area of each cell varies according
to the implementation environment.
Page 31
TDMA technique relies on assigning different time slots to each user on the same frequency. It
can easily adapt to data transmission and voice communication and can carry 64kbps to
120Mbps of data rate.
GSM Architecture
A Mobile Station: It is the mobile phone which consists of the transceiver, the display and the
o
o
o
o
o
o
o
o
o
o
Page 32
Send message.
ATD
Dial a number.
ATDL
ATH
Answer a call.
From the below circuit, a GSM modem duly interfaced to the MC through the level shifter IC Max232. The
SIM card mounted GSM modem upon receiving digit command by SMS from any cell phone send that data to
the MC through serial communication. While the program is executed, the GSM modem receives command
STOP to develop an output at the MC, the contact point of which are used to disable the ignition switch. The
command so sent by the user is based on an intimation received by him through the GSM modem ALERT a
programmed message only if the input is driven low. The complete operation is displayed over 162 LCD
display.
Page 33
Max 232 is an ic(integrated circuit) that converts TTL(Transistortransistor logic) logic signal in
to its equivalent RS-232c level signal and Rs-232c level to its equivalent TTL level signal. This
ic is very important in case when we need to make connection and transfer data between devices
that works on different wave forms.
Page 35
MAX232 offers a intermediate link between the Microcontroller and your PC. The transmitters
of this IC will convert the TTL/CMOS input level into RS232 voltage levels. The receiver pins
are capable of taking input around -30V to +30V. Meanwhile each receiver converts RS232
inputs to 5V TTL/CMOS logic level which was fed into the Rx pin of a Microcontroller. So
summing up this IC acts as a intermediator by converting the voltage level of signals.
The IC is capable of supplying RS232 standard voltage logic levels by means of a single 5V
power supply. This was done by means of a capacitive voltage generator used within that IC. So
we need to connect three external capacitors whose value range from 1uF to 22uF. The
capacitors are meant to be connected across the pins C1+ & C1-, C2+ & C2-, C3+ & C3-.
Page 36
Crystal Oscillator
A crystal oscillator is an electronic circuit that uses the mechanical resonance of a
vibrating crystal of piezoelectric material to create an electrical signal with a very precise
frequency. This frequency is commonly used to keep track of time (as in quartz wristwatches), to
provide a stable clock signal for digital integrated circuits, and to stabilize frequencies for radio
transmitters and receivers. The most common type of piezoelectric resonator used is the
quartz crystal, so oscillator circuits designed around them were called "crystal oscillators". The
usual model of a crystal is a network of two capacitors, an inductor and a resistor. The shunt
capacitance (C0) is introduced by the metal plates used for electrical connections to the quartz
wafer. Crystals are capable of oscillating at multiple frequencies.
RS-232 Serial Protocol
One of the most common serial interfaces is based on the RS-232 standard. This standard was
developed to allow individuals to use remote computer systems over dialup telephone lines with
remote terminals. The standard includes provisions for a remote terminal that is connected to a
modem that places a telephone call, a modem that answers the telephone call, and a computer
that is connected to that modem. The terminal can be connected directly to the computer,
eliminating the need for two modems, through the use of a special device called
a null modem adapter. Sometimes this device is built directly into a cable, in which case the
cable is called a null modem cable.
Page 37
Page 38