Measuring AC parameters digitally - Basics
Measuring AC parameters digitally - Basics
(OP)
AC voltage applied to a non linear load. Using a DSP processor, I digitize the resulting voltage and current along several periods (100 samples per period) and detect zero crossings, so I can calculate:
a) Vrms, by squaring each sample, summing all of them, taking its average and finally taking the square root of thatt average.
b) Irms, following same procedure as above.
c) Vrms times Irms = ???
d) Independent of the above, I multiply each sampled voltage - current pair. ( V*I) , add them succesively and find the average dividing by the number of pair of samples taken.
e) Measuring the time difference between both zero crossings I calculate how many electrical degrees the phase difference is. I asume> 1 full cycle = 360º.
---------------------------------------------------------------------
With the power diagram (or power triangle) in mind, composed by the three vectors: real power, apparent power and reactive power, my questions:
1 - The value obtained in c), is it real power or apparent power?
2 - The value obtained in d) is the average power which may be correlated to what vector in the triangle?
3 - What approach is better to get cos fi?: taking the cosine of the value obtained in e) or dividing somehow the values c) / d)?, or d) / c)?
As you can see I need help in basics of something that is far from my knowledge.
Please try to reply following the order of my questions. I will really appreciate that.
Please keep in mind we are talking non-linear voltages/currents.
I have been reading largely on this subject. The Google stage was exhausted already.
Sorry for the long posting. Gracias for any help.
a) Vrms, by squaring each sample, summing all of them, taking its average and finally taking the square root of thatt average.
b) Irms, following same procedure as above.
c) Vrms times Irms = ???
d) Independent of the above, I multiply each sampled voltage - current pair. ( V*I) , add them succesively and find the average dividing by the number of pair of samples taken.
e) Measuring the time difference between both zero crossings I calculate how many electrical degrees the phase difference is. I asume> 1 full cycle = 360º.
---------------------------------------------------------------------
With the power diagram (or power triangle) in mind, composed by the three vectors: real power, apparent power and reactive power, my questions:
1 - The value obtained in c), is it real power or apparent power?
2 - The value obtained in d) is the average power which may be correlated to what vector in the triangle?
3 - What approach is better to get cos fi?: taking the cosine of the value obtained in e) or dividing somehow the values c) / d)?, or d) / c)?
As you can see I need help in basics of something that is far from my knowledge.
Please try to reply following the order of my questions. I will really appreciate that.
Please keep in mind we are talking non-linear voltages/currents.
I have been reading largely on this subject. The Google stage was exhausted already.
Sorry for the long posting. Gracias for any help.
Agustín Tomás






RE: Measuring AC parameters digitally - Basics
Is the voltage sinusoidal? If so there is a good simplification possible:
Vrms * Irms = Apparent Power
Apparent Power = Real Power * Displacement Power Factor * Distortion Power Factor
Distortion Power Factor = Ifundamental/Irms
Displacement power factor = cos(theta) where theta is angle between Ifundamental and V.
If voltage is sinusoidal than you need a more general approach. Average power is <p(t)>
"1 - The value obtained in c), is it real power or apparent power?" - Definitely not real. Possibly apparent.
"2 - The value obtained in d) is the average power which may be correlated to what vector in the triangle?" If we accept the assumption voltage is sinusoidal, then you have a triangle where the horizontal component is real power, the vertical component is imaginary power, and the hypoteneuse is real power / displacementPowerFactor which is not quite apparent power in this general case where harmonics are allowed.
"3 - What approach is better to get cos fi?:" I assume your fi (phi?) is the same as my theta. If you want to calculate it, then you need to take a fourier transform of your current to isolate the fundamental component.
=====================================
Eng-tips forums: The best place on the web for engineering discussions.
RE: Measuring AC parameters digitally - Basics
"If voltage is NOT sinusoidal than you need a more general approach. Average power is <p(t)>"
=====================================
Eng-tips forums: The best place on the web for engineering discussions.
RE: Measuring AC parameters digitally - Basics
=====================================
Eng-tips forums: The best place on the web for engineering discussions.
RE: Measuring AC parameters digitally - Basics
A better approach would be to use a discrete fast fourier transform to obtain the fundamental and harmonic components of the voltage and current. Then as ElectricPete pointed out, the displacement power factor can be determined by the fundamental components. The distortion power factor can then be determined by ElectricPete's relation between apparent power, real power, displacement power factor and distortion power factor.
c) Vrms times Irms = apparent power (VA)
RE: Measuring AC parameters digitally - Basics
Does your system take simultaneous readings?
Keith Cress
Flamin Systems, Inc.- http://www.flaminsystems.com
RE: Measuring AC parameters digitally - Basics
100 samples per period (mains cycle?) instinctively feels too low a sampling rate to accurately digitise the higher harmonics. Can you speed it up if necessary?
----------------------------------
I don't suffer from insanity. I enjoy it...
RE: Measuring AC parameters digitally - Basics
Keith Cress
Flamin Systems, Inc.- http://www.flaminsystems.com
RE: Measuring AC parameters digitally - Basics
RE: Measuring AC parameters digitally - Basics
----------------------------------
I don't suffer from insanity. I enjoy it...
RE: Measuring AC parameters digitally - Basics
Thanks to you all!!
Just to reply some of the questions:
a - Yes, I expect voltage essentially sinusoidal. Non-liner is the load. Sorry for the confusion.
b - Yes, I can increase a lot the number of samples/sec.
c - Readings are not simultaneous but consecutives and one of the parameters, V (or I for the case) would be the average of both (before/after). Have read that is a reasonable alternative.
After reading so many answers and the formulas used to calculate the parameters of interest (Voltech manual) I have now a much more clear idea about this. But, been honest I should devote more time and effort to understand all what's related with harmonics and its consequences.
I am happy of having asked in this forum.
Agustín Tomás