Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Power Factor Meter-how to detect leading or lagging PF

Status
Not open for further replies.

pete

Member level 2
Member level 2
Joined
Aug 21, 2005
Messages
48
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,785
power factor pic

Hi! Am trying to design a PIC-based power factor meter. My problem is how to detect which wave comes first. Say, I have two sine waves,one for voltage and the other for current. I can convert these 2 waves into pulses. How would the PIC detects which one of the two pulses comes first. I can get the difference in times to get the power factor but how would I know if the current leads the voltage or the other way around? That is, how would I know if the power factor is leading or lagging without knowing in advance the type of load.
Any help would be much appreciated.

Thanks a lot...
 

Davood Amerion

Advanced Member level 2
Advanced Member level 2
Joined
Mar 1, 2005
Messages
579
Helped
116
Reputation
232
Reaction score
24
Trophy points
1,298
Location
Persia
Activity points
6,345
power factor formula

it is simple,
in your program first read voltage sample, then current sample and measure time diffrence .
if (in 50Hz & 20mS period) diffrence was smaller than 5mS current lagged,
and if diffrence was 15mS-20mS first calculate (timeDiff - 20ms)
then you get what you want!
:D
 

pete

Member level 2
Member level 2
Joined
Aug 21, 2005
Messages
48
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,785
pic based power factor meter

"it is simple,
in your program first read voltage sample, then current sample and measure time diffrence .
if (in 50Hz & 20mS period) diffrence was smaller than 5mS current lagged,
and if diffrence was 15mS-20mS first calculate (timeDiff - 20ms)
then you get what you want!"

Can I generalized it?

For 50hz, sample first the voltage. Then let D be the time difference of voltage time minus current time. If D is less than or equal to 5ms, then current is lagging the voltage. If D is less than or equal to 15ms or if D is less than 20ms, then current is leading the voltage by 20ms minus D. I hope this is correct formula.

Any comments? Thanks...
 

glenjoy

Banned
Advanced Member level 3
Joined
Jan 1, 2004
Messages
962
Helped
72
Reputation
146
Reaction score
20
Trophy points
1,298
Location
Philippines
Activity points
0
lagging pf

The formula is only based on assuptions of data, chances are the data that will be gathered could be inconsistent and unreliable.
 

Davood Amerion

Advanced Member level 2
Advanced Member level 2
Joined
Mar 1, 2005
Messages
579
Helped
116
Reputation
232
Reaction score
24
Trophy points
1,298
Location
Persia
Activity points
6,345
pic power factor

For 50hz, sample first the voltage. Then let D be the time difference of voltage time minus current time. If D is less than or equal to 5ms, then current is lagging the voltage. If D is less than or equal to 15ms ...
note:
diffrence cannot be between 5...15mS!
:D
 

pete

Member level 2
Member level 2
Joined
Aug 21, 2005
Messages
48
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,785
lagging power factor formula

Davood Amerion said:
For 50hz, sample first the voltage. Then let D be the time difference of voltage time minus current time. If D is less than or equal to 5ms, then current is lagging the voltage. If D is less than or equal to 15ms ...
note:
diffrence cannot be between 5...15mS!
:D

You are correct. Putting in formula what I said:
If Δ is Vtime - Itime and f=50hz, then

Current lagging: Δ<=5ms
Current leading: 15ms<=Δ<20ms
 

lats

Full Member level 4
Full Member level 4
Joined
Oct 27, 2005
Messages
216
Helped
13
Reputation
26
Reaction score
6
Trophy points
1,298
Activity points
2,945
pf lagging

hi m also trying to build a power factor meter , i have designed the part of measuring pf but how to check whether its lagging or leading. i read the above replies but the doubt in my mind is why cannot the diffrence be between 5...15mS. m conceptually weak in this .please explain me in more detail.
 

pete

Member level 2
Member level 2
Joined
Aug 21, 2005
Messages
48
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,785
microcontroller power factor meter

Try to plot a single sine wave with the horizontal axis as time. Calibrate your time axis in milliseconds. One cycle is 1/50hz sec. Draw this in a clear transparent paper. One for the voltage colored blue and the other is for the current colored red. Try to superimpose the two transparencies.With the voltage stationary, move the current wave left to right a little. Then you will understand it.
 

Dicken

Newbie level 1
Newbie level 1
Joined
Sep 24, 2006
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,284
pic power factor measurement

Hi, i'm also do this project to.can you give me your zero crossing detector circuit?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top