Earth Leage
Earth Leage
Earth Leage
CLASS: UQF 8
This part is submitted as partial fulfillment of the requirements for the award of the
Bachelor degree in Electrical and Electronic Engineering under Electrical and Power
Engineering Department in Mbeya University of Science and Technology (MUST). I
certify that I have read and hereby recommend for acceptance by Mbeya University
of science and Technology as project titled “DESIGN OF AUTOMATIC EARTH
LEAKAGE DETECTOR CIRCUIT WITH SMS NOTIFICATIONS FOR
DOMESTIC CONSUMERS.
Signature…………………………………
Date ……………………………………..
DECLARATION
I, Ashura Mtumwa Mussa, declare to the best of my knowledge that, the project
presented here as a partial fulfillment of Bachelor of Electrical and electronics
engineering at Mbeya University of Science and Technology under the supervision
of Eng. Godwin Mnkeni is my original work, and has not been copied from
anywhere or presented elsewhere, except where explicitly indicated otherwise, as all
sources of knowledge have been dully acknowledged.
Signature…………………………………..
Date………………………………………
COPYRIGHT
This report is copyright material protected under the Berne Convention the copyright
Act 1999 and other international enactments in that behalf on intellectual property, It
may not be reproduced by any means, in full or in part, except for short extracts in
fair dealings for research or private study
DEDICATION
First of all, I thank God, I dedicate this report to my beloved mother and my family
for their moral and support. Also I dedicate this work to all staff and students of
Department of Electrical and Power Engineering.
ACKNOWLEDMENT
First of all, I acknowledge the grace of God of heaven, the maker, and the provider of
knowledge for enabling me to complete my degree in Electrical and Electronics
engineering in good health. I would like to express my special thanks to my
supervisor, Eng. Godwin Mnkeni from the Mbeya University of science and
technology for the valuable instructions and guidance she has given to me when I
was doing this thesis. Without his kind support this thesis has been made impossible.
I also would like to take this opportunity to send my deepest gratitude to all of the
lecturers, and Support staff of Mbeya University of science and technology for
providing me with both theoretical knowledge and practical experience in the field of
public financial management. Thanks to their enthusiastic lectures and
encouragement, I have been able to complete this dissertation.
Last but not least, this project is for my Parents who forced me to use her little
savings to buy a laptop for writing the research and other components just because
they wanted to make a contribution to my study. All those who assisted me in one
way or another throughout this period of project and though I may not name each one
of you individually, your contribution is recognized and appreciated immensely. I
owe you my gratitude. To you all, God bless.
LIST OF FIGURE
Table 3. 1 Shows Earth leakage problems in different year at different location ... xxiii
Table 3. 2 Data collection for various consumers ................................................... xxiv
Table 3. 3 Modem specification ............................................................................... xxv
Table 3. 4 Electrical characteristics for 16x2 LCD Module .................................... xxv
Table 3. 5 Types of Voltage Regulator .................................................................... xxv
Table 3. 6 Microcontroller specifications ............................................................... xxvi
Table 4. 1 GSM Specifications ............................................................................. xxxiii
Table 4. 2 Data Gathered for Microcontroller ...................................................... xxxiv
LIST OF ABBREVIATION
AC Alternating Current
DC Direct Current
IC Integrated Circuit
PIC Peripheral Interface controller
RAM Random Access Memory
RISC Reduce Instruction Set Computer
LCD Liquid Crystal Display
ABSTRACT
Currently the method used to detect the earth leakage is by use of an ordinary AC
tester which cannot detect the earth leakage if current is not high enough to switch on
a neon lamp. Also this system is done too late after the user experiencing the high
electric bill for long time is where he/she decides to call the electrician to do
inspection on wiring system in order to trace out if there is earth leakage. The
weakness of current system is that it does not send notification automatically
whenever the leakage is detected so that the problem can be solved as early as
possible.
The proposed system is going to detect the earth leakage automatically and send
notifications to user on the spot whenever the earth leakage is detected. The proposed
system consists the sensing unit, whenever the sensing unit detects the earth leakage
it sends the feedback signal to the microcontroller, the microcontroller process the
received signal and command the global system for mobile communications (GSM)
and GSM sends to the notifications to the user about the occurrence of earth leakage.
Therefore the stated problem will be solved by the proposed system.
Table of Contents
CHAPTER ONE ....................................................................................................................... i
INTRODUCTION .................................................................................................................... i
1.1 General Introduction ............................................................................................... i
1.2 Problem Statement ................................................................................................. ii
1.3 Project Objectives .................................................................................................. ii
1.3.1Main objective...................................................................................................... ii
1.3.2 Specific Objectives.............................................................................................. ii
1.4 Significance of the Project ..................................................................................... ii
1.5 Scope/limitation ..................................................................................................... ii
CHAPTER TWO .....................................................................................................................iii
LITERATURE REVIEW ........................................................................................................iii
2.1 Introduction ........................................................................................................... iii
2.2 Related existing system ......................................................................................... iii
2.2.1 Earth leakage circuit breaker...........................................................................................iii
2.2.1.1How to Connect Earth Leakage Circuit Breaker........................................................... iv
2.1.1.2Types of Earth Leakage Circuit Breaker (ELCB) ......................................................... iv
2.1.1.3. Voltage Operated ELCB ............................................................................................. iv
2.1.1.4 Advantages of Voltage Operated ELCB .......................................................................v
2.1.1.5 Disadvantages of Voltage Operated ELCB.................................................................. vi
2.1.1.6 Current Operated ELCB............................................................................................... vi
2.2.2 Existing system ................................................................................................. vii
2.2.3 Existing Block Diagram .................................................................................... vii
2.3 The proposed System .......................................................................................... viii
2.3.1 Advantages of the Proposed System ................................................................ viii
2.3.2The proposed Block diagram .............................................................................. ix
2.4 Description of the Proposed Block Diagram ........................................................ x
2.4.1 Regulated Power Supply .................................................................................................x
2.4.2 Transformer ......................................................................................................... x
2.4.1.2Transformer Principle of Operation ................................................................. xi
2.4.3 Smoothing circuit/ Capacitor ............................................................................ xii
2.4.4 Regulator ........................................................................................................... xii
2.4.5 Types of voltage regulator ................................................................................ xii
2.4.6 IC voltage regulator........................................................................................... xii
2.4.7 Types of IC Voltage Regulators ....................................................................... xiii
2.4.8 LM7805: ........................................................................................................... xiii
2.4.9 Advantages of the Regulator ............................................................................ xiv
2.5 Sensing Unit ......................................................................................................... xv
2.6 Microcontroller .................................................................................................... xv
2.6.1 Types of Microcontrollers ................................................................................. xv
2.6.2 8051 Microcontroller ....................................................................................... xvi
2.6.3 ARM Microcontroller ...................................................................................... xvi
2.6.4 AVR Microcontroller ....................................................................................... xvi
2.6.5 Programmable Interface Controller (PIC) ........................................................ xvi
2.6.6 Arduino Microcontroller ................................................................................. xvii
2.7 Global System for Mobile Communication (GSM) ........................................... xvii
2.7.1Application of GSM .......................................................................................... xix
2.8 Display (LCD) ..................................................................................................... xix
2.8.1 Advantages of LCDs ......................................................................................... xx
CHAPTER THREE ............................................................................................................... xxi
METHODOLOGY AND DATA COLLECTION ................................................................. xxi
3.1 Methodology. ................................................................................................................... xxi
3.1.1 Literature review .............................................................................................. xxi
3.1.2 Data Collection................................................................................................. xxi
3.1.3 Data Analysis ................................................................................................... xxi
3.1.4 System design ................................................................................................. xxii
3.1.5 Circuit Simulation ........................................................................................... xxii
3.1.6 System implementation and prototype testing ................................................ xxii
3.1.7 Report writing ................................................................................................. xxii
3.2 Data collection ................................................................................................... xxii
3.2.1 Primary data. ................................................................................................... xxii
3.2.2 Secondary data (Technical data) ..................................................................... xxv
3.2.2.2 Display ......................................................................................................... xxv
3.2.2.3 Voltage Regulator 7805 ............................................................................... xxv
3.2.2.4 Microcontroller ........................................................................................... xxvi
3.2.2.5 Flow chart of the proposed system.............................................................. xxvi
CHAPTER 4 ...................................................................................................................... xxviii
DATA ANALYSIS AND RESULTS DISCUSSION ....................................................... xxviii
4.1 Introduction ..................................................................................................... xxviii
4.2 Sensing Part Analysis...................................................................................... xxviii
4.3 Design of DC power supply .............................................................................. xxix
4.3.1 Transformer analysis ...................................................................................... xxix
4.3.2 Rectifier analysis ............................................................................................. xxx
4.3.3 Filter analysis ................................................................................................. xxxi
4.3.4 Voltage regulator LM7805............................................................................. xxxi
4.4 GSM Module Selection Specification .............................................................. xxxii
4.4 Microcontroller selection ................................................................................ xxxiv
4.5 Selection of liquid Crystal display (LCD) ....................................................... xxxv
4.6 The designed circuit Operation ....................................................................... xxxv
CHAPTER FIVE ................................................................................................................xxxix
CONCLUSION AND RECOMMENDATION ..................................................................xxxix
5.1 CONCLUSION ............................................................................................... xxxix
5.2 RECOMMENDATION .................................................................................. xxxix
REFERENCES ........................................................................................................................ xl
APPENDICES ....................................................................................................................... xlii
APPENDIX A ........................................................................................................... xlii
APPENDIX B .......................................................................................................... xliii
AAPPENDIX C: SOURCE CODES OF THE PROJECT....................................... xliv
CHAPTER ONE
INTRODUCTION
1.1 General Introduction
Earth leakage from electrical wiring is a serious problem especially during rainy
season. Electrical appliances or faulty wiring may be the source of leakage current
through the wet wall to the earth. Earth leakage results in excess meter reading due to
some electrical current flowing from the current carrying conductor to the earth.
Therefore the user incurs excess expenditure while paying the electric bill.
Currently the method used to detect the earth leakage is by use of an ordinary AC
tester which cannot detect the earth leakage if current is not high enough to switch on
a neon lamp. Also this system is done too late after the user experiencing the high
electric bill for long time is where he/she decides to call the electrician to do
inspection on wiring system in order to trace out if there is earth leakage. The
weakness of current system is that it does not send notification automatically
whenever the leakage is detected so that the problem can be solved as early as
possible.
The proposed system is going to detect the earth leakage automatically and send
notifications to user on the spot whenever the earth leakage is detected. The proposed
system consists the sensing unit, whenever the sensing unit detects the earth leakage
it sends the feedback signal to the microcontroller, the microcontroller process the
received signal and command the global system for mobile communications (GSM)
and GSM sends to the notifications to the user about the occurrence of earth leakage.
Therefore the stated problem will be solved by the proposed system.
1.2 Problem Statement
Earth leakage has been a major problem which causes excess energy meter reading
and hence the user incurs excess cost while paying the electricity bill. This problem
exists because it is difficult to trace the earth leakage using the normal ac tester
especially when the current is very small to light on the neon lamp. Also due to
absence of automatic system which could alert on earth leakage it leads to the stated
problem because it is revealed late if there is earth leakage after experiencing high
electricity bill for a long time is where the user tends to inform the electrician to do
inspection on wiring system.
i. The system will simplify the process of tracing earth leakage fault.
ii. To avoid the excess cost due to earth leakage
1.5 Scope/limitation
The system will not be able to send notifications on absence of network coverage
and absence of credit on simcard.
CHAPTER TWO
LITERATURE REVIEW
2.1 Introduction
This chapter describes the features, operation and limitation of the existing system. It
also explains about the proposed system. Furthermore it will provide necessary
information and knowledge which will aid in attaining the objectives of this project.
While current and voltage on the ground line generally fault current from a live wire,
this is not continuously the case, therefore there are conditions in which an ELCB
can annoyance trip. When an installation of the electrical instrument has two contacts
to earth, a near high current lightning attack will root a voltage gradient in the earth,
offering the ELCB sense coil with sufficient voltage to source it to a trip.If either of
the soil wires become detached from the ELCB, it will no longer install will
frequently no longer be correctly earthed. These ELCBs are the necessity for a
second connection and the opportunity that any extra connection to ground on the
threatened system can inactivate the detector.
Currently the method used to detect the earth leakage is by use of an ordinary AC
tester which cannot detect the earth leakage if current is not high enough to switch on
a neon lamp. Also this system is done too late after the user experiencing the high
electric bill for long time is where he/she decides to call the electrician to do
inspection on wiring system in order to trace out if there is earth leakage. The
weakness of current system is that it does not send notification automatically
whenever the leakage is detected so that the problem can be solved as early as
possible.
ELECTRICAL WIRING
TECHNICIAN SYSTEM
The proposed system is going to detect the earth leakage automatically and send
notifications to user on the spot whenever the earth leakage is detected. The proposed
system consists of the sensing unit, whenever the sensing unit detects the earth
leakage it sends the feedback signal to the microcontroller, the microcontroller
process the received signal and command the global system for mobile
communications (GSM) and GSM sends to the notifications to the user about the
occurrence of earth leakage. Therefore the stated problem will be solved by the
proposed system.
i. The system will simplify the process of tracing earth leakage fault.
ii. To avoid the excess cost due to earth leakage
iii. It sends notification on the spot soon after earth leakage occurs
iv. It efficient
v. It is reliable
2.3.2The proposed Block diagram
LCD
DISPLAY
EARTH
LEAKAGE
GSM
MICROCONTROLLER
MODULE
SENSING
UNIT
USER
MOBILE
PHONE
Dc power supply is used in order to power the entire circuit. Power supply consist of
step down transformer which steps down the ac main into 12V ac which is fed to the
bridge rectifier for being converted in pulsating DC voltage, pulsating dc means the
signal consists both ac and dc components. From bridge rectifier the signals is fed
into filter where the ac signals are shorted to the ground and dc signal are allowed to
pass to the regulator, regulator is there in order to maintain the constant output
voltages by eliminating fluctuations from the incoming signals. A 5V Regulated DC
power supply will be used to power a microcontroller, sensing unit, burser, GSM
module, and SD card device.
Figure 2. 8 Transformer.
As shown above the electrical transformer has primary and secondary windings. The
core laminations are joined in the form of strips in between the strips you can see that
there are some narrow gaps right through the cross-section of the core. These
staggered joints are said to be „imbricated‟. Both the coils have high mutual
inductance. A mutual electro-motive force is induced in the transformer from the
alternating flux that is set up in the laminated core, due to the coil that is connected
to a source of alternating voltage. Most of the alternating flux developed by this coil
is linked with the other coil and thus produces the mutual induced electro-motive
force.
If the second coil circuit is closed, a current flows in it and thus electrical energy is
transferred magnetically from the first to the second coil.
The alternating current supply is given to the first coil and hence it can be called as
the primary winding. The energy is drawn out from the second coil and thus can be
called as the secondary winding.
2.4.4 Regulator
Regulator is used to maintain the constant output voltage by removing fluctuations
from incoming voltage from filter circuit. Generally the main function of Dc power
supply in our circuit is to power the circuit.
2.4.8 LM7805:
This will be the regulator which is going to be used in this project for obtaining a
pure DC voltage. A LM7805 Voltage Regulator is a voltage regulator that outputs +5
volts. An easy way to remember the voltage output by a LM78XX series of voltage
regulators is the last two digits of the number. A LM7805 ends with "05"thus, it has
outputs of 5 volts. The "78" part is just the convention that the chip makers use to
denote the series of regulators with output positive voltage. The other series of
regulators, the LM79XX, is the series that outputs negative voltage. So: LM78XX:
Voltage regulators that output positive voltage XX"=voltage output. LM79XX:
Voltage regulators that output negative voltage, "XX"=voltage output. The LM7805,
like most other regulators, is a three-pin IC(Singh, Kumar et al. 2014).
Pin 1 (Input pin): The Input pin is the pin that accepts the incoming DC voltage,
which the voltage regulator will eventually regulate down to 5 volts.
Pin 2 (Ground): Ground pin establishes the ground for the regulator.
Pin 3 (Output pin): The Output pin is the regulated 5 volts DC.
Figure 2. 9: Pin Out Diagram of Voltage Regulator.
Even though regulator can accept this voltage it is advisable an input voltage of 36
volts, to limit the voltage to 2-3 volts higher than the output regulated voltage. For a
5-volt regulator, no more than 8 volts should be applied as the input voltage. The
difference between the input and output voltage appears as heat. The greater the
difference between the input and output voltage, the more heat is generated. If too
much heat is generated, through high input voltage, the regulator can overheat. If the
regulator does not have a heat sink to dissipate this heat, it can be destroyed and
malfunction. So the two options are, design the circuit so that the input voltage going
into the regulator is limited to 2-3 volts above the output regulated voltage or place a
heat sink in your circuit to dissipate the created heat.
The GSM module is important in this kind of projects, it provides the ability to send
and receive signals between the microcontroller and authorized personnel mobile
phone.
These are two important standards in the transfer of data using GSM network, the
first one is the usage of SMS "Short Messages Service" and the second one is the
usage of the General Packet Radio Service "GPRS".
This module needs a special board in order to use it easily and effectively, the board
comes with a special voltage regulator which does provides 2 levels of voltage (3.8
and 3.3 v), this board comes with a serial interface (RS 232) in order to make the
usage of the module easier. Global System for Mobile (GSM) is a second-generation
cellular standard developed to cater voice services and data delivery using digital
modulation.
Telecommunication services that enable voice communication via mobile phones are
- Mobile telephony
- Emergency calling
Figure 2. 11: GSM Overview.
2.7.1Application of GSM
i. Telemetric
ii. Wireless terminal
iii. Alarm/Security system
iv. Automatic Meter Reading
v. Remote control
vi. Mobile trunk
vii. Wireless PSTN
3.1 Methodology.
The methodology which is going to be used during the project is PROTOTPYE
methodology. PROTOTPYE is limited working system developed to test out design
concept. Prototyping is the process of building a model of a system. Before the
process of prototyping the system should be pass the several steps until the part of
prototype. The phases in which system will follow before the processes of prototype
are:
3.1.1 Literature review
This method involves passing through different sources of information in particular
area of a subject. Sources of information to be used are such as; books, journals and
various research papers. This method explores the existing systems with their
limitations also some useful knowledge gaps will be used as reference in
accomplishing this project.
IYUNGA 5 2 3 6
IKUTI 6 5 4 2
ILUMBA 4 7 4 6
IGAWA 6 4 2 4
MBALIZI 5 5 4 6
ITENDE 2 3 6 4
SIMIKO 8 5 5 3
SOWETO 3 3 5 2
MABATINI 6 5 3 4
SAE 3 4 6 3
The following data are collected to the various consumers by using interviews.
3.2.2.2 Display
The kind of LCD to be used in this project is 16x2 display.
Table 3. 4 Electrical characteristics for 16x2 LCD Module
Current Ta=25◦c,
Supply Idd Vdd=5.0 _ 2.0 30
(mA)
Programming
The Arduino/Genuine Uno can be programmed with the (Arduino Software (IDE).
Communication
Arduino/Genuine Uno has a number of facilities for communicating with a computer,
another Arduino/Genuine board, or other microcontrollers. The ATmega328
provides UART TTL (5V) serial communication, which is available on digital pins 0
(RX) and 1 (TX).
Is earth YES
NO Send sms notifications
leakage
to the home owner
detected?
END
CHAPTER 4
0
β
= = …………………………………..(4.1)
Where,
Therefore,
= = =55:3 = 18.33
Therefore,
The peak value of rectified voltage (Vpr) (forward and reverse rectification)
Therefore,
The peak inverse voltage (PIV) for each diode is obtained by the following equation.
Therefore,
So, the best selection of diode type is IN4001 which uses the maximum current of IA
and 50V.
4.3.3 Filter analysis
The function of a filter is to minimize the ac component from the rectified voltage so
that the pulsating dc voltage approaches a pure dc voltage (constant voltage). Usually
rectifier output has pulsating signal which has to be smoothen for better performance
of electronic circuits. The simplest method of ripple filtering is the use of shunt
capacitors. R.M.S ripple current in a filter capacitor can be 2 to 3 times D.C load
current the larger the value of the capacitor in microfarads the better will be the
smoothening of the output.
Ripple factor equations
Therefore,
The minimum ripple factor is 5%, then value of capacitor is obtain from equation
4.9:
GSM Specification
S/N Parameters Specification
The ATmega32 and ATmega8 are rejected and ATmega328p is selected to used with
board because of the following features.
Low power device compared to other
Wide voltage range compared to other two devices
High operating speed
Low cost
The reason for using atmega328p with Arduino boards is that,
Inexpensive-Arduino boards are relatively inexpensive compared to other
microcontroller platforms
Its programming language is simple (Arduino language)
No need of external programmer
Ease to use, as it has built in pins outs for providing you with 5v, 3.3v,
ground, analog input, digital output, SPI, 12C etc.
Cross-platform-The Arduino software runs on windows, Macintosh SX, and
Linux operating systems. Most microcontroller system are limited to window
The circuit detection sytem is placed near the distibution panel of the consumers
The designed system consists of the sensing unit, whenever the sensing unit detects
the earth leakage it sends the feedback signal to the microcontroller, the
microcontroller process the received signal and command the global system for
mobile communications (GSM) and GSM sends to the notifications to the user about
the occurrence of earth leakage. Under normal operating condition, the sensing unit
will not detect any change hence there is no output display through liquid crystal
display and Gsm doesn‟t send message to the owner. Under earth leakage fault. The
sensing unit will detect the fault and allow the microcontroller to send the signal to
the Gsm module for sending message to the consumers. The power supply has a step
down transformer for converting AC TO DC for supplying all component in the
designed circuit.
Figure 4. 2 Circuit diagram of simulation results
Figure 4. 3 Circuit diagram of the simulation showing no leakage
Figure 4.4 Circuit diagram of simulation showing earth leakage and the message
send
CHAPTER FIVE
5.1 CONCLUSION
The design of an automatic earth leakage design of automatic earth leakage with sms
notifications in domestic consumers has been achieved in this project. The circuit is
able to send the message to the mobile phone when the small amount of earth
leakage is detected as well to display in screen when the fault occurs. Due to the
presence of the system the consumers will remove the problem in simplest way
without causing the excess of the energy causes cost which are caused by electric bill
when earth leakage occurs in domestic wiring system. Also the project will give the
reliability of electrical energy and problem solving in high accuracy and more
efficiency.
5.2 RECOMMENDATION
The designed system can be install in domestic distribution board in order to increase
the security and to reduce the excess electrical energy cost which are difficult to trace
the circuit when the problem arises if the system is at fault condition. Therefore I
recommended that for the system to operate as intended it must not be employed to
where our scope have not stated so as to meet the designed operating characteristics
as it have a lot of advantages to our local community.
REFERENCES
KENNY, F. (2011, December 8). Capacitors. Retrieved January 23, 2020, from
Www.capacitors.com:
ttps://en.wikipedia.org/wiki/Applications_of_capacitors
Title defending
Literature review
Consultation
Data collection
Data analysis
Circuit designing
and simulation
prototype
Report writing
APPENDIX C: SOURCE CODES OF THE PROJECT
#include<Liquid Crystal.h>
LiquidCrystal lcd(13,12,11,10,9,8);
#include<Software Serial.h>
int umeliki;
int temp=0;
void setup() {
lcd.begin(16, 2);
Serial.begin(9600);
sim.begin(9600);
pinMode(A0,INPUT);
lcd.print("AUTO LEAKAGE");
lcd.setCursor(0,1);
lcd.print("DETECTOR SYSTEM");
delay(1000);
void loop () {
sim.println ("AT+CMGF=1");
delay (100);
sim.println ("AT+CMGS=\""+PhoneNumber+"\"\r");
delay (100);
\QUICKLY");
delay (100);
delay (100);
if (umeliki==LOW)
lcd.clear ();
lcd.print("ALERT! LEAKAGE");
lcd.setCursor(0,1);
lcd.print("DETECTED!!!:");
delay (1000);
if (temp==0)
{
SendMsg ();
temp=1;}
else
lcd.clear();
delay (1000);