As The Electrician noted you need to multiply them together simultaneously to get true RMS power. The reason is that your method doesn't take into account any phase shift between the voltage and the current caused by any reactive loads, which causes reactive power.Hi,
I am probably missing something obvious but i am looking to design a circuit to calculate true RMS power for an AC mains supply,
Would i be correct in saying the following would work,
1) Measure true RMS voltage for one complete cycle using resistor divider
2) Measure true RMS current for next cycle using Current Transformer
3) Multiply these values together to then give True RMS Power??
Thanks for the replies guys, really helpful, The only reason i was going to do this was that as far as i am aware the current transformer will introduce its own phase shift which will alter the true result, am i correct??
If so any ideas how to compensate for this phase shift caused by the CT?
When you say instantaneous voltage & current would taking the values say 500uS apart have any impact on a 50Hz AC reading?
Thanks again
That won't work since you still calculating the voltage and current independently, it doesn't account for any phase shift. You need to multiply the instantaneous voltage by the instantaneous current at each measurement point and then average the result of these multiplications as stated earlier. You don't need to square or take the square root of anything since volts times current equals real power at any point in time.So the way to go is as follows (correct me if im wrong)
1) start at zero crossing point of signal
2) Instantaneously measure voltage and current say 250 samples along one full cycle (is 250 cycles enough)
3) square all of the voltages and square all of the currents
4) add everything together
5) Square Route of the Result is true my true RMS Wattage??
The above sounds like a lot of work, what is the procedure to measure the average RMS, Is it just take the peak voltage of each and multiply by 0.707??
Is there any way to measure the RMS Wattage with a meter to see how accurate my circuit is??
You take sum of the squares when you are calculating the RMS voltage or RMS current. You don't do that when calculating instantaneous power.Everything i have previously read on true RMS states that i need to take all of the values, square them and square root of the sum of all of the values, but what you are saying makes sense alright, where does the square and square root come in??
When you say average the results do you mean add them all together and divide by the number of samples i took?
True RMS power is not a proper term. RMS really applies only to voltage or current, not a true or real power calculation. The three types of AC power are real(true), reactive, and apparent (average RMS voltage times average RMS current or the combination of the real and reactive).Is this method not the exact same as taking normal RMS??
Why do you want to do this? Multiplying the sample voltage by the sample current to get real power works for any type of waveform......................................
My last question that i am still getting confused with is if i want real power i sample the signal (say from a current transformer) at a high sample rate and square and square root the results to account for non Sine Waves (Switch Mode PSU) but what is the method then to get normal RMS (assuming i have a heater and an ideal Sine Wave??
True RMS and RMS are only different if you are talking about a voltmeter. Many voltmeters measure the average value of the voltage and display the RMS value by multiplying the average value by ratio of the RMS to Average value of a sine-wave (.707/.637 = 1.11). Thus they display the "true" RMS only for a sinewave. But if you are talking about waveforms in general, the calculated RMS value is the True RMS value.Sorry to confuse things, I suppose you just hear of RMS and True RMS, (Normal RMS is non true)
I have been looking at the Microhip MCP3901 and this looks like it would fit the bill perfectly,
Have you any bright advice to determine the phase shift between voltage and current to compensate? Is it really necessary to compensate for it if im only looking for between 2 & 5% accuracy??
Correct - but for best results do not do your steps in numerical order.
Take sample 1 of the voltage
Take sample 1 of the current
Take sample 2 of the voltage
Take sample 2 of the current
...
Take sample 250 of the voltage
Take sample 250 of the current.
You can actually work out the real power by multiplying voltage sample 'n' by current sample 'n'. The idea is that it W = V x I and as long as the time between measurments is very short (ideally simultaneous) the reading will be correct. Averaging them will help to give a more consistent reading. I think I'm right in saying if you ignore the polarity and treat everything as positive, you can ignore the squaring and square rooting stages which are only there to ensure all measurements are positive anyway. (because squaring either polarity gives a postive result)
Brian.
OK. We still have a failure to communicate. :???:
I agree that the current transformer should have negligible phase shift. Typically transformers have very little phase shift from input to output so I don't think you need to compensate for that.
As though I stated (but apparently I wasn't clear) you just multiply the voltage by the current of each sample individually, preserving the sign of each input and subsequent product value. Do not multiply and take the square root of any of the data at any time). Then you add that product (with its sign) to the previous product (it's not necessary to store all 250 products but you can if that's easier to do). When you have the sum of all the products then take the average. This gives the real power.
You can't ignore the signs and treat everything as positive as betwixt stated. If you do that you will be calculating the apparent power, not the real power. As I stated in post #13 "If the multiplied value is positive, the power is real and if the multiplied value is negative the power is reactive. The average of the sum of all those values is the net real power."
If you don't have a wattmeter to verify your measurements, than you would have to measure the voltage and current, and the phase shift between them with an oscilloscope. The calculate the power using the standard AC power equation.
Note that you must use isolation transformers for both the current and voltage measurement. It's very dangerous to measure either directly from the mains.
Is that all clearer now?
After re-reading your post #14 I realize that you did have it all correct. I though you were using the calculated values for RMS voltage and current to calculate the power, but you weren't.Yes that's fine, thanks for your help, I had not mentioned squaring for power calculation only for calculating RMS Voltage or RMS Current independantly,
You have been most patient, i am studying a little more on AC theory anyway before i finish this design and all will become clear
Thanks
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?