Iot Based Switching of Microgrids For Ups Report
Iot Based Switching of Microgrids For Ups Report
A PROJECT REPORT
on
IoT BASED SWITCHING OF MICROGRID FOR UNINTERRUPTED
POWER SUPPLY
BACHELOR OF ENGINEERING
in
ELECTRICAL & ELECTRONICS ENGINEERING
PROJECT ASSOCIATES
Mr. S P Sannidhi 4BD17EE039
Mr. S P Srinidhi 4BD17EE052
Mr. Abhishek G R 4BD18EE400
Mr. Krishna B R 4BD18EE403
CERTIFICATE
Certified that the project work entitled “IoT BASED SWITCHING OF MICROGRIDS
FOR UNINTERRUPTED POWERSUPPLY ” carried out by Mr. S P SANNIDHI USN
4BD17EE039, Mr. S P SRINIDHI USN 4BD17EE052, Mr. ABHISHEK G R USN
4BD18EE400, Mr. KRISHNA B R USN 4BD18EE403 are bonafide students, of BAPUJI
INSTITUTE OF ENGINEERING AND TECHNOLOGY in partial fulfillment for the
award of Bachelor of Engineering in ELECTRICAL & ELECTRONICS ENGINEERING
of the Visvesvaraya Technological University, Belagavi during the academic year 2020-
21. It is certified that all corrections/suggestions indicated for internal assessment have
been incorporated in the report deposited in the departmental library. The project report
has been approved as it satisfies the academic requirements in respect of project work
prescribed for the said degree.
Principal
External Viva:
Name of the Examiners: Signature of Examiner & Date
1…………………………………… …………………………..
2…………………………………… …………………………..
Bapuji Educational Association (Regd.)
Bapuji Institute of Engineering and Technology
Post Box No: 325, Davangere – 577 004 Karnataka
(Affiliated to Visvesvaraya Technological University and Approved by AICTE)
Mission
“BIET contributes to the growth and development of its students by imparting a broad
based engineering education and empowering them to be successful in their chosen field by
inculcating in them positive approach, leadership qualities and ethical values”
Vision
“To train globally competent quality students in Electrical Engineering through excellent
academic inputs, innovative ideas and team work”.
Key words: Innovative ideas, Global, Team work
Mission
1. To enhance the quality of life of students through continuous learning and state of- the-
art technical education.
PSO1: Ability to analysis of power systems that efficiently generate, transmit, distribute
and utilize electric power.
PSO2: Able to design, develop and analysis of Modern Electric & Electronics systems
and allied interdisciplinary areas using Conventional methods & Modern tools.
PSO3: Aware of the impact of professional engineering solutions in societal,
environmental context, professional ethics and be able to communicate
effectively.
Bapuji Educational Association (Regd.)
Bapuji Institute of Engineering and Technology
Post Box No: 325, Davangere – 577 004 Karnataka
(Affiliated to Visvesvaraya Technological University and Approved by AICTE)
COURSE OUTCOMES
Dr. M S NAGARAJ
Ph.D., M.I.E, M.I.S.T.E
Professor of Head
Acknowledgement
We would like to acknowledge the help and encouragement given by various people during
the course of this project work. We are deeply indebted and very grateful to the invaluable
guidance given by our project guide VIJAYALAKSHMI HALLIKERI Assistant Professor
during this project work. We would like to express our sincere gratitude to Dr. M S Nagaraj
Professor and Head, Department of Electrical and Electronics Engineering, BIET,
Davangere, for his kind support, guidance and encouragement throughout the course of this
work. We are thankful to our beloved Principal Dr. Aravinda H B for providing excellent
academic environment. We are also grateful to our beloved Director Dr. Y V
Vrushabhendrappa for providing needed support.
We would like to thank all the teaching and non-teaching staff of Dept. of EEE for their
kind co-operation during the course of the work. The support provided by the college and
departmental library is greatly acknowledged.
Finally, we are thankful to our parents and friends, who helped us in one way or the other
throughout our project work.
Project Associates,
We, the student of Bachelor of Electrical & Electronics Engineering at Bapuji Institute of
Engineering and Technology, Davangere, hereby declare that, this Project on “IoT BASED
SWITCHING OF MICROGRIDS FOR UNINTERRUPTED POWER SUPPLY” is an
original and bonafide work carried out by us in partial fulfillment for the award of the
degree of Bachelor of Engineering of the Visvesvaraya Technological University,
Belagavi-590018, during the year 2020-21.
We also declare that, to the best of our knowledge and belief, the work reported here in
does not form part of any other thesis or dissertation on the basis of which a degree or award
was conferred on an earlier occasion by any student.
S P SANNIDHI (4BD17EE039)
S P SRINIDHI (4BD17EE052)
ABHISHEK G R (4BD18EE400)
KRISHNA B R (4BD18EE403)
Date: 12/07/2021
Place: Davangere
ABSTRACT
Uninterrupted power supply plays a major role in health, testing, manufacturing sectors
and individual’s dependent on life saving equipment’s. This Project explains how we can
have a continuous power supply by using a new technology. Two ways: An automatic or
IoT based switching of Microgrid can provide uninterrupted power supply that prevents
energy outage or power failure due to various and different problems of the Microgrid.
Therefore, the aim of this project is to provide a continuous power supply to the consumers
in the most economical way, within less time, flexible.
TABLE OF CONTENTS
Vision and Mission
Program Educational Objectives
Program Specific Outcomes
Course Outcomes
Acknowledgement
Declaration
Abstract
Chapter 1
INTRODUCTION
1.1 Overview
In this rapidly growing world of today all the fields like usage of domestic appliances,
technology, services…etc. are completely dependent upon the supply of electric power,
through which the accomplishments of work and services are done. So, a continuous
uninterrupted supply of electricity is a great need and demand.
On a contrast, according to the study of Worst Power Outages Report, in the year 2012,
the largest electrical outrage in history, the July 31st blackout of India affected an area
about 670 million people, which is around 9 % of the World’s population, experiencing a
long-lasting time of power outrage i.e. 10 hours. Far till today, the answer to this problem
are traditional or precautionary solutions only, which does not prevent complete blackout.
Hence, in this project we have aimed at providing a continuous power supply to the
consumers in the most economical way, with less time, more flexibility by integrating new
technology called Internet of Things.
Our project mainly aims at switching automatically. When power grid one’s demand
increases or fails, it automatically switches over to the other, thus preventing energy
outage or power failure due to various problems of the Microgrid. Microgrid is capable of
storing energy and can be used in case of power interruption or failure. Therefore,
Microgrid can work independently in case of power disruption of any other energy grid and
can meet local electrical needs.
connected to the substation. We can also think of the expenditure required suddenly in
correcting and making the substation work right. In any of the case there will be
interruption of electricity, power outage, time for analysis of faults and data, hold on
electrified transportations, information interchange, damage of electrical appliances.
1.3 Objective
Uninterrupted Power Supplies are designed to automatically provide emergency power,
without delay or transients, to critical applications in case of an interruption to, or
unacceptable condition of the mains/utility supply. Some UPSs also filter and/or regulate
mains/utility power.
While the electricity utilities try to supply clean, stable electrical power to their customers,
there are times when the network may be overloaded or subject to accidents or emergencies
which could give rise to the following fault conditions:
Mainly we focus on:
To provide emergency power automatically, hence ensuring the continuous
services like house lighting, powering industries etc.
To detect overload, on increasing the load and switch on to Microgrid 2.
Switching on from grid 1 to 2 on operating the switch IoT application.
To ensure clean, stable electric power to the customers and demand balance with
high penetration of renewable energy, Preventing block out and outage time
reduction.
If in any case, fault or interruption occurs in a power system leading to an electric outage,
we don’t have an alternative until the power system is completely tested and checked for
the error, and corrected. Until this time there will be complete blackout and no activities
related to electricity is carried out and that may lead to any kind of losses minor or major
in term of money, time, service, data, etc. all work will be lag and might further cause
higher degree of problems.
Modern day’s human needs a continuous power supply for their day-to-day activity and
24/7 for industrial utilization. Energy saving techniques cannot solve this problem always
because of their limitations. The IoT and Automatic mode technique helps to overcome the
drawbacks of saving energy. The proposed system is designed with two Microgrid (M1
and M2) when Microgrid M1 is working and the other Microgrid M2 is used as standby. If
Microgrid (M1) fails or if the power drops due to increase of load, this is sensed by
hardware circuit, which helps in automatic switching of the Microgrid from M1 to M2 and
vice versa with the use of Arduino as the controller.
Chapter 2
LITERATURE SURVEY
Johannes Schiffera , Daniele Zonettib and Romeo Ortegab “A survey on modeling of
Microgrids” This statement is given by a team of research authors. Microgrid have been
identified as key components of modern electrical systems to facilitate the integration of
renewable distributed generation units. Their analysis and controller design requires the
development of advanced (typically model-based) techniques naturally posing an
interesting challenge to the control community. Although there are widely accepted reduced
order models to describe the dynamic behaviour of microgrids, they are typically presented
without details about the reduction procedure—hampering the understanding of the
physical phenomena behind them. Preceded by an introduction to basic notions and
definitions in power systems, the present survey reviews key characteristics and main
components of a microgrid. We introduce the reader to the basic functionality of DC/AC
inverters, as well as to standard operating modes and control schemes of inverter-interfaced
power sources in microgrid applications. [1]
ABB’s Bob Fesmire “A Microgrid Future” This statements are given by in his research
paper titled. Radical decentralization may not be upon us yet. But microgrids are most
certainly advancing. Regulatory, market and technical changes needed to bring about a
microgrid future. Next to distributed energy resources (and also because of them),
microgrids have to be one of the hottest topics in the power industry at the moment. Their
potential to increase reliability and facilitate the integration of more renewables. Then there
is the challenge of making microgrids responsive to conditions taking place at the
transmission level, which implies some degree of coordination with a balancing authority
like an ISO or RTO. The speed with which we can realize the distributed energy future that
so much of the industry has in mind will depend in large part, then, on the coordinated
development of market and regulatory structures with the technical systems that must
operate within them. [2]
Kroposki, B., Basso, T., & DeBlasio “Microgrid technologies and standards” In this paper
discusses current that are being developed to address implementation of microgrids.
Microgrids that operate both electrical generation and loads in a coordinated manner can
offer benefits to the customer and the local utility. The loads and energy sources in a
Microgrid can be disconnected from and reconnected to the utility system with minimal
disruption, thereby improving reliability. Any time a Microgrid is implemented in an
electrical distribution system, it must be well planned to avoid problems. [3]
Anay Majee & Gnana Swathika O.V “IoT based Reconfiguration of Microgrids through an
Automated Central Protection Centre” In this paper about their research on Microgrids are
a collections of loads, small sources and storage systems which are present as single,
flexible and independently controllable entities. The inclusion of Distributed Generation
(DGs) systems into a microgrid makes the current flow in a Microgrid bidirectional. The
detection of faults and the connection and disconnection of the DGs to and from the
microgrid is carried out by the Central Protection Centre (CPC). To develop an automated
CPC based on the concept of Internet of Things (IoT) which would constantly monitor the
grid for the detection of faults and rectify them. The rectification of fault is either done by
isolating the faulted bus or shortest path from the faulted bus to the main grid. [4]
Kaisar R Khan, atiqur Rahman., Adnan Nadeem, Muhammad Shoaib Siddiqui and Rafi
Ahmad Khan “Remote Monitoring and Control of Microgrid using Smart Sensor Network
and Internet of Thing” according to A Microgrid is a viable and scalable approach to
integrate distributed sources, ensure reliable and secure energy supply to the remote and
the mission critical grid. Smarter monitoring, control and energy management is required
to ensure economical and reliable operation of the Microgrid. To deployed smart sensors
and internet of things (IoT) for condition monitoring which is integrated with the DCS.
Besides grid, automated operation, this state of the art distributed control system also
provides data acquisition, accesses to the user friendly. [5]
Chapter 3
1. Arduino UNO
2. Voltage sensor
3. Current sensor
4. Bluetooth module
5. Transformer
6. Rectifier
7. Solar panel
8. Battery
9. Inverter
10. Relays
11. Voltage regulator
12. LCD display
13. Lighting load
The Arduino Uno is one kind of microcontroller board based on ATmega328, and Uno is
an Italian term which means one. Arduino Uno is named for marking the upcoming release
of microcontroller board namely Arduino Uno Board 1.0. This board includes digital I/O
pins-14, a power jack, analog I/ps-6, ceramic resonator-A16 MHz, a USB connection, an
RST button, and an ICSP header. All these can support the microcontroller for further
operation by connecting this board to the computer. The power supply of this board can be
done with the help of an AC to DC adapter, a USB cable, otherwise a battery.
The ATmega328 is one kind of single-chip microcontroller formed with Atmel within
the mega AVR family. The architecture of this Arduino Uno is a customized Harvard
architecture with 8 bit RISC processor core. Other boards of Arduino Uno include Arduino
Pro Mini, Arduino Nano, Arduino Due, Arduino Mega, and Arduino Leonardo.
Features
The operating voltage is 5V
The recommended input voltage will range from 7v to 12V
The input voltage ranges from 6v to 20V
Digital input/output pins are 14
Analog i/p pins are 6
DC Current for each input/output pin is 40 mA
DC Current for 3.3V Pin is 50 mA
Flash Memory is 32 KB
SRAM is 2 KB
EEPROM is 1 KB
CLK Speed is 16 MHz
Voltage Detection Sensor Module is a simple and very useful module that uses a potential
divider to reduce any input voltage by a factor of 5. This allows us to use the Analog input
pin of a microcontroller to monitor voltages higher than it capable of sensing. For example,
with a 0V - 5V Analog input range, you are able to measure a voltage up to 25V. This
module also includes convenient screw terminals for easy and secure connections of a wire.
Interfacing a voltage sensor with Arduino or any other microcontroller is pretty straight
forward. Connect the VCC and GND of voltage source whose voltage to be measured to the
screw terminals of the voltage sensor. Connect the S and – (GND) pins of voltage sensor to
Analog pin and GND of Arduino respectively.
Features
Input Voltage: 0 to 25V
Voltage Detection Range: 0.02445 to 25
Analog Voltage Resolution: 0.00489V
Needs no external components
Easy to use with Microcontrollers
Small, cheap and easily available
Dimensions: 4 × 3 × 2 cm
Features
HC-05 is a Bluetooth module which is designed for wireless communication. This module
can be used in a master or slave configuration. HC-05 module is an easy to use Bluetooth SPP
(Serial Port Protocol) module, designed for transparent wireless serial connection setup. Serial port
Bluetooth module is fully qualified Bluetooth V2.0+EDR (Enhanced Data Rate) 3Mbps Modulation
with complete 2.4GHz radio transceiver and baseband. It uses CSR Blue core 04-External single chip
Bluetooth system with CMOS technology and with AFH (Adaptive Frequency Hopping Feature).
HC-05 has red LED which indicates connection status, whether the Bluetooth is connected
or not. Before connecting to HC-05 module this red LED blinks continuously in a periodic
manner. When it gets connected to any other Bluetooth device, its blinking slows down to
two seconds. This module works on 3.3 V. We can connect 5V supply voltage as well since
the module has on board 5 to 3.3 V regulator. As HC-05 Bluetooth module has 3.3 V level
for RX/TX and microcontroller can detect 3.3 V level, so, no need to shift transmit level of
HC-05 module. But we need to shift the transmit voltage level from microcontroller to RX
of HC-05 module.
3.1.5 Transformer
The transformer is a static electrical device that transfers energy by inductive coupling
between its winding circuits. A varying current in the primary winding creates a varying
magnetic flux in the transformer's core and thus a varying magnetic flux through the
secondary winding. This varying magnetic flux induces a varying electromotive force
(E.M.F) or voltage in the secondary winding. The transformer has cores made of high
permeability silicon steel. The steel has a permeability many times that of free space and
the core thus serves to greatly reduce the magnetizing current and confine the flux to a path
which closely couples the winding.
The Transformer act as step down transformer reducing AC - 230V to AC - 12V. 12-0-12
5Amp Center Tapped Step Down Transformer is a general purpose chassis mounting mains
transformer. Transformer has 230V primary winding and center tapped secondary winding.
Feature
Specifications
Application
3.1.6 Rectifier
The output from the transformer is fed to the rectifier. It converts A.C. into pulsating D.C.
The rectifier may be a half wave or a full wave rectifier. In this project, a bridge rectifier is
used because of its merits like good stability and full wave rectification. The Bridge rectifier
is a circuit, which converts an ac voltage to dc voltage using both half cycles of the input
ac voltage. The Bridge rectifier circuit is shown in the figure. The circuit has four diodes
connected to form a bridge. The ac input voltage is applied to the diagonally opposite ends
of the bridge. The load resistance is connected between the other two ends of the bridge.
For the positive half cycle of the input ac voltage, diodes D1 and D3 conduct, whereas
diodes D2 and D4 remain in the OFF state. The conducting diodes will be in series with the
load resistance RL and hence the load current flows through RL.
For the negative half cycle of the input ac voltage, diodes D2 and D4 conduct whereas, D1
and D3 remain OFF. The conducting diodes D2 and D4 will be in series with the load
resistance RL and hence the current flows through RL in the same direction as in the
previous half cycle. Thus a bi-directional wave is converted into a unidirectional wave.
Specification
Dimensions: 10.6x13.4x1.0 in
3.1.8 Battery
Battery (electricity), an array of electrochemical cells for electricity storage, either
individually linked or individually linked and housed in a single unit. An electrical battery
is a combination of one or more electrochemical cells, used to convert stored chemical
energy into electrical energy. Batteries may be used once and discarded, or recharged for
years as in standby power applications. Miniature cells are used to power devices such as
hearing aids and wristwatches; larger batteries provide standby power for telephone
exchanges or computer data centers.
Lead-acid batteries are the most common in PV systems because their initial cost is lower
and because they are readily available nearly everywhere in the world. There are many
different sizes and designs of lead-acid batteries, but the most important designation is that
they are deep cycle batteries. Lead-acid batteries are available in both wet-cell (requires
maintenance) and sealed no-maintenance versions.
Lead acid batteries are reliable and cost effective with an exceptionally long life. The Lead
acid batteries have high reliability because of their ability to withstand overcharge, over
discharge vibration and shock. The use of special sealing techniques ensures that our
batteries are leak proof and non-spoilable. The batteries have exceptional charge
acceptance, large electrolyte volume and low self-discharge, which make them ideal as
zero- maintenance batteries lead acid batteries.
Specification
Voltage: 12V
Capacity: 1.2Ah
Size: 98mm x 43mm x 52 mm
Weight: 0.450kg
Feature
12 Volts 1.3 AH Power
There will be no loss in power output over the battery life
Low self-discharge of about 2-3% per month compared with 20-30% for more
common battery systems
Quality construction with no compromise on materials to ensure a long service life
Low internal resistance means a high discharge rate
Wide operating temperature range operating between -15° C to +50 ° C when fully
charged
3.1.9 Inverter
An inverter is an electrical device that converts direct current (DC) to alternating current
(AC), the converted AC can be at any required voltage and frequency with the use of
appropriate transformers, switching, and control circuits.
Solid-state inverters have no moving parts and are used in a wide range of applications,
from small switching power supplies in computers, to large electric utility high-voltage
direct current applications that transport bulk power. Inverters are commonly used to supply
AC power from DC sources such as solar panels or batteries. The inverter performs the
opposite function of a rectifier. The power efficient inverter which is small in size which
can convert 12V DC 220V AC.
3.1.10 Relay
The relay module is an electrically operated switch that allows you to turn on or off a circuit
using voltage and/or current much higher than a microcontroller could handle. There is no
connection between the low voltage circuit operated by the microcontroller and the high
power circuit. The relay protects each circuit from each other. Each channel in the module
has three connections named NC, COM, and NO. Depending on the input signal trigger
mode, the jumper cap can be placed at high level effective mode which ‘closes’ the
normally open (NO) switch at high level input and at low level effective mode which
operates the same but at low level input. The dual-channel relay module is more or less the
same as a single-channel relay module, but with some extra features like optical isolation.
The dual-channel relay module can be used to switch mains powered loads from the pins
of a microcontroller.
On-board EL817 photoelectric coupler with photoelectric isolating anti interference ability
strong
On-board 5V, 10A / 250VAC, 10A / 30VDC relays
Relay long life can absorb 100000 times in a row
Module can be directly and MCU I/O link, with the output signal indicator
Module with diode current protection, short response time
PCB Size: 45.8mm x 32.4mm
7 VCC VCC to power the opt couplers, coil drivers, and associated circuitry
The AC power supply gets converted into constant DC by the power supply circuit. The
circuit is made up of linear voltage regulator 7805 along with capacitors and resistors with
bridge rectifier made up from diodes. By the help of a voltage regulator DC, unregulated
output will be fixed to a constant voltage. From giving an unchanging voltage supply to
building confident that output reaches uninterrupted to the appliance.
Features
Features
Lighting loads are the energy used to power electric lights. We are using load side 9W LED
light.
1. Main bar
2. Text editor
3. Output pane
The bar appearing on the top is called Menu Bar that comes with five different options
as follow:
File – You can open a new window for writing the code or open an existing one.
Following table shows the number of further subdivisions the file option is
categorized into.
Edit – Used for copying and pasting the code with further modification for font
Tools – Mainly used for testing projects. The Programmer section in this panel
is used for burning a bootloader to the new microcontroller.
Help – In case you are feeling skeptical about software, complete help is available
from getting started to troubleshooting.
The Six Buttons appearing under the Menu tab are connected with the running
program as follow:
Feature of C++
Object Oriented
Simple
Platform Dependent
Mid-level programming language
Structured programming language
Rich Library
Memory Management
Powerful & Fast
Pointers
Compiler based
Syntax based language
Some electronics skills required. Requires an Android device with Bluetooth capability
enabled. Version 1.1 only works with Bluetooth Classic. Version 1.2 supports Bluetooth
Low Energy and USB connectivity in addition to Bluetooth Classic.
Large selection of controls available including buttons, switches, sliders, pads, lights,
gauges, terminals, accelerometers and graphs. Drag and drop them onto the panel grid. Then
edit their properties.
Chapter 4
METHODOLOGY
4.1 Block Diagram
This is a project mainly focuses on switching of Micro grids for Uninterrupted Power
Supply, which uses a renewable energy source as a standby grid. The voltage and current
sensors are to be used to sense the electrical parameters at the load side. Whenever the
voltage and current drops or at the time of failure of the first power grid, IoT technology
employed in the proposed system uses the data sensed by the sensors along with Arduino
micro controller, which helps in automatic switching of Micro grids. This can be monitored
in real time on Bluetooth Electronics app through IFTT servers. Hence, ensuring alternate
and continuous power supply without any much time lag.
Start
Calculate load
Check limit
If If
voltage voltage
> set < set
limit
Trip relay
Again read
Switch ON
voltage and
M2
current
If
vtg/load
End Switch off within
limit of
M1
Fig 4.2: Flow Chart
4.4 Working
Microgrid 1 uses raw supply from the mains and Microgrid 2 uses solar power from which
the battery is getting charged. The voltage parameters of the supply from Microgrid 1 is
monitored continuously from the voltage sensor. And when the voltage regulator in the
circuit board is turned down in order to decrease the voltage. The voltage dropped is sensed
by the Microcontroller programmed to switch from Microgrid 1 to Microgrid 2 if below
190v or near to 0v.
In the other sequence, the load is increased in the load section adding an additional bulb, as
the current sensor used in the project is unable to sense the very minute current variation in
the load. There is another triggering switch which sends pulse to the Microcontroller, as
overload. This sequence is also written in the program, hence giving a signal to switch over
to Microgrid 2(Renewable energy).
In one more sequence an IOT application, Bluetooth electronics is used to read the data of
various parameters like voltage of Microgrid 1, Microgrid 2 and current. Using a Bluetooth
module, the circuit reading is connected to the cloud network, wherein which there is a
switch configured and parallel using the switch(programmed) the switching application is
carried out. Hence, supplying continuous uninterrupted power.
Chapter 5
After analysis and verifying the reading on LCD and the graph. We get to know that, in the
first sequence when the primary voltage is dropped to zero from normal operation, then the
power is fed from backup, though the bulb remains glowing.
In the second sequence, after detection of overload the system switches over to standby
supply through which we can calculate power consumption from the load(bulbs). We also
got an promising result of IoT switching application, from which we remotely switched the
system from primary to standby power supply through operating a toggle switch in
Bluetooth electronics application. Even here the data was verified and result was accepted.
Chapter 6
ADVANTAGES AND DISADVANTAGES
Advantages
Power industries.
Disadvantages
From this project, we would like to conclude that we can have a backup system for whole
area from the renewable energy source and in case of any interruption, it can be switched
over to backup grid. For switching purpose, we can have two methods i.e. Automatic and
Manual. Automatic switching over can be done by programming and pre-determining the
parameters on other hand switching can be done using IoT technology remotely. Hence,
Supplying continuous uninterrupted power.
The future work can be on data processing at the IoT site and adding additional sensors,
relays at the input side to capture various signals, carryout signal conditioning and monitor
them. Need for electrification in remote locations and development countries. Reliable and
secure power supply worldwide.
Text Books:
[1] “Exploring Arduino” of 1st Edition, written by Jeremy Blum.
[2] “IoT for Smart Grids” explains fundamentals of control theory for IoT and
Smart grids by Prof. Kostas Siozios and Dimitrios Anagnostos.
Publications:
[3] “A survey on modeling of Microgrid"—from fundamental physics to phasors
and voltage sources by a team of research authors Johannes Schiffera, Daniele
Zonettib, Romeo Ortegab, Aleksandar Stankovi´cc, Tevfik Sezid, J¨org
Raische.
[4] “A Microgrid Future” We Can See it from here on website
[5] “Micro grid Standards and Technologies” by Kroposki, B., Basso, T., &
DeBlasio, R. (2008, August)
[6] “IoT based Reconfiguration of Microgrids through an Automated Central
Protection Centre” by Anay Majee.,& Gnana Swathika O.V (IEEE Xplore: 26
October 2017)
[7] “Remote Monitoring and Control of Microgrid using Smart Sensor Network
and Internet of Thing” Kaisar R. Khan., Atiqur Rahman., Adnan Nadeem.,
Muhammad shoaib Siddiqui., Rafi Ahmad Khan (IEEE Xplore: 23 August
2018)
[8] “Nano grids, Microgrid and the Internet of Things” that was published in
Energies, authored by Antonio Moreno-Munoz.
Web Links:
[9] https://core.ac.uk/download/pdf/42625988.pdf .
[10] https://microgridknowledge.com/microgrid-future/.
[11] https://www.researchgate.net/publication/224325606.
[12] https://ieeexplore.ieee.org/document/8081066.
[13] https://ieeexplore.ieee.org/document/8441994.
IoT Based Switching of Microgrid for Uninterrupted Power Supply
APPENDIX
Appendix A
Source code for our project:
#include <LiquidCrystal.h>
LiquidCrystal lcd(9,8,7,6,5,4);
int tempS,tempP,tempA;
int pinValue = 0, F1 = 0, F2 = 0;
char t;
pinMode(MVN, OUTPUT);
pinMode(MVL, OUTPUT);
pinMode(SVN, OUTPUT);
pinMode(SVL, OUTPUT); // load_sw
pinMode(load_sw, INPUT_PULLUP);
digitalWrite(MVN, LOW);
digitalWrite(MVL, LOW);
digitalWrite(SVN, LOW);
digitalWrite(SVL, LOW);
Serial.println("*.kwl");
Serial.println("clear_panel()");
Serial.println("set_grid_size(16,8)");
Serial.println("add_button(0,1,27,R,r)");
Serial.println("add_led(0,4,2,L,0,0,0)");
Serial.println("add_led(3,4,2,L,0,0,0)");
Serial.println("add_roll_graph(6,1,10,0.0,100.0,100,G,Graph Title,X-Axis,Y-
Axis,1,0,1,0,1,1,medium,none,3,1,42,97,222,2,237,115,7,3,51,215,155)");
Serial.println("set_panel_notes(-,,,)");
Serial.println("run()");
Serial.println("*");
}
void loop () {
// put your main code here, to run repeatedly:
tempS = analogRead(Svolt);
tempS = ((tempS / 1023.0)*5.0)*93;
//Serial.print("Solar volt:")
tempP = analogRead(Pvolt);
//Serial.print("mains volt:");Serial.println(tempP);
tempP = (analogRead(Pvolt)/1023.0)*5.0*63.0;
//Serial.print("tempP:");Serial.println(tempP);
tempA = analogRead(Mamp);
tempA = tempA/2;
//tempA = ((tempA / 1023.0)*5.0);
//Serial.print("load Amp:");Serial.println(tempA);
lcd.setCursor(0,0);
lcd.print("S/P ");lcd.print(tempS);lcd.print("/");lcd.print(tempP);
lcd.setCursor(13,1);
lcd.print(tempA);
delay(500);
///////////// Receive and Process Data
if (Serial.available()){
data_in=Serial.read(); //Get next character
Serial.println("over/manual ");
digitalWrite(MVN, LOW);
digitalWrite(MVL, LOW);
delay(2000);
digitalWrite(SVN, HIGH);
digitalWrite(SVL, HIGH);
F2 = 1;
F1 = 0;
delay(1000);
}
else if((tempP >= 190))
{
red=0; green=200; blue=0; // <--- Set RGB color here
Serial.print("*LR"+String(red)+"G"+String(green)+"B"+String(blue)+"*");
red=200; green=0; blue=0; // <--- Set RGB color here
Serial.print("*XR"+String(red)+"G"+String(green)+"B"+String(blue)+"*");
lcd.setCursor(0,1);
lcd.print("gird1 Power");
// Serial.println("Mains Power");
F2 = 1;
F1 = 0;
digitalWrite(SVN, LOW);
digitalWrite(SVL, LOW);
delay(1000);
digitalWrite(MVN, HIGH);
digitalWrite(MVL, HIGH);
delay(2000);
}
else if((tempP <= 190))
{
if ((t-last_time)>update_interval){
last_time=t;
Appendix B
Project Model
SL.
USN NAME PHONE NO. EMAIL ID ADDRESS PHOTO
NO