<div dir="ltr"><div><div><div><div><div><div><div>I built a sensor for a solar hot water backup heater.  It might be at a lower-level than you are looking for, and you'll have to export the data yourself.<br><br></div>I decided all that I needed was a simple on/off indication that the load (heating element) was consuming power.  There are several ways to do it, but I wanted to avoid opening up the heater and thermostat, or connecting to the mains power.<br><br></div>Technique number 1:<br></div><div>Use a CMOS logic chip to detect the ac in the supply wire:<br><a href="http://www.talkingelectronics.com/projects/100%20IC%20Circuits/1-100_IC-Ccts.html#33">http://www.talkingelectronics.com/projects/100%20IC%20Circuits/1-100_IC-Ccts.html#33</a><br></div><div>(this is one example, but there are many others)<br></div><div><br></div><div>The LED lights when ac is present.  The sense wire is placed next to the supply wire, so no actual connection to the mains is necessary.  Disadvantage is that it needs a battery.  This will only work if the sensor is placed *after* the switch/thermostat because it detects that the wire has become live.  If you put it before the switch then it will always be on, because the supply is always on.<br></div><div><br></div>Technique number 2:<br>Use a current transformer like this one:<br><a href="https://www.sparkfun.com/products/11005">https://www.sparkfun.com/products/11005</a><br><br></div>The output is an ac waveform coupled with the current in the mains cable.  I half-wave rectified it with a diode and capacitor to drive the input of a one-wire GPIO DS2406 which I could then hang off a one-wire network and query from anywhere.  This sensor gives an output when the load is drawing current, so it can be placed anywhere on the supply line, assuming there is only one load.  One drawback is that a small load will only induce a small current, which might not be detectable.  The heater drew 10A, so that was plenty.  This sensor can be used to give an analog representation of the current drawn, but I only needed an on/off indication.<br><br></div>Once you have a simple sensor like this working then you can hook it up to an Arduino or Raspberry Pi and log it.  After that it's just software...<br><br></div><div>For monitoring the whole house you have three options:<br></div><div>1) current sensor (as technique 2 above) on the main supply line to the house.  You'd want an analog-to-digital converter to get a number related to how much power was being used.<br></div><div>2) photocell on your electric meter counting the pulses from the power consumption LED found on most meter front panels.  The advantage of this is that it's cheap, non-contact, and entirely digital.<br></div><div>3) data communication with the meter.  Some meters have an IR data port, or a plug-in data port.  You could establish a connection to the meter and query it occasionally to get consumption data.<br><br></div><div>I suppose you could also piggyback onto the smart-meter signals that the electric company is sending and receiving, but that's a very deep rabbit hole.<br></div><div><br></div>Best wishes,<br><br></div>Andrew<br><div><div><div><br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 January 2017 at 06:37, Kiel Hurley <span dir="ltr"><<a href="mailto:kielhurley@gmail.com" target="_blank">kielhurley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I'm looking for something to measure power usage which can export its data. DIY or commercially available (but would prefer it isn't cloud connected).</div><div><br></div><div>I bought an old fridge off Trade Me and it seems to be on<span class="m_6839606042934696366inbox-inbox-Apple-converted-space"> </span><i>most</i> of the time, so I'd like to graph it's usage to see what's going on.  <br></div><div><br></div><div>Just a single socket for a start. Might add more sockets later, but would probably look into monitoring the whole house at that point.</div><div><br></div><div>Thanks,</div><div>Kiel<br></div></div>
<br>______________________________<wbr>_________________<br>
Chchrobotics mailing list <a href="mailto:Chchrobotics@lists.linuxnut.co.nz">Chchrobotics@lists.linuxnut.<wbr>co.nz</a><br>
<a href="http://lists.ourshack.com/mailman/listinfo/chchrobotics" rel="noreferrer" target="_blank">http://lists.ourshack.com/<wbr>mailman/listinfo/chchrobotics</a><br>
Mail Archives: <a href="http://lists.ourshack.com/pipermail/chchrobotics/" rel="noreferrer" target="_blank">http://lists.ourshack.com/<wbr>pipermail/chchrobotics/</a><br>
Meetings usually 3rd Monday each month. See <a href="http://kiwibots.org" rel="noreferrer" target="_blank">http://kiwibots.org</a> for venue, directions and dates.<br>
When replying, please edit your Subject line to reflect new subjects.<br></blockquote></div><br></div>