SlideShare una empresa de Scribd logo
1 de 7
Descargar para leer sin conexión
ISSN (e): 2250 – 3005 || Vol, 04 || Issue, 7 || July – 2014 ||
International Journal of Computational Engineering Research (IJCER)
www.ijceronline.com Open Access Journal Page 12
Microcontroller Based Active and Reactive Power Measurement
Kareem A. Hamad
B.Sc, M.Sc, Ph.D AL – Rafidain University College, Computer Communication Eng. Dept Baghdad – Iraq
I. INTRODUCTION
Rapid advances in the technology of solid state devices have provided many inexpensive and powerful
means of implementation in the various fields of instrumentations, measurements, control….etc. thus measuring
instruments, based on this new technology are replacing the conventional types of measuring equipment
especially in the fields of electrical and electronics measurements. However, constant research and development
are still bringing new, more flexible and simpler to use equipment.
In the past many years many researchers have been able to provide good and accurate designs for the
measurement of the electrical power digitally (Banks and Majithia 1976 [1], Filipski 1980 [2], Hafeth and
Abdul-Karim 1984 [3], Ibrahim and Abdul-Karim 1984 [4], Prokic 1986 [5], Bascifti and Hatay 2010 [6]. Their
attempts were based on different methods, e.g. using microprocessor, linear or non-linear ADC,…, etc. In this
work a simple approach has been tried to realize active and reactive power digitally. This approach is based on
the generation of three values by means of analog circuit, these values are proportional to Vm, Imcosø and Imsinø,
thus multiplication by using microcontroller will result in Vm Imcosø, i.e. active power and Vm Imsinø, i.e.
reactive power.
II. PRINCIPLE OF OPERATION
Consider a normal three wire power system, where voltage and current signals under steady-state
conditions are of sinusoidal nature. Thus the instantaneous voltage v(t) and current i(t) are given as follows:
Where Vm is the peak value of the line voltage, Im is the peak value of line current, and ø is the phase angle
between line voltage and line current (leading or lagging).
 
  (2)sin)(
(1)sin
 

tIti
ωtVv(t)
m
m
ABSTRACT
The work presented in this paper introduces a simple method for the measurement of active
and reactive power digitally using microcontroller. Three signal values are generated, the first is
proportional to the peak value (Vm) of the line voltage v(t), the second and third signals are
proportional to the instantaneous values of the line current i(t) at the instants of v(t)=0 and v(t)=Vm,
i.e. Imsinø and Imcosø respectively, where Im is the peak value of the line current and ø is the phase
angle. These signals are inserted in to PIC16F877A by means of analog circuit. The active and reactive
power are calculated by the algorithm written on the PIC16F877A. The calculated values by
multiplications and digitization will provide a realizable and displayable form on LCD screen.
Keywords: Microcontroller, Active and Reactive Power, Microcontroller, Measurements.
Microcontroller Based Active…
www.ijceronline.com Open Access Journal Page 13
Thus multiplication of eqns. (3) and (4) will give Vm Im cos ø, i.e. active power, and multiplication of eqns. (3)
and (5) will give Vm Im sin ø, i.e. reactive power.
III. HARDWARE DESCRIPTION
The design aim is to monitor active and reactive power on LCD display continuously. The circuit
diagram and corresponding timing waveforms of the system are shown in Figs. 2 and 3 respectively. The basic
point in the proposed technique is to generate three values using ADC contained in the microcontroller; these
values are proportional to Vm, Imcosø and Imsinø. This has been achieved by taking the ADC values from
voltage and current signals at the instants of peak voltage Vm and 0 voltage, i.e. at the instant when the voltage
signal crosses the zero line. To achieve this aim electronically. The current and voltage signals are acquired
from the main AC line by using current transformer and potential transformer. The acquired voltage signal V1 is
shifted 90o
, squared V2 and reduced ON time with monostable V3. Both V1 and current signal I1 are read by the
microcontroller, at the positive edge of V3, both signal values are taken, providing two components Vm and
Imcosø. The two components if multiplied will result in (VmImcosø) a value proportional to the active power P.
For the realization of reactive power, the same procedure is used except that the 90o
phase shift is bypassed by
using SPDT switch, thus the acquired current signal value is taken at the instant of zero voltage, producing value
proportional to Imsinø. Thus multiplication will result in (Vm Imsinø) a value is proportional to reactive power Q.
The required multiplication has been achieved with microcontroller PIC16F877A. The active and reactive
power are calculated by the algorithm written on the PIC16F877A, the output of which is displayed on LCD
accordingly.
 2sin
(3)
then2,tat:(1)FigFrom





πIi(t)
Vv(t)
m
m
   
  (5)sin
0sin
then0,tat
(4)cos
Iti
Iti
Ii(t)
m
m
m








D7
14
D6
13
D5
12
D4
11
D3
10
D2
9
D1
8
D0
7
E
6
RW
5
RS
4
VSS
1
VDD
2
VEE
3
LCD1
LM016L
50%
RV1
5K
R2
10k
RA0/AN0
2
RA1/AN1
3
RA2/AN2/VREF-/CVREF
4
RA4/T0CKI/C1OUT
6
RA5/AN4/SS/C2OUT
7
RE0/AN5/RD
8
RE1/AN6/WR
9
RE2/AN7/CS
10
OSC1/CLKIN
13
OSC2/CLKOUT
14
RC1/T1OSI/CCP2
16
RC2/CCP1
17
RC3/SCK/SCL
18
RD0/PSP0
19
RD1/PSP1
20
RB7/PGD
40
RB6/PGC
39
RB5
38
RB4
37
RB3/PGM
36
RB2
35
RB1
34
RB0/INT
33
RD7/PSP7
30
RD6/PSP6
29
RD5/PSP5
28
RD4/PSP4
27
RD3/PSP3
22
RD2/PSP2
21
RC7/RX/DT
26
RC6/TX/CK
25
RC5/SDO
24
RC4/SDI/SDA
23
RA3/AN3/VREF+
5
RC0/T1OSO/T1CKI
15
MCLR/Vpp/THV
1
U1
PIC16F877A
R1
1k
C1
0.22uF
R12
1k
3
2
6
74
15
U2
LM741
U2(V-)
U2(V+)
D4(A)
41%
RV2
100k
3
2
6
74
15
U3
LM741
R3
1k
D1
BZX284C5V1
CX
10
RX/CX
11
RINT
9
A1
3
A2
4
B
5
Q
6
Q
1
U4
74121
R8(1)
R8
10k
D3
1N4148
D3(A)
R7
10k
D2
1N4148
D2(A)
SW2
SW-SPDT
?
D4
1N4148
A
B
C
D
Fig (2) Schematic diagram of measuring system
P
Q
Microcontroller Based Active…
www.ijceronline.com Open Access Journal Page 14
PIC16F877A Microcontroller
The PIC16F877A is a microcontroller from Microchip in a chip type of 40-pin DIP packages. The
principal characteristics by which this PIC was used are: digital I/O ports, analog inputs, analog to digital
converter of 10 or 8-bit resolution, serial communication USART, memory storage EEPROM [7]. The
PIC16F877A, has programmed routines process or features, such as analog to digital conversion to get the
values from the sensors, storage of historic data in the internal EEPROM when an alert happened generates a
detection range of values which can determinate whether the system suffered acceleration that cause an alert [8].
The circuit used in this work operates of 20 MHz clock frequency and runs each instruction as fast as 200 ns.
The program for the PIC16F877A microcontroller is written in Micro C and is compiled into Hex
program. Microcontroller is programmed to calculate active and reactive power. The flow chart of this
calculation in Hex is shown in Fig. 4. The input of the current and voltage signals are connected to pins 3,4 and
8 as shown in Figs. 5 (a) and 5 (b).
IV. SOFTWARE COMPONENTS
This section presents the software’s used in the design of the measuring system
A. Micro C: Micro C is powerful, feature rich development tool for PIC micros. It designed to provide the
programmer with the easiest possible for developing applications for embedded systems, without compromising
performance or control [8].
B. Proteus 7 Professional: is an interactive system level simulator. Which combines mixed mode circuit
simulation, micro-processor models and interactive component models to allow the simulation of complete
micro-controller based designs [8].
V2
V2
t
t
t
V1
V3
V3
t
t
(V1)
Fig (3) Timing waveforms
(I1)
Microcontroller Based Active…
www.ijceronline.com Open Access Journal Page 15
Read V1 & I1
Fig (4) Flowchart of active and reactive power measurement . Hex program
Start
Configure LCD port
connections
Configure ports
directions
Configure A / D
converter
Clear LCD
V3 = 1
V1 = 0
V1 = Vm
I1 = Imcosø
Calculate & Calibrate
P = Vm . Imcosø
Calculate & Calibrate
Q = Vm.Imsinø
I1 = Imsinø
Write I1,V1 & power
on line 1 & values of
I1,V1 & power on line
2 of LCD
Y
N
Y
N
Microcontroller Based Active…
www.ijceronline.com Open Access Journal Page 16
t
v
5
4
3
2
1
0
(a)
V1
V3 I1
t
v
5
4
3
2
1
0
(b)
Fig (5) The microcontroller inputs of the current and voltage signals
(a) Active power. (b) Reactive power
V1 V3
I1
Microcontroller Based Active…
www.ijceronline.com Open Access Journal Page 17
(a) Digital readout
Line current
(Amp)
(b) Digital readout
Fig (6) System linearity curves. (a): Active power. (b): Reactive power.
Line current
(Amp)
Microcontroller Based Active…
www.ijceronline.com Open Access Journal Page 18
IV. CONCLUSION
The technique presented in this paper provides a very simple means for the digital measurement of
active and reactive power. Which can be implemented in the various fields of industry and education. The
circuit is designed to display active and reactive power of the load connected the network. Calculation process is
achieved by PIC16F877A. This approach is so straight forward that the hardware is very simple.
The system has been tested under different loading conditions using proteus simulator and has shown linear
behavior under those conditions, as shown in Fig.6 (a) and (b)
References
[1] Banks, W., and Majithia, J.C., 1976, Microprocessors: Design and applications in digital instrumentation and control. IEEE Trans.
on Instrumentation and Measurement, IM-25, No. 3.
[2] Filipski, P., 1980, A new approach to reactive current and reactive power measurement in nonsinusoidal systems. IEEE Trans. on
Instrument and Measurement, IM-29, No.4.
[3] Hafeth, B. A., and Abdul-Karim, A. H., 1984, Digital power meter using non-linear ADC. International Journal of Electronics,
57,179-186.
[4] Ibrahim, K. M., and Abdul-Karim, A. H., 1984, A novel phase measurement method. International Journal of Electronics, 56, 217-
221.
[5] Prokik, D., 1986, A concept for measurement of electric power on the basis of Mass measurement, Rev. Roum. Phys. Tome, 31,
275-279.
[6] Fatih B., and Omer F. H., 2010, Microcontroller-controlled reactive power measurement and saving circuit design for residences
and small scale enterprises, Scientific Research and Essays Vol. 5(16), pp. 2312-2317.
[7] Microchip 2001, PIC 16F87X Data Sheet, USA.
[8] Basil A., 2012, Alerting system design using PIC16F877a for power distribution system, The 4th International Engineering
Conference –Towards engineering of 21st century.

Más contenido relacionado

La actualidad más candente

IRJET- Data Acquisition using Tensile Strength Testing Machine
IRJET- Data Acquisition using Tensile Strength Testing MachineIRJET- Data Acquisition using Tensile Strength Testing Machine
IRJET- Data Acquisition using Tensile Strength Testing MachineIRJET Journal
 
Design of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADC
Design of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADCDesign of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADC
Design of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADCAman JanGra
 
Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050
Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050
Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050Vijay Kumar Jadon
 
Simulation and Hardware Implementation of Shunt Active Power Filter Based on ...
Simulation and Hardware Implementation of Shunt Active Power Filter Based on ...Simulation and Hardware Implementation of Shunt Active Power Filter Based on ...
Simulation and Hardware Implementation of Shunt Active Power Filter Based on ...TELKOMNIKA JOURNAL
 
IRJET- Optimal Strategy for Extraction of Traffic Based on PLC
IRJET- Optimal Strategy for Extraction of Traffic Based on PLCIRJET- Optimal Strategy for Extraction of Traffic Based on PLC
IRJET- Optimal Strategy for Extraction of Traffic Based on PLCIRJET Journal
 
IRJET- Solar Powered Transmission Line Inspection Robot
IRJET- Solar Powered Transmission Line Inspection RobotIRJET- Solar Powered Transmission Line Inspection Robot
IRJET- Solar Powered Transmission Line Inspection RobotIRJET Journal
 

La actualidad más candente (9)

IRJET- Data Acquisition using Tensile Strength Testing Machine
IRJET- Data Acquisition using Tensile Strength Testing MachineIRJET- Data Acquisition using Tensile Strength Testing Machine
IRJET- Data Acquisition using Tensile Strength Testing Machine
 
Digital Weight Scale
Digital Weight ScaleDigital Weight Scale
Digital Weight Scale
 
Design of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADC
Design of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADCDesign of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADC
Design of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADC
 
J010316164
J010316164J010316164
J010316164
 
Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050
Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050
Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050
 
C04611318
C04611318C04611318
C04611318
 
Simulation and Hardware Implementation of Shunt Active Power Filter Based on ...
Simulation and Hardware Implementation of Shunt Active Power Filter Based on ...Simulation and Hardware Implementation of Shunt Active Power Filter Based on ...
Simulation and Hardware Implementation of Shunt Active Power Filter Based on ...
 
IRJET- Optimal Strategy for Extraction of Traffic Based on PLC
IRJET- Optimal Strategy for Extraction of Traffic Based on PLCIRJET- Optimal Strategy for Extraction of Traffic Based on PLC
IRJET- Optimal Strategy for Extraction of Traffic Based on PLC
 
IRJET- Solar Powered Transmission Line Inspection Robot
IRJET- Solar Powered Transmission Line Inspection RobotIRJET- Solar Powered Transmission Line Inspection Robot
IRJET- Solar Powered Transmission Line Inspection Robot
 

Destacado

crm share point_effizientere zusammenarbeit im team
crm share point_effizientere zusammenarbeit im teamcrm share point_effizientere zusammenarbeit im team
crm share point_effizientere zusammenarbeit im teamEGELI Informatik AG
 
Apache con 2011 provisioning distributed os-gi applications in a cloud
Apache con 2011   provisioning distributed os-gi applications in a cloudApache con 2011   provisioning distributed os-gi applications in a cloud
Apache con 2011 provisioning distributed os-gi applications in a cloudGuillaume Nodet
 
Tersigni Portfolio 2008 Landscape
Tersigni Portfolio 2008 LandscapeTersigni Portfolio 2008 Landscape
Tersigni Portfolio 2008 Landscapemichaeltersigni
 
COSE ESB Presentation
COSE ESB PresentationCOSE ESB Presentation
COSE ESB Presentationerichleipold
 
Wsrm 12.12 fine line
Wsrm 12.12 fine lineWsrm 12.12 fine line
Wsrm 12.12 fine linewsalley
 
Prototype Your Startup
Prototype Your StartupPrototype Your Startup
Prototype Your StartupBrad Nunnally
 
Apache Portals Panel (ApacheCon US 2007)
Apache Portals Panel (ApacheCon US 2007)Apache Portals Panel (ApacheCon US 2007)
Apache Portals Panel (ApacheCon US 2007)Carsten Ziegeler
 
Apache Sanselan (ApacheCon US 2007 FFT)
Apache Sanselan (ApacheCon US 2007 FFT)Apache Sanselan (ApacheCon US 2007 FFT)
Apache Sanselan (ApacheCon US 2007 FFT)Carsten Ziegeler
 
Hubbard Ernest Presentation_2.1
Hubbard Ernest Presentation_2.1Hubbard Ernest Presentation_2.1
Hubbard Ernest Presentation_2.1echub
 
Introduction, Product Demo & Roadmap and Industry Analyst
Introduction, Product Demo & Roadmap and Industry AnalystIntroduction, Product Demo & Roadmap and Industry Analyst
Introduction, Product Demo & Roadmap and Industry AnalystRightScale
 

Destacado (10)

crm share point_effizientere zusammenarbeit im team
crm share point_effizientere zusammenarbeit im teamcrm share point_effizientere zusammenarbeit im team
crm share point_effizientere zusammenarbeit im team
 
Apache con 2011 provisioning distributed os-gi applications in a cloud
Apache con 2011   provisioning distributed os-gi applications in a cloudApache con 2011   provisioning distributed os-gi applications in a cloud
Apache con 2011 provisioning distributed os-gi applications in a cloud
 
Tersigni Portfolio 2008 Landscape
Tersigni Portfolio 2008 LandscapeTersigni Portfolio 2008 Landscape
Tersigni Portfolio 2008 Landscape
 
COSE ESB Presentation
COSE ESB PresentationCOSE ESB Presentation
COSE ESB Presentation
 
Wsrm 12.12 fine line
Wsrm 12.12 fine lineWsrm 12.12 fine line
Wsrm 12.12 fine line
 
Prototype Your Startup
Prototype Your StartupPrototype Your Startup
Prototype Your Startup
 
Apache Portals Panel (ApacheCon US 2007)
Apache Portals Panel (ApacheCon US 2007)Apache Portals Panel (ApacheCon US 2007)
Apache Portals Panel (ApacheCon US 2007)
 
Apache Sanselan (ApacheCon US 2007 FFT)
Apache Sanselan (ApacheCon US 2007 FFT)Apache Sanselan (ApacheCon US 2007 FFT)
Apache Sanselan (ApacheCon US 2007 FFT)
 
Hubbard Ernest Presentation_2.1
Hubbard Ernest Presentation_2.1Hubbard Ernest Presentation_2.1
Hubbard Ernest Presentation_2.1
 
Introduction, Product Demo & Roadmap and Industry Analyst
Introduction, Product Demo & Roadmap and Industry AnalystIntroduction, Product Demo & Roadmap and Industry Analyst
Introduction, Product Demo & Roadmap and Industry Analyst
 

Similar a B04701012018

Design and analysis of operational transconductance amplifier using pspice
Design and analysis of operational transconductance amplifier using pspiceDesign and analysis of operational transconductance amplifier using pspice
Design and analysis of operational transconductance amplifier using pspiceeSAT Publishing House
 
Lv side distributed power factor correction system
Lv side distributed power factor correction systemLv side distributed power factor correction system
Lv side distributed power factor correction systemeSAT Publishing House
 
Emi lab manual_vthsem_ece
Emi lab manual_vthsem_eceEmi lab manual_vthsem_ece
Emi lab manual_vthsem_eceAshish Duvey
 
Application of Microcontroller in Transmitter Section of Wireless System
Application of Microcontroller in Transmitter Section of Wireless SystemApplication of Microcontroller in Transmitter Section of Wireless System
Application of Microcontroller in Transmitter Section of Wireless Systemijceronline
 
4. reading energy from piece fair energy meter by using esp8266
4. reading energy from piece fair energy meter by using esp82664. reading energy from piece fair energy meter by using esp8266
4. reading energy from piece fair energy meter by using esp8266k srikanth
 
Internship Report (VTOL) (2)
Internship Report (VTOL) (2)Internship Report (VTOL) (2)
Internship Report (VTOL) (2)Rishabh Prakash
 
Construction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar DasConstruction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar DasB.k. Das
 
Unit IV DA & AD Convertors and Phase Locked Loop
Unit IV  DA & AD Convertors and Phase Locked LoopUnit IV  DA & AD Convertors and Phase Locked Loop
Unit IV DA & AD Convertors and Phase Locked LoopDr.Raja R
 
IRJET- Remote Monitoring of Critical Parameters of HV Substation
IRJET-  	  Remote Monitoring of Critical Parameters of HV SubstationIRJET-  	  Remote Monitoring of Critical Parameters of HV Substation
IRJET- Remote Monitoring of Critical Parameters of HV SubstationIRJET Journal
 
Implementation for Controller to Unified Single Phase Power Flow Using Digita...
Implementation for Controller to Unified Single Phase Power Flow Using Digita...Implementation for Controller to Unified Single Phase Power Flow Using Digita...
Implementation for Controller to Unified Single Phase Power Flow Using Digita...IJERA Editor
 
Direct Digital Control
Direct Digital ControlDirect Digital Control
Direct Digital ControlIOSR Journals
 
Design and Performance Analysis of Power Factor Controller
Design and Performance Analysis of Power Factor ControllerDesign and Performance Analysis of Power Factor Controller
Design and Performance Analysis of Power Factor Controllerijtsrd
 
WIRELESS POWER THEFT MONITORING SYSTEM
WIRELESS POWER THEFT MONITORING SYSTEMWIRELESS POWER THEFT MONITORING SYSTEM
WIRELESS POWER THEFT MONITORING SYSTEMvivatechijri
 
Wireless monitoring and control for smart grid and home appliances
Wireless monitoring and control for smart grid and home appliancesWireless monitoring and control for smart grid and home appliances
Wireless monitoring and control for smart grid and home appliancesUmayal Saravana Selvan
 

Similar a B04701012018 (20)

Design and analysis of operational transconductance amplifier using pspice
Design and analysis of operational transconductance amplifier using pspiceDesign and analysis of operational transconductance amplifier using pspice
Design and analysis of operational transconductance amplifier using pspice
 
Lv side distributed power factor correction system
Lv side distributed power factor correction systemLv side distributed power factor correction system
Lv side distributed power factor correction system
 
Emi lab manual_vthsem_ece
Emi lab manual_vthsem_eceEmi lab manual_vthsem_ece
Emi lab manual_vthsem_ece
 
510 277-283
510 277-283510 277-283
510 277-283
 
Application of Microcontroller in Transmitter Section of Wireless System
Application of Microcontroller in Transmitter Section of Wireless SystemApplication of Microcontroller in Transmitter Section of Wireless System
Application of Microcontroller in Transmitter Section of Wireless System
 
4. reading energy from piece fair energy meter by using esp8266
4. reading energy from piece fair energy meter by using esp82664. reading energy from piece fair energy meter by using esp8266
4. reading energy from piece fair energy meter by using esp8266
 
Internship Report (VTOL) (2)
Internship Report (VTOL) (2)Internship Report (VTOL) (2)
Internship Report (VTOL) (2)
 
40120140501001
4012014050100140120140501001
40120140501001
 
C04111114
C04111114C04111114
C04111114
 
Electricity powerline new
Electricity powerline newElectricity powerline new
Electricity powerline new
 
40120140501001
4012014050100140120140501001
40120140501001
 
Construction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar DasConstruction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar Das
 
Unit IV DA & AD Convertors and Phase Locked Loop
Unit IV  DA & AD Convertors and Phase Locked LoopUnit IV  DA & AD Convertors and Phase Locked Loop
Unit IV DA & AD Convertors and Phase Locked Loop
 
IRJET- Remote Monitoring of Critical Parameters of HV Substation
IRJET-  	  Remote Monitoring of Critical Parameters of HV SubstationIRJET-  	  Remote Monitoring of Critical Parameters of HV Substation
IRJET- Remote Monitoring of Critical Parameters of HV Substation
 
An34236241
An34236241An34236241
An34236241
 
Implementation for Controller to Unified Single Phase Power Flow Using Digita...
Implementation for Controller to Unified Single Phase Power Flow Using Digita...Implementation for Controller to Unified Single Phase Power Flow Using Digita...
Implementation for Controller to Unified Single Phase Power Flow Using Digita...
 
Direct Digital Control
Direct Digital ControlDirect Digital Control
Direct Digital Control
 
Design and Performance Analysis of Power Factor Controller
Design and Performance Analysis of Power Factor ControllerDesign and Performance Analysis of Power Factor Controller
Design and Performance Analysis of Power Factor Controller
 
WIRELESS POWER THEFT MONITORING SYSTEM
WIRELESS POWER THEFT MONITORING SYSTEMWIRELESS POWER THEFT MONITORING SYSTEM
WIRELESS POWER THEFT MONITORING SYSTEM
 
Wireless monitoring and control for smart grid and home appliances
Wireless monitoring and control for smart grid and home appliancesWireless monitoring and control for smart grid and home appliances
Wireless monitoring and control for smart grid and home appliances
 

Último

AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMKumar Satyam
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)Samir Dash
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 

Último (20)

AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 

B04701012018

  • 1. ISSN (e): 2250 – 3005 || Vol, 04 || Issue, 7 || July – 2014 || International Journal of Computational Engineering Research (IJCER) www.ijceronline.com Open Access Journal Page 12 Microcontroller Based Active and Reactive Power Measurement Kareem A. Hamad B.Sc, M.Sc, Ph.D AL – Rafidain University College, Computer Communication Eng. Dept Baghdad – Iraq I. INTRODUCTION Rapid advances in the technology of solid state devices have provided many inexpensive and powerful means of implementation in the various fields of instrumentations, measurements, control….etc. thus measuring instruments, based on this new technology are replacing the conventional types of measuring equipment especially in the fields of electrical and electronics measurements. However, constant research and development are still bringing new, more flexible and simpler to use equipment. In the past many years many researchers have been able to provide good and accurate designs for the measurement of the electrical power digitally (Banks and Majithia 1976 [1], Filipski 1980 [2], Hafeth and Abdul-Karim 1984 [3], Ibrahim and Abdul-Karim 1984 [4], Prokic 1986 [5], Bascifti and Hatay 2010 [6]. Their attempts were based on different methods, e.g. using microprocessor, linear or non-linear ADC,…, etc. In this work a simple approach has been tried to realize active and reactive power digitally. This approach is based on the generation of three values by means of analog circuit, these values are proportional to Vm, Imcosø and Imsinø, thus multiplication by using microcontroller will result in Vm Imcosø, i.e. active power and Vm Imsinø, i.e. reactive power. II. PRINCIPLE OF OPERATION Consider a normal three wire power system, where voltage and current signals under steady-state conditions are of sinusoidal nature. Thus the instantaneous voltage v(t) and current i(t) are given as follows: Where Vm is the peak value of the line voltage, Im is the peak value of line current, and ø is the phase angle between line voltage and line current (leading or lagging).     (2)sin)( (1)sin    tIti ωtVv(t) m m ABSTRACT The work presented in this paper introduces a simple method for the measurement of active and reactive power digitally using microcontroller. Three signal values are generated, the first is proportional to the peak value (Vm) of the line voltage v(t), the second and third signals are proportional to the instantaneous values of the line current i(t) at the instants of v(t)=0 and v(t)=Vm, i.e. Imsinø and Imcosø respectively, where Im is the peak value of the line current and ø is the phase angle. These signals are inserted in to PIC16F877A by means of analog circuit. The active and reactive power are calculated by the algorithm written on the PIC16F877A. The calculated values by multiplications and digitization will provide a realizable and displayable form on LCD screen. Keywords: Microcontroller, Active and Reactive Power, Microcontroller, Measurements.
  • 2. Microcontroller Based Active… www.ijceronline.com Open Access Journal Page 13 Thus multiplication of eqns. (3) and (4) will give Vm Im cos ø, i.e. active power, and multiplication of eqns. (3) and (5) will give Vm Im sin ø, i.e. reactive power. III. HARDWARE DESCRIPTION The design aim is to monitor active and reactive power on LCD display continuously. The circuit diagram and corresponding timing waveforms of the system are shown in Figs. 2 and 3 respectively. The basic point in the proposed technique is to generate three values using ADC contained in the microcontroller; these values are proportional to Vm, Imcosø and Imsinø. This has been achieved by taking the ADC values from voltage and current signals at the instants of peak voltage Vm and 0 voltage, i.e. at the instant when the voltage signal crosses the zero line. To achieve this aim electronically. The current and voltage signals are acquired from the main AC line by using current transformer and potential transformer. The acquired voltage signal V1 is shifted 90o , squared V2 and reduced ON time with monostable V3. Both V1 and current signal I1 are read by the microcontroller, at the positive edge of V3, both signal values are taken, providing two components Vm and Imcosø. The two components if multiplied will result in (VmImcosø) a value proportional to the active power P. For the realization of reactive power, the same procedure is used except that the 90o phase shift is bypassed by using SPDT switch, thus the acquired current signal value is taken at the instant of zero voltage, producing value proportional to Imsinø. Thus multiplication will result in (Vm Imsinø) a value is proportional to reactive power Q. The required multiplication has been achieved with microcontroller PIC16F877A. The active and reactive power are calculated by the algorithm written on the PIC16F877A, the output of which is displayed on LCD accordingly.  2sin (3) then2,tat:(1)FigFrom      πIi(t) Vv(t) m m       (5)sin 0sin then0,tat (4)cos Iti Iti Ii(t) m m m         D7 14 D6 13 D5 12 D4 11 D3 10 D2 9 D1 8 D0 7 E 6 RW 5 RS 4 VSS 1 VDD 2 VEE 3 LCD1 LM016L 50% RV1 5K R2 10k RA0/AN0 2 RA1/AN1 3 RA2/AN2/VREF-/CVREF 4 RA4/T0CKI/C1OUT 6 RA5/AN4/SS/C2OUT 7 RE0/AN5/RD 8 RE1/AN6/WR 9 RE2/AN7/CS 10 OSC1/CLKIN 13 OSC2/CLKOUT 14 RC1/T1OSI/CCP2 16 RC2/CCP1 17 RC3/SCK/SCL 18 RD0/PSP0 19 RD1/PSP1 20 RB7/PGD 40 RB6/PGC 39 RB5 38 RB4 37 RB3/PGM 36 RB2 35 RB1 34 RB0/INT 33 RD7/PSP7 30 RD6/PSP6 29 RD5/PSP5 28 RD4/PSP4 27 RD3/PSP3 22 RD2/PSP2 21 RC7/RX/DT 26 RC6/TX/CK 25 RC5/SDO 24 RC4/SDI/SDA 23 RA3/AN3/VREF+ 5 RC0/T1OSO/T1CKI 15 MCLR/Vpp/THV 1 U1 PIC16F877A R1 1k C1 0.22uF R12 1k 3 2 6 74 15 U2 LM741 U2(V-) U2(V+) D4(A) 41% RV2 100k 3 2 6 74 15 U3 LM741 R3 1k D1 BZX284C5V1 CX 10 RX/CX 11 RINT 9 A1 3 A2 4 B 5 Q 6 Q 1 U4 74121 R8(1) R8 10k D3 1N4148 D3(A) R7 10k D2 1N4148 D2(A) SW2 SW-SPDT ? D4 1N4148 A B C D Fig (2) Schematic diagram of measuring system P Q
  • 3. Microcontroller Based Active… www.ijceronline.com Open Access Journal Page 14 PIC16F877A Microcontroller The PIC16F877A is a microcontroller from Microchip in a chip type of 40-pin DIP packages. The principal characteristics by which this PIC was used are: digital I/O ports, analog inputs, analog to digital converter of 10 or 8-bit resolution, serial communication USART, memory storage EEPROM [7]. The PIC16F877A, has programmed routines process or features, such as analog to digital conversion to get the values from the sensors, storage of historic data in the internal EEPROM when an alert happened generates a detection range of values which can determinate whether the system suffered acceleration that cause an alert [8]. The circuit used in this work operates of 20 MHz clock frequency and runs each instruction as fast as 200 ns. The program for the PIC16F877A microcontroller is written in Micro C and is compiled into Hex program. Microcontroller is programmed to calculate active and reactive power. The flow chart of this calculation in Hex is shown in Fig. 4. The input of the current and voltage signals are connected to pins 3,4 and 8 as shown in Figs. 5 (a) and 5 (b). IV. SOFTWARE COMPONENTS This section presents the software’s used in the design of the measuring system A. Micro C: Micro C is powerful, feature rich development tool for PIC micros. It designed to provide the programmer with the easiest possible for developing applications for embedded systems, without compromising performance or control [8]. B. Proteus 7 Professional: is an interactive system level simulator. Which combines mixed mode circuit simulation, micro-processor models and interactive component models to allow the simulation of complete micro-controller based designs [8]. V2 V2 t t t V1 V3 V3 t t (V1) Fig (3) Timing waveforms (I1)
  • 4. Microcontroller Based Active… www.ijceronline.com Open Access Journal Page 15 Read V1 & I1 Fig (4) Flowchart of active and reactive power measurement . Hex program Start Configure LCD port connections Configure ports directions Configure A / D converter Clear LCD V3 = 1 V1 = 0 V1 = Vm I1 = Imcosø Calculate & Calibrate P = Vm . Imcosø Calculate & Calibrate Q = Vm.Imsinø I1 = Imsinø Write I1,V1 & power on line 1 & values of I1,V1 & power on line 2 of LCD Y N Y N
  • 5. Microcontroller Based Active… www.ijceronline.com Open Access Journal Page 16 t v 5 4 3 2 1 0 (a) V1 V3 I1 t v 5 4 3 2 1 0 (b) Fig (5) The microcontroller inputs of the current and voltage signals (a) Active power. (b) Reactive power V1 V3 I1
  • 6. Microcontroller Based Active… www.ijceronline.com Open Access Journal Page 17 (a) Digital readout Line current (Amp) (b) Digital readout Fig (6) System linearity curves. (a): Active power. (b): Reactive power. Line current (Amp)
  • 7. Microcontroller Based Active… www.ijceronline.com Open Access Journal Page 18 IV. CONCLUSION The technique presented in this paper provides a very simple means for the digital measurement of active and reactive power. Which can be implemented in the various fields of industry and education. The circuit is designed to display active and reactive power of the load connected the network. Calculation process is achieved by PIC16F877A. This approach is so straight forward that the hardware is very simple. The system has been tested under different loading conditions using proteus simulator and has shown linear behavior under those conditions, as shown in Fig.6 (a) and (b) References [1] Banks, W., and Majithia, J.C., 1976, Microprocessors: Design and applications in digital instrumentation and control. IEEE Trans. on Instrumentation and Measurement, IM-25, No. 3. [2] Filipski, P., 1980, A new approach to reactive current and reactive power measurement in nonsinusoidal systems. IEEE Trans. on Instrument and Measurement, IM-29, No.4. [3] Hafeth, B. A., and Abdul-Karim, A. H., 1984, Digital power meter using non-linear ADC. International Journal of Electronics, 57,179-186. [4] Ibrahim, K. M., and Abdul-Karim, A. H., 1984, A novel phase measurement method. International Journal of Electronics, 56, 217- 221. [5] Prokik, D., 1986, A concept for measurement of electric power on the basis of Mass measurement, Rev. Roum. Phys. Tome, 31, 275-279. [6] Fatih B., and Omer F. H., 2010, Microcontroller-controlled reactive power measurement and saving circuit design for residences and small scale enterprises, Scientific Research and Essays Vol. 5(16), pp. 2312-2317. [7] Microchip 2001, PIC 16F87X Data Sheet, USA. [8] Basil A., 2012, Alerting system design using PIC16F877a for power distribution system, The 4th International Engineering Conference –Towards engineering of 21st century.