Professional Documents
Culture Documents
COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRICAL & COMPUTER
ENGINEERING (POWER STREAM)
SEMESTER PROJECT
TITLE: - GSM BASED SMART GENERATOR MONITORING
SYSTEM IN INDUSTRY
MARCH,2022
WOLAITA SODO, ETHIOPIA
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
Declaration
We hereby declare that the project entitled Title of the Project is GSM Based Smart Generator
Monitoring System in Industry. submitted in partial fulfillment of the requirement for the award
of the degree in BSc Degree in Electrical and Computer Engineering (power Engineering),
Wolaita Sodo University, is a record of our own work carried out by us during the academic
year 2021/22 under the supervision and guidance of Advisor Mr. G/Hiwot , Department of
Electrical and Computer Engineering, College of Engineering. The extent and source of
information are derived from the existing literature and have been indicated through the project
at the appropriate places. The matter embodied in this work is original and has not been
submitted for the award of any other degree, either in this or any other University.
This Project has been submitted for examination with my approval as a university
advisor.
2022 GC i
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
Acknowledgement
First and for most, we are extremely grateful to the Department of Electrical and Computer
Engineering, for giving us the opportunity to carry out this project, which is an integral part of
the curriculum in Wolaita sodo university.
Secondly, we would like to express our earnest gratitude and regards to our project advisor Mr.
G/Hiwot in the Department of Electrical and Computer Engineering, for being the corner stone
of our project. It was his perpetual motivation and guidance during the period of doubts and
uncertainties that has helped us to carry on with this project.
Finally, we extend our gratefulness to one and all who are directly or indirectly involved in the
successful completion of this project work.
2022 GC ii
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
Table of Contents
Declaration ....................................................................................................................................... i
Acknowledgement ........................................................................................................................... ii
List of Figures .................................................................................................................................. v
Acronyms ........................................................................................................................................ vi
Abstract ..........................................................................................................................................vii
CHAPTER ONE.............................................................................................................................. 1
INTRODUCTION ........................................................................................................................... 1
1.1 Background of Study ............................................................................................................. 1
1.2 Statement of the Problem ...................................................................................................... 1
1.3 Literature Review .................................................................................................................. 2
1.4 Objectives of the project ........................................................................................................ 3
1.4.1 General Objective ........................................................................................................... 3
1.4.2 Specific Objectives .......................................................................................................... 3
1.5 Methodology........................................................................................................................... 3
1.6 Scope of the Project ............................................................................................................... 4
CHAPTER TWO ......................................................................................................................... 5
INTRODUCTION TO THE PROJECT ..................................................................................... 5
CHAPTER THREE......................................................................................................................... 6
SYSTEM COMPONENT DESCRIPTION AND CIRCUIT DESIGN .......................................... 6
3.1 Overall operation of the project ............................................................................................ 6
3.2 System description of the project .......................................................................................... 6
3.4 power supply circuit .............................................................................................................. 6
3.5 Temperature Sensor ............................................................................................................ 10
3.6 fuel level and oil level sensor................................................................................................ 12
3.7 12 V Dc fan motor .............................................................................................................. 13
3.8 GSM Modem ...................................................................................................................... 14
3.9 Serial Communication ......................................................................................................... 15
3.10 Engine Generator ............................................................................................................... 16
3.11 Main components of a generator ....................................................................................... 17
3.12 LCD (liquid crystal display) .............................................................................................. 18
3.12.1 LCD pin description for interfacing with Arduino .................................................... 19
3.13 Arduino kit ......................................................................................................................... 19
3.13.1 Power (USB) and pin configuration ............................................................................ 20
CHAPTER FOUR ......................................................................................................................... 22
2022 GC iii
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
2022 GC iv
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
List of Figures
Figure 1.1 Methodology of the project .................................................................... 4
Figure 3.1 Block Diagram of the project ................................................................. 6
Figure 3.2 design of power supply circuit................................................................ 7
Figure 3.3 power supply simulation....................................................................... 10
Figure 3.4 LM35 temperature IC .......................................................................... 11
Figure 3.5 Temperature sensing circuit................................................................. 12
Figure 3.6 oil and fuel level sensing circuit............................................................ 13
Figure 3.7 12v Dc fan circuit .................................................................................. 14
Figure 3.8. GSM modem and pin configuration ................................................... 15
Figure 3.9 the configuration of virtual terminal ................................................... 16
Figure 3.10 diesel generator with its components ................................................. 17
Figure 3.11 LCD internal working principle......................................................... 18
Figure 3.12 LCD and pin configuration ................................................................ 19
Figure:3.13 Arduino-Uno and pin configurations................................................. 20
Figure 4.1 Flow chart of the system ....................................................................... 23
Figure 4.2 overall system simulation ..................................................................... 24
2022 GC v
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
Acronyms
AC Alternating current
C Capacitor
DC Direct current
EEPROM Erasable electrical programmable read only memo
F frequency
GND ground
GSM Global service for mobile
LCD Liquid crystal display
LED Light emitting diode
LM35 Temperature sensor
R Resistor
RL relay
RTD Resistance temperature detector
SMS Service for mobile system
VI Virtual terminal
2022 GC vi
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
Abstract
The electrical power systems are highly non-linear, extremely huge and complex networks. On
the other hand, all the developed and countries have not sufficient supply of power. This Project
focuses 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, and it communicates to
Microcontroller to alerts the authorized person. In addition to that, parameters of Generator
like Fuel level, Oil level, Temperature, battery status, 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 immediate
2022 GC vii
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
CHAPTER ONE
INTRODUCTION
1.1 Background of Study
The use of Generators has 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. 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 GSM technology; GMS can monitor various
parameters such as external power supply, the battery voltage, 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.
1.2 Statement of the Problem
Power failure is a series problem in industry and to solve this backup generator should be
available. Therefore, the backup generator must continuously support electrical power and to
do this the generator parameters shall not exceed or lower the predetermined value. In fact, in
industry there is a mechanism to check different parameters of the generator but
there is no any method that informs the concerned body that any abnormality happens on it.
This implies that the technician or operator have to check each parameter by manual operation
and this is a time taken and moreover the generator may be damaged if no one check with the
fixed time. For example, the temperature may exceed the limit value and it will cause the
generator to be burnt not only this but also if the fuel level lowers beyond the normal level,
then the generator will not support any electric power.
2022 GC 1
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
2022 GC 2
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
are overloaded, resulting in unexpected failures and loss of supply to a large number of
customers thus effecting system reliability. This system provides flexible control of load
parameters accurately and also provides effective means for rectification of faults if any
abnormality occurs in power lines using SMS through GSM network.
7. A.P.Agalgaonkar et al have discussed the measurement and control of temperature, humidity
and the other parameters at different places. The Data Acquisition is defined as the process of
taking a real-world signal as input, such as a voltage or current any electrical input, into the
computer, for processing, analysis, storage or other data manipulation or conditioning.
1.4 Objectives of the project
1.4.1 General Objective
❖ The main objective of this project is to design and test smart generator
monitoring system using GSM technology and microcontroller.
1.5 Methodology
For successful completion of this project some steps will be followed to carry out different
tasks. Different literature will be revised relating to this project and data will be collected about
condition and control parameter of generator. Based on this parameter system model was
designed. Some software's were selected to develop the software programming. All the
required materials are not available Arduino software so some sensors like fuel level and oil
level sensors and conditional circuit were replaced by equivalent materials.
2022 GC 3
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
Literature review
Collection of data
2022 GC 4
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
CHAPTER TWO
INTRODUCTION TO THE PROJECT
The use of Generators has 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. The
Generator Monitoring Sy Power failure is a series problem in industry and to solve this backup
generator should be available. Therefore, the backup generator must continuously support
electrical power and to do this the generator parameters shall not exceed or lower the
predetermined value. In fact, in industry there is a mechanism to check different parameters of
the generator but
there is no any method that informs the concerned body that any abnormality happens on it.
This implies that the technician or operator have to check each parameter by manual
operation and this is a time taken and moreover the generator may be damaged if no one
check with the fixed time. For example, the temperature may exceed the limit value and it
will cause the generator to be burnt not only this but also if the fuel level lowers beyond the
normal level, then the generator will not support any electric power.
stem (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 GSM technology; GMS can monitor various parameters such as external
power supply, the battery voltage, 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.
2022 GC 5
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
CHAPTER THREE
SYSTEM COMPONENT DESCRIPTION AND CIRCUIT
DESIGN
3.1 Overall operation of the project
The system has two parts, namely; 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 EB supply, it sends the SMS
to the user consisting of non-availability of power supply, fuel level, temperature of the coolant,
etc.
Temperatu LCD
re sensor display
GSM
Fuel Arduin mode
Generator
level m
o
sensor
2022 GC 6
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
Similarly, a wrong power supply design will lead to the damaging of the electronic devices
used in this project.
The main power supplies needed for this project is 5VDC and +12 VDC in order to power on
the relay and other electronic devices. The design is done using a transformer, bridge rectifiers
and filter capacitor. Figure 3.1 shows the sequential process of designing a constant DC power
supply.
𝑅𝑙𝑜𝑎𝑑×C ≫ 1𝑓
Where:
𝑅𝑙𝑜𝑎𝑑= the overall resistance of the load for the supply
C= Value of capacitor in Farads
𝑓= the ripple frequency this will be twice the line frequency a full wave rectifier is used shown
below.
𝑓= 2× line frequency
𝑓= 2× 50=100Hz
2022 GC 7
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
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
VREV (reverse voltage in diode) = VP – VF
VP= VO max + 2VF = 12.6 + 2 (0.7) = 14V
VREV = 14V – 0.7V = 13.3V
I (average forward current) =ILDC/2 = 35 mA
IFRM (forward repetitive current) = IL/t2 (t1+t2) = 500mA
Now from datasheet 1N4001 is chosen
For 1N4001 IF (surge) = 30A
So R surge = 𝑉𝑝𝐼𝑠𝑢𝑟𝑔𝑒 = 14𝑉30A = 0.5Ω
Choose standard 1 Ω
Designers recommend;
C2 = C3 = 0.1μF
For proper output of IC7805
Rectification circuit
Outputs 12VDC for 70mA load
Let’s allow 10 present ripple for the rectified output
Then: - R ripple = 0.1 * 12V
Vmax = 12V + 0.5 (1.2V) = 12.6V
Vmin = 12V – 0.5 (1.2V) = 11.4V
T = 150𝐻𝑧 = 20m Sec
Ө1 = sin-1(𝑉𝑚𝑖𝑛𝑉𝑚𝑎𝑥) = 65o
Ө2 = 90o – 65o = 25o
t2 = charging time = Ө2360∗𝑇 = 1.4m sec
2022 GC 8
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
2022 GC 9
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
2022 GC 10
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
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.
LM35 has the following main features;
i. Calibrated directly in degree Celsius(centigrade)
ii. Linear +10.0 mV/ degree Celsius
iii. 0.5-degree Celsius accuracy guarantee able (at +25degree Celsius)
iv. Rated for full -55 to +150 degree Celsius range
v. Suitable for remote application
vi. Low cost due to wafer-level trimming
vii. Operates from 4 to 30 volts
viii. Less than 60 Micro ampere current drain
2022 GC 11
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
the output pin is outputting against this full range. Once we have this ratio.
Once this analog voltage in millivolts is calculated, we then can find the temperature in
Fahrenheit by the equation: ((Celsius * 9)/5 + 32).
2022 GC 12
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
2022 GC 13
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
2022 GC 14
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
2022 GC 15
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
2022 GC 16
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
2022 GC 17
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
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.
2022 GC 18
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
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.
2022 GC 19
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
of software, or IDE (Integrated Development Environment) that runs on your computer, used
to write and upload computer code to the physical board.
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 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.
2022 GC 20
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
‘headers’ that allow you to just plug a wire right into the board. The Arduino has several
different kinds of pins, each of which is labeled on the board and used for different functions.
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.
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.
2022 GC 21
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
CHAPTER FOUR
DISCUSSION AND RESULT
4.1 Flow chart of the project
The flowchart gives a diagram representation of the program algorithm. The system flowchart
is designed as shown below: first the program is initialized and power from the main supply
i.e. EEPCO is checked. If there is power absence from this supply, the generator is
automatically started and gives power so that there will be available power. Once it starts its
relay status must be checked continuously because when different fault happens like short
circuit, it trips and the generator output power does not reach at the consumer load. The relay
will trip only when short circuit happens or large current flows due to the fault and SMS text
will be sent to the authorized person’s mobile. When the generator works for a long period of
time, the temperature will be high and causes damage so there should be some mechanism to
cool. Two action must be done first SMS text is sent and 12V dc fan motor will be switched
ON. When the oil is used at time 500hr and the fuel level is below 220L SMS text will be sent.
2022 GC 22
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
A
Start
Power
NO
failure
Oil used at Yes
t=500h
The generator Starts
no
Generator
relay status Fuel level
<220L yes
No
SMS text to
authorized person
Stop
A
Action will be taken
The overall system contains the above listed sensors as input (temperature sensor, fuel and oil
level sensor and fault detector relay) and LCD, to display the parameters, GSM modem (virtual
terminal for simulation) and Fan as an output. The GSM modem is not available in the protues
software so an equivalent component is used to receive the transmitted information from the
Arduino i.e virtual terminal.
2022 GC 23
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
2022 GC 24
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
CHAPTER FIVE
CONCLUSION AND RECOMMENDATIONS
5.1 Conclusion
The hunch delineated of this project is immense in the ever-changing technological world. It
allows a greater degree of freedom to an individual to sway via GSM. 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 controlling 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
industry.
5.2 Recommendations
Any work and investigation on Generator protection are 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 gate
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 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.
2022 GC 25
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
References
[1] Amit, “Microcontroller Based Substation Monitoring and Control System with
GSM Modem” IOSR Journal of Electrical and Electronics Engineering, ISSN: 2278-
1676 Volume 1, Issue 6 (July-Aug. 2012).
[2] Mallikarjun Sarsamba “The Load Monitoring and Protection on Electricity Power
lines using GSM Network” International Journal of Advanced Research in Computer
Science and Software Engineering, Volume 3, Issue 9, September 2013 ISSN: 2277
128X.
[3] S.Vimalraj, R.B. Gausalya, “GSM Based Controlled Switching Circuit between
Supply Mains and Captive Power Plant”, International Journal of Computational
Engineering Research, vol, 03, no. 4, (2013).
[4] A. Palamar “Control System for a Diesel Generator and UPS Based Microgrid”,
Scientific Journal of Riga Technical University Power and Electrical Engineering, vol.
27, (2010).
[5] K. S. Ahn “Digital Controller of a Diesel Generator using an Embedded System”
International Journal of Information Processing Systems, vol.2, no. 3, (2006).
[6] H. Arleving, “Ways to cut power generator maintanence” the journal, (2013).
[7] C. Patil, C. Baligar, “Base Transceiver Station (BTS) Safety and Fault
Management”,International Journal of Innovative Technology and Exploring
Engineering, vol. 3, no. 7, (2013).
[8] Y. Jaganmohan Reddy, Y. V. Pavan Kumar, K. Padma Raju, A. Ramsesh, “PLC
Based Energy Management and Control Design for an Alternative Energy Power
System with Improved Power Quality”, International Journal of Engineering Research
and Applications, vol. 3, no. 3, (2013).
2022 GC 26
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
Appendix 1
#include <LiquidCrystal.h>
#include <SoftwareSerial.h>
SoftwareSerial SIM900(7, 8);
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12,11,10,9,6,5);
//declare variables
float fuelOut;
float OL;
float fuel;
float oil;
float D;
int tempPin=A1;
int fan = 3; // the pin where fan is
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 tempMin = 100; // the temperature to start the fan
int tempMax = 70; // the maximum temperature when fan is at 100%
int fanSpeed
void setup(){
// set up the LCD's number of columns and rows:
lcd.begin(20, 4);
lcd.print("T=");
lcd.setCursor(0, 1);
lcd.print("F=");
lcd.setCursor(9, 0);
lcd.setCursor(9, 1);
2022 GC 27
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
lcd.print("O=");
Serial.begin(9600);
SIM900.begin(9600);
analogReference(DEFAULT);
pinMode(0,OUTPUT);
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);
pinMode(A1,INPUT);
pinMode(A4,INPUT);
pinMode(7,INPUT);
}
void loop()
{
val=digitalRead(overload);
2022 GC 28
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
floa avrtemp=0;
for (int i=0; i<= 4; i++)
{
mytemp [i]=analogRead(tempPin);
delay(10);
}
avrtemp=(mytemp [0]+mytemp [1]+mytemp [2]+mytemp [3]+mytemp [4])/5;
temp = (5*avrtemp*100)/1023;
if(temp < tempMin) { // if temp is lower than minimum temp
fanSpeed = 0; // fan is not spinning
digitalWrite(3, LOW);
}
if(temp >= tempMin) { // if temperature is higher than minimum temp
fanSpeed = map(temp, tempMin, tempMax, 32, 255); // the actual speed of fan
digitalWrite(3,HIGH);
analogWrite(fan, fanSpeed); // spin the fan at the fanSpeed speed
Serial.print(" , ");
delay(100);
Serial.println("Temperature is HIGH ");
delay(100);
}
int myfuel [5];
float avrfuel=0;
for (int i=0; i<= 4; i++)
{
myfuel [i]=analogRead(fuelPin);
delay(10);
}
avrfuel=(myfuel [0]+myfuel [1]+myfuel [2]+myfuel [3]+myfuel [4])/5;
OL = analogRead(oilPin);
fuelOut=(5*avrfuel*46)/1023;
oil=(5*OL*15)/1023;
D=(5*OL)/1023;
// print result to lcd display
2022 GC 29
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
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, 1);
lcd.print(oil,1);
lcd.print("cm");
// sleep...
delay(100);
SIM900.print("AT+CMGF=1\r");
delay(100);
SIM900.print("AT+CMGS=\"+251920941848\"\r");
delay(100);
if(fuelOut<220){
Serial.println("fuel is LOW ");
digitalWrite(2,HIGH);
delay(100);
}
else{
digitalWrite(2,LOW);
}
if(oil at t=500hr){
Serial.print(" , ");
delay(100);
Serial.println("Oil is LOW ");
delay(100);
}
if(val=HIGH){
Serial.println("fualt happen ");
}
}
2022 GC 30
WSU, Department of ECE (Electrical power stream)
Semester Project on GSM Based on Smart Generator Monitoring System in Industry 2022 GC
Appendix 2
Table 1: Power supply circuit diagram root sheet
2022 GC 31
WSU, Department of ECE (Electrical power stream)