Tuesday, 24 April 2012

Power Measurements and the UDP Interface

More reading of the LightwaveRF forum led me to discover a command that allows you to interrogate the WiFi Link unit to get power measurements.  I want to use this as, although the handset app and web interfaces give you instantaneous measurements, you can't track usage over time.

So if you send the command 123,@?\0 in a UDP message (see previous post on how to do this) to the WiFi Link you get a response along the lines of 123,?W=150,7710,3148,14970.  Here:
  • 150 is the current instantaneous power measurement in Watts
  • 7710 is the maximum power measurement for the current day (in Watts)
  • 3148 is the cumulative usage since midnight that day (in Watt Hours)
  • 14970 is the total usage (in Watt Hours) for the whole of the previous day
Based upon this command I knocked up a Visual Basic application that takes one of these measurements every minute and logs the resulting information to a text file.  Now the application is working on my Vista PC which is crumby and unreliable and it's also my family PC so there's a good chance of it being stopped.  However if I can get the application to run for long enough I can perform some interesting long term usage analysis.

Here's a graph I put together using this data:

Max_Day (blue series) is a day when the whole family was in and we had another family visiting us (so lots of cooking, making cups of tea etc).

Min_Day (red series) is a day when we were in and out in the morning up to lunch time and then went out in the afternoon and evening.

So on the Max_Day you can see:
  • Minimal usage through the early hours
  • First cup of tea of the day at 0630 is
  • Big lunch so lots of usage
  • Even bigger tea (between 1900 and 2000) so even more usage
  • To bed just after 2200
...and on the Min_Day you can see:
  • Slightly later breakfast but lasted longer (probably something cooked)
  • A light lunch
  • Out in the afternoon and then in to the evening so minimal usage
  • Back just after 2200, a bit of usage then off to bed
So for me very interesting as I can see explicit links between what I do and the resulting usage. 

Looking at the cumulative measurements (see below) are also interesting:

So as expected the lines (so usage) are similar for the early hours but then diverge significantly.  Min_Day is also interesting as it highlights the quiescent or steady state usage of my house through the things that are always on.

Focussing in on a shorter time period for the absolute measurements is interesting:

You can see that usage is broadly quantised which I assume is down to things like my fridge and freezer kicking in and out.  It shows my houses steady state is roughly 270 Watts.

So overall this is all very fascinating to me.  The power meter and the ability to log measurements gives you excellent visibility of the cause and effect of using electrical items.  Additionally, the steady state measurements show how important it is to look at the energy rating of electrical items before you buy the,.

No comments:

Post a Comment