Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Energy Meter energy calculation from power

Status
Not open for further replies.

bobdxcool

Electrical
Joined
Apr 7, 2016
Messages
16
Location
IN
I have interfaced a smart energy meter IC (ADE7878) to a microcontroller. The datasheet of the IC can be found here, As per the datasheet, on page 50 total active power of each phase can be read from the registers AWATTHR, BWATTHR, and CWATTHR. My question is what parameters I should consider and formula I should use to calculate the kwh value ?
 
Try (AWATTHR+BWATTHR+CWATTHR)/1000

Bill
--------------------
"Why not the best?"
Jimmy Carter
 
Thanks for your reply. But the values given out of these registers are 32 bit. I was thinking how do I convert it to the actual value. I think there is some conversion factor.
 
As per the datasheet(page 58), PMAX = 33,516,139 = 0x1FF6A6B, the instantaneous power
computed when the ADC inputs are at full scale. So will dividing the value obtained from the register by Pmax give me the actual wh value ?
 
Sum the hex values for the period you are interested in (probably 1 h) and then divide by the scale factor. If you divide first, you will lose a lot of resolution.

I assume that your computer handles 64 bit unsigned, in that case there is ample room for the summation.

Gunnar Englund
--------------------------------------
Half full - Half empty? I don't mind. It's what in it that counts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top