Programmable Energy Meter with Bill Estimation for Reducing Power Bill

DOI : 10.17577/IJERTV8IS120040

Download Full-Text PDF Cite this Publication

Text Only Version

Programmable Energy Meter with Bill Estimation for Reducing Power Bill

Gurram Dheeraj Reddy #1, Gaggalapally Kalyani #2,Gande Sai Ganesh#3 , G. Anitha Chowdary#4

#1,2,3 Under Graduate Students, ECE Department,

#4 Associate Professor , ECE Department

TKR College Of Engineering And Technology, Meerpet, Saroornagar, Hyderabad

Abstract Electricity Energy Meter is a good concept in which you can recharge its balance, like we do in our mobile phones. In this project we are building an automated system by using 8051 microcontroller and GSM module. The main objective of the project is to develop an energy meter that informs the consumer the exact consumption and billing that the load consumes through SMS. For this project, we have taken a standard electronic energy meter. The blinking LED as seen on the front panel is directly proportional to the power consumed. More the power drawn faster becomes the LED blinking pulses. One sensor is placed above such blinking LED to derive the real time units consumed whose output goes to an 8051 microcontroller. Whenever the LED blinks, it then gives an interrupt signal to the microcontroller of the 8051 family and thus the program of the microcontroller counts the pulses and displays the reading on the LCD duly interfaced to the microcontroller for every minute / daily / weekly or monthly as programmed which is sent to the cell phone of the user by an SMS through a GSM modem, which is interfaced to the microcontroller.

Keywords Gsm module, nuvotonn microcontroller, electricity bill, energy meter, electricity

INTRODUCTION

    1. Embedded Systems:

      An embedded system is a combination of software and hardware to perform a dedicated task. Some of the main devices used in embedded products are microprocessors and micro-controllers. An embedded system is a computer system designed to perform one or more dedicated functions often with real-time computing constraints. It is embedded as a part of a complete device often including hardware and mechanical parts. By contrast ,a general-purpose computer ,such as personal computer (PC), is designed to be flexible and to meet a wide range of end-user needs. Embedded systems control many devices which are in common use today. The architecture of embedded system is as shown in figure.

      DESCRIPTION OF THE PROJECT

      The main aim of the Programmable energy meter project is to estimate energy consumed by load with the help of atmega and calculate the cost. Energy meter gives pulses which will be counted and displayed on LCD. These pulses occur depending on energy consumed. GSM to send SMS on amount of energy consumed. 12V Transformer to give power supply to the system. The user needs to make call which will be received and displayed on LCD and stored. The system then comes to setup mode from where the user can switch to start or setting

      option, setting to set unit cost. Start to know the unit consumed and the cost. The system switches the loads ON/OFF Depending on user commands received through SMS. The system also includes a feature in which user can specify the number of days for which the user wants to retrieve the consumed and the estimated cost for the specified days.

      In this design, the hardware components that we use are:

      • GSM MODULE

      • TRANSFORMER

      • ULN2003A (RELAY DRIVER)

      • Relay

      • ENERGY METER

      • OPTO COUPLER

    1. GSM MODULE

      A GSM modem duly interfaced to the MC through the level shifter IC Max232. The SIM card mounted GSM modem upon receiving digit command by SMS from any cell phone send that data to the MC through serial communication. While the program is executed, the GSM modem receives command STOP to develop an output at the MC, the contact point of which are used to disable the ignition switch. The command so sent by the user is based on an intimation received by him through the GSM modem ALERT a programmed message only if the input is driven low. The complete operation is displayed over 16×2 LCD display.

    2. POWER SUPPLY(TRANSFORMER):

LPC2148 works on 3.3 V power supply. LM 117 can be used for generating 3.3 V supply. However, basic peripherals like LCD, ULN 2003 (Motor Driver IC) etc. works on 5V. So AC mains supply is converted into 5V using below mentioned circuit and after that LM 117 is used to convert 5V into 3.3V. It is used to step down 230V AC to 9V AC supply and provides isolation between power grids and circuit.

SS2.3 RELAY

A relay is usually an electromechanical device that is actuated by an electrical current. The current flowing in one circuit causes the opening or closing of another circuit. Relays are like remote-control switches and are used in many applications because of their relative simplicity, long life, and proven high reliability. Relays are used in a wide variety of applications throughout industry, such as in telephone exchanges, digital computers and automation systems. Highly

sophisticated relays are utilized to protect electric power systems against trouble and power blackouts as well as to regulate and control the generation and distribution of power.

2.4 RELAY DRIVER (ULN2003A)

The ULN2003 is a monolithic high voltage and high current Darlington transistor arrays. It consists of seven NPN darlington pairs that features high-voltage outputs with common cathode clamp diode for switching inductive loads. The Darlington pairs may be paralleled for higher current capability. Each channel rated at 500mA and can withstand peak currents of 600mA.

SOFTWARE REQUIRED

    1. KEIL Micro vision IDE for Programming:

      Compilers are programs used to convert a High Level Language to object code. Desktop compilers produce an output object code for the underlying microprocessor, but not for other microprocessors. I.E the programs written in one of the HLL like C will compile the code to run on the system for a particular processor like x86 (underlying microprocessor in the computer). For example compilers for Dos platform is different from the Compilers for UNIX platform. The advantage of interpreters is that they can execute a program immediately. Secondly programs produced by compilers run much faster than the same programs executed by an interpreter. However compilers require some time before an executable program emerges. Now as compilers translate source code into object code, which is unique for

      each type of computer, many compilers are available for the same language.

    2. PROTEUS:

      The Proteus is an electronic circuit design software which includes a schematic capture, simulation and PCB ( Printed Circuit Board) Layout modules. But generally now a days Eagle CAD is highly preferred over Proteus for PCB designing because of its flexibility. Even though if u are not using for PCB designing u can view the PCB layout of the component individually while selecting the component it helps during the soldering of components in PCB. Proteus is ahead in simulating the circuits containing the micro controllers where we can simulate the circuit by uploading the hex code to the Micro-controller where as Multisim cant do this

      DESIGN OF THE SYSTEM

      The Embedded system designed is Programmable Energy Meter With Bill Estimation using GSM module. This Project is designed with latest and most demanding technology that is embedded system. In this project we will use GSM based programmable energy meter to solve statistical errors overcome in the process of monthly billing. This idea of wireless data transmission is bein planned to decrease the human involvement to gather the monthly reading and to minimize the technical problems about the billing process. This will help in a huge reduction of power thefts as well to analyze average power consumption of a certain locality. An automatic meter reading system is an actual way of data collection, that permit substantial saving through the saving of meter read ,more accuracy, allow regular reading, better billing, condensed tempering.

      Fig. 1 Block diagram of the system

      In this design, the hardware components that we use are:

      • ENERGY METER

      • OPTO COUPLER

      • ULN2003A

      • Relay switch

      • LCD DISPLAY

      • MICRO CONTOLLER

      • GSM MODULE

      • BULB

LPC2148 works on 3.3 V power supply. LM 117 can be used for generating 3.3 V supply. However, basic peripherals like LCD, ULN 2003 (Motor Driver IC) etc. works on 5V. So AC mains supply is converted into 5V using below mentioned circuit and after that LM 117 is used to convert 5V into 3.3V. The port acting as the output to the microcontroller are connected to the input ports of ULN2003 IC. The output of ULN is connected Microcontroller the gsm module acts as a wireless data transmission between the micro controller and

other peripherals. In gsm module, we are using transmitter pin, ground, Vcc pin. The ground pin is connected to the GND (pin 20) of the microcontroller thereby sharing a common ground. The Vcc pin of gsm module is connected to the PCB in which the voltage regulator7812 regulates 12v/7805 regulates 5V to gsm module and the transmitter is connected the port 2.2 and receiver is connected to the port 2.1 which acts input from gsm module to the microcontroller. We use Nuvoton because it has an In System Programming (ISP). ISP is programming the microcontroller while the chip is on board and connected to many other components. During ISP every pin on microcontroller is disabled and chip is programmed by means of a programmer. But we write the programming for Atmel AT89C51 in keil micro software and we draw the circuit diagram of the system in proteus software. The proteus software is primarily for electronic design automation. The program on how to work the system and the circuit diagram of the system is burned into the microcontroller using the Nuvoton ISP-ICP utility.

SCHEMATIC DIAGRAM:

Fig. 2 Schematic diagram

RESULT

ADVANTAGES AND DISADVANTAGES

Advantages

  1. This reduces the large number of labour operators/employees and long hours to accomplish the task and errors done by humans.

  2. Less time consuming, Economical and simple to use.

  3. This is going to help the customers to reduce their power bill by managing their energy consumption.

Disadvantages

  1. Network Problem.

  2. Circuit Complexity.

  3. Implementation cost is high.

APPLICATIONS

Applications :

  1. It is used wherever electricity is needed.

    Eg: Industries, Houses

    CONCLUSION

    GSM is beneficial for both energy provider and customer. This reduces the manual cost and also reduces the errors done by the humans. The statistical load use and profile help the customer to manage their energy consumption. This helps the consumer to reduce the number of units. This system can be used even in the remote areas by changing the type of the modem and its range of frequency for communication. This device reduces all the cases of revenue problems to the country and helps us to improve our usage.

    FUTURE SCOPE

    In future we can also update the tariff within the energy meter by writing a program in the java and it must be connected to the energy meter using USB port which automatically updates the program in the microcontroller. And we must also make easy to the customers for buying the watts using SMS request. This makes flexible for both user and the company.

    REFERENCE

    1. H.G. Rodney Tan, C.H. Lee, and V.H. Mok Design and Implementation of Automatic Meter Reading System Using GSM, ZIGBEE through GPRS, International Journal of Advanced Research

      in Computer Science and Software Engineering,vol2, edition 5, May 2012.

    2. Yujun Bao and Xiaoyan Jiang, Design of electric Energy Meter for long-distance data information transfers based upon GPRS, ISA 2009. International Workshop on Intelligent Systems and Applications, 2009.

    3. H.G. Rodney Tan, C. H. Lee, and V. H. Mok, Auto- matic Power Reading Using GSM Network, The 8th International Power Engineering Conference (IPEC2007).

    4. Subhashis Maitra, Embedded Energy Meter- A new concept to measure the energy consumed by a con- sumer and to pay the bill, Power System Technology and IEEE Power India Conference, 2008

WEBSITES VIEWED

http://www.slideshare.net/ikm104/gsm-energy-meter www.keil.com

APPENDIX

#include <reg51.h> sbit rs=P3^5;

sbit rw=P3^6; sbit en=P3^7; sbit sw=P1^6; sbit r1=P1^1; sbit sen=P1^7; void gsm(void); void sense(void);

unsigned int bill=0,count=0,u=0,count1,u1,bill1,unit; float watt_factor=0.3125;

void delay(unsigned int x)

{

unsigned int i; for(;x>0;x–) for(i=0;i<225;i++);

}

unsigned char rx()

{

while(RI==0)

{

if(sen==0)

{

sense();

}

if(sw==0)

{

gsm();

}

}

RI=0;

return SBUF;

}

void disp_str(unsigned char *x)

{

while(*x)

{

disp(*x++);

}

void tx(unsigned char ch)

{

SBUF=ch;

while(TI==0); TI=0;

}

void uart_str(unsigned char *s)

{

while(*s) tx(*s++);

}

void convert(unsigned int val)

{

unsigned char a1,a2,a3,a4;

a1=(val%10000)/1000+48; a2=(val%1000)/100+48; a3=(val%100)/10+48; a4=(val%10)+48;

tx(a1);

tx(a2);

tx(a3);

tx(a4);

}

void cmd(unsigned char x)

{

P2=x;

rs=0; rw=0; en=1; delay(10); en=0; delay(10);

}

void lcdinit()

{

cmd(0x38); cmd(0x0e); cmd(0x01); cmd(0x06);

}

void disp(unsigned char x)

{

P2=x;

rs=1; rw=0; en=1; delay(10); en=0; delay(10);

}

}

void lcd_val(unsigned int val)

{

unsigned char a1,a2,a3,a4;

a1=(val%10000)/1000+48; a2=(val%1000)/100+48; a3=(val%100)/10+48; a4=(val%10)+48;

disp(a1);

disp(a2);

disp(a3);

disp(a4);

}

void main()

{

unsigned char i=0,ch=0,n=0,j=0,dum[10],c=0; unsigned char num[15];

lcdinit(); SCON=0x50; TMOD=0x20; TH1=-3; TR1=1;

cmd(0x01);

delay(500);

r1=0;

cmd(0x80);

disp_str("GSM BASED ENERGY ");

cmd(0xc0);

disp_str("METER READING ….");

delay(2000); cmd(0x01);

cmd(0x80); disp_str("AT");

uart_str("AT"); tx(0x0A);

tx(0x0D); delay(1000); cmd(0x01); cmd(0x80);

disp_str("AT+CMGF=1"); uart_str("AT+CMGF=1"); tx(0x0A);

tx(0x0D); delay(1000);

uart_str("AT+CMGD=");

tx('1');

tx(0x0A);

tx(0x0D);

delay(2000); uart_str("AT+CMGD="); tx('2');

tx(0x0A);

tx(0x0D);

delay(2000);

tx('3');

tx(0x0A);

tx(0x0D);

uart_str("AT+CMGD=");

delay(2000);

}

else if(dum[2]=='2')

while(1)

{

cmd(0x01); cmd(0x80);

disp_str("PULSE COUNT:"); cmd(0x8C);

lcd_val(count); cmd(0xC0); disp_str("NO.UNITS:"); cmd(0xC9);

lcd_val(u);

RI=0;

r1=1;

{

cmd(0x01); cmd(0x80);

disp_str("BILL PAID ………");

cmd(0xc0); disp_str("POWER ON ……….");

r1=1;

delay(2000); cmd(0x01);

count=count-count1;

u=u-u1; cmd(0x01);

RI=0;

cmd(0x01);

while(rx() != ',&#39);

n=rx();

cmd(0x01); uart_str("AT+CMGR="); tx(n);

tx(0x0A);

tx(0x0D); while(rx() != ',');

for(i=0;i<14;i++) num[i]=rx();

do {

c=rx();

cmd(0x80); disp_str("PULSE COUNT:"); cmd(0x8C);

lcd_val(count); cmd(0xC0); disp_str("NO.UNITS:"); cmd(0xC9);

lcd_val(u);

count1=0; u1=0;

}

else

}while(rx() != 0x0D); j=0;

l: dum[j]=rx();

{

cmd(0x80);

cmd(0x01);

if(dum[j] !=0x0D)

{

j++;

goto l;

}

cmd(0x01); cmd(0x80);

for(j=0;dum[j] != 0x0D ;j++)

ch=0;

}

}

disp_str("WRONG MESSAGE..");

delay(1000); cmd(0x01);

}

disp(dum[j]); delay(2000);

uart_str("AT+CMGD=");

tx(n);

tx(0x0A);

tx(0x0D);

delay(2000);

void gsm()

{

RI=0;

uart_str("AT"); tx(0x0A);

tx(0x0D); delay(2000);

if(dum[2]=='1')

{

cmd(0x01);

cmd(0x80); disp_str("PLEASE PAY BILL"); cmd(0xC0);

disp_str("BILL:"); cmd(0xC5); lcd_val(bill);

r1=0;

delay(2000);

uart_str("AT+CMGF=1"); tx(0x0A);

tx(0x0D); delay(2000);

cmd(0x01); cmd(0x80);

disp_str("MESSAGE SENDING….");

uart_str("AT+CMGS="); tx('"');

uart_str("7993776927"); tx('"');

tx(0x0A);

tx(0x0D); delay(2000);

cmd(0x01); cmd(0x80);

delay(1000);

uart_str("MONTH COMPLETED PLEASE PAY THE BILL AMOUNT AND UNITS IS:");

tx(0x0A);

tx(0x0D); uart_str("UNITS:");

convert(u);

tx(0x0A);

tx(0x0D); uart_str("RS:"); bill=u*5; convert(bill); delay(2000); cmd(0x01); tx(0x1A);

}

void sense()

{

count++;

disp_str("PULSE COUNT:"); cmd(0x8C);

lcd_val(count); cmd(0xC0); disp_str("NO.UNITS:"); cmd(0xC9);

lcd_val(u);

delay(3000); uart_str("AT"); tx(0x0A);

tx(0x0D); delay(2000);

uart_str("AT+CMGF=1"); tx(0x0A);

tx(0x0D); delay(2000);

cmd(0x01); cmd(0x80);

disp_str("MESSAGE SENDING….");

uart_str("AT+CMGS="); tx('"');

uart_str("7013684692"); tx('"');

tx(0x0A);

tx(0x0D); delay(2000);

uart_str("MONTH COMPLETED PLEASE PAY THE BILL AMOUNT AND UNITS IS:");

tx(0x0A);

tx(0x0D); uart_str("UNITS:");

convert(u);

tx(0x0A);

tx(0x0D); uart_str("RS:"); bill=u*5; convert(bill); delay(2000); cmd(0x01); tx(0x1A);

delay(3000); bill1=bill; count1=count;

u1=u; delay(1000);

cmd(0x8C); lcd_val(count);

u=watt_factor*count/1; cmd(0xC9);

lcd_val(u);

delay(200);

}

RI=0;

cmd(0x80); disp_str("MONTH COMPLETED….");

cmd(0xc0); disp_str("PLEASE PAY BILL ");

Leave a Reply