Professional Documents
Culture Documents
MEMBERS ID NO.
1. AMANUEL SISAY R/0190/06
2. BEIDE MELAKU R/0297/06
3. TIRSIT GEBREKIDAN R/0153/06
4. SAMUEL LEMMA R/1150/06
5. ABAS SULTAN R/0004/06
AKNOWLEGMENT
First of all thanks to God for each and every success throughout our project and the entire life as
well. We would like to express our deepest appreciation to all who provided us the possibility to
complete this project. A special gratitude we give to our final year project advisor Dr. K.
KAVITHA for her suggestions on the software simulation and as well as encouraging us for doing
our project. We also want to thank her for the brilliant comments and suggestions that she gave us
when we prepare our project documentation and for helping us to coordinate our project as a whole.
We would also like to thank the Electrical and Computer Engineering department for helping us
on different aspects especially for the electronic components they borrowed us. At last our special
thanks goes to our family for all of the sacrifices that they have made on our behalf.
ii
Communication Stream
ASTU JUNE 2018
TABLE OF CONTENTS
Contents
AKNOWLEGMENT .................................................................................................................................... ii
LIST OF FIGURES ..................................................................................................................................... vi
LIST OF TABLES ...................................................................................................................................... vii
LIST OF ACRONYMS ............................................................................................................................. viii
ABSTRACT................................................................................................................................................. ix
CHAPTER ONE ......................................................................................................................................... 10
INTRODUCTION ...................................................................................................................................... 10
1.1 Background of the project ................................................................................................................. 10
1.2 Objectives of the project ................................................................................................................... 11
1.2.1 General objective ....................................................................................................................... 11
1.2.2 Specific objectives ..................................................................................................................... 11
1.3 Statement of the Problem .................................................................................................................. 12
1.4 Methodology ..................................................................................................................................... 12
1.4.1 System development methodology block diagram. ................................................................... 12
1.4.2. System Development Tools ...................................................................................................... 14
1.4.3. Hardware requirement list ......................................................................................................... 14
1.4.4 Software requirement list ........................................................................................................... 14
1.5 Scope of the project .......................................................................................................................... 14
1.6 Significance of the project ................................................................................................................ 15
1.7 Limitation of the project ................................................................................................................... 15
1.8 Thesis Organization .......................................................................................................................... 15
CHAPTER TWO ........................................................................................................................................ 16
LITREATURE REVIEW ........................................................................................................................... 16
2.1 Real World Monitoring Systems....................................................................................................... 17
2.1.1 AKCP Generator Monitoring System ........................................................................................ 18
2.1.2 Supreme Solution ....................................................................................................................... 19
CHAPTER THREE .................................................................................................................................... 21
SYSTEM DESCRIPTION AND CIRCUIT DESIGN ................................................................................ 21
3.1 Overall operation of the project ........................................................................................................ 21
3.2 System description of the project ...................................................................................................... 21
3.2.1 Power supply circuit................................................................................................................... 22
iii
Communication Stream
ASTU JUNE 2018
iv
Communication Stream
ASTU JUNE 2018
Appendix D ................................................................................................................................................. 61
Simulation Code...................................................................................................................................... 61
Code for system 1 ............................................................................................................................... 61
Code for system 2 ............................................................................................................................... 65
v
Communication Stream
ASTU JUNE 2018
LIST OF FIGURES
Figure 1.1 Methodology .............................................................................................................................. 13
Figure 2.1 AKCP Block Diagram ................................................................................................................... 18
Figure 3.1 Block diagram of the project ...................................................................................................... 21
Figure 3.2 Design of power supply circuit ................................................................................................... 22
Figure 3.3 Power supply circuit simulation ................................................................................................. 26
Figure 3.4 LM35 temperature IC ................................................................................................................. 27
Figure 3.5 Temperature sensing circuit ...................................................................................................... 28
Figure 3.6 Oil and fuel level sensing circuit................................................................................................. 29
Figure 3.7 12v DC fan circuit ....................................................................................................................... 30
Figure 3.8 GSM modem and pin configuration........................................................................................... 31
Figure 3.9 Virtual terminal .......................................................................................................................... 32
Figure 3.10 PIR sensor................................................................................................................................. 34
Figure 3.11 Intruder sensing circuit ............................................................................................................ 35
Figure 3.12 Bluetooth Module (HC-05) Pins ............................................................................................... 36
Figure 3.13 Flame Sensor ............................................................................................................................ 37
Figure 3.14 Flame sensing circuit ................................................................................................................ 37
Figure 3.15 LED (Light Emitting Diode) ....................................................................................................... 38
Figure 3.16 Resistors ................................................................................................................................... 39
Figure 3.17 Diesel generator with its components ..................................................................................... 40
Figure 3.18 LCD internal working principle ................................................................................................. 42
Figure 3.19 LCD and pin configuration........................................................................................................ 43
Figure 3.20 Arduino-Uno and pin configurations ....................................................................................... 44
Figure 3.21 Flow chart of the project ......................................................................................................... 46
Figure 3.21 Flow chart of the project ......................................................................................................... 46
Figure 3.21 Flow chart of the project ......................................................................................................... 46
Figure 3.21 Flow chart of the project ......................................................................................................... 46
Figure 3.21 Flow chart of the project ......................................................................................................... 46
Figure 4.1 Temperature result .................................................................................................................... 48
Figure 4.2 Fuel and Oil level sensing ........................................................................................................... 49
Figure 4.3 Intruder Detection System ......................................................................................................... 50
Figure 4.4 Flame sensing system ................................................................................................................ 51
Table A. 1: Arduino UNO .......................................................................................................................... 56
Table A. 2: LM 35 ...................................................................................................................................... 56
Table A.3: PIR Sensor ................................................................................................................................ 56
Table A.4: Bluetooth Module(HC-05) ........................................................................................................ 57
Table A.5: Flame Sensor............................................................................................................................. 57
Table B.1: Root Sheet for system 1 ............................................................................................................ 58
Table B.2: Root Sheet for system 2 ............................................................................................................ 58
Figure C.1 Hardware prototype .................................................................................................................. 59
Figure C.2 Fuel level, Oil level and temperature sensing circuits ............................................................... 59
Figure C.3 Displaying temperature, oil level and fuel level sensing values on LCD .................................... 60
Figure C.4 Light and sound notification ...................................................................................................... 60
vi
Communication Stream
ASTU JUNE 2018
LIST OF TABLES
vii
Communication Stream
ASTU JUNE 2018
LIST OF ACRONYMS
3G Third Generation
4G Fourth Generation
AT ATtention
CMOS Complementary Metal Oxide Semiconductor
DC Direct Current
EB Electronic Beam
EEPCO Ethiopian Electric Power Corporation
GND Ground
GPS Global Positioning System
GSM Global System for Mobile communication
IDE Integrated Development Environment
IR Infrared Radiating
LED Light Emitting Diode
MMS Multimedia Messaging Service
PCB Printed Circuit Board
PIN Personal Identification Number
PIR Passive Infrared Sensor
RPM Revolution Per Minute
SCADA Supplementary Control And Data Acquisition
SIM Subscriber Identity Module
SMS Short Message Services
SNMP Simple Network Management Protocol
SSP Serial Port Protocol
TTL Transistor Transistor Logic
UART/TXD Universal Asynchronous Receive/Transmitter
viii
Communication Stream
ASTU JUNE 2018
ABSTRACT
The electrical power systems are highly non-linear, extremely huge and complex networks. There
is no continuous flow of electrical power to industries at all the time. So, backup generator must
be provided so as to make the system continuous. This Project focuses on the detection of power
failure and takes reflex action to solve the problem with help of GSM communication. The power
failure will be detected by relay, any intruder approaching the generator it will be detected by a
motion sensing system, any sudden fire occurring on and around the generator will be detected by
a flame sensing circuit and it communicates to Arduino to alert the authorized person. In addition
to this, parameters of generator like fuel level, oil level, temperature etc., are monitored and
communicated to authorized person. The acquired parameters are processed and recorded in the
system memory. If there is any abnormality in their process, according to some predefined
instruction and policies that are stored on the embedded system EEPROM then GSM alerts to
concerned person immediately.
ix
Communication Stream
ASTU JUNE 2018
CHAPTER ONE
INTRODUCTION
1.1 Background of the project
Generator is a device that converts mechanical energy in to electrical energy, the generator works
based on the principle of electromagnetic induction discovered in 1831 by Michael Faraday, a
British scientist. Michael Faraday proposed the Faraday law which states that when you see that
rotation of the coil continually changes the magnetic flux through the coil and therefore generates
a voltage. Generators, motors, transformers, and solenoids each use the principle of
electromagnetism. This is the ability to create electrical current in a conductor by moving a
magnetic field past the conductor. The reverse is also true a magnetic field is produced in a
conductor by passing electrical current through the conductor. In general, the requirements for
electromagnetism are a magnetic field, a conductor, and relative movement between them.
Power generators are necessary in buildings requiring constant source of electricity, such as
airports, huge industries, hospitals and hotels. Losing electricity can be problematic. Power failures
may last from a few minutes to a few weeks depending on the cause and configuration of the
blackout. These occurrences may appear with or without warning and can bring about issues in
terms of inoperable businesses and mechanical failures and even food can spoil in warming
refrigerators. Power is necessary for medical facilities such as hospitals and doctor offices to have
access to it in order to continually maintain care for patients. Lives could be at stake if emergency
scans and tests were unavailable because the facility was without power. Heating and cooling,
lighting systems and life support machinery would all be at loss without these generators.
Commercial and mainstream businesses have also begun purchasing backup emergency generators
to prevent losing customer contact with electrical disruptions.
Permanent standby generators are backup power systems that are installed as part of the facility’s
electrical wiring. These will automatically activate seconds after power failure, and shut itself off
once the utility source is restored to the facility. This is commonly a high rated option if your
facility is in an area that frequently loses electricity because it allows you to keep your vital
equipment running. Many businesses simply cannot afford to wait out another power outage
10
Communication Stream
ASTU JUNE 2018
Instead, many companies opt to prepare by installing the proper type and capacity of generators in
to protect their companies and investments from devastating losses.
While using these generators a number of challenges are faced by the user such as maintaining the
quality of grid power, asset protections, generator maintenance, capturing real time data, Remote
monitoring of the generator, fuel theft, data collection analysis issues, human dependency etc. The
Generator Monitoring System (GMS) is designed specifically for emergency power generators to
monitor engine operations and detect pre-alarms or failures. This insures us of increased generator
availability and a rapid response to service problems. The GMS monitors the power generators
placed at the remote areas and increases its efficiency by monitoring the various parameters of
generator, reporting critical problems minimizes downtime and maximizes availability by sending
generator failure messages instantly to you for diagnosis and emergency service dispatch if
required. It works on Global System for Mobile communication (GSM) technology. GMS can
monitor various parameters such as external power supply, the battery voltage, temperature status
of the engine, oil level, fuel level, etc. This system provides ideal solution to the problems caused
in situations when a wired connection between a remote appliance/device and the control unit
might not be feasible. The project is aimed to analyzing and testing the use of mobile phones to
remotely monitor an appliance control system through GSM based wireless communication.
11
Communication Stream
ASTU JUNE 2018
• To turn off the generator in case of sudden emergency using a switch made by a Bluetooth
module.
• To interface GSM modem with the Arduino.
• To develop the microcontroller code using Arduino software.
• To simulate the whole system using software called proteus.
• To implement a partial section of the system as a prototype.
1.4 Methodology
1.4.1 System development methodology block diagram.
The system consists of hardware and software. The hardware part involves Arduino Uno R3
microcontroller, motor pump, sensors, Relay and power supply. The software part is the Arduino
board is programmed using the Arduino IDE software used to interface hardware and protues 8.6
professional. The Arduino Based Automatic model atomization of generator monitoring system
will be made in the following steps:
• Complete layout of the whole setup will be drawn inform of a block diagram.
• Sensor will first sense the condition and give its output to the Arduino microcontroller &
displayed on the LCD.
• The generator temperature condition is checked by temperature sensor, depending upon the
condition, fuel and oil level, fun motor is turned on or off.
12
Communication Stream
ASTU JUNE 2018
Literature review
Collection of data
Implementing the
project
For successful completion of this project some steps have been followed to carry out different
tasks. In the first stage of conducting the project we are going to search for reading materials.
Since we are going to use digital devices, we were expected to refer points on the working
principles, logical characteristics and general operation principle of those components we use on
our project. And we were exploring any related materials that can be used as an equivalent for
those materials that we could not find in the department store and even in the market
13
Communication Stream
ASTU JUNE 2018
Different literature was revised relating to this project and data had been collected about condition
and control parameter of generator. As a case analysis we were even collecting generator
characteristics from our campus generator operators. Based on this parameters and different
characteristics and conditions of a generator system model was designed. Some software's were
selected to develop the software programming. All the required materials are not available. Sensors
like fuel level, oil level sensors and conditional circuit were replaced by equivalent materials.
Finally, the highest priority is given to the software design in order to develop a suitable algorithm
that will promptly interact with the all the sensors, Arduino Uno microcontroller and the GSM
modem.
14
Communication Stream
ASTU JUNE 2018
CHAPTER TWO
LITREATURE REVIEW
The American journal of electrical power and energy systems have published a journal on June
3,2015 which was titled as smart generator monitoring system in industry using microcontroller.
This paper was prepared by S. Boopathi, M. Jagadeeshraja, L. Manivannan, M. Dhanasu. The
paper begins by introducing the importance of generators and how they become a very common
in almost every passive infrastructure companies, industries, hospitals, townships etc. while using
these generators a number of challenges are faced by the user such as maintaining the quality of
grid power, asset protections, generator maintenance, capturing real time data, remotely
monitoring of the generator, fuel theft monitoring, data collection analysis issues, human
dependency etc.
On this paper the proposed system has two parts, hardware and software. The hardware
architecture consists of a stand-alone embedded system that is based on Microcontroller a GSM
handset with GSM Modem and a driver circuit. The GSM modem provides the communication by
means of SMS messages. The SMS message consists of commands to be executed. The SMS
message is sent to the GSM modem via the GSM public networks as a text message with a definite
predefined format. Once the GSM modem receives negative signal from the power supply, it sends
the SMS to the user consisting of non-availability of power supply, fuel level, temperature of the
coolant, etc. The user can decide whether to switch the generator on/off and issue the command.
Based on the message, the commands sent will be extracted and executed by the Microcontroller.
In this case, if the power supply resumes, again the user is made to know the status of on-site
generators.
16
Communication Stream
ASTU JUNE 2018
There are some sensors that are used on the project like the oil level sensor (R SERIES) which
have a detecting range of 10 – 2000mm, temperature sensor (LM35D) which have a detecting
range of -55 degree Celsius to 150 degree Celsius and Fuel level sensor (PH606) which have a
detecting range of 10mm to 2000mm. GSM SIM900 is used for notification purpose to send a
message for the operators.
The output of their project was to monitor temperature range and fuel, oil level and circuit
breaker status of generator.
Under normal condition
Temperature Range: 100 degree Celsius
Fuel Level: 1000 Liter
Oil Level: 4 Liter
Taking the data of previous fault condition and intimated automatically when they exist their
limit. Regarding taking threshold value, we have to take account the normal fuel, temperature, oil
of generator and associated errors.
There is some difference from our project and the project described by the American journal of
electrical power and energy systems. Those differences make our project much better, our project
have included some features like detecting intruders, detecting fire flame if it exists and has a
Bluetooth module to control the generator this features make our project more advanced. Generator
monitoring systems are becoming very advanced and versatile. Anyone who reads this
documentation can understand how much this system are important that’s why we decided to work
on this sector. There are multinational companies working on not only generator monitoring
system even generator manufacturing companies are working on the monitoring their generator.
Below here we will try to investigate some companies and their work.
17
Communication Stream
ASTU JUNE 2018
AKCP offers the ideal solution for generator monitoring, from 1 to 1,000 generators we have the
system for you. By deploying the SP2+E device you can connect to the generator RS485 port and
monitor all engine parameters you need. A 3G cellular data modem can be included as an option
to allow alerts to be sent directly from the device. A built-in web interface gives access to data via
the internet. AKCess Pro Server, a world-class central management software, gives you an
overview of multiple sites. Customizable desktops and drill down mapping allow you to present
the data from multiple generators in the format that suits you best.
The SP2+E has additional 3 sensor ports for connecting any of AKCP’s environmental, power or
security monitoring sensors. For a complete monitoring system, you can add on an ultrasonic fuel
level sensor for monitoring standby fuel tanks. Ensure that your fuel tanks are always full and
ready to go, detect fuel theft and leakages and much more.
18
Communication Stream
ASTU JUNE 2018
The Generator Management solution (iGenSmart) utilizes highly sophisticated M2M (Machine to
Machine) cloud platform capabilities to remotely monitor generators, Diesel tanks and provide
360 degree visibility of key parameters including fuel volume, run time, Generator battery Voltage,
GPS location, fuel theft and more.
IGenSmart offers precise generator event and fault reporting, location, fuel level and fuel theft
detection along with various detailed reports and visual analytics to optimize the usage of
generators and sensors that need to be managed. A robust user configurable alarming and
notification engine provides 24/7 monitoring of critical generator parameters to inform
administrators of operating conditions and deliver predictive failure information.
IGenSmart provides complete visibility into operational health of the assets. “The solution
provides the tools needed to remotely monitor and manage critical generator parameters. This
enables users to optimize daily operations, understand where equipment is located, and ensure
higher reliability of the entire fleet of generators. With our remote generator monitoring there is
no need to dedicate personnel to visually monitor the equipment, and there is no need to send
support personnel from site to site to check the status of equipment. If an alert condition is detected,
the appropriate personnel is notified immediately via text message or email with the exact fault
condition, they can then respond appropriately with the correct equipment to minimize down-time.
• Fuel Consumption.
• Generator ON/OFF detection.
• Generator Battery Voltage.
• GPS location of Generator.
• RPM & much more.
20
Communication Stream
ASTU JUNE 2018
CHAPTER THREE
SYSTEM DESCRIPTION AND CIRCUIT DESIGN
3.1 Overall operation of the project
Our project has two parts, namely; hardware and software. The software section was done using
proteus 8.6 simulation software we have tried to show the overall system using this software. In
the simulation The hardware architecture consists of a stand-alone embedded system that is based
on Microcontroller a GSM handset with GSM Modem and a driver circuit. The GSM modem
provides the communication by means of SMS messages. The SMS message consists of
commands to be executed. The SMS message is sent to the GSM modem via the GSM public
networks as a text message with a definite predefined format. Once the GSM modem receives
negative signal from the EB supply, it sends the SMS to the user consisting of non-availability of
power supply, fuel level, temperature of the coolant, etc.
21
Communication Stream
ASTU JUNE 2018
The input source is 230v single phase with a frequency of 50Hz and this must be converted to 5v
Dc and 12v Dc. The 5v in needed for the LCD and the 12v is for the relay coil and the fan. After
the bridge the 12 Dc is with a high ripple and is not smooth, and a shunt capacitor of 1000uF is a
must to remove this ripple. The choice of the capacitor value needs to fulfil a number of
requirements. In the first case the value must be chosen so that its time constant is very much
longer than the time interval between the successive peaks of the rectified waveform:
𝑅𝑙𝑜𝑎𝑑×C ≫ 1𝑓
Where:
𝑅𝑙𝑜𝑎𝑑= the overall resistance of the load for the supply
C= Value of capacitor in Farads
22
Communication Stream
ASTU JUNE 2018
𝑓= the ripple frequency this will be twice the line frequency a full wave rectifier is used shown
below.
𝑓= 2× line frequency
𝑓= 2× 50=100Hz
C ≫ 1𝑓× 𝑅𝑙𝑜𝑎𝑑
C ≫ 1100𝐻𝑧×10K
C ≫ 1𝑢𝐹 and we have taken 1000uF
IC 7812 and 705 are voltage regulators which are used to produce a fixed voltage of 5V and 12V.
The 1k and 2.2k ohm resistors are used for safety purpose. The above designed circuit is simulated
on Proteus software and the result is shown below.
The bridge rectifier converts ac voltage to dc voltage. The advantages of bridge rectifier are
➢ The center tap of the transformer secondary is eliminated.
➢ It provides output twice that of center taps circuits for the same secondary voltage.
➢ The peak inverse voltage is one half of the center tapped circuits.
Choosing diode
𝑉𝑝 14𝑉
So R surge = 𝐼 = 30A = 0.5Ω
𝑠𝑢𝑟𝑔𝑒
Choose standard 1 Ω
Designers recommend;
23
Communication Stream
ASTU JUNE 2018
C2 = C3 = 0.1µF
Rectification circuit
1
T = 50𝐻𝑧 = 20m Sec
𝑉
Ө1 = sin-1(𝑉𝑚𝑖𝑛 ) = 65o
𝑚𝑎𝑥
Ө2
t2 = charging time = ∗ 𝑇 = 1.4m sec
360
T
t1 = discharging time = 2 − 𝑡2 = 8.6m sec
Vf = 0.7V, Vdc = 5v
So C1 = (IL*t1)/Vr
24
Communication Stream
ASTU JUNE 2018
T (period) = 1/50
So t1 = 15.5msec
C1 = (10mA*15.5msec)/0.5v = 310nF
Diode selection
= 5.25 + 2*0.7
= 6.65v
V reverse = Vp = 6.65v
= 142.5 mA
IFSM = 10 A
V r = 0.1 * V dc
V max = 14.7 V
V min = 13.3 V
Let I𝑙 = 100m A
𝑉
Ө1 = sin-1(𝑉𝑚𝑖𝑛 ) = 65o
𝑚𝑎𝑥
25
Communication Stream
ASTU JUNE 2018
2 Ө
t2 = charging time = 360 ∗ 𝑇 = 1.4m sec
T
t1 = discharging time = 2 − 𝑡2 = 8.6m sec
Choose C2 = 10µF
26
Communication Stream
ASTU JUNE 2018
1. Lower cost
2. Does not require any external calibration
3. Linear output
4. Precise and accurate output
LM35 is a basic temperature sensor that can be used for experimental purpose. It give the readings
in centigrade (degree Celsius) since its output voltage is linearly proportional to temperature. It
uses the fact that as temperature increases, the voltage across diode increases at known rate
(actually the drop across base-emitter junction of transistor). Its disadvantage is its sluggish
response.
27
Communication Stream
ASTU JUNE 2018
The code will be written in C code. Before we can get a Celsius reading of the temperature, the
analog output voltage must first be read. This will be the raw value divided by 1024 times 5000.
It is divided by 1024 because a span of 1024 occupies 5V. We get the ratio of the raw value to the
full span of 1024 and then multiply it by 5000 to get the millivolt value. Since the output pin can
give out a maximum of 5 volts (1024), 1024 represents the possible range it can give out. The raw
voltage over this 1024 (value) therefore represents the ratio of how much power the output pin is
outputting against this full range. Once we have this ratio, we then multiply it by 5000 to give the
millivolt value. This is because there is 5000 millivolts in 5 volts.
Once this analog voltage in millivolts is calculated, we then can find the temperature in Fahrenheit
by the equation: ((Celsius * 9)/5 + 32).
28
Communication Stream
ASTU JUNE 2018
𝑅2
Vout= Vin*(𝑅2+𝑅1)
𝑅2 𝑚𝑎𝑥 2.5
Vout max=Vin*(𝑅2 𝑚𝑎𝑥+𝑅1) = 5V*2.5+0.22 = 4.596V
𝑅2 𝑚𝑖𝑛 0
Vout min=Vin*(𝑅2 𝑚𝑖𝑛+𝑅1) = 5V*0+0.22 = 0V
29
Communication Stream
ASTU JUNE 2018
30
Communication Stream
ASTU JUNE 2018
these GSM modems are most frequently used to provide mobile internet connectivity, many of
them can also be used for sending and receiving SMS and MMS messages.
GSM modems can be a quick and efficient way to get started with SMS, because a special
subscription to an SMS service provider is not required. In most parts of the world, GSM modems
are a cost effective solution for receiving SMS messages, because the sender is paying for the
message delivery. A GSM modem exposes an interface that allows applications such as Now SMS
to send and receive messages over the modem interface. The mobile operator charges for this
message sending and receiving as if it was performed directly on a mobile phone. To perform these
tasks, a GSM modem must support an “extended AT command set” for sending/receiving SMS
messages.
GSM modules are manufactured by different companies. They all have different input power
supply specs. We need to double check our GSM modules power requirements. The GSM module
requires a 12 volts input, so we feed it using a 12V, 1A DC power supply. It can be noticed that
GSM modules which require 15 volts and some other which needs only 5 volts. They differ with
manufacturers. If we are having a 5V module, we can power it directly from Arduino’s 5V out.
1. Insert the SIM card to module and lock the sim holder.
31
Communication Stream
ASTU JUNE 2018
3. Now wait for some time (say 1 minute) and see the blinking rate of ‘status LED’ (GSM module
will take some time to establish connection with mobile network)
4. Once the connection is established successfully, the status LED will blink continuously every 3
seconds.
32
Communication Stream
ASTU JUNE 2018
Everything emits some low-level radiation, and the hotter something is, the more radiation is
emitted.
Operating Principle
All objects with a temperature above absolute zero emit heat energy in the form of radiation.
Usually this radiation isn't visible to the human eye because it radiates at infrared wavelengths, but
it can be detected by electronic devices designed for such a purpose. The term passive in this
instance refers to the fact that PIR devices do not generate or radiate any energy for detection
purposes. They work entirely by detecting the energy given off by other objects. PIR sensors don't
detect or measure "heat"; instead they detect the infrared radiation emitted or reflected from an
object. An individual PIR sensor detects changes in the amount of Infrared radiation impinging
upon it, which varies depending on the temperature and surface characteristics of the objects in
front of the sensor. When an object, such as a human, passes in front of the background, such as a
wall, the temperature at that point in the sensor's field of view will rise from room temperature to
body temperature, and then back again. The sensor converts the resulting change in the incoming
infrared radiation into a change in the output voltage, and this triggers the detection. Objects of
similar temperature but different surface characteristics may also have a different infrared emission
pattern, and thus moving them with respect to the background may trigger the detector as well.
PIRs come in many configurations for a wide variety of applications. The most common
models have numerous Fresnel lenses or mirror segments, an effective range of about ten meters
(thirty feet), and a field of view less than 180 degrees. Models with wider fields of view,
including 360 degrees, are available—typically designed to mount on a ceiling. Some larger
PIRs are made with single segment mirrors and can sense changes in infrared energy over thirty
meters (one hundred feet) away from the PIR. There are also PIRs designed with reversible
orientation mirrors which allow either broad coverage (110° wide) or very narrow "curtain"
coverage or with individually selectable segments to "shape" the coverage.
Features:
• Dual Element Sensor with Low Noise and High Sensitivity.
• Supply Voltage – 5V.
• Delay Time Adjustable.
• Standard TTL Output.
33
Communication Stream
ASTU JUNE 2018
Most PIR modules have a 3-pin connection at the side or bottom. One pin will be ground, another
will be signal and the final one will be power. Power is usually 3 5v DC input but may be as high
as 12v.The PIR has two knobs on the back for adjusting sensitivity and for changing the pulse
time.
In this project the PIR sensor is used for intrusion detection. It lets us to know whether an intruder
is approaching the generator, the intruder can be either living or non-living with in a range of 10
meters. The system has different reaction for the intruder detection, it has a light, sound, LCD
display and even a text message telling “intruder is Detected” this message is also displayed on
the LCD. Below here we have tried to show the intruder detecting circuit from our simulation
which is done using Proteus 8.6 software.
34
Communication Stream
ASTU JUNE 2018
Specification:
• Model: HC-05
• Input Voltage: DC 5V
• Communication Method: Serial Communication
• Master and slave mode can be switched
35
Communication Stream
ASTU JUNE 2018
VCC
GND
TXD
RXD
KEY
Pin Description
VCC +5V
GND Ground
TXD UART_TXD, Bluetooth serial signal sending PIN
RXD UART_RXD, Bluetooth serial signal receiving PIN
KEY Mode switch input
The Bluetooth module HC-05 is used to send a signal for the microcontroller when a button from
android phone is pressed. This action in turn will made the microcontroller to send a signal to the
pin where the relay is connected which in turn turns the generator on or off during a certain
predefined condition occur.
36
Communication Stream
ASTU JUNE 2018
time the indicator light up, output signal can directly connect with microcontroller IO.
• Signal detection sensitivity can be adjusted.
• Reserved a line voltage compare circuit (P3 is leaded out).
• PCB size: 30(mm) x15(mm).
Pin Configuration:
1. VCC
2. Output
3. Ground
37
Communication Stream
ASTU JUNE 2018
The flame sensor is used to detect a fire flame happening suddenly in the region of the generator
which will be processed by the microcontroller. The microcontroller will send notification signals
to the LCD, LED, speaker and the GSM module.
• When fuel and oil levels are under the threshold value.
• When intruder is detected.
• When the temperature is above the threshold value.
• When a fire-flame is detected.
• To show whether the generator is running well or stop suddenly.
3.2.11 Resistor
A resistor is a passive two-terminal electrical component that implements electrical resistance as
a circuit element. Resistor is a component that resists the flow of direct or alternating electric
circuit. Resistors can limit or divide the current, reduce the voltage, protect an electric circuit, or
provide large amounts of heat or light. They are often color coded by three or four color bands that
38
Communication Stream
ASTU JUNE 2018
indicate the specific value of resistance. The current through a resistor is in direct proportion to the
voltage across the resistor's terminals. This relationship is represented by Ohm's law.
It is important to understand that a generator does not actually create electrical energy. Instead, it
uses the mechanical energy supplied to it to force the movement of electric charges present in the
wire of its windings through an external electric circuit. This flow of electric charges constitutes
the output electric current supplied by the generator. This mechanism can be understood by
considering the generator to be analogous to a water pump, which causes the flow of water but
does not actually ‘create’ the water flowing through it. The modern-day generator works on the
principle of electromagnetic induction discovered by Michael Faraday in 1831-32. Faraday
discovered that the above flow of electric charges could be induced by moving an electrical
conductor, such as a wire that contains electric charges, in a magnetic field. This movement creates
a voltage difference between the two ends of the wire or electrical conductor, which in turn causes
the electric charges to flow, thus generating electric current.
39
Communication Stream
ASTU JUNE 2018
1. Engine
The engine is the source of the input mechanical energy to the generator. The size of the engine
is directly proportional to the maximum power output the generator can supply.
2. Alternator
The alternator, also known as the ‘genhead’, is the part of the generator that produces the electrical
output from the mechanical input supplied by the engine. It contains an assembly of stationary and
moving parts encased in a housing. The components work together to cause relative movement
between the magnetic and electric fields, which in turn generates electricty.
3. Fuel System
The fuel tank usually has sufficient capacity to keep the generator operational for 6 to 8 hours on
an average. In the case of small generator units, the fuel tank is a part of the generator’s skid base
or is mounted on top of the generator frame.
40
Communication Stream
ASTU JUNE 2018
4. Cooling Systems
Continuous usage of the generator causes its various components to get heated up. It is essential
to have a cooling and ventilation system to withdraw heat produced in the process.
5. Lubricating System
Since the generator comprises moving parts in its engine, it requires lubrication to ensure durability
and smooth operations for a long period of time. The generator’s engine is lubricated by oil stored
in a pump. You should check the level of lubricating oil every 8 hours of generator operation. You
should also check for any leakages of lubricant and change the lubricating oil every 500 hours of
generator operation.
6. Battery Charger
The start function of a generator is battery-operated. The battery charger keeps the generator
battery charged by supplying it with a precise float voltage. If the float voltage is very low, the
battery will remain undercharged. If the float voltage is very high, it will shorten the life of the
battery.
7. Control Panel
This is the user interface of the generator and contains provisions for electrical outlets and controls.
The following article provides further details regarding the generator control panel. Different
manufacturers have varied features to offer in the control panels of their units. Some of these are
mentioned below.
(a) Electric start and shut-down – Auto start control panels automatically start the generator
during a power outage, monitor the generator while in operation, and automatically shut
down the unit when no longer required.
(b) Other controls – Phase selector switch, frequency switch, and engine control switch
(manual mode, auto mode) among others.
All generators, portable or stationary, have customized housings that provide a structural base
support. The frame also allows for the generated to be earthed for safety.
41
Communication Stream
ASTU JUNE 2018
Liquid crystal material emit no light of their own. For illumination of light-backlight and reflective
method used.
Reflective: it uses external light reflected by reflector behind the display. Example: watch,
calculator, this is achieved by combining a reflector with rear polarizer.
Backlight: light source is from a back light, and viewed from the front. Example: computer display
built in fluorescent tubes above, besides and sometimes behind the LCD.
42
Communication Stream
ASTU JUNE 2018
VEE and VDD: are given +5 volts normally. However, VEE may have a potentiometer voltage
divider network to get the contrast adjusted. But VDD is always at +5V.
RS, R/W and E: These three pins are numbered 4, 5 and 6 as shown above. RS is used to make the
selection between data and command register. For RS=0, command register is selected and for
RS=1 data register is selected. R/W gives us the choice between writing and reading. If set
(R/W=1) reading is enabled. R/W=0 when writing.
D0-D7: The 8-bit data pins, D0-D7, are used to send information to the LCD or read the contents
of LCD's internal register.
The Arduino platform has become quite popular with people just starting out with electronics, with
ATMEGA 328 data sheet based board. Unlike most previous programmable circuit boards, the
Arduino does not need a separate piece of hardware (called a programmer) in order to load new
code onto the board, It simply use a USB cable. Additionally, the Arduino IDE uses a simplified
43
Communication Stream
ASTU JUNE 2018
version of C languages, making it easier to learn to program. Finally, Arduino provides a standard
form factor that breaks out the functions of the micro-controller into a more accessible package.
GND (3): Short for ‘Ground’. There are several GND pins on the Arduino, any of which can be
used to ground the circuit.
5V (4) & 3.3V (5): As we might guess, the 5V pin supplies 5 volts of power, and the 3.3V pin
supplies 3.3 volts of power. Most of the simple components used with the Arduino run happily
off of 5 or 3.3 volts.
Analog (6): The area of pins under the ‘Analog In’ label (A0 through A5 on the UNO) are
Analog In pins. These pins can read the signal from an analog sensor (like a temperature sensor)
and convert it into a digital value that we can read.
44
Communication Stream
ASTU JUNE 2018
Digital (7): Across from the analog pins are the digital pins (0 through 13 on the UNO). These
pins can be used for both digital input (like telling if a button is pushed) and digital output (like
powering an LED).
PWM (8): the digital pins (3, 5, 6, 9, 10, and 11 on the UNO). These pins act as normal digital
pins, but it can also be used for something called Pulse-Width Modulation (PWM).
AREF (Stands for Analog Reference) (9): Most of the time you can leave this pin alone. It is
sometimes used to set an external reference voltage (between 0 and 5 Volts) as the upper limit
for the analog input pins.
45
Communication Stream
ASTU start JUNE 2018
start
Turn on the generator
start
Turn on the generator
Read Fuel Level Read Oil Level startRead Read PIR sensor Read Flame
Turn onTemperature
the generator Sensor
IsRead
Temp Read Flame
Fuel Intruder
Oil Level >= 55?
Temperature Sensor
level<40? Detected
<25? Flame
Fun ON ? Detected
Is Temp ?
Fuel
Oil Level >= 55?
level<40? Fun ON Intruder
<25?
Detected Figure
Read Temp ? 3.21
Is Temp
Fuel
Oil Level >=Fun
55?ON Flow
level<40?
<25? chart of
Read Temp Intruder the
Fun ON Detected
projectFl
End ? ame
Oil Level
<25? Read Temp Detected
?
End Is Temp
>=Temp
Read 55?
Notification through Figure
SMS, light alarm, sound End 3.21 Flow
chart of
alarm and display. Is Temp the
>= 55? project
End
Fun OFF
Notification through
SMS, light alarm, sound Is Temp
alarm and display. >= 55?
Fun OFF
Flame
Detected
FigureIs3.21
TempFlow chart of the project ?
Notification through Fun OFF 46
>= 55?
SMS, light alarm, soundStream
Communication
alarm and display.
Figure
Fun OFF
3.21
ASTU JUNE 2018
CHAPTER FOUR
RESULT ANALYSIS AND DISCUSSION
4.1 Result analysis
The overall system contains the sensors listed in the previous chapters with their circuitry as input.
temperature sensor, fuel level sensor, oil level sensor, fault detector relay, PIR sensor and flame
sensor are used as input. whereas the liquid crystal display, to display the parameters, GSM modem
(virtual terminal for simulation), DC fan, light notification and sound notification are used as
output. the GSM modem used in the proteus software is not fully functional as the real physical
device due to some limitations so that an equivalent component is used to receive the transmitted
information from the Arduino i.e. virtual terminal. The fuel level and oil level sensors used in both
simulation and hardware are not actual sensors rather potentiometers are used for level sensing on
the simulation because there is no library for level sensing in the software. Due to some software
simulation limitations we have divided our system into two named as generator monitoring system
1 and generator monitoring system 2 using two different arduino unos. The simulation limitations
are:
47
Communication Stream
ASTU JUNE 2018
48
Communication Stream
ASTU JUNE 2018
• The actual level of the fuel and oil sensed will be displayed on the LCD.
49
Communication Stream
ASTU JUNE 2018
50
Communication Stream
ASTU JUNE 2018
4.2 Discussion
In present days, many industries are facing major problems in power failure due to a lot of reasons.
it’s because they have no proper idea about when the generator is available for the absence of
power from the EEPCO. Even after they need to wait until the field is properly monitored. This is
also observed in ASTU (Adama Science and Technology University) some time. Our monitoring
system is designed and tested with a hardware prototype successfully to overcome this issues.
Our generator monitoring system has been developed by integrated features of all the hardware
components used. Presence of every parameters futurity has been reasoned out and placed
carefully, thus contributing to the best monitoring of the generator unit. The system has been tested
to function automatically. The level sensors measure the fuel and oil level of the generator. If the
fuel and oil level is found to be below the desired level, the level sensor sends the signal to the
51
Communication Stream
ASTU JUNE 2018
arduino board which triggers the output to authorized person through the notification systems we
design which are the light notification, the sound notification and the SMS message through a
GSM mobile network using GSM module and temperature sensor measures the temperature of the
generator. If the temperature is found to above the desired value, the temperature sensor sends
signal to the arduino board which triggers message to authorized person through the notification
system discussed earlier and the fun motor turns on to cool the generator. if an intruder reaches the
area where the generator is located weather it a human or animal it will be detected by the intruder
detection system we design, when such a scenario happens the PIR sensor sends a signal which
will be processed by the arduino board which then triggers message to authorized person throough
the notification systems we have. the last case to discuss is the fire detection mechanism, when a
sudden fire happens to the generator and the area around the generator it will be detected by the
flame sensor then this sensor sends a signal which will be processed by the arduino board which
then triggers message to authorized person through our notification systems.
When the desired fuel and oil level is reached, the system halts on its own failure, the temperature
sensed less than the threshold value and if there is no intruder or a fire we can say the functionality
of the entire system is tested and it is said to be fully functional. The SMS notification system
works on areas with a GSM mobile network at least since it is a minimum possible mobile network
type.
As a case analysis we can point out the time by which one of our campus generator was burnt by
some intruders. If there was a generator monitoring system like we design, first of all the intruder
by itself will be detected, secondly the fire will also be detected and the generator operators or an
assigned person will be notified by our notification systems.
52
Communication Stream
ASTU JUNE 2018
CHAPTER FIVE
CONCLUSION AND RECOMMENDATION
5.1 Conclusion
A generator operator can take a lot of the worry and management overhead of his task away by
implementing monitoring solutions that will alert him when maintenance is due, or something just
not quite right. It allows a greater degree of freedom to an individual and the organization that own
the generator for the management via the notification system developed.
In particular the suggested system will be a powerful, flexible and secure tool that will offer this
service at any time, and from anywhere with the constraints of the technologies being applied. The
embedded controllers are capable of sensing and monitoring the various parameter of generator in
normal and abnormal condition. This proposed system provides the immediate solution for
catastrophic failure of generator using GSM communication. The embedded controller offers a
wide scope of application in the field of remote digital controllers in the diesel generator in
university.
5.2 Recommendations
Any work and investigation on Generator protection is very advantageous and challenging. Based
on the present time, it can be observed that the number of industries is increasing rapidly which
means the need of a backup generator is also increasing. Therefore, demands on electricity will be
high and these will lead to demands of highly sophisticated protection devices, which will be
incorporated in generator protection schemes.
Based on the work done in this project which protecting Generator using Arduino kit, some
improvements need to be made in the future work. It was noticed that use of oil and fuel may not
give exact value since the float may not turn the angular potentiometer at the required position.
Therefore, these sensors should be substituted by another smart sensors to get accurate reading of
oil and fuel level of the generator like ultrasonic method of liquid measurement.
In this project, the generator will be automatically turned OFF if its parameter i.e. oil and fuel level
are out of the predefined limit so that the generator may not be exposed to any damage but this
53
Communication Stream
ASTU JUNE 2018
causes power brake for a short period of time. Instead of doing this another mechanism should be
designed to fill oil and fuel whenever they are lower than the minimum limit.
The notification through SMS message is feasible only is the authorized person is around a GSM
mobile network coverage area if not it is impossible to communicate with him so, it is
recommended that the monitoring system works with some internet support or if the system
become IOT it will be better.
A limited number of parameters are monitored in our project but we recommend that if the number
of parameters to be monitored increase it is better to know more about the generator remotely, like
the engine speed, the humidity, the working hour etc.
54
Communication Stream
ASTU JUNE 2018
LIST OF REFERENCES
55
Communication Stream
ASTU JUNE 2018
Appendix A
Components Description
Microcontroller ATmega328
Operating Voltage 5V
Input Voltage (recommended) 7-9V
Input Voltage (limits) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
32 KB (ATmega328) (0.5 KB used by
Flash Memory
bootloader)
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
Clock Speed 16 MHz
Table A. 2: LM 35
No pins Description
1 +5v Input voltage
2 output Output voltage
3 GND Ground
56
Communication Stream
ASTU JUNE 2018
57
Communication Stream
ASTU JUNE 2018
Appendix B
Simulation Root Sheets
Table B.1: Root Sheet for system 1
58
Communication Stream
ASTU JUNE 2018
Appendix C
Hardware prototype
Hardware prototype
Figure C.2 Fuel level, Oil level and temperature sensing circuits
59
Communication Stream
ASTU JUNE 2018
Displaying temperature, oil level and fuel level sensing values on LCD
Figure C.3 Displaying temperature, oil level and fuel level sensing values on LCD
60
Communication Stream
ASTU JUNE 2018
Appendix D
Simulation Code
Code for system 1
#include <LiquidCrystal.h>
#include <SoftwareSerial.h>
LiquidCrystal lcd(12,11,10,9,6,5);
//declare variables
int LED_YELLOW = 8;
int LED_GREEN = 4;
int Buzzer = 2;
float fuelOut;
float OL;
float fuel;
float oil;
float D;
int tempPin=A1;
int fuelPin=A2;
int oilPin=A4;
int overload=7;
int val=0;
float treshold=4.3;
String textForSMS;
char incoming_char=0;
int temp;
int fanSpeed;
void setup(){
pinMode(13, OUTPUT);
61
Communication Stream
ASTU JUNE 2018
lcd.begin(20, 4);
lcd.print("T=");
lcd.setCursor(0, 1);
lcd.print("F=");
lcd.setCursor(9, 0);
lcd.print("O=");
lcd.setCursor(9, 1);
Serial.begin(9600);
SIM900.begin(9600);
analogReference(DEFAULT);
pinMode(0,OUTPUT);
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);
pinMode(A1,INPUT);
pinMode(A2,INPUT);
pinMode(A4,INPUT);
pinMode(7,INPUT);
pinMode(pir,INPUT);
void loop()
if((digitalRead(pir)==HIGH)){
Serial.println("Something Detected");
lcd.setCursor(0,2);
lcd.print("Something Detected");
digitalWrite(LED_RED, HIGH);
digitalWrite(Buzzer, HIGH);
if((digitalRead(pir)==LOW)){
lcd.setCursor(0,2);
lcd.print(" ");
digitalWrite(LED_RED, LOW);
digitalWrite(Buzzer, LOW);
62
Communication Stream
ASTU JUNE 2018
val=digitalRead(overload);
float avrtemp=0;
mytemp [i]=analogRead(tempPin);
delay(10);
temp = (5*avrtemp*100)/1023;
digitalWrite(3, LOW);
digitalWrite(LED_YELLOW, LOW);
fanSpeed = map(temp, tempMin, tempMax, 32, 255); // the actual speed of fan
digitalWrite(3,HIGH);
Serial.print(" , ");
delay(10);
digitalWrite(LED_YELLOW, HIGH);
digitalWrite(Buzzer, HIGH);
delay(10);
else {
// digitalWrite(LED_YELLOW, LOW);
digitalWrite(Buzzer, LOW);
float avrfuel=0;
myfuel [i]=analogRead(fuelPin);
delay(10);
63
Communication Stream
ASTU JUNE 2018
OL = analogRead(oilPin);
fuelOut=(5*avrfuel*46)/1023;
oil=(5*OL*15)/1023;
lcd.setCursor(2, 0);
lcd.print(temp,1);
lcd.print("C");
lcd.setCursor(2, 1);
lcd.print(fuelOut,1);
lcd.print("cm");
lcd.setCursor(11, 0);
lcd.print(oil,1);
lcd.print("cm");
// sleep...
delay(10);
SIM900.print("AT+CMGF=1\r");
delay(10);
SIM900.print("AT+CMGS=\"+251918513810\"\r");
delay(10);
if(fuelOut<40){
digitalWrite(2,HIGH);
delay(10);
else{
digitalWrite(2,LOW);
if(oil <40){
Serial.print(" , ");
delay(10);
Serial.println("Oil is LOW");
delay(10);
if(val==HIGH){
64
Communication Stream
ASTU JUNE 2018
digitalWrite(LED_GREEN, HIGH);
if(val==LOW){
digitalWrite(LED_GREEN, LOW);
#include <SoftwareSerial.h>
LiquidCrystal lcd(12,11,10,9,6,5);
int relay= 2;
int flame = 8;
int LED_BLUE = 7;
int SOUND = 3;
char str[2],i;
void setup() {
Serial.begin(9600);
pinMode(pir,INPUT);
pinMode(flame,INPUT);
pinMode(relay,INPUT);
pinMode(13,OUTPUT);
pinMode(7,OUTPUT);
pinMode(3,OUTPUT);
lcd.begin(16, 2);
void loop() {
if((digitalRead(pir)==HIGH)){
Serial.println("Intruder Detected");
65
Communication Stream
ASTU JUNE 2018
lcd.setCursor(0,0);
lcd.print("Intruder Detected");
digitalWrite(LED_RED, HIGH);
digitalWrite(SOUND, HIGH);
delay(50);
if((digitalRead(pir)==LOW)) {
lcd.setCursor(0,0);
lcd.print(" ");
digitalWrite(LED_RED, LOW);
digitalWrite(SOUND, LOW);
delay(50);
if((digitalRead(flame)==HIGH)){
Serial.println("Fire Detected");
lcd.setCursor(0,1);
lcd.print("Fire Detected");
digitalWrite(LED_BLUE, HIGH);
digitalWrite(SOUND, HIGH);
delay(100);
if((digitalRead(flame)==LOW)){
lcd.setCursor(0,1);
lcd.print(" ");
digitalWrite(LED_BLUE, LOW);
digitalWrite(SOUND, LOW);
while(Serial.available())
char ch=Serial.read();
str[i++]=ch;
if(str[i-1]=='a')
Serial.println("Generator stoped");
lcd.setCursor(0,0);
66
Communication Stream
ASTU JUNE 2018
lcd.print("Generator stoped");
digitalWrite(relay,LOW);
i=0;
delay(100);
if(str[i-1]=='c')
Serial.println("Generator started");
lcd.setCursor(0,0);
lcd.print("Generator started");
digitalWrite(relay,HIGH);
i=0;
delay(100);
67
Communication Stream