Smart Meter
-
Upload
aftab-hussain -
Category
Documents
-
view
129 -
download
0
Transcript of Smart Meter
Smart Meter Design for Smart Grid
Design Engineer:
Aftab Hussain – 2008-NUST-BEE-467
Project Advisor:
Dr. Tauseef Tauqeer, SEECS NUST
Project Description Design a monitoring tool that measures the power consumption of an electrical device and transmits the data to the power supplier company through GSM modem. It also includes automatic supply of power according to the need of the users by switching the relays.
Domain Model
USER
DEVICE
Measure
LCD RS232 GSM Modem
LOAD
GSM Modem RS232 Microcontroller
Relay1
Relay2
Relay3
INV1
INV2
INV3
Transmit
Receive
The Smart MeterImplemented
1. Purely with PIC Microcontroller2. Through the SPI interfacing of PIC with CS54633. Adding the prepaid and smart grid functionality
Meter with PIC MicrocontrollerIP
+4
IP-
5
VIOU
T3
VCC
1
GND
2
U2ACS755XCB-050
MCLR/VPP1
RA0/AN02
RA1/AN13
RA2/AN2/VREF-4
RA3/AN3/VREF+5
RA4/T0CKI6
RA5/AN4/SS/LVDIN7
RE0/RD/AN5 8
RE1/WR/AN6 9
RE2/CS/AN7 10
OSC1/CLKI13
RA6/OSC2/CLKO14
RC0/T1OSO/T1CKI 15
RC2/CCP1 17
RC3/SCK/SCL 18
RD0/PSP0 19
RD1/PSP1 20
RD2/PSP2 21
RD3/PSP3 22
RD4/PSP4 27
RD5/PSP5 28
RD6/PSP6 29
RD7/PSP7 30
RC4/SDI/SDA 23
RC5/SDO 24
RC6/TX/CK 25
RC7/RX/DT 26
RB0/INT033
RB1/INT134
RB2/INT235
RB3/CCP2B36
RB437
RB5/PGM38
RB6/PGC39
RB7/PGD40
RC1/T1OSI/CCP2A 16
U1
PIC18F452
VCC
AC1
TR1
TRANSFORMER
BAT116V
U4
OP1PR110k
+88.8AC Am
ps
R69k
R41k
+88.8
+88.8AC Volts
+88.8AC Volts
R2050
Zero Cross Detector
C1
30uF
D714
D613
D512
D411
D310
D29
D18
D07
E6
RW5
RS4
VSS
1
VDD
2
VEE
3
LCD1LM016L
A
B
C
D
RXD
RTS
TXD
CTS
voltage Current
Algorithms
Take analog input and give it to the analog input pin AN0
The ADC samples the input and we take the peak value
Divide this value by sqrt(2) Multiply this peak value with
the resistor and transformer ratio
Take analog input and give it to the analog input pin AN1
The ADC samples the input and we take the peak value
Divide this value by sqrt(2) Multiply this peak value
with the transformer ratio
Power factor1. Check for voltage cross zero from negative to positive2. Timer T starts (T)3. Timer T starts ( T2)4. Check for current cross zero from negative to positive5. Timer T stops6. Check again for voltage cross zero from negative to
positive7. Timer T stops8. Phase φ = ( T2 / T) * 36009. Get cos φ
Simulations