- This topic has 20 replies, 14 voices, and was last updated 8 years, 9 months ago by waqas.
-
AuthorPosts
-
March 1, 2013 at 3:30 pm #4802Prab XParticipant
hi guys, I m doing a project on GSM BASED ENERGY METER READING. I have to display energy meter reading on LCD and Send this reading to the user through SMS. this SMS can be send after every 50 units. This project also includes a EEPROM memory to store the data after switching off the microcontroller module. The user also can send a sms to the energy meter to get the status of the current meter reading.
the user also can get the status of no of loads connected to the meter, their status(ON/OFF) by sending a sms and also to switch on/off the loads.
i don't know how to display energy meter reading on LCD and send it to USER by SMS. Guys, Please help me in my project.
I m attaching the block diagram of my project.
March 1, 2013 at 4:25 pm #9213AJISH ALFREDParticipantHi Prab,
Which microcontroller are you using?
March 1, 2013 at 5:17 pm #9214Prab XParticipantI m using AT89C51 microcontroller and Keil uVision Compiler
March 2, 2013 at 1:16 pm #9217hardikParticipanti can help you for tarnsfering message from contorller unit to customer mobile and also from customer mobile to controlling unit.
you have to design module for reading data from energy meter into controller.
March 2, 2013 at 2:20 pm #9218Prab XParticipantthanks for your interest in my project. I developed a code which will count 1000 pulses and increment unit =unit+1. i have not used external interrupt (INT0 PIN3.2 of AT89C51). Please developed this code using EXT INTERRUPT (INT0) & also help me to send the LCD display content by SMS to user after every 100 units consumed.
MY Code:
#include<reg51.h>#define LCD P2unsigned int Count,Unit,d1,d2,d3,d4,x1,x2,x3,d5,d6,d7,d8,x4,x5,x6,x7;sbit rs = P1^0;sbit rw = P1^1;sbit en = P1^2;sbit Pulse = P1^3;void LCDInit ( );void lcdcmd (unsigned char );void lcdwrt (unsigned char );void Delay (unsigned int );void Conv1 (unsigned int );void Conv2 (unsigned int );void main(void){unsigned char z,Disp;unsigned char code str1[]=”ENERGY METER”;//unsigned char code str2[]=”PULSE: 0000 “;unsigned char code str2[]=”METER ID:XXX “;unsigned char code str3[]=”UNITS: 0000 “;P0=0x00;P1=0x00;P2=0x00;P3=0x00;Count=0x00;Unit=0x00;LCDInit();for(z=0;z<16;z++){Disp=str1[z];lcdwrt(Disp);Delay(1);lcdcmd(0x80);for(z=0;z<16;z++){Disp=str2[z];lcdwrt(Disp);Delay(1);}Delay(70);lcdcmd(0xC0);for(z=0;z<16;z++){Disp=str3[z];lcdwrt(Disp);Delay(1);}Delay(70);while(1){Delay(30);if(Pulse==0){Count=Count+1;Conv1(Count);Conv2(Unit);if(Count==1000){Count=0x00;Unit=Unit+1;}}}}}void Conv1(unsigned int val1){x1 = val1 / 10;d1 = val1 % 10;x2 = x1 / 10;d2 = x1 % 10;x3 = x2 / 10;d3 = x2 % 10;d4 = x3 % 10;d1=d1+0x30;d2=d2+0x30;d3=d3+0x30;d4=d4+0x30;}void Conv2(unsigned int val2){x4 = val2 / 10;d5 = val2 % 10;x5 = x4 / 10;d6 = x4 % 10;x6 = x5 / 10;d7 = x5 % 10;d8 = x6 % 10;d5=d5+0x30;d6=d6+0x30;d7=d7+0x30;d8=d8+0x30;lcdcmd(0xc7);lcdwrt(d8);lcdwrt(d7);lcdwrt(d6);lcdwrt(d5);Delay(1);Delay(30);}void LCDInit(){lcdcmd(0x38);Delay(10);lcdcmd(0x0E);Delay(10);lcdcmd(0x01);Delay(10);lcdcmd(0x0C);Delay(10);lcdcmd(0x80);Delay(10);return;}void lcdcmd(unsigned char value){LCD=value;rs=0;rw=0;en=1;Delay(1);en=0;return;}void lcdwrt(unsigned char value){LCD=value;rs=1;rw=0;en=1;Delay(1);en=0;return;}void Delay(unsigned int x){unsigned int i,j;for (i=0;i<=x;i++)for (j=0;j<=500;j++);}March 7, 2013 at 6:46 am #9272rajeshParticipanthiiii
i am also working on this project.i want a help for programming a microcontroller for gsm module and including display on lcd
March 7, 2013 at 4:02 pm #9274rahulParticipanthey I am also working on this project.. but I am stuck at the optocoupler part.. the voltage levels from the energy meter are faint. I measured them across the LED
March 14, 2013 at 1:03 am #9312Prab XParticipantI want to send “UNITS:0009” displaying on lcd to a mobile via sms. Please some code for me.
May 10, 2013 at 1:20 pm #9703raviranjan singhParticipanthello freinds..
i am doing the same project with using AT89s52 (8051)
i got stuck on some problem,
please help me as soon as possible..
is opto coupler is neccesary to use/ can be use relay for the same use.
how to get output from energy meter to microcontroller.
i am going through ine website….is it right
please freinds send me the proggramme in c to my email id is
raviranjan97021 at gmail
May 10, 2013 at 1:21 pm #9704raviranjan singhParticipanthello freinds..
i am doing the same project with using AT89s52 (8051)
i got stuck on some problem,
please help me as soon as possible..
is opto coupler is neccesary to use/ can be use relay for the same use.
how to get output from energy meter to microcontroller.
i am going through ine website….is it right
http://www.8051projects.info/forum/project-kits-album/1198-how-take-pulse-out-energy-meter.html
please freinds send me the proggramme in c to my email id is
May 27, 2013 at 3:37 am #9225Prab XParticipantgsm
July 24, 2013 at 4:16 pm #10191Tunde GeorgeParticipanthi prab, am really impressed by the amount of effort you already put into this project and just coincidentally am doing same as my final year project in school. but in my case am using the analogue meter so am not using any optocopler,as using an infrared sensor which will read as the electromechanical blade makes is rotation reading the amount of energy used by the load,am also using the AT89S52 8051 micro controller. please i would like to work with you in actualizing this work, i got my GSM MODEM and other components and i already interfaced my infrared sensor to the meter. but am having troubles with my circuit, please could help me so we share materials and idea. i will go through your program now and see how it works with the LCD interfacing, thanks. u can reach me at [email protected]
February 9, 2014 at 2:07 pm #10992SHAH DISHANT H.ParticipantHi,
This is really surprising that many people are working on this simple project.
I had developed this for my hobby. I would like to ask all of you, how many of you have included measurement of power factor?
This is one of the most important parameter in the measurement of power as power=voltage*current*power factor.
Reply as soon as possible.
July 10, 2014 at 11:56 am #11888Tunde GeorgeParticipantvery well i was finally able to justify my design. as d implementation was realy intresting though i finally used PIC in my design with a current sensor.
March 30, 2015 at 11:30 am #12744Rajib SahaParticipantuse ldr to count the number of pulses…
-
AuthorPosts
- You must be logged in to reply to this topic.