You are on page 1of 9

ENEGRY METER MONITORING

VIA POWER LINE


COMMUNICATION
Guide: Mrs. VIDHYA K
Group Members [Batch No:4]
ATHIRA XAVIER (66)
ERICA CRYSTABEL SIMATHY(22)
MANJU AUGUSTINE(36)
NITHYA GOPINATH(44)
SETHULAKSHMI C S(53)

BLOCK DIAGRAM

(CONSUMER SECTION)

230 V Single Phase Power Supply


LCD
Display

Energy
meter IC
(ADE7757
)

Interfacing
circuit
(Optocoupl
er)
Relay and
interfacin
g circuit
Load

MicroController
(PIC16F877
A)

PLC
Modem

BLOCK DIAGRAM

(ELECTRICITY BOARD

SECTION)
230 V Single Phase Power Supply

PLC
Modem

Level
Converter
(MAX232)

DB9
Connector

PC

16X2 LCD INTERFACING TO PIC


(CIRCUIT DIAGRAM)

16X2 LCD INTERFACING TO PIC


CODE)
// LCD module connections
sbit LCD_RS at RC2_bit;
sbit LCD_EN at RC3_bit;
sbit LCD_D4 at RC4_bit;
sbit LCD_D5 at RC5_bit;
sbit LCD_D6 at RC6_bit;
sbit LCD_D7 at RC7_bit;
sbit LCD_RS_Direction at TRISC2_bit;
sbit LCD_EN_Direction at TRISC3_bit;
sbit LCD_D4_Direction at TRISC4_bit;
sbit LCD_D5_Direction at TRISC5_bit;
sbit LCD_D6_Direction at TRISC6_bit;
sbit LCD_D7_Direction at TRISC7_bit;
// End LCD module connections
void main()
{
Lcd_Init(); // Initialize LCD
Lcd_Cmd(_LCD_CLEAR); // Clear display
Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor of
Lcd_Out(1,3,"Welcome to our ");//Write text in first row
Lcd_Out(2,7,"Project ");//Write text in second row
}

(SOURCE

RELAY INTERFACING TO PIC


(CIRCUIT DIAGRAM)

RELAY INTERFACING TO PIC


(SOURCE CODE)
void main()
{
TRISB.F7 = 0; //Makes RB7 a output pin
do
{
PORTB.F7 = 1; //Turns ON relay
Delay_ms(1000); // 1000 ms delay
PORTB.F7 = 0; //Turns OFF relay
Delay_ms(1000); //1000ms delay
}while(1);
}

FLOW CHART

FLOW CHART
A

You might also like