Professional Documents
Culture Documents
IOT Based Energy Meter Monitoring Using ARM Cortex M4 With Android Application
IOT Based Energy Meter Monitoring Using ARM Cortex M4 With Android Application
22
International Journal of Computer Applications (0975 – 8887)
Volume 150 – No.1, September 2016
MQTT BROKER
SUBSCRIBE PUBLISH
TOPIC TOPIC
PUBLISH SUBSCRIBE
TOPIC TOPIC
ACCESS
POINT
OL
PR
OT T
MQ OCO
PR MQT
OT
OC
TT L
MQTT MQTT
CLIENT CLIENT
23
International Journal of Computer Applications (0975 – 8887)
Volume 150 – No.1, September 2016
updates to the microcontroller which is integrated to energy In the proposed work below mentioned PUBLISH and
meter. SUBSCRIBE topics are used.
+ MASTER PP0
RX
UART 6 TX server. If the command from app to energy meter is
- BOARD PP1 +
5V DC
SUPPLY PC4 PC5 PA4 PA5
TX
RX
WIRELESS -
Generate_Bill, then the printer integrated with energy meter
MODULE 5V DC
RX
UART
TX
RX
UART 3
TX
SUPPLY prints bill and a notification is generated with billed amount.
7
If the command from app to energy meter is
MAX 3232
MAX 3232
+
ENERGY
-
METER Disconnect_Supply, then the relay integrated with energy
24V DC
SUPPLY DATA
LINE
DATA
LINE
meter is made open. In a similar manner, if the command is
+
5V DC Current_Watt, the app flaunts present usage of load.
- SUPPLY
LOAD PRINTER +
-
5.2 Flow chart depicting the role of
PIN CONFIGURATION
UART 3 : Printer, PORT A,P4,P5 Generate_Bill command
UART 6 : WIFI PORT P,P0,P1 Flow chart of fig. 5 shows the process of Generate_Bill
UART 7 : Energy Meter PORT C,P4,P5
GPIO : PORT N, P4
command. On click of Generate Bill from the app, GEN_Bill
command is fed to WiFi card via server. The WiFi reads the
Fig. 3: Design diagram of proposed system command received and passes this command to master board
through its UART. The master validates the command and
To share data between energy meter and the app, responds to it accordingly. It fetches data from energy meter,
SUBSCRIBE and PUBLISH topics both for the controller and calculates the tariff and prints the bill at consumer premises.
app is vital. PUBLISH for sending of information and The master board then formats the data as required by MQTT
SUBSCRIBE for request of information. The server acts as a and writes back to WiFi UART as „Bill Generated‟ with cost
mediator and is responsible to make available of the publish of bill. This data from WiFi card flow through server to PDA
topic to all the other clients who have subscribed to that and is exhibited in the App.
particular topic.
24
International Journal of Computer Applications (0975 – 8887)
Volume 150 – No.1, September 2016
START
Power ON Circuit
Initialize Microcontroller
UART of printer at baud rate 9600
UART of WIFI at baud rate 115200
UART of Energy Meter at baud rate 19200
Configure Wi-Fi
NO
NO
NO
25
International Journal of Computer Applications (0975 – 8887)
Volume 150 – No.1, September 2016
Fig.8 Load graph of current month Case 2: Bill generation at the consumer premises.
To perform this operation, GENBILL command of the app is
6.1 Experimental Results used. On tap of this command, the controller estimates the
Case 1: To determine the present connected load units consumed in watt-hour, computes the amount to be
billed, prints the bill at consumer premises and sends
to energy meter in watts. notification with bill amount. The generated bill enclose the
To find out this, the proposed system uses CURRENT WATT details of the consumer, units consumed, cost per unit, fixed
command of the app. On click of this command, the app cost and bill amount which is seen in image of fig 11.
fetches the load connected value from the energy meter and
displays in the app. This command is tested using 2 instances.
26
International Journal of Computer Applications (0975 – 8887)
Volume 150 – No.1, September 2016
7. CONCLUSION [12] Karen Rose, Scott Eldridge and Lyman Chapin, “The
In the epoch of digitalization, this work concentrates Internet of things An Overview Understanding the Issues
on connectivity and networking using IOT MQTT and Challenges of a More Connected World”, Internet
network. Society, October 2015
[13] Android programming and application
In many AMR systems bill amount is sent as SMS
development.android.com /index.html
to consumer, by this method consumer can‟t get the
complete info about billing details. In proposed [14] TM4C1294NCPDT microcontroller data sheet
method a descriptive bill is generated at consumer
premises along with a notification. Hence there [15] Code composer studio http://www.ti.com/tool/ccstudio-
exists much transparency in the system tm4x
Central office can disconnect the source just by tap [16] Amazon Web Service https://aws.amazon.com/ec2
of button in the app, hence eliminates human [17] OASIS MQTT protocol https://www.oasis-open.org/
involvement.
[18] Satish Palaniappan, Raghul Asokan, Srinivas
With the help of developed app, one can view day- Bharathwaj, Sujaudeen “ Automated Meter Reading
wise load analysis curve along with current System - A Study” ,IJCA, April 2015
connected load data to energy meter. Hence power
optimization can be achieved.
IJCATM : www.ijcaonline.org 27