# SensingPower

You know how to calculate the RMS power based on a series of (above 0) samples from an AC input? I could simply note the peak value (say, 3V) and calculate it's RMS (3V * 0,7 = 2.1V, IIRC). But this assume the input is a perfect sine, and maybe it's no true.

Harold Hallikainen replies:

Square each sample as it comes in (resulting in a 16 bit number), add up 256 of the squared samples (24 bit result), divide by 256 (back to 16 bit), then take the square root (back to 8 bit).

Note: Utility companys do NOT measure of the amount of energy delivered. They charge you as if all phases were delivering the same amount of power. If all your energy comes through one phase (because you have thing plugged into the breaker box in an unbalanced manner) then you will be billed the same as if ALL phases had that much power coming through them. Get an electrician to visit your house and ask them to check the balance of your phases and move circuits around accordingly.

Questions:

I have been looking high and low on the Internet for information on how to calculate the average current in an MCU-based circuit. I have an app note from Microchip on the subject, but it only shows the battery life computation after average current is known. Can someone please explain to me how to compute average current on an I/O pin? As an easy example, let's say that Vdd is +4.5VDC, and the pin fires 8 40kHz square pulses through a load of 2KOhms. Also, what is duty cycle and does it have an effect on average current? Thanks for your help.
+

Archive:

 file: /Techref/io/sensor/power.htm, 2KB, , updated: 2004/10/12 22:23, local time: 2021/12/2 17:20, TOP NEW HELP FIND:  54.234.191.202:LOG IN

 ©2021 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?Please DO link to this page! Digg it! / MAKE! Sensing Power

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
 Did you find what you needed? "No. I'm looking for: " "No. Take me to the search page." "No. Take me to the top so I can drill down by catagory" "No. I'm willing to pay for help, please refer me to a qualified consultant" "No. But I'm interested. me at when this page is expanded."

 PICList 2021 contributors: o List host: MIT, Site host massmind.org, Top posters @20211202 Neil, Harold Hallikainen, Alan Pearce, RussellMc, Bob Blick, Allen Mulvey, Justin Richards, Dwayne Reid, madscientistatlarge, Sean Breheny, * Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr.

.