{"id":2842,"date":"2017-04-17T00:00:50","date_gmt":"2017-04-17T07:00:50","guid":{"rendered":"http:\/\/192.168.3.4\/?p=2842"},"modified":"2018-01-09T06:51:26","modified_gmt":"2018-01-09T14:51:26","slug":"metering-electrical-service-to-the-home","status":"publish","type":"post","link":"https:\/\/www.cloudacm.com\/?p=2842","title":{"rendered":"Metering electrical service to the home"},"content":{"rendered":"<p>This project involves working near and around the electrical service panel.\u00a0 Do not perform these steps unless you are a licensed and qualified electrician.\u00a0 You assume all risk and liability.\u00a0 The information contained here is merely for reference purposes, I do not take any responsibility for the loss of property or life should anyone not follow this warning.<\/p>\n<p>Home energy use accounts for 11% of the total energy consumed nation wide.\u00a0 Typically, homes have a variety of energy services provided to them.\u00a0 These are gas, oil, solar, biomass, geothermal, and electricity.\u00a0 The average home gets 44% of this energy from electrical services.\u00a0 My home is purely electrical service, so I have more motivation to meter my electrical service.<\/p>\n<p>Every home should have a service meter that the provider uses to gauge and bill for services.\u00a0 This meter is typically on the exterior of the home.\u00a0 Reading and tracking the meter is a tedious process and prone to error.\u00a0 Many utilities have since updated the meter reading electronically.\u00a0 However, these electronic readings are available to the home owner.<\/p>\n<p>Most of the work in the project is based largely off of the Open Energy Monitor project, <a href=\"https:\/\/learn.openenergymonitor.org\/electricity-monitoring\/\">https:\/\/learn.openenergymonitor.org\/electricity-monitoring\/<\/a>.\u00a0 I&#8217;m using similar current sensors that are attached to each circuit breaker leg.\u00a0 I feed the sensor cabling through a conduit attached to the circuit breaker panel to another sensor panel.\u00a0 This keeps my low voltage Arduino and the rest of the circuits isolated from the home mains.<\/p>\n<p>My current sensors have 3 position 1\/8th inch stereo jacks on them.\u00a0 I sourced my from Sparkfun and Amazon.\u00a0 Here are links to each one.<\/p>\n<p>Sparkfun 30A Current Sensor &#8211; <a href=\"https:\/\/www.sparkfun.com\/products\/11005\">https:\/\/www.sparkfun.com\/products\/11005<\/a><br \/>\nAmazon 100A Current Sensor &#8211;\u00a0 <a href=\"https:\/\/www.amazon.com\/dp\/B008ASXVL4\/ref=cm_sw_r_cp_ep_dp_avm8yb2KFED7P\">https:\/\/www.amazon.com\/dp\/B008ASXVL4\/ref=cm_sw_r_cp_ep_dp_avm8yb2KFED7P<\/a><\/p>\n<p>There are some challenges with directly connecting this sensor to an Arduino.\u00a0 One of the biggest is that this sensor has an AC voltage output.\u00a0 I&#8217;ve seen sketches that will take a sample and calculate RMS from peak to peak readings.\u00a0 Another more significant problem is that the output voltage of these sensors can be higher than the input limit of the Arduino. I decided to rectify the AC from the sensor to a DC value, then voltage divide it so the Arduino limit is not reached.\u00a0 I&#8217;m able to reliably choose the voltage divider resistor values based off of my circuit breaker and the current sensor ratings.\u00a0 Now the Arduino gets a varying voltage of zero to under 5 volts.<\/p>\n<p>One more added measure of protection are the ferrite core chokes.\u00a0 I&#8217;ve placed these on the ends of the current sensor cables feeding into the sensor board.\u00a0 If a high frequency spike should occur, these chokes will filter them and prevent potential damage to the Arduino.\u00a0 Nothing is 100% so I&#8217;ve designed my sensor board with DIP sockets for the ATTiny84.\u00a0 If damage does occur, I&#8217;ll be able to quickly replace the damaged chip.<\/p>\n<p>The sensor board communicates using the I2C protocol, in line with my venting and heating system covered in earlier posts.\u00a0 I have the sensor board ATTiny84 set to read and store the current sensor values in its registers.\u00a0 My Arduino Uno acts as the I2C bus master and it queries the sensor board for its values.\u00a0 The sensor board doesn&#8217;t do anything more that read values, store them, and provide them upon request.<\/p>\n<p>When I designed the sensor board, I chose to limit it to 4 inputs.\u00a0 This allows me to make additions or replacements more cost effective.\u00a0 It also means that I&#8217;m able to install for either large or small applications.\u00a0 I&#8217;m extremely pleased with how this has turned out.<\/p>\n<p>Once again, thank you for your time and I hope you have enjoyed this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This project involves working near and around the electrical service panel.\u00a0 Do not perform these steps unless you are a licensed and qualified electrician.\u00a0 You assume all risk and liability.\u00a0 The information contained here is merely for reference purposes, I do not take any responsibility for the loss of property or life should anyone not follow this warning. Home energy use accounts for 11% of the total energy consumed nation wide.\u00a0 Typically, homes have a variety of energy services provided&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.cloudacm.com\/?p=2842\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,10,6,3],"tags":[],"class_list":["post-2842","post","type-post","status-publish","format-standard","hentry","category-arduino","category-data-mining","category-raspberry-pi","category-rd"],"_links":{"self":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts\/2842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2842"}],"version-history":[{"count":2,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts\/2842\/revisions"}],"predecessor-version":[{"id":2844,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts\/2842\/revisions\/2844"}],"wp:attachment":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}