{"id":364,"date":"2022-12-03T13:57:46","date_gmt":"2022-12-03T13:57:46","guid":{"rendered":"https:\/\/saveawatthour.com\/?p=364"},"modified":"2022-12-03T13:57:46","modified_gmt":"2022-12-03T13:57:46","slug":"your-own-cheap-non-intrusive-smart-meter-with-little-programming-effort","status":"publish","type":"post","link":"https:\/\/saveawatthour.com\/index.php\/2022\/12\/03\/your-own-cheap-non-intrusive-smart-meter-with-little-programming-effort\/","title":{"rendered":"Your own cheap non-intrusive smart meter with little programming effort"},"content":{"rendered":"\n<p>These days I&#8217;ve been experimenting with non-intrusive cheap smart meters that can be easily installed and programmed with minimal effort. Of course, I am referring here to setting up the metering installation itself and reading the output on the Arduino IDE serial output, <span style=\"text-decoration: underline;\">not<\/span> <span style=\"text-decoration: underline;\"><\/span>transmitting the data readings via wifi\/Bluetooth and displaying it on a website or mobile app. Here is my setup:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Arduino Uno v3<\/li>\n\n\n\n<li><a href=\"https:\/\/www.digikey.co.uk\/en\/products\/detail\/dfrobot\/SEN0211\/6588615?utm_adgroup=Evaluation%20Boards%20-%20Expansion%20Boards%2C%20Daughter%20Cards&amp;utm_source=google&amp;utm_medium=cpc&amp;utm_campaign=Shopping_Product_Development%20Boards%2C%20Kits%2C%20Programmers&amp;utm_term=&amp;productid=6588615&amp;gclid=CjwKCAiAhKycBhAQEiwAgf19eriOd3L9g4F1mEnHza6pmkco6o2t0GRJvrhySQ1AfiPT-ImC0HyGpBoCpbwQAvD_BwE\" title=\"DFRobot SEN0211\">DFRobot SEN0211<\/a> supporting AC current in the range 0-20A.<\/li>\n\n\n\n<li>USB A to USB B cable<\/li>\n\n\n\n<li><a href=\"https:\/\/www.arduino.cc\/en\/software\" title=\"Arduino IDE 2.02\">Arduino IDE 2.02<\/a><\/li>\n<\/ul>\n\n\n\n<p>The total cost of the installation is ~\u00a346.<\/p>\n\n\n\n<p><strong>SEN0211 comes with a complete bundle<\/strong> to enable reading the amps from any cable. Be careful to connect the <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">blue <\/mark>transformer probe to a single cable (power cable) not both power and ground.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124621-1024x768.jpg\" alt=\"\" class=\"wp-image-366\" srcset=\"https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124621-1024x768.jpg 1024w, https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124621-300x225.jpg 300w, https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124621-768x576.jpg 768w, https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124621-1536x1152.jpg 1536w, https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124621-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">My test setup showing the SEN0211 connected to the Arduino Uno (notice the clamp on a single line: power &#8211; red &#8211; in this case) and the Uno connected to the laptop running the Arduino IDE to upload the code and read the serial output.<\/figcaption><\/figure>\n\n\n\n<p>The manufacturer provides <a href=\"https:\/\/github.com\/DFRobot\/DFRobot_AnalogACurrentSensor\" title=\"code\">code<\/a> for reading the amps and <strong>I have updated it to convert the amps to kW<\/strong> (by making some assumptions as well.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_130341-1024x768.jpg\" alt=\"\" class=\"wp-image-367\" srcset=\"https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_130341-1024x768.jpg 1024w, https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_130341-300x225.jpg 300w, https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_130341-768x576.jpg 768w, https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_130341-1536x1152.jpg 1536w, https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_130341-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Updated code to show kW in addition to Amps. I have made the assumption that the power factor equals 1 and that the voltage is 240V (UK). If you are in the US you may want to use 120V instead. Check your country standard. The division by 1000 represents the transformation of W to kW.<\/figcaption><\/figure>\n\n\n\n<p>The project can be upgraded by adding a wifi\/Bluetooth board to the Arduino and uploading the readings to a website (using a REST API for instance) for display. I will talk about this in a future post.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-1024x768.jpg\" alt=\"\" class=\"wp-image-368\" srcset=\"https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-1024x768.jpg 1024w, https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-300x225.jpg 300w, https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-768x576.jpg 768w, https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-1536x1152.jpg 1536w, https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Serial output showing the readings from the Arduino board.<\/figcaption><\/figure>\n\n\n\n<p><strong>Once you store enough data you can start performing a lot of data analytics<\/strong>. Check some of my examples in the <a href=\"https:\/\/saveawatthour.com\/index.php\/category\/data-science\/\" title=\"Data Science\">Data Science<\/a> section.<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style1 like-364 jlk' href='javascript:void(0)' data-task='like' data-post_id='364' data-nonce='482cc63e30' rel='nofollow'><img class='wti-pixel' src='https:\/\/saveawatthour.com\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-364 lc'>0<\/span><\/a><\/div><\/div> <div class='status-364 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>These days I&#8217;ve been experimenting with non-intrusive cheap smart meters that can be easily installed and programmed with minimal effort. Of course, I am referring here to setting up the metering installation itself and reading the output on the Arduino IDE serial output, not transmitting the data readings via wifi\/Bluetooth and displaying it on a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":368,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[46,50,51,48,11,49,30,47],"post_formats":[],"class_list":["post-364","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-science","tag-arduino","tag-arduino-ide","tag-current-readings","tag-dfrobot-sen0211","tag-energy-consumption","tag-programming","tag-smart-home","tag-smart-meter"],"aioseo_notices":[],"guten_post_layout_featured_media_urls":{"full":["https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-scaled.jpg",2560,1920,false],"thumbnail":["https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-150x150.jpg",150,150,true],"medium":["https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-300x225.jpg",300,225,true],"medium_large":["https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-768x576.jpg",640,480,true],"large":["https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-1024x768.jpg",640,480,true],"1536x1536":["https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-1536x1152.jpg",1536,1152,true],"2048x2048":["https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-2048x1536.jpg",2048,1536,true],"guten_post_layout_landscape_large":["https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-1200x800.jpg",1200,800,true],"guten_post_layout_portrait_large":["https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-1200x1800.jpg",1200,1800,true],"guten_post_layout_square_large":["https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-1200x1200.jpg",1200,1200,true],"guten_post_layout_landscape":["https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-600x400.jpg",600,400,true],"guten_post_layout_portrait":["https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-600x900.jpg",600,900,true],"guten_post_layout_square":["https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-600x600.jpg",600,600,true],"vw-blog-magazine-homepage-thumb":["https:\/\/saveawatthour.com\/wp-content\/uploads\/2022\/12\/IMG_20221203_124554-1-240x145.jpg",240,145,true]},"_links":{"self":[{"href":"https:\/\/saveawatthour.com\/index.php\/wp-json\/wp\/v2\/posts\/364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/saveawatthour.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/saveawatthour.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/saveawatthour.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/saveawatthour.com\/index.php\/wp-json\/wp\/v2\/comments?post=364"}],"version-history":[{"count":3,"href":"https:\/\/saveawatthour.com\/index.php\/wp-json\/wp\/v2\/posts\/364\/revisions"}],"predecessor-version":[{"id":371,"href":"https:\/\/saveawatthour.com\/index.php\/wp-json\/wp\/v2\/posts\/364\/revisions\/371"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/saveawatthour.com\/index.php\/wp-json\/wp\/v2\/media\/368"}],"wp:attachment":[{"href":"https:\/\/saveawatthour.com\/index.php\/wp-json\/wp\/v2\/media?parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/saveawatthour.com\/index.php\/wp-json\/wp\/v2\/categories?post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/saveawatthour.com\/index.php\/wp-json\/wp\/v2\/tags?post=364"},{"taxonomy":"post_format","embeddable":true,"href":"https:\/\/saveawatthour.com\/index.php\/wp-json\/wp\/v2\/post_formats?post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}