Home Power Monitoring Hack
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."
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).
NASA: Beats us
"while I had to rewire all my electrical to do it"
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?
Cyric Zndovzny at your service.
great, you do all this to minimize your bill, then post on slashdot?!?! server is already slow, I imagine the meter is spinning like a top right now...
"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 (not a good thing)."
Uh, can someone say backfired? Women.
That's an awesome attitude that we don't get enough of on slashdot these days :(
Unpretentious Sydney reviews by unqualified Sydney reviewers
The screenshots of the monitoring software in use and everything make this seem extremely cool, but the potential risks seem huge. Obviously from the article this guy has done this kind of thing for work and had all the right equipment. I'd hate to see the results of someone lacking these vital elements 'hacking' their mains power system to get pretty graphs. The website says as much in its disclaimers too.
Business Voyeur
He'll know exactly what his electric bills will be after this slashdotting!
AMEN BROTHER!
Informative, informative ...
I just read an article (in french) ( Subversiv ) about "information" ...
There is a very interesting example in it : In the bible (Genesis, IX, 20-25), Cham, son of Noe, found his father drunk and naked. Instead of helping him wearing clothes and go to bed, the son told it to his brothers.
It was the first journalist, and he was doomed for that ! ...
Informative you said ?
--
With the server already grinding to a halt and the "dome" left unexplained in the summary (is it some sort of euphemism?), I'll spoil the ending:
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.
I would love to see screenshots from the program he is using showing the power consumption of his web servers during this slashdotting. Indeed, it would be beneficial to know more about his hardware setup, too. It would be very interesting to correlate the number of hits/minute with the minute-by-minute power usage of his server(s).
Cyric Zndovzny at your service.
Looks like his server just doesn't have the power. Ha-Ha!
Mirror, anyone?
FTA - f**k the article?..
another piece of hardware looking to kill the meter reading industry!
- Meter Reader
Seems to me that this kind of application should be integrated with "Power Over Ethernet" (PoE). Since every node on the network gets its power from the network, the adapter should collect this kind of data, perhaps in an embedded device with its own IP#. The same design logic for DC PoE seems like it should be true about AC "BPL", Broadband over Power Lines. In fact, those power/packet sockets should have cheap little embedded devices that not only report power consumption, but allow control of it via TCP/IP. Isn't there such a network/power platform available COTS?
--
make install -not war
The article on house wiring. http://www.kondra.com.nyud.net:8090/circuit/circui t.html
Another popular article from the site on building a ceiling dome. http://www.kondra.com.nyud.net:8090/dome/dome.html
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.
The Luddites were ahead of their time.
You don't mess with a woman with a Power Management System...
(ducks)
It doesn't look like money matters much to him.
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 (not a good thing)."www.kondra.com
If he can afford to hire a housecleaner (one who does his laundry, not just clean the floors and bathrooms), then some wiring is the least of his financial worries.
Cyric Zndovzny at your service.
slash attack monitor.
by TheSpoom (715771) Uncaring Linux user here. I have nothing to add to this but please continue. *munches popcorn*
Geeks unite!
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
Or you could look on MirrorDot (1st level of links cached only):
Linky.
Building a pimp power monitoring tool: cool
Getting your story posted: swell
Slashdotting your own DSL line: priceless
Quack, quack.
For that matter, how could he screw up the circuit in such a way as to blow the motor without blowing it up immediately? You sure can't wire the circuit to 220 volts without doing something very funny with the common wire.
IAAEE, and I've also wired my share of panels. I want to see what you have to say to justify this strange claim of yours. (And whoever modded you "Interesting" needs a clue - I'm only posting AC because I was forced to mod you "Overrated" and I'm not about to cancel it.)
Power over Ethernet is not necessary, use the electricity in the TCP/IP connectivity.
See RFC3251, Electricity over TCP/IP. It's a very interesting read if you're not familiar with it.
In fact he must sample at greater than 120hz* to get meaningful results. He has neglected the possibility that voltage and current can and will be out of phase for each of the loads in his house. Without determining the phase difference, there is no way to accurately deterimne the average power over any interval.
.707), there are fewer still that accurately resolve power factor
c tID.3375/id.5/subID.57/qx/default.htm makes a pretty good approximation. In fact, it even does the integration for you. You could pepper every outlet with these things or just move them around as needed.
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.
Can you be Even More Awesome?!
Power monitoring is cool and all, but power consumption in my house was pretty obvious to start out with. And I was the one that got fed up with the bills before my wife did. The answer was pretty simple for me. Throw out all the geek toy rack mount servers, and replace them with a couple Mac minis for the bare necessities, and give up the rest. (Bare necessities is, of course, a very relative word in this case.)
;-) Since I'm planning to move out to the boonies next year, I'm in the planning phase for this one. Unfortunately, I found out that the battery banks totally suck, and would much prefer to use hydrogen batteries (that is, electrolysis creating hydrogen and storing it for later usage in a fuel cell) but unfortunately it's not a cost viable option at the time...
My power bill has substantially dropped, partially because of the lower server power consumption, but more importantly because of two major factors;
1: Lower power consumption from air conditioner (Less heat dissipated from the servers)
2: Lower power consumption from the servers satisfied me to remove the UPS (which, for those not in the know, are power monsters!) since the lower overall power consumption has eliminated the dangers of a power cuircuit shutting off when my wife accidentally turns on both the clothes dryer and microwave at the same time. (I live in Tokyo, and am pretty confident saying that ALL power outages are entirely my own fault... The power doesn't just go out for any random reason, including lightning.)
To me, a much more fun project is going entirely off grid with wind turbines. Just add more wind turbines if you want more power.
I dunno about you, but here in urban Ontario electricity is the most expensive bill lots of us have.
Surely the next news item has to be "slashdot editor reads TFA"!
That's a whole 'nuther thing.
:).
...but...why? :)
http://www.equalccw.com/wiringdiagram.gif/
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/
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/
>I dunno about you, but here in urban Ontario electricity is the most expensive bill lots of us have.
No, Ontario has (give or take a penny) the cheapest electricity in all of North America at less than 5 cents per kW. In many places in the US the cost exceeds 15 cents per kW, such as California. If you disbelieve me, I encourage you to consult with google. Electricity in Ontario is still so cheap it takes several years for those "energy saver" light bulbs to actually make you money (In some cases it's just cheaper to stick with a regular light bulb because electricity is that cheap here).
You can thank the previous Mike Harris government for the low prices due to a proper privitization of our electrical grid. If you think otherwise, refer to my above paragraph.
Sigh...remove the "/" on the first link...sorry.
http://www.equalccw.com/wiringdiagram.gif
It would be kind of interesting to rate housing/apartments by power cleanliness.
Any program relying on (nontrivial) preemptive multithreading will be buggy.
This is what I call a dome http://en.wikipedia.org/wiki/Pantheon%2C_Rome/
Manitoba pays 5 cents per kW hour with a public electricity system.
Maybe I was just burnt too hard on the Alek's Christmas Lights scam, but this description reads like a hoax to me.
I saw this the other day as a reference from Make magazine. I looked into the hardware and that circuit monitor alone is over $2000 USD. Be aware that this setup is quite costly. Notice the update on the first page that says he is trying to get the company to provide a lower cost version.
mp3's are only for those with bad memories
It would be great if appliances and lamps summed up their own electricity usage over time. All that electricity comes to us by giving a ton of cash to those people who'd prefer to bomb us or raise our oil prices. Minimizing electricity usage is a good idea.
I've significantly used my electricity costs over the past year just by changing my habits. This guy went a bit further and saved even way more than I did. Impressive.
I think I would rather consult the bills of me and my acquaintances than google in this case.
Great, then they could have a beatiful view of their ATTIC.
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 what he's saying is that if anyone needs her she'll be in the angry dome?
...the meter and the collected data?
I'm interested in any discrepencies and did not find the information in the article.
I can see doing this if I don't have to pull my panel apart.
Looks like he did that for space reasons.
Do the transducers have to be so close to the breaker?
Can you install them on the outside of the panel?
Anyway, great job.
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.
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 off? I have not seen them, but they might exist.
Another solution would be to put a bistable AC contactor in series with breaker. Then you could energize the contactor to turn power off and on each individual circuit without using the breaker.
Most slashdotters could use a trip to a power plant or an electrical utility. After seeing battery chargers the size of refridgerators, it would help put the piddling amount of AC trickling through house plugs into perspective.
Incidentally, that software looks amazing. I want to wire my house now, just to watch my power consumption graphs wiggle by in real time. With help of a close personal friend (Google), I was able to find the company, called TrendPoint which makes CircuitView.
"I agree! Think of the dangers of brewing your own beer"
And you give it to others and they get sick, or die.
"working on your car"
And those modifications cause your car to kareen out of control, hurting and killing others.
"or even programming! Almost all viruses were programmed without any kind of government oversight."
And intentionally released to cause mischief.
The rules are there to protect others. If you (and others) could keep the results of your "experiments" to yourself? Then there would be no need for the rules. Unfortunately the majority lack that kind of foresight. So society has to do the next best thing. Yea! Living in a society really cramps an individualists style. That's why most live out in the middle of nowere, and become hermits. Answerable to no one, and if they fuck-up? So what?
Let's kill everyone that doesn't vote for the government! Bloody individualists.
Ok, I know it's a little OT, but on the ceiling dome, how did he compensate for cutting away the joists? I don't know anything about construction except a few kind of half-baked projects of my own, but how to you compensate for something like that?
I know he propped the ceiling *while* he cut them away, but what about after?
"If you can learn how to write the programming code to interface with power monitoring devices you can master the friggin electrical code! "
That's OK. I have here my Learn how to work in IT in 24 Hours book, and I'm looking for a Dot Com job.
"I had every wire neatly placed in the panel, correctly sized, etc. This is not rocket science. But you know what the inspector question? A GFI breaker in the panel was not clearly mark as to what brand it was. He claimed that not being the same brand as the panel mfg it was not 'right'. BS, not only is he wrong, but when I pulled the breaker out I showed him it was in fact a Cutler Hammer, same as the panel. "
My code looks neat. Looks like it came right out of the book. Not sure about all the 'why's', but it does work.
"So much for intelligent inspectors."
Good thing IT walked away from that Dot boom with its reputation intact.
But how would you tell if your meter is going backwards or forward? ;-) Great hack but it won't work for systems with grid tied solar electric systems. It's too bad because I liked that your system actually reads the power companies measured usage.
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
"Anyone who stands out in the middle of a road looks like roadkill to me." --Linus
Hardware: Zero dollars
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
I am not expert on the details of various building codes, but I am familiar with the intent of electrical codes that try to prevent high voltage/amperage wiring from being in the same enclosure as low stuff. For example, codes encourage 120 V wiring to run through conduits but prohibit running low power lines (such as phone) to run through the same conduits. Why? Because some stupid accident might cause the wires to become cross connected and blow out devices or start a fire.
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.
This is pretty cool... it'd be interesting to have graphs like this for my own home, and might even encourage conservation if I could see how much each thing was using. Too bad it's only of achedemic interest (I'm not about to go and install this, but it's impressive what this guy has done).
One thing I'm kinda puzzled about is the resolution of the graphs. If the hardware has a 3 second resolution, why only take averages at 1 minute fixed intervals? A shifting average (like in this experiment of mine) would make for prettier graphs and I doubt it would take much computation power (and might even reveal details that would otherwise go unnoticed).
I noticed that the graphs shown in the article don't even have a 1 minute resolution; for some reason they are limited to a 4 minute resolution. Seems silly to have such fine measurement resolution and throw it away in the graphs. :-\
Results in a 404. /. effect already?
That is sickening what you encountered in your sister's home. Indeed, I hope the future owners of this particular fellow's home do not fall victim to his electrical hackery.
Cyric Zndovzny at your service.
"ou pull your house off of the grid, and you can do whatever you want to with the wiring in your house.
"
Well, no. Your connection to the grid has nothing to do with electrical codes, zoning laws, inspections, building permits, etc. Those rules are all established by your local despotic government. The more despotic, the more the rules. The more unionized the area, the less likely you are going to be able to do any work other than plug in a UL certified extension cord in your own domicile.
Oh, and the 'safety codes' ? They come from the Insurance Industry, NOT government or the Electrical Power industry. Governments can choose to accept the codes or not. Or take the code and then add all kinds of spiffy crap to it to make sure their idiot brother-in-law who invented the lefthanded wattsamatteru switch gets money out of the deal.
Just thought you oughta know, before you go and do something that will get your house condemned.
Electricity costs 18 cents a kilowatt hour in New York City.
An alarm that can detect when something ISN'T functioning properly (such as a 'fridge or freezer, or computer room A/C circuit) might be a more solid justification for the investment. Seems to me you could make a transducer pretty easily, though; get some small ferrite cores and thread 'em up. You'd need to calibrate them against whatever A-D device you're using (PIC's a good choice). Anyway, this is bitchin'. The raw data becomes interesting when you can compare it at a circuit level to similar circuits in other similar structures. "Am I paying more than average to run my 'fridge?" "How does running ceiling fans affect A/C power consumption in a house of this size?"
cheap labor conservatives - they want to keep you hungry enough to be thankful for minimum wage.
Absolutely... I think energy consumption reduction is very cool and being able to monitor it is the first step.
New buildings, houses should be built using these equipments. It should be part of the building code requirements for new homes, offices. The electronics, sensors, etc. in bulk would become fairly cheap, even with combining with wireless technology, where the metering device could connect to the network.
An application running on any computer on the network could pick-up the data.
Today this should really be standard with all new homes, not some nerd stuff.
I had a similar goal to the author in monitoring the circuits of our house (we wanted to gauge production - solar panels against consumption - branch circuits to understand areas in need of optimization). After much research, we ended up installing two micrometer units - http://www.micrometer.com/
Chris Clements aka mr. micrometer - has done a great job of putting together a reasonable priced solution for power monitoring.
As a bonus, the micrometer have a straightforward ASCII interface which makes integrating the data a snap. LMK if you want any additional info, I'm very satisfied with ours.
cheers.
-Ophir
So have you noticed the average voltage to vary significantly from the expected 120V?
Can you be Even More Awesome?!
I studied for electricity and the way he build this setup is quite nice, only the controller board would not be legal in the same circuit-breaker-board, in Europe...
...
We got strict rules what can be and what cannot be in such boards, and putting a low-voltage board with a high-voltage circuit would not be approved by our electric companies.
Although, if this would be hanging seperately, with exceptions to the Ampere clamps, it would be a nice setup or even a nice addition to check the usage of your entire house, although I think about 12 circuits would already be enough
I wonder if this equipment is for sale in europe. I used to use my own tools together with the K8000 of Velleman to measure humidity, temperature and load; although the board is a little bit too big to use + its slow.
Any tips to get this kind of system in Europe?
--- I am known for the ones who want to find me on the net. Is that a privacy risk or a privilege? One might wonder..
it's like an afrodesiac
If you're gride-tied solar, doesn't your inverter track this for you anyway?
The Trace units I've been looking at have computer connections (IIRC).
The SunnyBoy unit I have has an RS232 opto-isolated interface that I built for it and either way, it only measures what gets put INTO the system. What somes in off the electric lines, or goes out is not measured or measurable at this time.
Are you saying that the Trace systems wire in between the grid and the home? I wouldn't think they would do that just for installation simplicity and/or dealing with the loads the existing system must support.
LoB
"Anyone who stands out in the middle of a road looks like roadkill to me." --Linus
Yeah, they do. They're not cheap, either. Basically, you hook up your feed from your battery bank, and your mains connection from the power company (and optionally a generator), and then it figures it all out. Runs off the panels when it's bright out, as the panels are connected to the batteries, so as long as the panels are charging the batteries, it can supply current to the house from the panels, once the panels can't supply enough current to charge the batteries, the batteries start draining to the inverter (this is all controlled by the battery manager). Then the inverter drains down the batteries, and when they fall below a threshold, it starts pulling from the A/C mains to supplement, and recharges the batteries.
The inverter keeps itself fully synchronized off the A/C mains when they're present, and when they go away (as they often do in my area), then it uses it's own internal clock to keep the waveform correct. When mains is down, it stops backfeeding the mains (for safety of everything involved), and will recharge the batteries off the generator, if needed.
When mains comes back up, it slowly adjusts it's clock to match, and then switches over to running off the mains until the batteries are fully charged.
Wow, sounds like a nice setup but if a basic SunnyBoy goes for around $2k, I'm guessing the unit you're talking about is in the $5k-$10k range. Nice but definately overkill for Panel-only grid tied systems.
LoB
"Anyone who stands out in the middle of a road looks like roadkill to me." --Linus