---
title: "Implementation of Smart Metering based on Internet of Things"
url: "https://maker.wiznet.io/siva_ranjeet/projects/implementation-of-smart-metering-based-on-internet-of-things/"
markdown_url: "https://maker.wiznet.io/siva_ranjeet/projects/implementation-of-smart-metering-based-on-internet-of-things/md"
type: "UCC: User Created Content"
author: "Milanpreet Kaur, Lini Mathew, Alokdeep, Ajay kumar"
author_url: "https://iopscience.iop.org/article/10.1088/1757-899X/331/1/012015/meta"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "Milanpreet Kaur, Lini Mathew, Alokdeep, Ajay kumar"
original_url: "https://iopscience.iop.org/article/10.1088/1757-899X/331/1/012015/meta"
published: "2022-09-02"
language: "en"
hardware: ["Arduino Ethernet Shield"]
likes: 7
views: 1637
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Implementation of Smart Metering based on Internet of Things

> The design eliminates human inclusion in the conservation of electricity and it send the information about consumption of energy to users IP

Original author: Milanpreet Kaur, Lini Mathew, Alokdeep, Ajay kumar (source: https://iopscience.iop.org/article/10.1088/1757-899X/331/1/012015/meta)

## Components

- **Arduino Ethernet Shield** x 1 ([docs](https://docs.arduino.cc/retired/shields/arduino-ethernet-shield-without-poe-module))
- Software: **Arduino IDE** ([docs](https://www.arduino.cc/en/software))

## Article

#### Introduction

Energy is fundamental need of our life because of mechanical development and urbanization. Energy catastrophe is the main issue confronted by our society. One of the solutions is to control, analyze and reduce of electrical power consumption in households. The purchasers must be encouraged by providing them with a perfect arrangement- i.e. the idea of using Ethernet communication via Internet of Things (IoT). In this modern period of Internet of Things, a physical world such as machines and sensors can be interfaced through the web. The things or items can be modified into smart things by providing it exclusive identification. The sensors and devices can communicate and share information through the web. We can analyze and control the sensors and devices at whatever time from any part of the world. IoT is an essential part of the smart metering/grid. An IoT is a twenty-first-century aspect in which consumers can be associated with the web page and establish communication between consumer and supplier through sensors and actuators. The IoT is a hybrid prototype which is developing in the area of remote media transmission.

#### Literature Survey

Currently, numerous system of Automatic Meter Reading (AMR) is implemented using Bluetooth, General Packet Radio Access (GPRS) and Global System for Mobile communication (GSM). Utilizing GSM technology remote sharing of information of energy consumption is possible. But there can be chances of missing SMS thus result in decreasing the reliability and efficiency of the system. GPRS is difficult to implement for long distance two-way communication between utility and consumers.

For automated billing system, communication is being done by the use of GSM and Ad-Hoc wireless routing protocol. Each home is connected through the wireless system to central/utility office to access all the readings of energy meters using radio frequency system. The utility office receives continuous updates from energy meter about the units consumed by consumer and bill to be paid through GSM messages. The main disadvantage of this system is that it needs a human workforce to read a meter. If the customer is not available at home, the operator cannot able to read the meter.

Two-way communication has been an important function of the smart energy meters. Through wireless or wired connections such as GSM/GPRS, M-bus, and ZigBee, smart energy meter communication can be realized. The different communication protocols used for two-way communication between consumer and supplier have been defined in terms of data rate, frequency, coverage range and limitations, stability, cost and their limitations and is shown in Table 1.

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

The wireless embedded based AMR system is implemented using ARM7 Microcontroller. The readings of energy consumption are sent to the utility by using RF link and then to the Web server through GSM. It also provides the facility of tamper detection and recharging of energy meter.

Advance metering infrastructure (AMI) based Smart Energy Meter are connected to each other by gateway presents an implementation and execution of Automatic meter reading system. By using PLC lines send data to utility computer and gateway communicates with utility computer via GSM. The power line communication is implemented by using LonWork bus technology.

The overview of smart grid technologies in electrical utility based on EMS and IoT. The different communication protocols used for energy management involves the two-way communication between supplier and consumers. Fig 1 shows idea about various different protocols of communication and technologies can be used.

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

For large and ordinary power consumers GSM based AMR has implemented called hybrid automatic meter reading. AMR is enabled by using ZigBee and GSM module in which ZigBee is interfaced with energy meter to collect data and GSM is used for transmitting message/SMS to the utility.

The better metering solution is developed with an energy chip and the measurement of energy through digital communication technique. The information about energy is sent to the utility through ZigBee and a software is used for data management along with billing of total energy consumed.

The energy meter within home display based on GPRS has been developed. The data is sent to the cloud through GPRS. LabVIEW is used for home display for the intelligent load scheduling of appliances with respect to time of use (ToU) pricing.

#### Block Diagram Description

The goal of this proposed energy metering system improves the customer demand for higher energy measurement, accuracy, and more timely data. The information of energy measurement can be used by the consumer as well as by utility. The block diagram consists of an Arduino Uno board, an energy meter, and IoT through Ethernet. This paper presents communication through Ethernet to send data to the server. The simplified block diagram of the system is shown in Fig.2.

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

#### Over view of Arduino and Ethernet shield

**Arduino **

Arduino is an open-source gadget simple-to-use for programming and hardware. It can influence devices, similar to motor, lights and different actuators by getting inputs from different sensors. All the activity performed by Arduino is modified and programmed by the microcontroller available on board by means of Arduino programming language. The projects of Arduino can communicate with other programming applications running on a PC and different types of hardware. The Arduino Uno board is shown in Fig. 3.

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

The features of Arduino Uno microcontroller board is shown in Table 2.

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

**Ethernet shield **

The Ethernet shield can be connected to Arduino Uno board through a library of Ethernet. This shield is compatible with all former version which is W5500 chip. The Ethernet shield has authorized MAC address and an internet protocol (IP) address which is fixed using the Ethernet.Begin(). A MAC address of every device is unique globally for identification. The Arduino Ethernet shield Uno board as shown in Fig. 4.

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

The features of Arduino Ethernet shield features is shown in Table 3.

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

#### Circuit Diagram & Its Working

The hardware interface circuit consists of an Arduino-Uno board, Energy meter, a Light dependent resistor (LDR), Ethernet shield, IoT such as Wi-Fi. The role of Wi-Fi is to share the energy meter information on the web page which can be achieved via IP address as well as on device also. The energy meter consists of LED which blinks continuously to indicate the unit and cost of energy consumption by customers. For experimental purpose, an LDR is placed on the LED of Energy meter. The voltage of LDR is set to receive the accurate result of energy measurement and the code is uploaded to Arduino board. The output is fed to the Arduino board at analog pin A0, 5V, and ground, and the energy is calculated. On serial monitor of Arduino board, the unit and cost of electrical energy consumed can be displayed. During two-way communication between customers and utility, if the web service fails while sending a message then it will be difficult to share or send data. The best solution to this problem is Ethernet communication. The initial cost of Ethernet is only required and communication is achieved by small bandwidth along with telephone /mobile network. The circuit diagram of smart metering based on IoT is shown in Fig.5.

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

Two-way communication between customer and utility can be done by using IoT through Ethernet shield connected to Arduino Uno board. The communication part for sending the data of energy consumption to a web page through Ethernet communication with low cost. Web server program is uploaded for the two-way communication between the consumer and utility. This Ethernet communication enables consumer and utility to share information about the energy consumption through an IP address. The utility also receives the client's information using same IP address by web client program.

By using the Ethernet communication the customer and utility receive the real status of energy consumption with less cost as compared to other communication protocols. The information can be made private by using web client program uploaded in Arduino board to get the details of the client connected and disconnected to IP address for monitoring the electrical energy consumption. When the client is connected the information about the electrical energy consumption along with client information can be seen on the serial monitor of Arduino. This proposed system is cheap as compared to other communication protocols. This server system will be able to control and manage electricity usage by consumers.

#### Flowchart of Process

From the flow chart diagram, it can be seen that the energy consumption is continuously monitored by Arduino via Ethernet. LDR sensor which is used as a button state in this project checks the unit and cost of energy consumption by the consumer through the counter code uploaded in Arduino Uno board. If the LDR increases above the set voltage 550 then counter starts to count the pulses from the LED of Energy meter. With the counting of pulses by LDR, it gives the cost, unit increases with respect to time. If the LDR voltage is less than set voltage then there is no increase in unit and cost, it shows LDR off. The output of energy consumption is uploaded in web server and web client code through Ethernet. The utility/electricity board and consumer by using IoT through Ethernet can get the real time status of energy consumption only by IP address. The flowchart diagram is shown in Fig.6.

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

#### Hardware Implementation

In this proposed system LDR is placed on the LED of energy meter. The counter program is uploaded in Arduino Uno board for counting the blinking of LED. The counter continuously increased with respect to blinking of LED which is detected by LDR. The LDR is used as a button state to increase the counter to give the information about unit and cost of energy consumption.

The total output of unit and cost of energy consumption by the consumer can be monitored. The implementation of proposed system hardware is shown in Fig. 7.

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

The data of energy consumption regarding unit and cost can be seen on Arduino serial monitor as shown in Fig.8.

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

#### Results & Discussion

The Ethernet has been used for the communication part and transmitted the information of energy consumption to a web page. The collected data of energy consumption is sent to a web page by uploading the web server code and web client code for clients connection in Arduino board connected with Ethernet shield. On Arduino serial monitor the unit and cost of energy consumed along with IP address have been displayed as shown in Fig 9.

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

The consumer can receive the information about energy consumption just by filling IP address on their mobile phones at anytime and anywhere. The customer can check the information from any edge of the world by using Ethernet communication called IoT. The consumer can receive the information about energy consumption just by filling IP address on their mobile phones at anytime and anywhere. The information of electrical energy consumption on mobile through IP address is shown in Fig 10.

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

After web client program code is uploaded for the monitoring of electrical energy consumption, the client information such as location, HTTP can be seen on the Arduino serial as well as on mobile phone for information security. When the connection is successful, the information regarding unit and cost of electrical energy consumption can be seen by the consumer as well as by utility. Fig.11 and Fig.12 show the web client connection and disconnection with the web page with their location and IP address used.

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

#### Conclusion & Future Scope

The goal of this project work was designed for the two-way communication of energy consumed in the home can send to the web server by using Ethernet communication (IoT). By using the Ethernet communication the customer and utility receive the real status of energy consumption with less cost as compared to other communication protocols. This proposed system is cheap as compared to other communication protocols. The collected data about energy consumption is monitored by consumer and supplier at anytime, anywhere from any part of the world. Improvements can be achieved in the controlling and monitoring of energy online from any edge of the world.

---

Source: https://maker.wiznet.io/siva_ranjeet/projects/implementation-of-smart-metering-based-on-internet-of-things/
