SlideShare a Scribd company logo
MEASUREMENT OF POWER CONSUMPTION BY
VARIOUS DEVICES USING IoT TECHNOLOGY
FOR
CONTROL SYSTEMS LAB
ABSTRACT
In today’s world, with the rise in usage of electricity in various fields, there is a need of
even keeping track of the usage of power, so that it can be arranged into proper data, can be
analysed, which can be used for prediction of future power usage, and accumulating the
required resources to comply for the future, and this can be done using a technology named
IoT (Internet of Things). The project uses a NodeMCU module, along with ESP8266,
ADS1115 and an open source IoT platform, ThingSpeak. The project focuses on monitoring
and measuring the power used by various devices used in our daily life, calculating other
parameters and creating a database of the data collected, this data being seen through
ThingSpeak.
TABLE OF CONTENTS
DESCRIPTION PAGE NUMBER
LIST OF FIGURES 5
ABBREVIATIONS/ NOTATIONS/ NOMENCLATURE 6
1. INTRODUCTION
1.1 Electrical Energy and its consumption in India 7
1.2 Traditional Electricity Meters vs Smart Electricity Meters 8
1.3 Advantages of Smart Electricity Metering System 9
2. DESCRIPTION OF THE COMPONENTS
2.1 NodeMCU 10
2.2 ADS1115 12
2.3 Non-invasive AC current sensor 13
2.4 ThingSpeak 16
3 SCHEMATIC DIAGRAM AND THE CODE 17
4 WORKING OF THE CIRCUIT 20
5 OUTPUT OF THE PROJECT 22
6 CONCLUSION 22
7 REFERENCES 23
LIST OF FIGURES
Page 8:
Traditional Electromechanical Meter Architecture
Smart Meter Architecture
The important function carried by smart meter.
Page 10:
NodeMCU v0.9
NodeMCU v1.0
Page 11:
NodeMCU Pin Configuration
Page 13:
Pinout of ADS1115
Page 14:
Current Sensor
Page 15:
Layout of Current Sensor and its other versions
Page 17:
Circuit diagram 1
Page 18:
Circuit diagram 2
Page 21:
Output values of the project, in the form of a graph.
ABBREVIATIONS/ NOTATIONS/ NOMENCLATURE
TOE: Tonnes of Oil Equivalent
MCU: Microcontroller Unit
SoC: System on Chip
SDK: Software Development Kit
UART: Universal Asynchronous Receiver-Transmitter
SPI: Serial Peripheral Interface
I2C: Inter-Integrated Circuit
IDE: Integrated Development Environment
Lua: A programming language
GPIO: General-Purpose input/output
PWM: Pulse Width Modulation
SDA: Serial Data Line
SCL: Serial Clock line
API: Application Programming Interface
HTTP: Hypertext Transfer Protocol
1. INTRODUCTION
1.1. ElectricalEnergyand its consumption in India
Electrical energy is the most convenient form of energy for most human uses.
Electrical energy is easy to move from one location to another and easy to use, but it is almost
impossible to store in any large quantity. It can be used for running computers and
most appliances, home heating, and even transportation. Electricity is used by industry,
households, and businesses, and accounts for 18% of end use energy worldwide.
Energy consumption in India has gone up manifold in recent years and demand is
expected to rise further due to speedy electrification, increase in household purchasing power,
technology advancement, e-mobility prospects, industrial and agricultural advancements.
According to the ministry of power, in terms of TOE, energy demand in the country is
expected to increase to about 1,250 million TOE(as per the integrated energy policy report) to
1,500 million TOE (as per the International Energy Agency) by 2030.
Of the above, residential electricity consumption constitutes 24% of the total electricity
consumption in India. In this sector, lighting and cooling requirements constitute 75% of the
total household electricity consumption. Here, requirements are further projected to grow by
260% by 2021, according to World Bank estimates.
The Indian Power sector has grown significantly since independence and the generation
capacity has increased from 1,362 MW in 1947 to over 250,257 MW in July, 2014. Despite
significant increase in electricity generation, the shortage of Power continues to persist
primarily on account of the growth in electrification and demand for Power outsmarting the
growth in generation and capacity addition. Even after considerable growth in the Power sector
and improvement in the electricity supply, many parts of the country continue to face Power
shortages.
From developing insight into consumer behaviour, customising solutions for end users,
to plugging gaps and spillage in the transmission systems by purging malpractices, the future
of energy management lies in the integration of digital technology with the existing
infrastructure, and strategic usage of data across applications.
1.2. Traditional Electricity Meters vs Smart Electricity Meters:
Traditional Electromechanical Meter Architecture
Smart Meter Architecture
The important function carried by smart meter.
1.3. Advantages of Smart metering system:
Advantages of Smart Meters for Utilities:
•With the advent of advanced monitoring technology, the number of personnel required will
be less.
• The increased ability for load management during peak load times.
• Makes more efficient use of grid resources.
• The system offers the latest tariff model for electricity market.
Advantages of Smart Meters for Consumers:
• Benefits the consumers in more accurate and timely electrical billing.
• Allows the consumer to schedule the electrical usage in the most optimal manner.
• Allows the user to think about the better plan for using the electrical equipment during the
expensive hours.
• Allows the consumer to switch between conventional to renewable resources based on the
tariff.
Advantages of Smart Meters for Government:
• The encouragement for smart meters will allow utilities to perform better in monitoring and
controlling aspects of power systems.
• Encourages the renewable energy resources by consumers.
• An encouragement for environmental conditions with less CO2 emissions.
• Prevents blackout by better monitoring and load forecasting for power grid.
So, our project focuses on smart metering using NodeMCU module with ESP8266-12 and
ADS1115, wherein we measure the power consumed by a load, convert the data into required
type, and sent to an online database, which displays the result in the form of a graph.
2. DESCRIPTION OF THE COMPONENTS
2.1. NodeMCU
The NodeMCU is an open source software and hardware development environment
that is built around a very inexpensive SoC called the ESP8266. The ESP8266, designed and
manufactured by Espressif Systems, contains all crucial elements of the modern computer:
CPU, RAM, networking, and even a modern operating system and SDK.
The firmware uses the Lua scripting language. It is based on the eLua project.
NodeMCU v0.9 NodeMCU v1.0
NodeMCU Dev Kit has Arduino like Analog (i.e. A0) and Digital (D0-D8) pins on its
board.
It supports serial communication protocols i.e. UART, SPI, I2C etc.
Using such serial protocols, we can connect it with serial devices like I2C enabled LCD
display, Magnetometer HMC5883, MPU-6050 Gyro meter + Accelerometer, RTC chips, GPS
modules, touch screen displays, SD cards etc.
NodeMCU Pin Configuration
How to write codes for NodeMCU?
After setting up ESP8266 with Node-MCU firmware, let’s see the IDE required for
development of NodeMCU.
NodeMCU with ESPlorer IDE:
Lua scripts are generally used to code the NodeMCU. Lua is an open source,
lightweight, embeddable scripting language built on top of C programming language.
NodeMCU with Arduino IDE:
Here is another way of developing NodeMCU with a well-known IDE i.e. Arduino
IDE. We can also develop applications on NodeMCU using Arduino development
environment. This makes easy for Arduino developers than learning new language and
IDE for NodeMCU.
Features:
 NodeMCU Lua ESP-12E WIFI Development Board
 Wireless 802.11 b/g/n standard
 Support STA / AP / STA + AP three operating modes
 Built-in TCP / IP protocol stack to support multiple TCP Client connections (5 MAX)
 D0 ~ D8, SD1 ~ SD3: used as GPIO, PWM, IIC, etc., port driver capability 15mA
 AD0: 1 channel ADC
 Input: 4.5V ~ 9V (10VMAX), USB-powered
 Current: continuous transmission: ≈70mA (200mA MAX), Standby: <200uA
 Transfer rate:110-460800bps
 Support UART / GPIO data communication interface
 Remote firmware upgrade (OTA)
 Support Smart Link Smart Networking
 Working temperature: -40 ℃ ~ + 125 ℃
 Drive Type: Dual high-power H-bridge driver
2.2. ADS1115
The ADS1115 4-channel breakout board is perfect for adding high-resolution
analog to digital conversion to any microprocessor-based project. This board can run with
power and logic signals between 2v to 5v, so this is compatible with all common 3.3v and
5v processors. As many of 4 of these boards can be controlled from the same 2-wire I2C
bus, giving you up to 16 single-ended or 8 differential channels. A programmable gain
amplifier provides up to x16 gain for small signals.
Pinout of ADS1115
ADS1115 Features:
 Resolution: 16 Bits
 Programmable Sample Rate: 8 to 860 Samples/Second
 Power Supply/Logic Levels: 2.0V to 5.5V
 Low Current Consumption: Continuous Mode: Only 150µA Single-Shot Mode:
Auto Shut-Down
 Internal Low-Drift Voltage Reference
 Internal Oscillator
 Internal PGA: up to x16
 I2C Interface: 4-Pin-Selectable Addresses
 Four Single-Ended or 2 Differential Inputs
 Programmable Comparator
2.3. Non-invasive AC Current Sensor
A current sensoris a device that detects electric current in a wire and generates a
signal proportional to that current. The generated signal could be analog voltage or current or
even a digital output. The generated signal can be then used to display the measured current in
an ammeter or can be stored for further analysis in a data acquisition system or can be used for
the purpose of control.
The sensed current and the output signal can be:
Alternating current input,
 Analog output, which duplicates the wave shape of the sensed current.
 Bipolar output, which duplicates the wave shape of the sensed current.
 Unipolar output, which is proportional to the average or RMS value of the sensed
current.
Direct current input,
 Unipolar, with a unipolar output, which duplicates the wave shape of the sensed current
 Digital output, which switches when the sensed current exceeds a certain threshold
Technologies:
 Hall effect IC sensor.
 Transformer or current clamp meter, (suitable for AC current only).
 Fluxgate Transformer Type, (suitable for AC or DC current).
 Resistor, whose voltage is directly proportional to the current through it.
 Fiber optic current sensor, using an interferometer to measure the phase change in the light
produced by a magnetic field.
 Rogowski coil, electrical device for measuring alternating current (AC) or high speed
current pulses.
Current Sensor
Layout of Current Sensor and its other versions
This non-invasive current sensor (also known as a “split core current transformer”)
can be clamped around the supply line of an electrical load to tell you how much current is
passing through it. It does this by acting as an inductor and responding to the magnetic field
around a current-carrying conductor. By reading the amount of current being produced by the
coil, you can calculate how much current is passing through the conductor.
Applications:
 Suitable for the current measuring
 Monitoring and protection of AC motor
 Lighting equipment
 Air compressor
Specifications:
 Input Current: 0~30A AC
 Output Mode: DC 0~1V
 Non-linearity:2-3%
 Build-in sampling resistance, Rl: 62Ω
 Turn Ratio: 1800:1
 Resistance Grade: Grade B
 Work Temperature: -25°C ~ ﹢70°C
 Dielectric Strength (between shell and output): 1000V AC/1min 5mA
 Leading Wire in Length: 1m
 Open Size: 13mm x 13mm
2.4. ThingSpeak:
According to its developers, ThingSpeak is an open source IoT application and API to
store and retrieve data from things using the HTTP protocol over the Internet or via a Local
Area Network. ThingSpeak enables the creation of sensor logging applications, location
tracking applications, and a social network of things with status updates.
ThingSpeak was originally launched by ioBridge in 2010 as a service in support of IoT
applications.
ThingSpeak has integrated support from the numerical computing
software MATLAB from MathWorks, allowing ThingSpeak users to analyse and visualize
uploaded data using MATLAB without requiring the purchase of a MATLAB license from
MathWorks.
Sensor data can be sent to ThingSpeak from Arduino, Raspberry Pi, BeagleBone Black,
and other hardware.
3. SCHEMATIC DIAGRAM AND THE CODE
Schematic Diagramof the project:
Circuit diagram 1
Circuit diagram 2
CODE:
/*
* This sketch sends ads1115 current sensor data via HTTP POST request to
thingspeak server.
* It needs the following libraries to work (besides the esp8266 standard
libraries supplied with the IDE):
*
* - https://github.com/adafruit/Adafruit_ADS1X15
*
* designed to run directly on esp8266-01 module, to where it can be
uploaded using this marvelous piece of software:
*
* https://github.com/esp8266/Arduino
*
* 2015 Tisham Dhar
* licensed under GNU GPL
*/
#include <ESP8266WiFi.h>
#include <Wire.h>
#include <Adafruit_ADS1015.h>
// replace with your channel's thingspeak API key,
String apiKey = "XXXXXXXXXXXXX";
//WIFI credentials go here
// replace with your router/hotspot name
const char* ssid = "XXXXXXXXXXX";
// replace with router/hotspot password
const char* password = "XXXXXXXXXXXXXXXXXXXXX";
Adafruit_ADS1115 ads; /* Use this for the 16-bit version */
const char* server = "api.thingspeak.com";
WiFiClient client;
double offsetI;
double filteredI;
double sqI,sumI;
int16_t sampleI;
double Irms;
double squareRoot(double fg)
{
double n = fg / 2.0;
double lstX = 0.0;
while (n != lstX)
{
lstX = n;
n = (n + fg / n) / 2.0;
}
return n;
}
double calcIrms(unsigned int Number_of_Samples)
{
/* Be sure to update this value based on the IC and the gain settings! */
float multiplier = 0.125F; /* ADS1115 @ +/- 4.096V gain (16-bit results)
*/
for (unsigned int n = 0; n < Number_of_Samples; n++)
{
sampleI = ads.readADC_Differential_0_1();
// Digital low pass filter extracts the 2.5 V or 1.65 V dc offset,
// then subtract this - signal is now centered on 0 counts.
offsetI = (offsetI + (sampleI-offsetI)/1024);
filteredI = sampleI - offsetI;
//filteredI = sampleI * multiplier;
// Root-mean-square method current
// 1) square current values
sqI = filteredI * filteredI;
// 2) sum
sumI += sqI;
}
Irms = squareRoot(sumI / Number_of_Samples)*multiplier;
//Reset accumulators
sumI = 0;
//-------------------------------------------------------------------------
-------------
return Irms;
}
void setup() {
Serial.begin(115200);
delay(10);
// We start by connecting to a WiFi network
Serial.println();
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
ads.setGain(GAIN_ONE); // 1x gain +/- 4.096V 1 bit = 2mV
0.125mV
ads.begin();
}
void loop() {
//Serial.print("Differential: "); Serial.print(results); Serial.print("(");
Serial.print(trans_volt); Serial.println("mV)");
double current = calcIrms(2048);
if (client.connect(server,80)) { // "184.106.153.149" or
api.thingspeak.com
String postStr = apiKey;
postStr +="&field1=";
postStr += String(current);
postStr += "rnrn";
client.print("POST /update HTTP/1.1n");
client.print("Host: api.thingspeak.comn");
client.print("Connection: closen");
client.print("X-THINGSPEAKAPIKEY: "+apiKey+"n");
client.print("Content-Type: application/x-www-form-urlencodedn");
client.print("Content-Length: ");
client.print(postStr.length());
client.print("nn");
client.print(postStr);
}
client.stop();
//Serial.println("Waiting...");
// thingspeak needs minimum 15 sec delay between updates
delay(20000);
}
4. WORKING OF THE CIRCUIT
At the start of the project, we have to take a load (either a resistive load, inductive
load, or a capacitive load), which has its phase and neutral wires separated, i.e., both the
wires aren’t kept together in another wire.
Now, take either a phase wire, or a neutral wire, and place it in the current sensor,
by clamping it.
Now, connect the current sensor to the circuit, as shown in the above diagram, and
powerup the circuit with a DC source (a mobile charger, or a power bank, with a USB 2.0
version wire to connect to the NodeMCU).
Make sure that the code which you have uploaded has the correct WiFi username
and password.
Now, go to the ThingSpeak site, login into your account, and create a new channel
named “Raw Measurement”, for getting the values.
5. OUTPUT OF THE PROJECT
Output values of the project, in the form of a graph.
6. CONCLUSION
So, in here, we have used an MC named “NodeMCU”, which has an inbuilt
WiFi module in it, along with a ADC named “ADS1115”, and a current sensor of clamp type,
to measure the values. We have powered the project with an external source of 5V DC. We
have measured the values of various loads and conceived the data in a website named
“ThingSpeak”. So, we can be able to measure the amount of power that we consume. This
project is a prototype of a bigger one, which can measure the real power, current, voltage and
power factor of the loads, which can be useful for evaluation of usage.
7. REFERENCES:
1. https://www.hackster.io/whatnick/esp8266-iot-energy-monitor-b199ed
2. https://www.google.co.in/
3. https://www.livemint.com/Opinion/Nhci8SHdMKvTw0uH21RL3N/Achieving-
energy-efficiency-key-to-meeting-lower-emissions-c.html
4. https://www.livemint.com/Politics/0rHdVkJjPMArShNdxZ3DVJ/Energy-efficiency-
green-concerns-key-to-Indias-development.html
5. http://www.financialexpress.com/industry/how-data-driven-solutions-will-charge-up-
indias-power-sector/1103203/
6. http://www.boloji.com/index.cfm?md=Content&sd=Articles&ArticleID=16469
7. http://www.electricalindia.in/blog/post/id/14765/role-of-smart-meters-in-smart-grid
8. http://www.electronicwings.com/nodemcu/introduction-to-nodemcu
9. https://learn.adafruit.com/adafruit-4-channel-adc-breakouts
10. http://henrysbench.capnfatz.com/henrys-bench/arduino-voltage-
measurements/arduino-ads1115-module-getting-started-tutorial/
11. http://esp8266.net/
12. https://en.wikipedia.org/wiki/Current_sensor
13. https://www.itead.cc/esp-12e-nodemcu-lua-wifi-development-board.html

More Related Content

What's hot

Design & Building Smart Energy Meter
Design & Building Smart Energy MeterDesign & Building Smart Energy Meter
Design & Building Smart Energy Meter
Chetan Khatri
 
E- Notice Board Presentation
E- Notice Board PresentationE- Notice Board Presentation
E- Notice Board Presentation
ayushi jain
 
Presentation on home automation
Presentation on home automationPresentation on home automation
Presentation on home automation
Subhash Kumar Yadav
 
Smart Blind Stick using Arduino
Smart Blind Stick using ArduinoSmart Blind Stick using Arduino
Smart Blind Stick using Arduino
ijtsrd
 
GSM Based Fault Monitoring System (Project)
GSM Based Fault Monitoring System (Project)GSM Based Fault Monitoring System (Project)
GSM Based Fault Monitoring System (Project)
Aishwary Verma
 
Smart irrigation system
Smart irrigation systemSmart irrigation system
Smart irrigation system
VISHALDWIVEDI27
 
Iot based energy management system
Iot based energy management systemIot based energy management system
Iot based energy management system
Talha Mughal
 
Touchless touch screen
Touchless touch screenTouchless touch screen
Touchless touch screen
Lovely Professional University
 
SMART DUST
SMART DUSTSMART DUST
SMART DUST
Khyravdhy Tannaya
 
Home automation ppt
Home automation pptHome automation ppt
Home automation ppt
Anshul97842474929
 
IoT home automation project
IoT home automation projectIoT home automation project
IoT home automation project
Shohin Aheleroff
 
Home automation using IOT
Home automation using IOTHome automation using IOT
Home automation using IOT
Maneesh Devanaboyina
 
Zigbee technology ppt
Zigbee technology pptZigbee technology ppt
Zigbee technology ppt
ijaranjani
 
Smart home automation system
Smart home automation systemSmart home automation system
Smart home automation system
Pawan Kumar Ganjhu
 
Soil Moisture Sensor and Arduino
Soil Moisture Sensor and Arduino Soil Moisture Sensor and Arduino
Soil Moisture Sensor and Arduino
Parvesh Taneja
 
IoT Based Home Automation System Presantation
IoT Based Home Automation System PresantationIoT Based Home Automation System Presantation
IoT Based Home Automation System Presantation
Farhan Ahmed Rahee
 
Smart grid ppt
Smart grid pptSmart grid ppt
Smart grid ppt
Ravish Pandey
 
women security on IOT
women security on IOTwomen security on IOT
women security on IOT
Nandhini30mani
 
Wireless mobile charger or wireless power transfer
Wireless mobile charger or  wireless power transferWireless mobile charger or  wireless power transfer
Wireless mobile charger or wireless power transfer
Gautam Singh
 
Artificial intelligence in power systems
Artificial intelligence in power systems Artificial intelligence in power systems
Artificial intelligence in power systems Riyas K H
 

What's hot (20)

Design & Building Smart Energy Meter
Design & Building Smart Energy MeterDesign & Building Smart Energy Meter
Design & Building Smart Energy Meter
 
E- Notice Board Presentation
E- Notice Board PresentationE- Notice Board Presentation
E- Notice Board Presentation
 
Presentation on home automation
Presentation on home automationPresentation on home automation
Presentation on home automation
 
Smart Blind Stick using Arduino
Smart Blind Stick using ArduinoSmart Blind Stick using Arduino
Smart Blind Stick using Arduino
 
GSM Based Fault Monitoring System (Project)
GSM Based Fault Monitoring System (Project)GSM Based Fault Monitoring System (Project)
GSM Based Fault Monitoring System (Project)
 
Smart irrigation system
Smart irrigation systemSmart irrigation system
Smart irrigation system
 
Iot based energy management system
Iot based energy management systemIot based energy management system
Iot based energy management system
 
Touchless touch screen
Touchless touch screenTouchless touch screen
Touchless touch screen
 
SMART DUST
SMART DUSTSMART DUST
SMART DUST
 
Home automation ppt
Home automation pptHome automation ppt
Home automation ppt
 
IoT home automation project
IoT home automation projectIoT home automation project
IoT home automation project
 
Home automation using IOT
Home automation using IOTHome automation using IOT
Home automation using IOT
 
Zigbee technology ppt
Zigbee technology pptZigbee technology ppt
Zigbee technology ppt
 
Smart home automation system
Smart home automation systemSmart home automation system
Smart home automation system
 
Soil Moisture Sensor and Arduino
Soil Moisture Sensor and Arduino Soil Moisture Sensor and Arduino
Soil Moisture Sensor and Arduino
 
IoT Based Home Automation System Presantation
IoT Based Home Automation System PresantationIoT Based Home Automation System Presantation
IoT Based Home Automation System Presantation
 
Smart grid ppt
Smart grid pptSmart grid ppt
Smart grid ppt
 
women security on IOT
women security on IOTwomen security on IOT
women security on IOT
 
Wireless mobile charger or wireless power transfer
Wireless mobile charger or  wireless power transferWireless mobile charger or  wireless power transfer
Wireless mobile charger or wireless power transfer
 
Artificial intelligence in power systems
Artificial intelligence in power systems Artificial intelligence in power systems
Artificial intelligence in power systems
 

Similar to Power Measurement with IoT

Meter SCADA
Meter SCADAMeter SCADA
Meter SCADA
IRJET Journal
 
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISISREAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
IRJET Journal
 
IRJET- Design and Implement Mechanism for Efficient Energy Meter using IoT
IRJET- Design and Implement Mechanism for Efficient Energy Meter using IoTIRJET- Design and Implement Mechanism for Efficient Energy Meter using IoT
IRJET- Design and Implement Mechanism for Efficient Energy Meter using IoT
IRJET Journal
 
New Age Energy Monitoring System
New Age Energy Monitoring SystemNew Age Energy Monitoring System
New Age Energy Monitoring System
IRJET Journal
 
IRJET- IoT based Smart Energy Meter
IRJET- IoT based Smart Energy MeterIRJET- IoT based Smart Energy Meter
IRJET- IoT based Smart Energy Meter
IRJET Journal
 
IRJET- Smart Power Optimization with IoT
IRJET-  	  Smart Power Optimization with IoTIRJET-  	  Smart Power Optimization with IoT
IRJET- Smart Power Optimization with IoT
IRJET Journal
 
Decibel meter using IoT with notice board
Decibel meter using IoT with notice boardDecibel meter using IoT with notice board
Decibel meter using IoT with notice board
IRJET Journal
 
IOT BASED UNATTAINED TAMPER PROOF DIGITAL ENERGY METER
IOT BASED UNATTAINED TAMPER PROOF DIGITAL ENERGY METERIOT BASED UNATTAINED TAMPER PROOF DIGITAL ENERGY METER
IOT BASED UNATTAINED TAMPER PROOF DIGITAL ENERGY METER
IRJET Journal
 
IRJET- Smart Energy Meter Billing, Monitoring and Controlling System
IRJET-  	  Smart Energy Meter Billing, Monitoring and Controlling SystemIRJET-  	  Smart Energy Meter Billing, Monitoring and Controlling System
IRJET- Smart Energy Meter Billing, Monitoring and Controlling System
IRJET Journal
 
POWER CONSUMPTION DETECTING AND ALERTING SYSTEM
POWER CONSUMPTION DETECTING AND ALERTING SYSTEMPOWER CONSUMPTION DETECTING AND ALERTING SYSTEM
POWER CONSUMPTION DETECTING AND ALERTING SYSTEM
IRJET Journal
 
IOT BASED SMART ENERGY METER USING ARDUINO UNO
IOT BASED SMART ENERGY METER USING ARDUINO UNOIOT BASED SMART ENERGY METER USING ARDUINO UNO
IOT BASED SMART ENERGY METER USING ARDUINO UNO
IRJET Journal
 
IRJET - Hybrid Model of Smart Energy Consumption Monitoring System
IRJET - Hybrid Model of Smart Energy Consumption Monitoring SystemIRJET - Hybrid Model of Smart Energy Consumption Monitoring System
IRJET - Hybrid Model of Smart Energy Consumption Monitoring System
IRJET Journal
 
M44096368
M44096368M44096368
M44096368
IJERA Editor
 
Agriculture Sensing using IoT
Agriculture Sensing using IoTAgriculture Sensing using IoT
Agriculture Sensing using IoT
IRJET Journal
 
IRJET - Bluetooth based Digital Notice Board with Solar
IRJET -  	  Bluetooth based Digital Notice Board with SolarIRJET -  	  Bluetooth based Digital Notice Board with Solar
IRJET - Bluetooth based Digital Notice Board with Solar
IRJET Journal
 
ENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUD
ENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUDENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUD
ENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUD
IRJET Journal
 
IOT BASED POWER GRID MONITORING & CONTROL SYSTEM
IOT BASED POWER GRID MONITORING & CONTROL SYSTEMIOT BASED POWER GRID MONITORING & CONTROL SYSTEM
IOT BASED POWER GRID MONITORING & CONTROL SYSTEM
vivatechijri
 
IRJET- Monitoring and Measurement of Solar Parameters using IoT
IRJET- Monitoring and Measurement of Solar Parameters using IoTIRJET- Monitoring and Measurement of Solar Parameters using IoT
IRJET- Monitoring and Measurement of Solar Parameters using IoT
IRJET Journal
 
ENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUD
ENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUDENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUD
ENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUD
IRJET Journal
 
IRJET - Bluetooth based Digital Notice Board with Solar
IRJET - Bluetooth based Digital Notice Board with SolarIRJET - Bluetooth based Digital Notice Board with Solar
IRJET - Bluetooth based Digital Notice Board with Solar
IRJET Journal
 

Similar to Power Measurement with IoT (20)

Meter SCADA
Meter SCADAMeter SCADA
Meter SCADA
 
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISISREAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
 
IRJET- Design and Implement Mechanism for Efficient Energy Meter using IoT
IRJET- Design and Implement Mechanism for Efficient Energy Meter using IoTIRJET- Design and Implement Mechanism for Efficient Energy Meter using IoT
IRJET- Design and Implement Mechanism for Efficient Energy Meter using IoT
 
New Age Energy Monitoring System
New Age Energy Monitoring SystemNew Age Energy Monitoring System
New Age Energy Monitoring System
 
IRJET- IoT based Smart Energy Meter
IRJET- IoT based Smart Energy MeterIRJET- IoT based Smart Energy Meter
IRJET- IoT based Smart Energy Meter
 
IRJET- Smart Power Optimization with IoT
IRJET-  	  Smart Power Optimization with IoTIRJET-  	  Smart Power Optimization with IoT
IRJET- Smart Power Optimization with IoT
 
Decibel meter using IoT with notice board
Decibel meter using IoT with notice boardDecibel meter using IoT with notice board
Decibel meter using IoT with notice board
 
IOT BASED UNATTAINED TAMPER PROOF DIGITAL ENERGY METER
IOT BASED UNATTAINED TAMPER PROOF DIGITAL ENERGY METERIOT BASED UNATTAINED TAMPER PROOF DIGITAL ENERGY METER
IOT BASED UNATTAINED TAMPER PROOF DIGITAL ENERGY METER
 
IRJET- Smart Energy Meter Billing, Monitoring and Controlling System
IRJET-  	  Smart Energy Meter Billing, Monitoring and Controlling SystemIRJET-  	  Smart Energy Meter Billing, Monitoring and Controlling System
IRJET- Smart Energy Meter Billing, Monitoring and Controlling System
 
POWER CONSUMPTION DETECTING AND ALERTING SYSTEM
POWER CONSUMPTION DETECTING AND ALERTING SYSTEMPOWER CONSUMPTION DETECTING AND ALERTING SYSTEM
POWER CONSUMPTION DETECTING AND ALERTING SYSTEM
 
IOT BASED SMART ENERGY METER USING ARDUINO UNO
IOT BASED SMART ENERGY METER USING ARDUINO UNOIOT BASED SMART ENERGY METER USING ARDUINO UNO
IOT BASED SMART ENERGY METER USING ARDUINO UNO
 
IRJET - Hybrid Model of Smart Energy Consumption Monitoring System
IRJET - Hybrid Model of Smart Energy Consumption Monitoring SystemIRJET - Hybrid Model of Smart Energy Consumption Monitoring System
IRJET - Hybrid Model of Smart Energy Consumption Monitoring System
 
M44096368
M44096368M44096368
M44096368
 
Agriculture Sensing using IoT
Agriculture Sensing using IoTAgriculture Sensing using IoT
Agriculture Sensing using IoT
 
IRJET - Bluetooth based Digital Notice Board with Solar
IRJET -  	  Bluetooth based Digital Notice Board with SolarIRJET -  	  Bluetooth based Digital Notice Board with Solar
IRJET - Bluetooth based Digital Notice Board with Solar
 
ENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUD
ENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUDENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUD
ENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUD
 
IOT BASED POWER GRID MONITORING & CONTROL SYSTEM
IOT BASED POWER GRID MONITORING & CONTROL SYSTEMIOT BASED POWER GRID MONITORING & CONTROL SYSTEM
IOT BASED POWER GRID MONITORING & CONTROL SYSTEM
 
IRJET- Monitoring and Measurement of Solar Parameters using IoT
IRJET- Monitoring and Measurement of Solar Parameters using IoTIRJET- Monitoring and Measurement of Solar Parameters using IoT
IRJET- Monitoring and Measurement of Solar Parameters using IoT
 
ENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUD
ENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUDENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUD
ENERGY METER READING SYSTEM WITH AUTOMATIC BILLING USING CLOUD
 
IRJET - Bluetooth based Digital Notice Board with Solar
IRJET - Bluetooth based Digital Notice Board with SolarIRJET - Bluetooth based Digital Notice Board with Solar
IRJET - Bluetooth based Digital Notice Board with Solar
 

More from Rama Jalamanchili

Parallel Operation of Transformers
Parallel Operation of TransformersParallel Operation of Transformers
Parallel Operation of Transformers
Rama Jalamanchili
 
Digital Transformation
Digital TransformationDigital Transformation
Digital Transformation
Rama Jalamanchili
 
Presentation skills
Presentation skillsPresentation skills
Presentation skills
Rama Jalamanchili
 
Solar collectors
Solar collectorsSolar collectors
Solar collectors
Rama Jalamanchili
 
Auto transformer
Auto transformerAuto transformer
Auto transformer
Rama Jalamanchili
 
Subjects in Electrical and Electronics Engineering
Subjects in Electrical and Electronics EngineeringSubjects in Electrical and Electronics Engineering
Subjects in Electrical and Electronics Engineering
Rama Jalamanchili
 
Transformers
TransformersTransformers
Transformers
Rama Jalamanchili
 

More from Rama Jalamanchili (7)

Parallel Operation of Transformers
Parallel Operation of TransformersParallel Operation of Transformers
Parallel Operation of Transformers
 
Digital Transformation
Digital TransformationDigital Transformation
Digital Transformation
 
Presentation skills
Presentation skillsPresentation skills
Presentation skills
 
Solar collectors
Solar collectorsSolar collectors
Solar collectors
 
Auto transformer
Auto transformerAuto transformer
Auto transformer
 
Subjects in Electrical and Electronics Engineering
Subjects in Electrical and Electronics EngineeringSubjects in Electrical and Electronics Engineering
Subjects in Electrical and Electronics Engineering
 
Transformers
TransformersTransformers
Transformers
 

Recently uploaded

Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 

Recently uploaded (20)

Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 

Power Measurement with IoT

  • 1. MEASUREMENT OF POWER CONSUMPTION BY VARIOUS DEVICES USING IoT TECHNOLOGY FOR CONTROL SYSTEMS LAB
  • 2. ABSTRACT In today’s world, with the rise in usage of electricity in various fields, there is a need of even keeping track of the usage of power, so that it can be arranged into proper data, can be analysed, which can be used for prediction of future power usage, and accumulating the required resources to comply for the future, and this can be done using a technology named IoT (Internet of Things). The project uses a NodeMCU module, along with ESP8266, ADS1115 and an open source IoT platform, ThingSpeak. The project focuses on monitoring and measuring the power used by various devices used in our daily life, calculating other parameters and creating a database of the data collected, this data being seen through ThingSpeak.
  • 3. TABLE OF CONTENTS DESCRIPTION PAGE NUMBER LIST OF FIGURES 5 ABBREVIATIONS/ NOTATIONS/ NOMENCLATURE 6 1. INTRODUCTION 1.1 Electrical Energy and its consumption in India 7 1.2 Traditional Electricity Meters vs Smart Electricity Meters 8 1.3 Advantages of Smart Electricity Metering System 9 2. DESCRIPTION OF THE COMPONENTS 2.1 NodeMCU 10 2.2 ADS1115 12 2.3 Non-invasive AC current sensor 13 2.4 ThingSpeak 16 3 SCHEMATIC DIAGRAM AND THE CODE 17 4 WORKING OF THE CIRCUIT 20 5 OUTPUT OF THE PROJECT 22 6 CONCLUSION 22 7 REFERENCES 23
  • 4. LIST OF FIGURES Page 8: Traditional Electromechanical Meter Architecture Smart Meter Architecture The important function carried by smart meter. Page 10: NodeMCU v0.9 NodeMCU v1.0 Page 11: NodeMCU Pin Configuration Page 13: Pinout of ADS1115 Page 14: Current Sensor Page 15: Layout of Current Sensor and its other versions Page 17: Circuit diagram 1 Page 18: Circuit diagram 2 Page 21: Output values of the project, in the form of a graph.
  • 5. ABBREVIATIONS/ NOTATIONS/ NOMENCLATURE TOE: Tonnes of Oil Equivalent MCU: Microcontroller Unit SoC: System on Chip SDK: Software Development Kit UART: Universal Asynchronous Receiver-Transmitter SPI: Serial Peripheral Interface I2C: Inter-Integrated Circuit IDE: Integrated Development Environment Lua: A programming language GPIO: General-Purpose input/output PWM: Pulse Width Modulation SDA: Serial Data Line SCL: Serial Clock line API: Application Programming Interface HTTP: Hypertext Transfer Protocol
  • 6. 1. INTRODUCTION 1.1. ElectricalEnergyand its consumption in India Electrical energy is the most convenient form of energy for most human uses. Electrical energy is easy to move from one location to another and easy to use, but it is almost impossible to store in any large quantity. It can be used for running computers and most appliances, home heating, and even transportation. Electricity is used by industry, households, and businesses, and accounts for 18% of end use energy worldwide. Energy consumption in India has gone up manifold in recent years and demand is expected to rise further due to speedy electrification, increase in household purchasing power, technology advancement, e-mobility prospects, industrial and agricultural advancements. According to the ministry of power, in terms of TOE, energy demand in the country is expected to increase to about 1,250 million TOE(as per the integrated energy policy report) to 1,500 million TOE (as per the International Energy Agency) by 2030. Of the above, residential electricity consumption constitutes 24% of the total electricity consumption in India. In this sector, lighting and cooling requirements constitute 75% of the total household electricity consumption. Here, requirements are further projected to grow by 260% by 2021, according to World Bank estimates. The Indian Power sector has grown significantly since independence and the generation capacity has increased from 1,362 MW in 1947 to over 250,257 MW in July, 2014. Despite significant increase in electricity generation, the shortage of Power continues to persist primarily on account of the growth in electrification and demand for Power outsmarting the growth in generation and capacity addition. Even after considerable growth in the Power sector and improvement in the electricity supply, many parts of the country continue to face Power shortages. From developing insight into consumer behaviour, customising solutions for end users, to plugging gaps and spillage in the transmission systems by purging malpractices, the future
  • 7. of energy management lies in the integration of digital technology with the existing infrastructure, and strategic usage of data across applications. 1.2. Traditional Electricity Meters vs Smart Electricity Meters: Traditional Electromechanical Meter Architecture Smart Meter Architecture The important function carried by smart meter.
  • 8. 1.3. Advantages of Smart metering system: Advantages of Smart Meters for Utilities: •With the advent of advanced monitoring technology, the number of personnel required will be less. • The increased ability for load management during peak load times. • Makes more efficient use of grid resources. • The system offers the latest tariff model for electricity market. Advantages of Smart Meters for Consumers: • Benefits the consumers in more accurate and timely electrical billing. • Allows the consumer to schedule the electrical usage in the most optimal manner. • Allows the user to think about the better plan for using the electrical equipment during the expensive hours. • Allows the consumer to switch between conventional to renewable resources based on the tariff. Advantages of Smart Meters for Government: • The encouragement for smart meters will allow utilities to perform better in monitoring and controlling aspects of power systems. • Encourages the renewable energy resources by consumers. • An encouragement for environmental conditions with less CO2 emissions. • Prevents blackout by better monitoring and load forecasting for power grid. So, our project focuses on smart metering using NodeMCU module with ESP8266-12 and ADS1115, wherein we measure the power consumed by a load, convert the data into required type, and sent to an online database, which displays the result in the form of a graph.
  • 9. 2. DESCRIPTION OF THE COMPONENTS 2.1. NodeMCU The NodeMCU is an open source software and hardware development environment that is built around a very inexpensive SoC called the ESP8266. The ESP8266, designed and manufactured by Espressif Systems, contains all crucial elements of the modern computer: CPU, RAM, networking, and even a modern operating system and SDK. The firmware uses the Lua scripting language. It is based on the eLua project. NodeMCU v0.9 NodeMCU v1.0 NodeMCU Dev Kit has Arduino like Analog (i.e. A0) and Digital (D0-D8) pins on its board. It supports serial communication protocols i.e. UART, SPI, I2C etc. Using such serial protocols, we can connect it with serial devices like I2C enabled LCD display, Magnetometer HMC5883, MPU-6050 Gyro meter + Accelerometer, RTC chips, GPS modules, touch screen displays, SD cards etc.
  • 10. NodeMCU Pin Configuration How to write codes for NodeMCU? After setting up ESP8266 with Node-MCU firmware, let’s see the IDE required for development of NodeMCU. NodeMCU with ESPlorer IDE: Lua scripts are generally used to code the NodeMCU. Lua is an open source, lightweight, embeddable scripting language built on top of C programming language. NodeMCU with Arduino IDE: Here is another way of developing NodeMCU with a well-known IDE i.e. Arduino IDE. We can also develop applications on NodeMCU using Arduino development environment. This makes easy for Arduino developers than learning new language and IDE for NodeMCU.
  • 11. Features:  NodeMCU Lua ESP-12E WIFI Development Board  Wireless 802.11 b/g/n standard  Support STA / AP / STA + AP three operating modes  Built-in TCP / IP protocol stack to support multiple TCP Client connections (5 MAX)  D0 ~ D8, SD1 ~ SD3: used as GPIO, PWM, IIC, etc., port driver capability 15mA  AD0: 1 channel ADC  Input: 4.5V ~ 9V (10VMAX), USB-powered  Current: continuous transmission: ≈70mA (200mA MAX), Standby: <200uA  Transfer rate:110-460800bps  Support UART / GPIO data communication interface  Remote firmware upgrade (OTA)  Support Smart Link Smart Networking  Working temperature: -40 ℃ ~ + 125 ℃  Drive Type: Dual high-power H-bridge driver 2.2. ADS1115 The ADS1115 4-channel breakout board is perfect for adding high-resolution analog to digital conversion to any microprocessor-based project. This board can run with power and logic signals between 2v to 5v, so this is compatible with all common 3.3v and 5v processors. As many of 4 of these boards can be controlled from the same 2-wire I2C bus, giving you up to 16 single-ended or 8 differential channels. A programmable gain amplifier provides up to x16 gain for small signals.
  • 12. Pinout of ADS1115 ADS1115 Features:  Resolution: 16 Bits  Programmable Sample Rate: 8 to 860 Samples/Second  Power Supply/Logic Levels: 2.0V to 5.5V  Low Current Consumption: Continuous Mode: Only 150µA Single-Shot Mode: Auto Shut-Down  Internal Low-Drift Voltage Reference  Internal Oscillator  Internal PGA: up to x16  I2C Interface: 4-Pin-Selectable Addresses  Four Single-Ended or 2 Differential Inputs  Programmable Comparator 2.3. Non-invasive AC Current Sensor A current sensoris a device that detects electric current in a wire and generates a signal proportional to that current. The generated signal could be analog voltage or current or even a digital output. The generated signal can be then used to display the measured current in
  • 13. an ammeter or can be stored for further analysis in a data acquisition system or can be used for the purpose of control. The sensed current and the output signal can be: Alternating current input,  Analog output, which duplicates the wave shape of the sensed current.  Bipolar output, which duplicates the wave shape of the sensed current.  Unipolar output, which is proportional to the average or RMS value of the sensed current. Direct current input,  Unipolar, with a unipolar output, which duplicates the wave shape of the sensed current  Digital output, which switches when the sensed current exceeds a certain threshold Technologies:  Hall effect IC sensor.  Transformer or current clamp meter, (suitable for AC current only).  Fluxgate Transformer Type, (suitable for AC or DC current).  Resistor, whose voltage is directly proportional to the current through it.  Fiber optic current sensor, using an interferometer to measure the phase change in the light produced by a magnetic field.  Rogowski coil, electrical device for measuring alternating current (AC) or high speed current pulses. Current Sensor
  • 14. Layout of Current Sensor and its other versions This non-invasive current sensor (also known as a “split core current transformer”) can be clamped around the supply line of an electrical load to tell you how much current is passing through it. It does this by acting as an inductor and responding to the magnetic field around a current-carrying conductor. By reading the amount of current being produced by the coil, you can calculate how much current is passing through the conductor. Applications:  Suitable for the current measuring  Monitoring and protection of AC motor  Lighting equipment
  • 15.  Air compressor Specifications:  Input Current: 0~30A AC  Output Mode: DC 0~1V  Non-linearity:2-3%  Build-in sampling resistance, Rl: 62Ω  Turn Ratio: 1800:1  Resistance Grade: Grade B  Work Temperature: -25°C ~ ﹢70°C  Dielectric Strength (between shell and output): 1000V AC/1min 5mA  Leading Wire in Length: 1m  Open Size: 13mm x 13mm 2.4. ThingSpeak: According to its developers, ThingSpeak is an open source IoT application and API to store and retrieve data from things using the HTTP protocol over the Internet or via a Local Area Network. ThingSpeak enables the creation of sensor logging applications, location tracking applications, and a social network of things with status updates. ThingSpeak was originally launched by ioBridge in 2010 as a service in support of IoT applications. ThingSpeak has integrated support from the numerical computing software MATLAB from MathWorks, allowing ThingSpeak users to analyse and visualize uploaded data using MATLAB without requiring the purchase of a MATLAB license from MathWorks. Sensor data can be sent to ThingSpeak from Arduino, Raspberry Pi, BeagleBone Black, and other hardware.
  • 16. 3. SCHEMATIC DIAGRAM AND THE CODE Schematic Diagramof the project: Circuit diagram 1
  • 18. CODE: /* * This sketch sends ads1115 current sensor data via HTTP POST request to thingspeak server. * It needs the following libraries to work (besides the esp8266 standard libraries supplied with the IDE): * * - https://github.com/adafruit/Adafruit_ADS1X15 * * designed to run directly on esp8266-01 module, to where it can be uploaded using this marvelous piece of software: * * https://github.com/esp8266/Arduino * * 2015 Tisham Dhar * licensed under GNU GPL */ #include <ESP8266WiFi.h> #include <Wire.h> #include <Adafruit_ADS1015.h> // replace with your channel's thingspeak API key, String apiKey = "XXXXXXXXXXXXX"; //WIFI credentials go here // replace with your router/hotspot name const char* ssid = "XXXXXXXXXXX"; // replace with router/hotspot password const char* password = "XXXXXXXXXXXXXXXXXXXXX"; Adafruit_ADS1115 ads; /* Use this for the 16-bit version */ const char* server = "api.thingspeak.com"; WiFiClient client; double offsetI; double filteredI; double sqI,sumI; int16_t sampleI; double Irms; double squareRoot(double fg) { double n = fg / 2.0; double lstX = 0.0; while (n != lstX) { lstX = n; n = (n + fg / n) / 2.0; } return n; } double calcIrms(unsigned int Number_of_Samples) { /* Be sure to update this value based on the IC and the gain settings! */ float multiplier = 0.125F; /* ADS1115 @ +/- 4.096V gain (16-bit results) */ for (unsigned int n = 0; n < Number_of_Samples; n++) {
  • 19. sampleI = ads.readADC_Differential_0_1(); // Digital low pass filter extracts the 2.5 V or 1.65 V dc offset, // then subtract this - signal is now centered on 0 counts. offsetI = (offsetI + (sampleI-offsetI)/1024); filteredI = sampleI - offsetI; //filteredI = sampleI * multiplier; // Root-mean-square method current // 1) square current values sqI = filteredI * filteredI; // 2) sum sumI += sqI; } Irms = squareRoot(sumI / Number_of_Samples)*multiplier; //Reset accumulators sumI = 0; //------------------------------------------------------------------------- ------------- return Irms; } void setup() { Serial.begin(115200); delay(10); // We start by connecting to a WiFi network Serial.println(); Serial.println(); Serial.print("Connecting to "); Serial.println(ssid); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println(""); Serial.println("WiFi connected"); Serial.println("IP address: "); Serial.println(WiFi.localIP()); ads.setGain(GAIN_ONE); // 1x gain +/- 4.096V 1 bit = 2mV 0.125mV ads.begin(); } void loop() { //Serial.print("Differential: "); Serial.print(results); Serial.print("("); Serial.print(trans_volt); Serial.println("mV)"); double current = calcIrms(2048);
  • 20. if (client.connect(server,80)) { // "184.106.153.149" or api.thingspeak.com String postStr = apiKey; postStr +="&field1="; postStr += String(current); postStr += "rnrn"; client.print("POST /update HTTP/1.1n"); client.print("Host: api.thingspeak.comn"); client.print("Connection: closen"); client.print("X-THINGSPEAKAPIKEY: "+apiKey+"n"); client.print("Content-Type: application/x-www-form-urlencodedn"); client.print("Content-Length: "); client.print(postStr.length()); client.print("nn"); client.print(postStr); } client.stop(); //Serial.println("Waiting..."); // thingspeak needs minimum 15 sec delay between updates delay(20000); } 4. WORKING OF THE CIRCUIT At the start of the project, we have to take a load (either a resistive load, inductive load, or a capacitive load), which has its phase and neutral wires separated, i.e., both the wires aren’t kept together in another wire. Now, take either a phase wire, or a neutral wire, and place it in the current sensor, by clamping it. Now, connect the current sensor to the circuit, as shown in the above diagram, and powerup the circuit with a DC source (a mobile charger, or a power bank, with a USB 2.0 version wire to connect to the NodeMCU). Make sure that the code which you have uploaded has the correct WiFi username and password. Now, go to the ThingSpeak site, login into your account, and create a new channel named “Raw Measurement”, for getting the values.
  • 21. 5. OUTPUT OF THE PROJECT Output values of the project, in the form of a graph. 6. CONCLUSION So, in here, we have used an MC named “NodeMCU”, which has an inbuilt WiFi module in it, along with a ADC named “ADS1115”, and a current sensor of clamp type, to measure the values. We have powered the project with an external source of 5V DC. We have measured the values of various loads and conceived the data in a website named “ThingSpeak”. So, we can be able to measure the amount of power that we consume. This project is a prototype of a bigger one, which can measure the real power, current, voltage and power factor of the loads, which can be useful for evaluation of usage.
  • 22. 7. REFERENCES: 1. https://www.hackster.io/whatnick/esp8266-iot-energy-monitor-b199ed 2. https://www.google.co.in/ 3. https://www.livemint.com/Opinion/Nhci8SHdMKvTw0uH21RL3N/Achieving- energy-efficiency-key-to-meeting-lower-emissions-c.html 4. https://www.livemint.com/Politics/0rHdVkJjPMArShNdxZ3DVJ/Energy-efficiency- green-concerns-key-to-Indias-development.html 5. http://www.financialexpress.com/industry/how-data-driven-solutions-will-charge-up- indias-power-sector/1103203/ 6. http://www.boloji.com/index.cfm?md=Content&sd=Articles&ArticleID=16469 7. http://www.electricalindia.in/blog/post/id/14765/role-of-smart-meters-in-smart-grid 8. http://www.electronicwings.com/nodemcu/introduction-to-nodemcu 9. https://learn.adafruit.com/adafruit-4-channel-adc-breakouts 10. http://henrysbench.capnfatz.com/henrys-bench/arduino-voltage- measurements/arduino-ads1115-module-getting-started-tutorial/ 11. http://esp8266.net/ 12. https://en.wikipedia.org/wiki/Current_sensor 13. https://www.itead.cc/esp-12e-nodemcu-lua-wifi-development-board.html