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!
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.
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
From the article. But your version is more amusing.
http://www.kondra.com.nyud.net:8090/circuit/circui t.html
http://www.kondra.com.nyud.net:8090/dome/dome.html
Post apocalyptic gaming goodness
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.
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
Quack, quack.
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?!
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/
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.
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.
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.
How does this passive device mesaure the current with out affecting it?
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.
He probably only cut one joist and he probably put in 2 short joists between the adjacent joists and attached the ends of the joist he cut to these little joists. This spread the load from the joist he cut to the adjacent joists. Not a perfect soltuion but it's done all time. To use the terminlogy around here 10 years ago... He boxed it in. I used to do remodeling for a living.
- Is is magical, no it creates a samll load on the circuit
- this can change the pwoer factor
- the motor could be an induction motor
- a change in power factor could change the efficiency of the motor causing it (or the wiring) to heat up more than usual.
- If the sensor caused the motor to overheat, it was way too close to its ratings anyway.
- An overheating motor is inconsistent with the failure, which would have shown a very slow change due to increasing winding resistance until the thermal cutout opened. The failure of the motor showed marked abnormalities in power consumption until final failure, more consistent with progressive breakdown of a run capacitor.
If you have any speculations based on the available evidence, go ahead and post - I personally think you're just another bloviator.It creates a very small additional inductance in the line. Putting your DVM onto a circuit creates a very small additional conductance in the circuit. Both have very small effects if you are using them appropriately; you cannot insert a sensor and have zero effect.
I'm certain that it does. I'm also certain that you'd need sensitive equipment to measure the difference.
COULD be? Certainly is, and it's a capacitor-start unit to boot. Might not have a running capacitor, but I'm not up on what's in dryers these days - I suspect it did (see below).
Two things wrong with that hypothesis:
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.
Yup, that's why in places with a mixed power supply and deregulation your "battery bank" is the grid...
you're credited for your excess and you can consume
it in proxy as dirty-power later.
Were that I say, pancakes?
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.
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.
If you study the first pic in the article where he shows the installed dome from above, you can see that this is exactly what he did. See http://209.10.40.245/dome/images/IMG_1244c.jpg
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, draws 1 amp.
If the neutral wire has 1 ohm resistance, the first machine sees 101 volts and the second sees 139. Many variations on this ideas are possible.
Normally I stay out of these but the article had a typo so I'll clarify. It was actually the washing machine not the dryer that failed. In addition the motor had failed several times before (thermal shutdown) prior to installing the monitoring system. The repair guy I kept calling out said it was fine (since by the time he got there it had cooled and started again). Anyways, the last time it didn't start back up.
Be very careful doing this sort of thing if you ever want to resell your home. I sold a home I inherited recently that had a small pull down stair installed in the ceiling to the attic. This meant a joist was cut and the opening boxed in.
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 article.
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
OK, thanks. I really wasn't accusing you of anything - just trying to explain to grandparent that yes, a wiring error can result in overvoltage as well as undervoltage, and that it can be more subtle than sending 240 to a 120v device.
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..
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