mmitton
Newbie
- Joined
- May 24, 2012
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- South Africa
- Activity points
- 1,353
Thank you for your reply,The question title is misleading, it asks about current measurement but you apparently want to determine consumed real power.
You see that LED power supply current is distorted, there's displacement plus distortion power factor in effect. Respectively a current measurement alone, no matter if true RMS or not can derive the power consumption. You need to perform true power measurement, average(I*U).
Why "samples -1"?find the mean (divide by number of samples -1)
its a statistical thingHi,
Why "samples -1"?
Klaus
...makes absolutley no sense to me.its a statistical thing
if you have 1000 samples, there is no difference between dividing by 1000 or 999
if you have 10 samples, dividing by 9 is different than dividing by 10 - it makes the result a little bigger by accounting for the relatively small number of samples
Keep in mind: (to avoid ripple) the "averaging window size" should be in integer multiple of the period time.then do a running average of the multiplied values to get the average real (RMS) power.
Yes, your statement is clear, but unfortunately the method doesn't work to evaluate real power, which is apparently your final target.The question title is clear, we wish to measure current.
I made reference to what we are trying to accomplish overall, measure power, but step 1 is getting a current reading we can trust.
Step 1 is to convert the ADC reading from the CT to a current value that is consistent with a Digital Multimeter (DMM) or within a small margin of error.
no...makes absolutley no sense to me.
There always is a differnce: for 10 samples the difference is 10%, for 100 samples the difference is 1%, for 1000 samples the difference is 0.1%..
I mean we don´t do a statistical estimation, we do a physically and mathematically correct measurement and calculation.
Usuing the correct number is mathematically correct. Independent of absolute sample count. It works for 1, 2, 10, 100 , 1000....
Can you provide a link to a site where I can read about the "-1" thing? I want to learn what´s behind this idea.
Klaus
added:
Keep in mind: (to avoid ripple) the "averaging window size" should be in integer multiple of the period time.
--- Updated ---
added:
@wwfeldman:
From statistics course (decades ago) I know the method to omit the most extreme value when estimating the average on spot checks.
So of 100 values (omit the most extreme one) you just add 99 values up ... then divide them by 99.
Is this what you mean?
Klaus
With a running average there is no specific "averaging window size".Keep in mind: (to avoid ripple) the "averaging window size" should be in integer multiple of the period time.
I can't agree.With a running average there is no specific "averaging window size".
With a running average there most certainly is an "averaging window size". That's how a running average works: you average the samples within a certain window size (i.e., number of samples) and then move the position of the window for each subsequent average.With a running average there is no specific "averaging window size".
It acts like an RC low-pass filter and you just make the running average with a long enough "time-constant" to give the ripple value you need
Not the way I do it, but perhaps this is not called a "running average", although it acts the same as an RC low-pass filter running averager.. That's how a running average works: you average the samples within a certain window size (i.e., number of samples) and then move the position of the window for each subsequent average.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?