Professional Documents
Culture Documents
Seminar Report Main With Out Index Notattions
Seminar Report Main With Out Index Notattions
Seminar Report Main With Out Index Notattions
A PROJECT REPORT
Submitted by
to
of
Bachelor of Technology in
ARANMULA
SEPTEMBER 2019
DEPARTMENT OF ELECTRONICS AND COMMUNICATION
ENGINEERING
COLLEGE OF ENGINEERING ARANMULA
(Under CAPE, Estd by Govt. of Kerala)
PATHANAMTHITTA-689533
CERTIFICATE
Place: Aranmula
Date:29/11/2019
ACKNOWLEDGMENT
It gives me immense pleasure to express my heartfelt gratitude to all those who helped
me in the completion of this project report. I would like to express my sincere thanks to
our honorable Principal Dr. SAJEEV V for giving every support and encouragement to
complete this project. I would like to sincerely thank my guide Mr DHANOOP K
DHANAPAL, Assistant Professor, Electronics and Communication Engineering
Department for his constant encouragement and valuable guidance.
Above all, I thank our lord almighty, whose grace was enough for me and whose
incidence ways throughout the project.
VINAYAK MOHAN
ELEEJA JOHNN
SAHIR VK
i
DECLARATION
ii
DECLARATION
ii
DECLARATION
SAHIR
VK
ii
ABSTRACT
The absence of effective load scheduling system often leads to random load shedding in order to
compensate generation. Uncertainty in load consumption at user level result’s in unplanned and over
expensive load usage, the proposed project uses an intelligent system in regulating the generation and
load using SCADA system. The intelligent power scheduling and alerting system (IPSAS) acquires
load usage data from customers using smart meter along with weather forecasting data, the load is
forecasted with the given data and SCADA network control generation and transmission. User are
advised to reduce the load at peak times when supply is less than load non cooperating user are
detached from the grid instead of detaching an area to compensate generation. IPSAS also alert user
when temporary maintenance or when grid is damaged, users are also provided with an option for
paying hourly bills.
iii
TABLE OF CONTENTS
ACKNOWLEDGEMENT i
DECLARATION ii
ABSTRACT iii
LIST OF FIGURES iv
LIST OF TABLES v
1 INTRODUCTION 1
2 PROBLEM STATEMENT 2
3 SCOPE 3
4 LITERATURE SURVEY 4
6 PROPOSED SYSTEM 7
7 9
8 CONCLUSION 10
9 REFERENCE 11
LIST OF FIGURES
iv
LIST OF TABLES
7.1
v
Project Report INTELLIGENT POWER SCHEDULING AND
ALERTING SYSTEM
CHAPTER 1
1. INTRODUCTION
Based on a World Bank report, the amount of lost earnings due to electrical outages is estimated
at 5.47%. A big part of these outages are caused by energy shortages, specifically in developing
countries. Energy shortages might not be caused by lowered power production resources, but
due to power consumption patterns and energy utilization. Based on U.S. Department of
Energy's National Renewable Energy Laboratory (NREL), the electrical system energy loss is
46% for residential areas, and 52.1% for commercial entities, mostly from conversion losses.
These losses are the difference between input energy and generated electricity, which mostly
occurs in steam-electric power plant. Overall, two-third of the total input energy is lost in
conversion, 5% of generated electricity is lost in plant use, and another 7% in distribution and
transmission. Energy shortages are caused by an increase in power consumption, specifically
increase in peak electricity demand. Today’s smart meters provides two-way on time
communication via a smart grid, which helps provide access to details pertaining to consumer
power consumption behaviors. Due to today’s sophisticated metering infrastructure, smart
meters and smart grids are now equipped with a fast-two-way communication. It is beneficial to
have a modern intelligent power grid that can control energy consumption as well as increase the
efficiency of the grid via load management.
2. PROBLEM STATEMENT
The traditional electrical power grid is unidirectional in nature, where the electricity flows from
power generation facilities to end users. This system has served well for the last hundred years.
Recently, however, it has been subjected to government deregulation and has suffered from
several technical, economic, and environmental issues. Modern society demands this system to
be more reliable, scalable, and manageable while also being cost effective, secure, and
interoperable .The smart grid is expected to revolutionize existing electrical grid by allowing
two-way communications to improve efficiency, reliability, economics, and sustainability of the
generation, transmission, and d
4. LITERATURE REVIEW
Abolfazl salami, MohammadMehdi Farsi (2015): Demand side management using direct load
control for residential and industrial areas — Demand Side Management (DSM) can be a
solution for providing the energy at peak times. In this paper an effective DSM is proposed that not
only reduces the peak costs, but also is practicably possible in industrial and residential areas, which
is performed by using Direct Load Control (DLC). According to use different strategies of DLC use,
different results are found that can be either useful for consumers or utility. Produced structures by
DLC are optimized by Integer Genetic Algorithm that is discussed in this paper. Simulation results
for each DLC operation strategies are presented and an executive comparison for these strategies is
done. NOWDAYS, Power Systems Restructuring (PSR) is an inevitable necessity for anyone who
has a few knowledge about the power systems. PSR optimizes the costs using private competitive
market. Furthermore, restructuring have more advantages, including incentives for increasing
investments in power systems, increasing energy efficiency, incentives to build renewable plants,
DSM capability and Demand Response (DR). DR by using consumer’s effects on economic
relations of market and change in consumption pattern, increases the feasibility of achieving PSR
purposes, which can be obtained by shifting consumption energy from peak times to other times,
energy storage in off time and consumption energy in peak time or any other method that is caused
by DR. In addition, DR in order to increase reliability of the system, coordinates demand and supply
of the system. Direct Load Control program is an important part of DR. Utilities have been
controlling their customer’s consumption energy using this method for four decades in their
individual zones. DLC changes load profile using a preset program that could be implemented in
distribution networks or programing consumer’s equipment by Information Technology (IT).
Programing controllable equipment such as washing machines, air conditioning systems, water
heaters, pumps, dish washing machines and other devices can be used for optimal consumption and
other contingencies in the network. In fact, this plan ensures consumption reduction of utility, to
reduce a considerable amount of requirements for additional production. Consumers are encouraged
by cooperating with utility in DLC program. In some cases, according to contracts, consumers must
pay surcharges, if don’t cooperate with utility. Residential consumers and small companies pay their
bills based on time of use tariff. On time and off time (or delay) are important parts of DLC plan.
Sadık Yıldız, Mustafa Burunkaya(2019): Web Based Smart Meter for General Purpose Smart
Home Systems with ESP8266 - In this paper, open source and modular smart home system is
designed and implemented. The Consumer Internet of Objects (CIoT) approach is adopted in this
design. WiFi-based CIoT network has been designed to monitor energy consumption in smart homes.
In the CIoT network, the current and voltage values have been measured with the current sensor SCT-
013 CT 100A and 9 V AC/AC step-down transformer connected to the Arduino Nano development
board. Real power, apparent power and power factor values have been calculated by using measured
current, voltage values and phase angle. These measured and calculated values have been sent to the
ESP8266 NodeMCU development board by Software Serial technique. The ESP8266 provides
HTML based user interface to computers and mobile devices connected to the CIoT network via the
TCP/IP protocol. An access point has been used the WiFi connection. The user interface is displayed
via the web browser of the devices with TCP/IP protocol. Four buttons on the user interface control
the four relays connected to the CIoT network. Experimental studies show that the designed system
could be used in general purpose applications such as energy monitoring in smart home systems.
The need for electricity is increasing every day due to developing technology and increasing
population . An important part of the grid loading is composed of residential and commercial
consumers. The load behavior of each building is important for operators because the effects on the
grid cannot be neglected. Smart homes have been developed to help reduce a building's electricity
consumption and improve energy efficiency. Nowadays, smart homes have become an important
The main objective is to use of smart direct load control and load shedding in reducing the
peak-to- average ratio. It helps reduce power outages by distributing the shortage of supply to
a wide range of customers. Load shedding enables us to shift the appliance load from peak
load to off-peak and reduce the amount of generating capacity. In fact, to entirely fulfil
customers’ power demand, the supply needs to satisfy the peak demand instead of the average
demand, which requires the installation of additional power plant and transmission
infrastructures. To address this problem, the peak-to-average ratio (PAR) needs to be reduced.
The Smart Demand Response makes the power consumption changes as per the grid’s
customer. The scenario affecting the changes will be high for enrolled customers in the case of
load reduction in peak times. An important issue with existing demand response programs is
the fact that they enrolled customers for certain periods during specific times. Therefore, the
grid operator cannot rely on those consumers for non-peak load reduction. DR is the action
taken by power consumers to respond to supply shortages for a short amount of time. As seen
by the definition of DR, the customers respond to the shortage of load for short periods of
time. DR is designed for use by medium and high-power consumers, since the algorithm
presented in this paper encompass clients within any ranges of power consumption. Using the
Internet of Things, millions of clients will be linked to the grid operator with real time
communication.
7 Internet of Things(IoT)
in the substations. With the IoT in place, the analyses can occur on real-time data from the
motor. That makes the analysis quick, painless, and more accurate. IoT brings real-time
alerts, ability to predict energy demand, usage patterns, and ways to optimize energy
consumption.
8. PROPOSED SYSTEM
Wi-fi/GSM
Controlling Wi-fi/GSM
Station Wi-fi/GSM
Server
Processor
Processor
Voltage
Current Computer
Ordinary Meter
Power
Time Slot
8 .1 SMART METER
Generation Side
Either tap the inputs to the digital display to a processor from an ordinary meter or use ready made
smart meter with WIFI connection. We need to obtain data such as voltage ,current, power, power
factor, frequency with respect to time. With the help of a processing unit either send the data
between a certain period of time or continuously send the data. Hourly basis data transmission is
preferred to reduce data size
The world is changing towards automatic wireless technologies, which prefer not only
reducing human efforts but is helping in making systems automatic and efficient. A system is said to
be intelligent when it can decide what to do without any instruction and can work automatically. An
Electric or Energy meter measures the total electrical energy in units used by the appliances which
consume electrical energy from the main power supply. Electromechanical and Electronic meter are
two types of meter Available in the market to measure the unit consumption. Electromechanical
meters are commonly used in village areas, where the uses of modern technology are not as high as it
is in cities. Electromechanical meters have become out of date nowadays.
Electronic meters replace electromechanical meters. This meter consists of LCD/LED to display the
reading. Calibration Led is used on the meter which shows the units consumed. Manpower is required
to read the meter and note down the reading. The reading on the meter is increasing which is used to
generate the electricity bill. An IOT Based Smart Electricity Meter and billing System does the same
task without human efforts. IOT Based SEM system is controlled using nodemcu, which is a
microcontroller board. The purpose behind choosing this board is its efficiency and memory. It is
more efficient in terms of memory and GPIO. The data obtained is then sent to the cloud through the
internet. Data obtained can be easily sent wirelessly over long distance without any noise disturbance
using the internet. As the data is directly sent to the cloud there is no occurrence of range and distance
problem and is highly accurate and efficient because of no human interference. Other wireless
technologies such as Zigbee, Bluetooth etc. have limited range thus cannot be used over very long
distances effectively. This project envisages the use internet and the concept of IOT by which the
base station, as well as users, remain updated with the current consumed units, changing the present
problems faced by the electricity board and the user. In the present billing system the distribution
companies are unable to keep track of the changing maximum demand of consumers. The consumer
is facing problems like receiving due bills for bills that have already been paid as well as poor
reliability of electricity supply and quality even if bills are paid regularly. The remedy for all these
problems is to keep track of the consumers load on timely basis, which will held to assure accurate
billing, track maximum demand and to detect threshold value. These are all the features to be taken
into account for designing an efficient energy billing system. The present project “IPSAS” addresses
the problems faced by both the consumers and the distribution companies. and deals with smart
energy meter, which utilizes the features of embedded systems i.e. combination of hardware and
software in order to implement desired functionality. With the use of GSM modem the consumer as
CE, Aranmula 18 Dept. of Electronics & Communication
Engineering
Project Report INTELLIGENT POWER SCHEDULING
AND ALERTING SYSTEM
well as service provider will get the used energy reading with the respective amount, Consumers will
even get notification in the form text through GSM when they are about to reach their threshold
value, that they have set. Also with the help of Wi-Fi modem the consumer can monitor his consumed
reading and can set the threshold value through webpage. This system enables the electricity
department to read the meter readings monthly without a person visiting each house. This can be
achieved by the use of Arduino unit that continuously monitor and records the energy meter reading
in its permanent (non- volatile) memory location. This system continuously records the reading and
the live meter reading can be displayed on webpage to the consumer on request. This system also can
be used to disconnect the power supply of the house when needed.
Smart meters have been mentioned in the literature already in the early 1990´s, (De Almeida and
Wine, 1993) and (Koponen et al., 1996), for instance. In 1993 the solid state meters were still rather
new and 10 - 20 times as expensive as the electromechanical meters. Thus their use was mainly
When the number of remotely readable smart meters increased, it became necessary to develop better
systems for meter reading and data management. An example of the state of the art in mid 1990's is
given in (Saari et al., 1996). With such systems the metered data started to become available to other
systems, but most these other systems were not yet ready to use such data. These other systems
include systems for distribution network automation and management, and customer information.
Similarly, timely consumption data from billing meters was seldom used to end use energy
management and energy automation or for regular assessment of the potential for energy savings.
Static meters are replacing electromechanical meters. Distributed data processing and storage
capacity have become very cheap in mass produced meters and these factors do not any more limit
the possibilities to add smartness to small customer meters.
ENERGY LOAD
METER
V
Relay
P
N
CE, Aranmula 21 Dept. of Electronics & Communication
Engineering
NODE
Project Report INTELLIGENT POWER SCHEDULING
AND ALERTING SYSTEM
230V TO 12V
CONVERTER
VOLTAGE
DE
REGULATOR
9.12NODE-MCU (ESP8266)
Node MCU is an open source IOT platform. It includes firmware which runs on the ESP8266 Wi-Fi
SOC from Express if Systems, and hardware which is based on the ESP-12 module. The term "Node
MCU" by default refers to the firmware rather than the development kits. The firmware uses the LUA
scripting language. It is based on the LUA project, and built on the Express if Non-OS SDK for
ESP8266. It uses many open source projects, such as LUA-CJISON and SPIFFS.
9.13.VOLTAGE REGULATOR:
Voltage sources in a circuit may have fluctuations resulting in not providing fixed voltage outputs. A
voltage regulator IC maintains the output voltage at a constant value. 7805 IC, a member of 78xx
series of fixed linear voltage regulators used to maintain such fluctuations, is a popular voltage
regulator integrated circuit (IC). The xx in 78xxindicates the output voltage it provides. 7805 IC
provides +5 volts regulated power supply with provisions to add a heat sink.
9.14 Relay
Relay is a switch which controls (open and close) circuits electromechanically. The main operation of
this device is to make or break contact with the help of a signal without any human involvement in
order to switch it ON or OFF. It is mainly used to control a high powered circuit using a low power
signal. It is used to cut of power to the energy meter remotely depending upon the consumption
threshold.
9.2.WORKING PRINCIPLE
When the Energy Meter gets supply from the main (substation or power station) to the input
terminals of the energy meter. Generally energy meter has two input terminals and two output
terminals .From the input terminals of the energy meter input is given to ac converter (220v to 12v)
When you read or write data to your channel using the ThingSpeak API, you need the appropriate
read and write permissions. The 16-digit API key allows you to read from a private channel and write
to a channel. You do not need an API key to read from a public ThingSpeak channel.
The channel display all the data that has been uploaded from the energy meter through NodeMCU
9.4 CODE
#include "math.h"
#include <EEPROM.h>
#include <LiquidCrystal.h>
#include <ESP8266WiFi.h>
#include <SoftwareSerial.h>
SoftwareSerial espSerial = SoftwareSerial(2,3);
Int Relay 8 ;
LiquidCrystal lcd(7, 6, 5, 4);
String apiKey = "36AP3UC6IHTEIV6R"; // replace with your channel's thingspeak WRITE key
String ssid="ipsas"; // Wifi network SSID
String password ="007"; // Wifi network password
boolean DEBUG=true;
int i;
int refreshNum = 0;
int cutoffNum = 0;
const float dataPin1 = 9;
const float dataPin2 = 10;
const float dataPin3 = 12;
const float dataPin4= 13;
float voltageCalb = 1;
float currentCalb = 18.9;
float powCalb = 0.92;
float Ioffset;
float unitconst = 3600000;
float InsVoltage ;
float InsCurrent ;
int rmsVoltage ;
float rmsCurrent ;
int realPower;
float pf;
float units = 0;
float cost = 0;
float rate = 7;
int startTime;
int endTime;
int frequency;
void EEPROM_writeDouble(int ee, double value)
{
byte* p = (byte*)(void*)&value;
for (int i = 0; i < sizeof(value); i++)
EEPROM.write(ee++, *p++);
}
}
void thingSpeakRead(){
String cmd = "AT+CIPSTART=\"TCP\",\"";
cmd += "184.106.153.149";
cmd += "\",80";
espSerial.println(cmd);
if (DEBUG) Serial.println(cmd);
if(espSerial.find("Error")){
if (DEBUG) Serial.println("AT+CIPSTART error");
return false;
}
String talkBackCommand;
char charIn;
String talkBackURL = "GET /channels/385007/fields/8/last?api_key=AHMMG7YLXARHC1UB&results=2\
r\n" ;
cmd = "AT+CIPSEND=";
cmd += String(talkBackURL.length());
espSerial.println(cmd);
if (DEBUG) Serial.println(cmd);
delay(100);
if(1){
espSerial.print(talkBackURL);
if (DEBUG) Serial.print(talkBackURL);
}
else{
espSerial.println("AT+CIPCLOSE");
if (DEBUG) Serial.println("AT+CIPCLOSE");
}
delay(3000);
while (espSerial.available()) {
charIn = (char)espSerial.read();
talkBackCommand += charIn;
}
Serial.print(talkBackCommand[53]);
Serial.print(talkBackCommand[54]);
Serial.print(talkBackCommand[55]);
Serial.print(talkBackCommand[56]);
Serial.print(talkBackCommand[57]);
Serial.print(talkBackCommand[58]);
Serial.print(talkBackCommand[59]);
Serial.print(talkBackCommand[61]);
Serial.print(talkBackCommand[64]);
Serial.print(talkBackCommand[65]);
if(talkBackCommand[60] != '0' && talkBackCommand[59]=='0'&& talkBackCommand[58]==':'){
cutoffNum = 1;
}
else if(talkBackCommand[60] != '0' && talkBackCommand[59]=='1'&&
talkBackCommand[58]==':'&&cutoffNum != 2){
for(i = 0;i<2000;i++){
digitalWrite(10,LOW);
}
digitalWrite(13,LOW);
cutoffNum = 2;
}
}
boolean thingSpeakWrite(int value1, float value2, int value3,float value4,float value5,float value6,int value7)
{
String cmd = "AT+CIPSTART=\"TCP\",\"";
cmd += "184.106.153.149";
cmd += "\",80";
espSerial.println(cmd);
if (DEBUG) Serial.println(cmd);
if(espSerial.find("Error")){
if (DEBUG) Serial.println("AT+CIPSTART error");
return false;
}
String getStr = "GET /update?api_key="; // prepare GET string
getStr += apiKey;
getStr +="&field1=";
getStr += String(value1);
getStr +="&field2=";
getStr += String(value2);
getStr +="&field3=";
getStr += String(value3);
getStr +="&field4=";
getStr += String(value4);
getStr +="&field5=";
getStr += String(value5);
getStr += "\r\n\r\n";
cmd = "AT+CIPSEND=";
cmd += String(getStr.length());
espSerial.println(cmd);
if (DEBUG) Serial.println(cmd);
delay(100);
if(espSerial.find(">")){
espSerial.print(getStr);
if (DEBUG){ Serial.print(getStr);
digitalWrite(11,HIGH);
delay(70);
digitalWrite(11,LOW);
delay(70);
delay(70);
digitalWrite(11,LOW);
delay(70);
digitalWrite(11,HIGH);
}
}
else{
espSerial.println("AT+CIPCLOSE");
// alert user
if (DEBUG) Serial.println("AT+CIPCLOSE");
lcd.begin(16, 2);
lcd.print(" Reconnecting... ");
connect_wifi();
return false;
}
return true;
}
void refresh(){
lcd.clear();
lcd.begin(16, 2);
lcd.setCursor(0, 0);
// Print a message to the LCD.
if(refreshNum % 2 == 0){
lcd.print("Kwh: pf:");
lcd.setCursor(0,1);
lcd.print("Rs : ");
lcd.setCursor(4, 0);
lcd.print(units);
lcd.setCursor(4,1);
lcd.print(cost);
lcd.setCursor(11,1);
lcd.print(pf);
}
else{
lcd.print("V: V P: W");
lcd.setCursor(0,1);
lcd.print("I: A F: Hz");
lcd.setCursor(2, 0);
lcd.print(rmsVoltage);
lcd.setCursor(2,1);
lcd.print(rmsCurrent);
lcd.setCursor(11,0);
lcd.print(realPower);
lcd.setCursor(11,1);
lcd.print(frequency);
}
}
void connect_wifi(){
DEBUG=true;
espSerial.begin(115200);
espSerial.println("AT+RST");
espSerial.println("AT+CWMODE=1");
showResponse(1000);
espSerial.println("AT+CWJAP=\""+ssid+"\",\""+password+"\""); // set your home router SSID and password
showResponse(5000);
if (DEBUG) Serial.println("Setup completed");
}
void setup() {
pinMode(1, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);
digitalWrite(13,LOW);
digitalWrite(1,LOW);
for(i = 0;i<2000;i++){
digitalWrite(10,LOW);
InsCurrent += (analogRead(currentPin)-Ioffset);
}
Ioffset = InsCurrent/2000;
units = EEPROM_readDouble(0);
lcd.begin(16, 2);
lcd.print(" Connecting... ");
enable software serial
Serial.begin(9600);
connect_wifi();
refresh();
}
void loop()
{
digitalWrite(12, HIGH);
float SumVol = 0;
float SumCurr = 0;
float numSam = 1;
float sumVinsIins = 0;
int flag = 0;
frequency = 0;
if(refreshNum>61){
EEPROM_writeDouble(0,units);
espSerial.println("AT+RST");
showResponse(1000);
refreshNum = 0;
}
digitalWrite(11,LOW);
startTime = millis();
while ((endTime-startTime) < 5000){
InsVoltage = analogRead(voltagePin);
InsCurrent = (analogRead(currentPin)-Ioffset);
Serial.println(InsCurrent);
if(InsVoltage != 0)
flag = 0;
numSam++;
SumVol += InsVoltage;
SumCurr += abs(InsCurrent);
sumVinsIins += InsVoltage*InsCurrent;
}
else if(flag == 0)
{
frequency++;
flag = 1;
}
endTime = millis();
}
startTime = millis();
rmsCurrent = 1.11*SumCurr/numSam/currentCalb;
rmsVoltage = int(1.11*SumVol/numSam/voltageCalb);
realPower = int(powCalb*sumVinsIins/numSam/voltageCalb/currentCalb);
pf = realPower/rmsCurrent/rmsVoltage;
units += realPower * 5/unitconst;
frequency = frequency/5;
cost = units * rate;
if(pf > 1 || pf <-1){
pf = 1;
}
if(refreshNum%2==0) {
thingSpeakWrite(rmsVoltage,rmsCurrent,realPower,units,cost,pf,frequency}
refreshNum++;
Serial.print("rmsV: ");
Serial.print(rmsVoltage);
Serial.print(" rmsI: ");
Serial.print(rmsCurrent);
Serial.print(" RealPower: ");
Serial.print(realPower);
Serial.print(" pf: ");
Serial.print(pf);
Serial.print(" frequency: ");
Serial.print(frequency);
Serial.print(" number of samples: ");
Serial.print(numSam);
Serial.print(" units: ");
Serial.print(units);
Serial.print(" cost: ");
Serial.print(Ioffset);
Serial.println();
if(cutoffNum != 3){
refresh();
thingSpeakRead();
}
if(rmsVoltage > 300 || rmsCurrent > 20 || frequency > 600){
cutoffNum=3 ;
}
for(i = 0;i<1000;i++){
digitalWrite(10, HIGH);
}
digitalWrite(13,HIGH);
lcd.clear();
lcd.begin(16, 2);
lcd.setCursor(0, 0);
lcd.print(" Emergency cut off ! ");
if(rmsVoltage > 300)
{
lcd.setCursor(1, 1);
lcd.print(" High voltage ");
}
else if(rmsCurrent > 20)
{
lcd.setCursor(1, 1);
lcd.print(" High Current ");
}
else if(frequency > 60)
{
lcd.setCursor(0, 1);
lcd.print(" High frequency ");
}
else
{
lcd.setCursor(2, 1);
lcd.print(" Manual off ");
}
delay(3000);
}
}
}
For simulation we use proteus pro simulation software. By installing library’s for energy meter and
NodeMCU, we can use the same in proteus energy meter. We take resistor, capacitor and inductor as
load since most of the electric appliances are either resistive, inductive or capacitive loads. Four data
lines are used to transfer output of meter to the node mcu.AC voltage is applied between the terminals
and output is obtained at NodeMCU which shows the different variables in the virtual terminal
10 FORECASTING SIDE
For forecasting we use Raspberry pi because of its processing capabilities as high amount of data is
1) Similar Day Look up Approach: Similar day approach is based on searching historical data of
days of one, two or three years having the similar characteristics to the day of forecast. The
characteristics include similar weather conditions, similar day of the week or date .
2) Regression based Approach: Linear regression is a technique which examines the dependent
CE, Aranmula 34 Dept. of Electronics & Communication
Engineering
Project Report INTELLIGENT POWER SCHEDULING
AND ALERTING SYSTEM
variable to specified independent. The independent variables are firstly considered because changes
occur in them unfortunately. In energy forecasting, the dependent variable is usually demand of the
electricity because it depends on production which on the other hand depends on the independent
variables.
3) Time Series Analysis: Time series forecasting is based on the idea that reliable predictions can be
achieved by modeling patterns in a time series plot, and then extrapolating those patterns to the
future. Using historical data as input, time series analysis fits a model according to seasonality and
trend. Time series models can be accurate in some situations, but are especially complex and require
large amounts of historical data.
4) Artificial Neural Networks: ANN is a soft technique used in various optimization processes. This
method is able to perform non-linear modelling and adaptation. It does not require assumption of any
functional relationship between load and weather variables in advance. We can adapt the ANN by
exposing it to new data. The ANN is also currently being investigated as a tool in other power system
problems such as security assessment, harmonic load identification, alarm processing, fault diagnosis,
and topological observability.
5) Expert Systems: An expert system is a computer program, which has the ability to act as an expert.
This means this computer program can reason, explain, and have its knowledge base expanded as new
information becomes available to it. The load forecast model is built using the knowledge about the
load forecast domain from an expert in the field .
6) Fuzzy Logic: Fuzzy logic based on the usual Boolean logic which is used for digital circuit design.
In Boolean logic, the input may be the truth value in the form of “0” and “1”. In case of fuzzy logic,
the input is related to the comparison based on qualities.
7) Support Vector Machines: Support Vector Machines (SVM) is the most powerful and very recent
techniques for the solution of classification and regression problems. In support vector machines,
linear functions are used to create linear decision boundaries in the new space. In the case of neural
network, the problem is in the choosing of architecture and in the case of support vector machine,
problems occurs in choosing a suitable kernel
1) Time Factor: Time is the most important factor in short term load forecasting because its impact on
consumer load is highest. From observing load curve of several different grid stations it is found that
the load curve has “time of the day” property, also it has “day of week”, “week of month” and “month
of season” property.
2) Economic Factor: Since electricity nowadays became people’s daily life necessity so it has turned
to be a commodity. Thus economy of the state has also an impact on the usage of electricity.
Economic factor has more importance in long term forecasting, but it also can impact the load curve
for short term load forecasting. Economic factors such as price of electricity, management of load and
degree of industrialization have a significant impact on system average load and system maximum
demand .
3) Weather Factor: Weather is the most important independent variable for load forecasting. The
effect of weather is most prominent for domestic and agricultural consumers, but it can also alter the
load profile of industrial consumers. Load forecasting models use weather forecast and other factors
to predict the future load, thus to minimize the operational cost.. Unpredicted sea breeze, after moon
thunderstorms, back door fronts is some of the environmental factors that can decrease the
temperature and thus causing overestimated load forecast. Thus we are producing more power than
required.The weather factor includes: Temperature: Temperature can also alter the conductivity of the
transmission lines. Thus temperature can affect the overall carrying capability of the transmission
lines. High temperature can increase not only the resistance of the transmission lines, but also it can
alter the reactance of line, due to temperature induced expansion of the length of transmission line.
4) Humidity: Humidity is a term used for the amount of water vapors in air. Humidity has no effect
on real temperature but it can intensify the severity of hot climate. So it is concluded from the above
observation that for the prediction of daily load of domestic consumers we must consider apparent
temperature instead of real temperature. But if we are dealing with an area having all types of
consumers from industrial to agricultural and domestic “temperature humidity index” can be
employed as the affecting factor for load forecasting .
ARIMA (1, 0, 1) (0, 1, 1): First-order autoregressive term and moving average term in the non-
seasonal part and first-order moving average term in the seasonal part with seasonal differencing of
order 1. Y(t) = y(t 12) (y(t 1) y(t 13))e(t 1) e(t 12) e(t 13) [30] where is
the constant is Seasonal Moving Average(1) coefficient (y(t 1) y(t 13)) is seasonal difference
term is the Moving Average(1) coefficient .
ARIMA (0, 1, 1) (0, 1, 1): First-order moving average term, differencing term in the non seasonal
part and first-order moving average term with seasonal differencing. Y(t) = y(t 12) (y(t 1) y(t
13)) e(t 1) e(t 12) e(t 13) [30] where is SMA(1) coefficient is MA(1) coefficient.
ARIMA (2, 1, 1): An ARIMA model with autoregressive term of order 2 and moving average term
of order 1 with differencing of order 1. Y(t) = d + a(1). y(t 1) a(2). y(t 2) – e(t) – c(1). e(t 1)
where d is the differencing term a(1) is first order autoregressive coefficient a(2) is second order
autoregressive coefficient c(1) is first order moving average coefficient y(t 1), y(t 2) are series in
previous values e(t) and e(t 1) are residuals at period t and (t 1) 9 .
ARIMA (1, 1, 1): A mixed model of autoregressive and moving average terms of order 1 with
differencing of order 1. Y(t) = d+ a(1). y(t 1) – e(t) – c(1). e(t 1) where a(1) is first order
autoregressive coefficient d is differencing term c(1) is first order moving average coefficient y(t 1)
is series in previous values e(t) and e(t 1) are residuals at period t and t 1.
ARIMA (1, 1, 0): First order autoregressive term with non seasonal differencing of order 1. Y(t) = d
+ a(1). y(t 1) where a(1) is first order autoregressive coefficient d is differencing term y(t 1) is
series in previous values .
ARIMA (0, 1, 1): First order moving average term with non seasonal differencing of order 1. Y(t) = d
– e(t) – c(1). e(t 1) where c(1) is first order moving average coefficient d is differencing term e(t)
and e(t 1) are residuals at period t and t 1.
CE, Aranmula 38 Dept. of Electronics & Communication
Engineering
Project Report INTELLIGENT POWER SCHEDULING
AND ALERTING SYSTEM
10.3 CODE
from pandas import read_csv
from pandas import datetime
import math
from matplotlib import pyplot
from statsmodels.tsa.arima_model import ARIMA
from sklearn.metrics import mean_squared_error
#def parser(x):
#return datetime.strptime('190'+x, '%Y-%m')
w_key = S4S4T0SRYVWLE87OJG'
r_key = 'TAHK052BVSAXOKH8'
channel_id = 1093332
ob = Thingspeak(write_api_key=w_key, read_api_key=r_key, channel_id=channel_id)
ob.post_cloud(value1=temperature,value2=humidity)
print(ob.read_cloud(result=3))
ob4 = Weather_details(key=key,city=city)
long, lat, voltage, current, power, power factor, frequency,body = ob4.get_weather_data()
print(long, lat, humidity, wind_speed, wind_degree, sunrise, sunset,body)
series = read_csv('loaddata.txt', usecols=[3], engine='python', skipfooter=3)
X = series.values
print(len(series),len(X))
size = int(len(X) * 0.80)
print(size)
train, test = X[0:size], X[size:len(X)]
history = [x for x in train]
predictions = list()
print(len(test))
for t in range(len(test)):
model = ARIMA(history, order=(5,1,0))
model_fit = model.fit(disp=0)
output = model_fit.forecast()
yhat = output[0]
predictions.append(yhat)
obs = test[t]
history.append(obs)
print('time =%f predicted=%f, expected=%f' % (t,yhat, obs))
error = mean_squared_error(test, predictions)
# calculate root mean squared error only on the test set
testScore = math.sqrt(mean_squared_error(test, predictions))
print('Test Score: %.2f RMSE' % (testScore))
#error computation
summation = 0
for i in range(len(test)):
summation = summation + ((test[i]-predictions[i])/test[i])
n=len(test)
accuracy = 100-((1/n)*summation*100)
print("The Prediction accuracy is: %f" % accuracy)
The alerting system consist of a NodeMCU, GSM module and liquid crystal display .its primary use
is to alert the consumer on consumption pattern. The instantaneous power consumption can be
compared with a threshold value so the consumers who go beyond this limit can be alerted on their
usage and directed to reduce usage in order to remain active in the grid. The NodeMCU fetches the
instantaneous data from smart meter along with the threshold value formulated by the forecasting
system and starts to compare the values when peak consumption is occurring in the grid. Users with
consumption pattern exceeding the threshold values are notified to reduce the consumption through
GSM module and wait for ten minutes to comply, if not only that user is detached from the grid
{
while ( !Serial1.available() );
receive = Serial1.read();
if ( receive == '\r' )
break;
else
lcd.write(receive);
}
}
}
}
12 RESULT
Firstly we have to switch on the mains. The digital energy meter measures the various parameters
across the load in this case three filament bulb. The Node MCU is used to connect internet with the
monitoring hardware system. The power utilized by the load is displayed in the cloud via, Thing
Speak cloud in graphical format. It shows time to time power utilization as well as the voltage,
current, power factor and frequency of the load/loads connected to the system. Each field is
assigned with different variables, which enables graphical fields that can be viewed later. Each
channel is associated with a read key and a write API key,through which iot devices can read or
write on to the channel. Energy Monitoring using IOT is an innovative application of internet of
things developed to control home appliances remotely over the cloud from anywhere in the world.
The system updates the information in every 1 to 2 seconds on the internet using public cloud
THINGSPEAK..
13.BENEFITS
2. In case any technical difficulty occurs or there is any electrical issue, that would be notified to the
user.
3. The provider companies can offer various schemes and offers for energy consumption.
6. As soon as there is an exceed in the power consumption with respect to the set threshold
consumption value, the relay will be cut off the power supply
14.FUTURE SCOPE
The different types TOU tariff can be designed by analyzing the different load patterns
Energy theft unit can be integrated to find misuse or using energy without paying.
15.CONCLUSION
The absence of effective load scheduling system often leads to random load shedding in order to
compensate generation. Uncertainty in load consumption at user level result’s in unplanned and
over expensive load usage, the proposed project uses an intelligent system in regulating the
generation and load using SCADA system. After successful implementation, an ordinary grid will
be transformed into a smart grid. IPSAS will ensure efficient usage of electric power. More focus
is given to customers at the same time it will remove their uncertainty towards the grid. It provides
better customer service and more accurate bills. The intelligent power scheduling and alerting
system (IPSAS) acquires load usage data from customers using smart meter along with weather
forecasting data, the load is forecasted with the given data and SCADA network control
generation and transmission. User are advised to reduce the load at peak times when supply is less
than load non cooperating user are detached from the grid instead of detaching an area to
compensate generation. IPSAS also alert user when temporary maintenance or when grid is
damaged, users are also provided with an option for paying hourly bills. Hence it creates
awareness on power consumption and a way to save and manage power by each individual
consumer and also eradicates electricity deficit during summer which will make consumer a self-
interested guardian of power consumption and avoids wastage along with the electricity bill
monitoring. The immediate opportunities of smart metering include the areas of data access,
energy efficiency, billing transparency, compliance and performance which unfolds more exciting
possibilities in the upcoming future. This project creates awareness about power consumption and
real time monitoring by the application of IOT. It has a vast importance in the field of energy
management and monitoring, and it provides the interaction between customer and the service
providers. The proposed project with its real time application for power management and
monitoring provides a reliable, comfortable and important application at the same time it avoids
human intervention. The project depicts the arranging and managing of good Energy Meter and
speaks to however great Energy Meter is utilized for Automatic Meter Reading. it's the chief
efficient usage to create mankind amid this period of innovation. With the present sweetening
inside the utilization of innovation to encourage mankind, it's partner efficient and sensible use of
blessing systems. This paper moreover demonstrates that however customer will deal with the
heap by abuse great Energy Meter. It gives ease in taking the meter readings.
16.REFERENCE
[1] Y. Tang, M. Li, and Q. Wang, "A framework of theoretical research on load
control in grid cyber physical system," in Cyber Technology in
Automation, Control, and Intelligent Systems (CYBER), 2016 IEEE
International Conference on, 2016,
[2] L. Yao, Z. Damiran, and W. H. Lim, "Direct load control of central air
conditioning systems using fuzzy optimization," in Environment and
Electrical Engineering (EEEIC), 2016 IEEE 16th International Conference
on, 2016,