Home Power Monitoring Hack 220
dvogt writes "You think your power bill is bad? I built a power monitoring system to monitor every circuit in my house with three second resolution for over a year. And while I had to rewire all my electrical to do it, I can now reconcile my electricity bill down to the penny... Of course when my wife figured out most of the bill was because of my computer gear I had to build her a dome, so reader beware!" From the article: "About a year ago I developed a web based power monitoring application for data centers. The application was designed to monitor thousands of individual branch circuits using current transducers at the breaker panels. Among other things, the data logging requirements were to provide one year of min/max/mean measurement data with one minute resolution per circuit. Since I had all the hardware for testing, I figured what better way to test things than to install it in my own home."
Another way to do it: read the meter (Score:5, Interesting)
If you're lucky enough to have the kind of electric meter with a blinking LED on it, you could do this much more simply. Also if I had to do this again I would ditch the op-amp circuit and feed the signal from the photo-resistor straight into the sound card and then do the filtering in software (if the photo-resistor is exposed to sunlight it can be a little tricky to tune using this circuit - software could be smarter).
Re:Another way to do it: read the meter (Score:4, Insightful)
On a side note: Imagine trying to convince the customer service rep on the phone that you rewired your house with a homemade power monitoring system and your monthly audits of your electrical usage uncovered the error...me thinks you'd have better luck convincing a Slashdot reader to install the WeatherBug...
Re:Another way to do it: read the meter (Score:4, Informative)
If you can read the wheel then you can test its accuracy. Just turn a known load on and off and measure the change.
You can do that with just a stop watch and some math.
Re:Another way to do it: read the meter (Score:2)
So, for many applications, your method works. But if you want to measure your average PC's power usage over a period for days.... ain't gonna happen.
Plus this IS slashdot. If it ain't a geek implementation, it ain't worth doing
Re:Another way to do it: read the meter (Score:3, Informative)
Typically speaking though, meters do not 'speed up.' With age, they slow down which does not work in the utility's favor, which is why they usually have a periodic meter replacement program, ie every 5 years.
I haven't ever sent out a service order on a meter that's ever tested too fast.
Many utility companies (like the one I work for) have automated metering, with meters transmitting at 917mhz ba
Re:Another way to do it: read the meter (Score:2)
Good hack. You can also get readings of the mains post-power-meter with nothing more than a couple of ferrite toriod cores and some resistor divider bridges, feeding voltage and induced voltage (which is proportional to current) into a sound card's mic and line in inputs. I have that working downstairs, though I haven't bothered to calibrate it.
The toriods can be split carefully with a chisel, and need 70 to 200 turns on them, evenly spaced. They might saturate, but that can be fixed either through usin
Re:Another way to do it: read the meter (Score:2, Funny)
1 minute resolution is not enough (Score:5, Interesting)
There are quite a few meters that measure RMS voltage and RMS current, (though most of the cheap ones actually measure peak values and multiply by
This is a common mistake to make for first year EE students and "over-unity" power converter proponants.
As I understand it, the Kill-A-Watt, http://www.professionalequipment.com/xq/ASP/Produ
*I know you need 2f according to nyquist to resolve the frequency, but I'm not sure what you need to gather the phase information**
** There are other ways to obtain the phase information involving bridge circuits and such, It does not appear that the boards in question provide that information.
Re:1 minute resolution is not enough (Score:2)
Well, he could sample 120 times a second, but then only keep one data point for each three seconds, with that one data point being calculated from the 360 readings taken before it. It could save a lot of disk space ...
And you've
Re:1 minute resolution is not enough (Score:3, Informative)
I did my undergrad thesis in home power metering, and used 2 different models of Brand power meters [brandelectronics.com]. They sample current and voltage at 4kHz to accurately measure true power factor (see their description [brandelectronics.com]). Single circuit "plug-through" meters are $150-350; the higher-end ones have computer connectivity and datalogging.
Another option for those interested in exploring home power use--and not ignoring power factor--is the Watt's Up? [promolife.com] meter (also plug-through, $100-150, with computer connectivity at the high-
Re:1 minute resolution is not enough (Score:5, Informative)
Here is a brief rundown and how it helps.
In DC Volts times Amps = Watts.
In AC Volta times Amps times Power factor = Watts.
Volts times Amps minus Watts = VAR's (Volt Amps Reactive) Power Factor is always between 0 and 1.0 and is either inductive or capacitive. 1.0 = no reactive current.
How does reactive power affect the power company?
Take for example an air conditioner. It's electric motor has windings that are inductive. The current is not directly in phase with the applied voltage. The current lags. The AC may draw 15 Amps, but on a 120 Volt circuit only consume 1200 Watts. 15 * 120 = 1800 Volt-Amps. 1200 Watts is the power used. 120 Volts * 15 Amps * 0.66667 PF = 1200 Watts. This leaves a component of 600 VAR's or 5 Amps of reactive current and a Power Factor of 0.66667 inductive. Drawing 5 Amps seems like no big deal to an end consumer. However for the power company, it means the transformer has an extra 5 amps as well as it's circuit breaker and wires. All wire has resiance. A current flowing in a wire will turn some of that voltage caused by the current to produce real Watts (heat) in the wire, transformer and circuit breakers. Your 5 Amps of 0 Watts costs the power company money to heat their lines and reduce their capicity.
Now the neat way to fix it. Capacitors don't heat (except for some small losses) Add some capacitors so the capacitive reactance = the inductive reactance on the line. In the above example 5 Amps is needed.
When done, the 5 Amps of capacitive reactance is out of phase with the inductive reactance by 180 degrees (90 degrees to the resitive load) and thus the 600 VAR's (5 Amps Inductive) from the AC is balanced with 600 VAR's (5 Amps Capacitive) from the capacitors. The nice thing is now the AC gets the current for the VAR's from the capacitors, not the power company. Now the AC uses only 10 Amps from the power company, not the 15 it used to. (The AC still draws 15 Amps, but the combined load of the AC and Capacitors is now 10 Amps and still 1200 Watts.) This is why the power company would like you to adjust your VAR's. If the power company tried to adjust it, (sometimes they do) by adding capacitors, then they may be unbalanced the other way (capacitive) when your AC shuts down but the capacitors don't.)
Re:1 minute resolution is not enough (Score:2)
Over simplified.
You're forgetting about linear vs non-linear loads (think capacitor input power supplies for the latter). I would guess the current waveform in a modern home will look pretty ugly.
The real way to do power monitoring is to sample the current at 4kSamples/sec as well as sample at least one of the voltage wavefforms. Data processing would be taking the average of the instaneous power and recording that average every few secon
Re:1 minute resolution is not enough (Score:5, Interesting)
I believe the 1 minute resolution was for the reported data and not the actual analog sampling rate. The 1 minute data may (should) be the RMS of the all the samples collected during that minute.
His device seems to be a prototype version of the Veris H663 [veris.com]. The released version of the device apparently samples at 1280Hz and reports data every second.
The "phase information" you mention is good to have, but only if the power is at just one frequency. The fact is that computers (as with most devices running of a switching power supply) draw current as a short pulse during the peaks of the input voltage waveform (with no phase angle between voltage and current at the fundamental frequency). Often the 60Hz component (or whatever the fundamental frequency) makes up only half the RMS current. And since these harmonics are only dominant in the current and not the voltage waveform, the real power consumed by a computer will typically be ~50% x RMScurrent x RMSvoltage (even though the phase angle is zero).
Re:1 minute resolution is not enough (Score:2)
The board may sample at a million hz and report data every second, but if he just takes average |V| and average |I|, the million hz is useless. If the board is calculating the power at every sample and reporting it to his machine, that's a different story altogether.
From my reading of TFA, it appeared he was only sampling and and multiplying them in his computer to determine the
over the interval. No mention is made of whether the board i
Re:1 minute resolution is not enough (Score:2)
You are wrong about the importance of the power factor. It is not even measured by the power companiesl; they ignore it in their billing. He cares about the bill, not some unmeasurable factor.
This is a common mistake to make for young scientists who fancy themselves engineers, electrical or otherwise.
Once upon a time, a young scientist learned of an home power monitor
Re:1 minute resolution is not enough (Score:2)
The same of course. Nyquist sampling allows for perfect reconstruction of ALL info, hence also phase info.
Re:1 minute resolution is not enough (Score:2)
Very nice... I was going to mention the Kill-A-Watt here if nobody else did.
I only have one ($30) and it's all I've ever needed. Plug it in to a device for a day/week/month and it will tell you exactly how much pow
Re:1 minute resolution is not enough (Score:2)
In other words, (Vrms*Irms)^2 = Pre^2 + Pim^2
It is not the real power.
the real power is equal to Vrms*Irms*cos(theta) where theta is the phase angle. between V and I.
You can also calculate the real power by the integrating square of the instantaneous product of V and I over one full cycle
Prms = 1/T*sqrt(int(t0->(t0+T),V(t)^2I(t)^2dt))
It appears from the article that he is measuring V and I (rms? average? sample? doesn't say) of one-minute intervals. Since he appears to be
re:Another way to do it: read the meter: + or - ? (Score:2)
If I could tell the direction, then I could take the difference between the solar generation and the amount of negative power usage on the meter. That would then be the actual energy usage.
LoB
Automatic Marriage Conflict Device (Score:4, Interesting)
NASA: Beats us [whattofix.com]
Re:Automatic Marriage Conflict Device (Score:2)
I've always said that two people who keep score lose...
Re:Automatic Marriage Conflict Device (Score:2)
Lights being left on wastes energy. Perhaps that room needs timed light switches that switch off automatically after 4 hours' time? Perhaps that room needs Compact Fluorescent Lamps instead of Incandescant in order to save power when they do get left on? Maybe both? It isn't about arguing over who is using more power, it's acknowledging
Does your home still meet safety codes? (Score:4, Insightful)
Most areas have municipal safety codes when it comes to stuff such as wiring. Are you sure your wiring is compliant with such standards? Has it been approved by your local building inspector?
Re:Does your home still meet safety codes? (Score:2)
Re:Does your home still meet safety codes? (Score:5, Insightful)
Perhaps his insurance company would not pay him if it was found that his uninspected electrical modifications were the cause of his house burning down, for instance.
Re:Does your home still meet safety codes? (Score:2)
Re:Does your home still meet safety codes? (Score:2)
I would have expected him to brag about how the local safety inspector was impressed by his system, or perhaps even how the safety inspector pointed out potential flaws that needed to be fixed. Indeed, I recall reading about neith
Re:Does your home still meet safety codes? (Score:2)
Re:Does your home still meet safety codes? (Score:3, Interesting)
Smart people aren't always knowledgeable about other fields. As in computers, there are ways to make it work that don't necessarily mean they're done correctly. I was almost zapped earlier this year because I was working on some wiring in my sister's basement that had been put up by a previous o
Oh my Lord. (Score:2)
Re:Does your home still meet safety codes? (Score:2)
In the US, at least. (The UK, for examlpe, never had this in homes). Of course, none of this applies to non-US
Re:Does your home still meet safety codes? (Score:5, Insightful)
I agree! Think of the dangers of brewing your own beer, working on your car, or even programming! Almost all viruses were programmed without any kind of government oversight.
There should be codes that are enforced by the governemnt that touch upon everything you can possibly do. To protect you, and others, from yourself.
Seriously, the codes are there to protect people from substandard wiring. But to insist that you have no right to modify the wiring in your own house is too "Big Brother" for me.
Re:Does your home still meet safety codes? (Score:3, Informative)
Indeed, the safety codes are there to protect people from substandard or faulty wiring. That is why he should have gotten the local inspector in to check on it, and to verify that the modifications he has made are safe. It's not only the financially prduent thing to do (ie. in terms of insurance and preventing the loss of his hard-earned property), it is also the socially responsible thing to do. Not on
Re:Does your home still meet safety codes? (Score:3, Interesting)
People make errors. That is why it is helpful to have other people check over your work, to make sure it was done correctly. In a case like this, that person could be the difference between a safe and useful modification to the existing power system and a house that burns down.
In your particular case the inspector did the right thing. He noticed a discrepancy, and he brought it up
Re:Does your home still meet safety codes? (Score:2, Insightful)
A second set of eyes never hurts.
Even if that were true, something not hurting and something being legally mandated are two very different things.
Re:Does your home still meet safety codes? (Score:3, Insightful)
Caveat emperor?
Re:Does your home still meet safety codes? (Score:3, Funny)
Caveat emperor?
I think that if an emperor were to buy your house, he could afford to perform his own inspections and rewiring.
Perhaps you meant "caveat emptor".
Re:Does your home still meet safety codes? (Score:2)
It's my right as an American to burn down my house if I want to. Besides, what's the difference between faulty wiring burning down my house and a carelessly discarded cigarette doing the same? Should inspectors come by your house every night to make sure you're not smoking in bed?
Re:Does your home still meet safety codes? (Score:2)
Re:Does your home still meet safety codes? (Score:2)
Re:Does your home still meet safety codes? (Score:2)
Re:Does your home still meet safety codes? (Score:3, Interesting)
SCREW THE CODES AND ANAL-RETENTIVE CODES INSPECTORS!
It's my house and my property I will do WHATEVER I want with it!
In fact I Do! I have added on about 40% to the size of my house since I moved in about 16 years ago. I have done much indoor and outdoor wiring as well as plumbing. Installed a pool and Solar heater, as well as miscellaneous outbuildings. ALL without one single permit or inspection. Granted I live in Tennessee where freedom is still more than ancient h
Re:Does your home still meet safety codes? (Score:3, Insightful)
Re:Does your home still meet safety codes? (Score:2)
As long as you choose to attach to the public electric grid (privately owned or not, there is public interest in its upkeep), you have to accept some level of oversight of the things you do in your house. For example, if you chose to use equipment that had a really bad power factor (i.e. voltage and current were out of phase), the power company could and would order you to adjust your load. Or, if your
Re:Does your home still meet safety codes? (Score:2)
I agree with you on codes - they are there to demonstrate good building practice and any smart person will consult them like a good reference book.
But inspections - these are for the municipality to justify their permitting process, which is really to increase their tax revenue.
The previous owners of my house were an old couple, by-the-books, they hired out everything and pulled e
Re:Does your home still meet safety codes? (Score:2)
Actually building codes are mainly intended to guard against shoddy work by contractors trying to save a few bucks. The only enforcement focuses on getting occupancy permits and the like. Most building departments don't worry too much about stuff like this.
I've done quite a bit of home electrical wiring, and I'm familiar with a lot of the code. It's mostly common sense stuff. While I can't speak for the
Re:Does your home still meet safety codes? (Score:2)
I would pay a licensed electrician for an hour of his time to come out and inspect the work. While he wouldn't 'officially' sign off on it, he would be able to point out any glaring safety issues or code violations.
Re:Does your home still meet safety codes? (Score:4, Insightful)
The current transducers are actually really small and they clip on to the wiring
The power monitoring system is not connected dsirectly to the wiring. It is using inductive sampling.
I serioisly doubt that having an inductive device near the conductor (outside the insulation) has any impact on the overall safety of his house's wiring.
Re:Does your home still meet safety codes? (Score:2)
It seems that he feels that he does know what he is doing.
As someone who has installed/replaced considerable amounts of home and industrial wiring, I don't see anything in what he wrote that is inconsistant with him "knowing what he is doing".
Seperation of High Voltage/Amperage from Low (Score:4, Informative)
Mounting an uncovered PCB (printed circuit board) that communicates with a computer within a 120 V distribution panel is a very big no-no. What if geek hubby is out of town and wifey experiences a power problem and calls in a yellow page electrician to fix the problem? In the worse case the "electrician" accidently drops a tool that winds up connecting 120 V to the computer circuits and starts a fire in the server room.
Building codes are designed as protection from stupidity - not only the stupidity of the the original builders but from the stupidity of those called in to fix problems.
To anybody who wants to do anything similar - it makes sense to put the current sensors in the distribution panel, but please rout them out to a seperate box that sends their info to a computer.
Re:Does your home still meet safety codes? (Score:3, Informative)
Well, I'm 99 and 44/100 % certain that he no longer has valid insurance coverage, even though he might think that he still does, and that the inspector would probably have a conniption fit if he ever actually saw that installation.
If he just went out and bought a new panelboard because it was rated for enough amperag
Re:Does your home still meet safety codes? (Score:2)
electrical bill now? (Score:5, Funny)
Re:electrical bill now? (Score:2, Funny)
server is already slow, I imagine the meter is spinning like a top right now...
It's not as bad as you think, he's just using his white-hot CPU for heating, cooking and lighting now.Re:electrical bill now? (Score:2)
His server isn't really doing anything.
From the article... (Score:2)
Uh, can someone say backfired? Women.
Re:From the article... (Score:2)
Re:From my knowledge.... (Score:2)
1) Is is magical, no it creates a samll load on the circuit
2) this can change the pwoer factor
3) the motor could be an induction motor
4) a change in power factor could change the efficiency of the motor causing it (or the wiring) to heat up more than usual.
Unlikely but it could make a difference.
Re:From my knowledge.... (Score:2)
Imagine a long run of conduit from a panel to a room. In the conduit are one netural and two hots, on opposite phases. In the room are two machines - one, on the first phase, draws 20 amps. The other, on the second phase, dra
Re:From my knowledge.... (Score:2)
Re:From the article... (Score:5, Funny)
I've been married for 28 years, largely by studiously avoiding that sort of behavior. I'm frankly surprised the guy is still alive, let alone still married.
Have to say (Score:5, Insightful)
That's an awesome attitude that we don't get enough of on slashdot these days :(
Re:Have to say (Score:3, Informative)
Re:Have to say (Score:2)
http://www.kondra.com/circuit/circuit.html [kondra.com]
p
Re:Have to say (Score:2)
Sounds like David posted to both places...which is well within his rights to do. Seems like it was interesting enough for both places to post.
Very cool, but a potentially dangerous area (Score:4, Insightful)
Dome? What dome? (Score:3, Funny)
His wife got ticked off, so to apologize he built her a ceiling dome (a recessed dome built into the ceiling, with a light fixture suspended from the peak). It looks nice.
Re:Dome? What dome? (Score:2)
Re:Dome? What dome? (Score:2)
Oh great.... (Score:3, Funny)
- Meter Reader
Network Power (Score:4, Funny)
Not necessary, use the TCP/IP stack for power (Score:3, Funny)
See RFC3251 [faqs.org], Electricity over TCP/IP. It's a very interesting read if you're not familiar with it.
Re:Not necessary, use the TCP/IP stack for power (Score:2)
coral cache links (Score:5, Informative)
The article on house wiring. http://www.kondra.com.nyud.net:8090/circuit/circui t.html [nyud.net]
Another popular article from the site on building a ceiling dome. http://www.kondra.com.nyud.net:8090/dome/dome.html [nyud.net]
Yeah (Score:5, Funny)
(ducks)
power monitoring (Score:3, Interesting)
Why not take this further? Instead of just monitoring let's modify the system so that we can turn circuits on and off remotely as well as being able to monitor usage. In fact why not wire the whole house so that the lights turn off automatically if there is no one in the room unless the system is manually overridden?
We all need to think about energy conservation and energy security which is a big part of our national security.
I would encourage everyone here to build a system with occupancy sensors so that lights, appliances and devices are not left on unnecessarily.
The occupancy sensor module could include PIR sensors, temperature/humidity sensors, smoke detector, CO detector, intrusion detector and perhaps a CCD camera all linked to a GNU/Linux system capable of controlling energy usage as well as calling the Police or Fire Dept. in case of an emergency.
Live long and prosper
Re:power monitoring (Score:3, Interesting)
Would require an entirely new protocol, to do bidirectional data. I've considered such, but it's doubtful that the things would have any mass market appeal. I'm thinking a board the size of a deck of cards. z80 cpu, 32k static ram, 32k eeprom. Tcp/ip stack, over daisy-chained serial. You'd have a single cat running from your computer to the first module, and then another chained off the first, etc. Could even do power over the cat5, reduce wirepulling.
Now, put 3 or 4
Shunt Trips, Contactors, Opinion and CircuitView (Score:2)
This is already possible. Many breakers can be bought with a shunt trip mechanism. Essentially, you provide a small current into the shunt trip, and it will cause the breaker to trip. So yes, you can turn the power off. If you want to turn it back on, you have to walk over to the panel.
Are there breakers with two shunt trips, one to turn it on, another to turn it
Re:power monitoring (Score:2)
You've clearly never tried to do this, because it is massively difficult.
Nobody would ever suggest doing this for a private home, because the huge cost, time, hassle, and minor savings aren't worth it. (A large office building is a different case.)
If you want to save energy, use (good) fluorescent light bulbs instead. They use as little as 1/10th as much power, an
Holy crap! (Score:4, Insightful)
Try designing an entire power network (off-grid) (Score:3, Interesting)
http://www.equalccw.com/wiringdiagram.gif/ [equalccw.com]
This is all going into the older motorhome I'm renovating
Every watt going into and out of that monster 650lb battery (all $1800 worth) will be measured by the Bogart Engineering "Trimetric" device. It sits in-line with the battery negative terminal.
http://bogartengineering.com/trimetric.htm/ [bogartengineering.com]
The solar charge controller has it's own measuring system as does the inverter/charger but those can be mostly ignored - it's the Trimetric that matters.
Note: "inverters" take 12v DC (or 24v or whatever size battery bank you're running) and convert that to 110v wall juice. Good ones deliver "pure sine wave" power like a very clean electrical outlet. An "inverter charger with pass-through" like my Outback 2812 will take any amount of incoming AC (utility grid, generator, whatever) and pass it through while also charging the battery at 12v in my case. When the utility grid or generator is cut off, it works in reverse, delivering 110v from the battery bank.
My main inverter is this sort of inverter/charger. My secondary inverter is "just an inverter" and smaller at 1100watt, but it's completely isolated from what's going on at the other inverter - a major load like air conditioning or the washer/dryer combo can spectacularly puke and die over on the 2800w main inverter and it'll cause not a single glitchy on the 1100 inverter powering the computer gear, satellite internet, etc.
Anyways. If I wanted to monitor all this with a PC I'd get the Bogart "Pentametric" with PC interface:
http://bogartengineering.com/pentametric.htm/ [bogartengineering.com]
Re:Try designing an entire power network (off-grid (Score:2)
http://www.equalccw.com/wiringdiagram.gif [equalccw.com]
Rating houses (Score:2)
I saw this the other day.... (Score:3, Interesting)
Neat idea for Saving Power (Score:2)
I've significantly used my electricity costs over the past year just by changing my habits. This guy [blogspot.com] went a bit further and saved even way more than I did. Impressive.
mandatory wtf.... (Score:4, Funny)
Software: Zero dollars
Linux box: Zero dollars
Explaining to your wife that after hours of development you've built a device that proves the most power hungry appliance in your house is the damn power monitoring system itself: Priceless
Sadly your "how to" link is broken (Score:2)
This is one of the coolest things I have ever seen (Score:2)
I would love to see screenshots of the effect. (Score:3, Insightful)
Re:Already slashdotted (Score:3, Informative)
Re:SAD TWAT (Score:3, Insightful)
So assuming he did it to try and save money, after all what is any other point of doing it...
Maybe he did because he was interested in doing it? Which would make him a fairly clever bastard; because I'm sure there are more people who would criticize's another interest than actually do the work (the interesting part?) themselves.
Re:SAD TWAT (Score:2)
Sounds like a clever ba
Money isn't a problem for him. (Score:3, Informative)
From the article:
"About nine months ago the motor overheated on our dryer while the house cleaner was here. I asked her how many loads of landry she had done that morning and she said three. I took her back to my office and fired up the software and told her she had done four and wow, there was a significant current surge when the motor gave out. She was also not particularly impressed and she now asks me every time she wants to use something in the house (no
Re:Money isn't a problem for him. (Score:2)
Re:Money isn't a problem for him. (Score:2)
Re:Joists (a little OT - about dome)? (Score:2)
Re:Joists (a little OT - about dome)? (Score:2)
The buyer's inspector was claiming this counted as something like 5-10k damage as it violated the engineering plans/inspections/whatever for the house. God knows what my real estate agent did about it, but that number dwarfs the 50$ cost of the dome mentioned in the art
Re:Power Monitoring is cool, but... (Score:2)
you're credited for your excess and you can consume
it in proxy as dirty-power later.
Re:Is there a difference between... (Score:2)
Re:Ooops, something STOPPED running! (Score:2)