---
title: "Iot Based Energy Meter"
url: "https://maker.wiznet.io/mayuri/projects/iot-based-energy-meter/"
markdown_url: "https://maker.wiznet.io/mayuri/projects/iot-based-energy-meter/md"
type: "UCC: User Created Content"
author: "Maitri C Kotecha1 , Prof. Manjula R. 2"
author_url: "http://www.ijesi.org/papers/Vol%287%29i5/Version-1/N0705018588.pdf"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "Maitri C Kotecha1 , Prof. Manjula R. 2"
original_url: "http://www.ijesi.org/papers/Vol%287%29i5/Version-1/N0705018588.pdf"
published: "2022-10-17"
language: "en"
hardware: ["WIZnet W5500"]
likes: 4
views: 1032
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Iot Based Energy Meter

> Imagine A Day Without Electricity ? The World Would Come To A Halt. Industries, Financial Sector, Health Services, Agriculture Event.

Original author: Maitri C Kotecha1 , Prof. Manjula R. 2 (source: http://www.ijesi.org/papers/Vol%287%29i5/Version-1/N0705018588.pdf)

## Components

- **WIZnet W5500** x 1 ([docs](https://docs.wiznet.io/Product/Chip/Ethernet/W5500))

WIZnet parts: W5500 ([Datasheet](https://docs.wiznet.io/Product/Chip/Ethernet/W5500/datasheet?utm_source=maker&utm_medium=project&utm_campaign=w5500), [product hub](https://maker.wiznet.io/products/w5500/))

## Article

I. INTRODUCTION A Rapid Advancement In Computer Networks And Internet Has Led To The Development Of Technologies Such As Computerized Billing And Record Management. Although The Assessment Of Electrical Energy Consumed Is Still Being Performed Manually And This Requires Huge Manpower. Performing These Tasks Is Not Only Tedious But, Expensive To Electricity Distributors, Which Will Be A Huge Revenue Loss. This Problem Can Be Overcome Usinginternet Of Things, Also Known As Iot. Iot Enables Us To Sense And Control Any Object Via Any Existing Network Infrastructure, Thus Allowing Better Integration Of Hardware And Software Systems Resulting In An Efficient Use Of Resources And Other Economic Advantages. The Iot Based Energy Meter Consists Of Four Major Parts: The Microcontroller, Currentsensor, Voltage Sensor And The Ethernet Controller. The Current And Voltage Sensors Help In Gathering The Data On Consumption Of Energy. The Microcontroller Performs Arithmetic For Estimating The Energy Usage And Sends This Information To The Server For Billing Via The Ethernet Controller. The Microcontroller Can Gather Information From Multiple Loads At A Time. This Information Can Also Be Stored, And The Consumer Can Learn Which Of His/Her Appliances Consumed Maximum Power. This Capability Has Been Demonstrated In The Project.

II. METHODOLOGY The Designed Iot Energy Meter Consists Of A Voltage Sensor, Current Sensor, An Atmel Atmega328PAVR Microcontroller, A W5500 Ethernet Controller. The Project Has Been Built Using Arduino IDE Using C++ As The Source Code Language. 2.1 PROCESS OF DATA ACQUISITION The Avratmega324p Microcontroller Consists Of 6x10-Bit ADC Channels, With The Voltage And Current Sampled At Every 30 Second Interval On The ADC. Each Power Measurement Channel Requires Two Analog Channels, One For Voltage And One For Current, Thus Our Energy Meter Can Measure The Power Of 3 Individual Loads. An ACS712 Hall Effect Current Sensor Has Been Used For Sampling The Current Values Of The Load, It Can Measure Currents Up To 10 Amperes And A PEVMAC2C Voltage Sensor Break Outboard Has Been Used To Measure The AC Voltage. Instantaneous Power Has Been Calculated Using The Following Formula P= V*I.

![](https://maker.wiznet.io/upload/ckeditor5/485738518%5F1666033011%2Epng)

2.2 ESTIMATION OF ENERGY CONSUMED The Amount Of Energy Consumed Has Been Determined From The Measured Instantaneous Power By Performing Integration. 𝐸𝑛𝑒𝑟𝑔𝑦 = 𝑃𝑑𝑡 The Discrete Integration Has Been Performed Using Trapezoidal Integration Method. For A Data Buffer For Power Of Length N: 𝐸𝑛𝑒𝑟𝑔𝑦 = 𝑃𝑑𝑡 = Δ𝑡 2 𝑛 0 [𝑃 0 + 2 ∗ 𝑃 𝑖 + 𝑃(𝑛) 𝑛−1 𝑖=1 ] Where Δ𝑡 Is The Sampling Time, I.E. 30 Seconds.

![](https://maker.wiznet.io/upload/ckeditor5/485738518%5F1666033042%2Epng)

2.3 TRANSMISSION OF DATA TO SERVER The Data Is Transmitted Via HTTP Packets To The Server, The Process Of Packetizing The Data And Transmitting It On The Physical Layer Is Performed By The Whizchipw5500 IC, Which Is An Ethernet Controller And It Receives The Instructions From The Atmega324P By SPI Bus. The HTTP Packet Contains The Information Of The Signal Source, Channel Number, Energy Consumed By The Respective Channel. This Packet Is Transmitted Using The POST Method To A PHP Script On The Server. This PHP Script Disseminates The Data And Stores The Data Into A Table In Mysql Database, Which Can Be Used For Further Processing, Analysis And Billing

III. .FIGURES AND TABLES The Primary Goal Of Recording Power And Estimation Of Energy Has Been Successfully Achieved. The Microcontroller Measured The Voltage And Current Provided By The Sensors Via ADC And Calculated The Power. The Trapezoidal Integration Formula Estimated The Energy Consumed From The Power With A Better Accuracy Than The Current Available Electromechanical Energy Meter.

![](https://maker.wiznet.io/upload/ckeditor5/485738518%5F1666033080%2Epng)

The Image Below Demonstrates The Raw ADC Voltage Generated By The ACS712 Current Sensor When The Load Is Turned On.

![](https://maker.wiznet.io/upload/ckeditor5/485738518%5F1666033109%2Epng)

![](https://maker.wiznet.io/upload/ckeditor5/485738518%5F1666033125%2Epng)

The Above Images Demonstrate That The Data From The Host Has Been Successfully Transmitted To The Server, Disseminated And Processed For Further Usage. IV. CONCLUSION Our Primary Goal Of Networking The Energy Storage Devices Has Been Achieved And This Can Aid In The Reduction Of Manpower And Provide Economic Benefits To The Power Distributors. The Iot Energy Meter Successfully Replaces The Conventional Energy Meter And Is Much More Accurate And Stable Than The Conventional Meter Which Is Usually Affected By Parameters Such As Creep And Ambient Temperature. The Link Between The Energy Meter And The Database Server Was Established And The Data Was Successfully Recorded In The Database. V. FUTURE SCOPE The Prime Aim Of The Project Is To Make A Fully Automated System With Maximum Accuracy And Minimal Human Supervision. A Networked System Is Always Vulnerable To Tampering And Can Be Misused, To Prevent This A Theft And Tampering Detection System Can Be Implemented. The Current System Needs To Be Networked With The Help Of LAN Networking Which Requires Cables And Some Manpower To Install, Which Can Be Expensive. To Make It Economical We Can Use Technologies Such As Wifi And GSM To Transmit The Data. In The Current World Every Device Is Being Automated, The Iot Energy Meter Can Also Be Used For Automated Switching Of Devices And Monitor Their Status And Faults. The Consumption Data Can Also Be Used, Not Just For Billing But Also By The Power Distributors For Forecasting The Consumption And Plan Their Resources Accordingly Using Data Mining Techniques.

---

Source: https://maker.wiznet.io/mayuri/projects/iot-based-energy-meter/
