{"id":954,"date":"2020-05-17T14:22:34","date_gmt":"2020-05-17T21:22:34","guid":{"rendered":"https:\/\/www.casler.org\/wordpress\/?p=954"},"modified":"2020-05-18T00:16:54","modified_gmt":"2020-05-18T07:16:54","slug":"jmpm-hardware-rev001","status":"publish","type":"post","link":"https:\/\/www.casler.org\/wordpress\/jmpm-hardware-rev001\/","title":{"rendered":"JMPM Hardware Rev001"},"content":{"rendered":"<p>The first batch of JMPM Hardware Rev001 was delivered last week. After some initial testing, the board was found to be rather functional. One signal for each CT sensor was misrouted, but this is easily fixed with a jumper wire. Having the prototype also allowed proper characterization of the circuit and can be improved on by the inclusion of an optional low pass filter.<\/p>\n<p><!--more--><\/p>\n<h1>Build<\/h1>\n<p>Assembly can be completed in under 10 minutes per board. To save time and effort, be sure you have everything you think you&#8217;ll need before you start.<\/p>\n<h2>Bill of Materials<\/h2>\n<table style=\"width: 100%; border-collapse: collapse;\">\n<tbody>\n<tr>\n<td style=\"width: 33.333333333333336%;\">What<\/td>\n<td style=\"width: 33.333333333333336%;\">Link<\/td>\n<td style=\"width: 33.333333333333336%;\">Notes<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.333333333333336%;\">ESP32 Development Board<\/td>\n<td style=\"width: 33.333333333333336%;\"><a href=\"https:\/\/amzn.to\/3bK1siJ\">https:\/\/amzn.to\/3bK1siJ<\/a><\/td>\n<td style=\"width: 33.333333333333336%;\">Get more than you think you&#8217;ll need incase one fails. It&#8217;s unlikely, but it&#8217;s good practice. You can get these for about $5 each if you get them directly from Chinese sources, but be prepared to wait a long time and expect the possibility of counterfeit products.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.333333333333336%;\">3.5mm Jack Socket<\/td>\n<td style=\"width: 33.333333333333336%;\"><a href=\"https:\/\/amzn.to\/3cGfiUP\">https:\/\/amzn.to\/3cGfiUP<\/a><\/td>\n<td style=\"width: 33.333333333333336%;\">Each board needs 5 sockets, but if you don&#8217;t plan on using all 5 sensors, you don&#8217;t need to install all 5 sockets.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.333333333333336%;\">CT Sensor SCT-013-000<\/td>\n<td style=\"width: 33.333333333333336%;\"><a href=\"https:\/\/amzn.to\/3fXCbF8\">https:\/\/amzn.to\/3fXCbF8<\/a><\/td>\n<td style=\"width: 33.333333333333336%;\">You&#8217;ll need one for each circuit you are going to measure.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.333333333333336%;\">Female Header<\/td>\n<td style=\"width: 33.333333333333336%;\"><a href=\"https:\/\/amzn.to\/2LDCtTW\">https:\/\/amzn.to\/2LDCtTW<\/a><\/td>\n<td style=\"width: 33.333333333333336%;\">(Recommended) This will make it easy to swap out your ESP32 development board.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.333333333333336%;\">Power Connector<\/td>\n<td style=\"width: 33.333333333333336%;\"><a href=\"https:\/\/amzn.to\/2yfRh8c\">https:\/\/amzn.to\/2yfRh8c<\/a><\/td>\n<td style=\"width: 33.333333333333336%;\">(Recommended) These terminal blocks will let you easily plug\/unplug your device.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.333333333333336%;\">Power Adaptor<\/td>\n<td style=\"width: 33.333333333333336%;\"><a href=\"https:\/\/amzn.to\/2Zef9E0\">https:\/\/amzn.to\/2Zef9E0<\/a><\/td>\n<td style=\"width: 33.333333333333336%;\">(Recommended) Any voltage from 5-14vdc will work. Ideal is around 7vdc. Use what you have.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.333333333333336%;\">Enclosure<\/td>\n<td style=\"width: 33.333333333333336%;\"><a href=\"https:\/\/amzn.to\/2TcSuEf\">https:\/\/amzn.to\/2TcSuEf<\/a><\/td>\n<td style=\"width: 33.333333333333336%;\">(Optional) Box for the device. Everything will fit inside. You&#8217;ll need to drill holes for the various ports.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.333333333333336%;\">Breakaway Headers<\/td>\n<td style=\"width: 33.333333333333336%;\"><a href=\"https:\/\/amzn.to\/3cBm2mR\">https:\/\/amzn.to\/3cBm2mR<\/a><\/td>\n<td style=\"width: 33.333333333333336%;\">(Optional) Only needed if you want to use a jumper to reconfigure the inputs to the expanded 120A measurement range.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.333333333333336%;\">Jumper Caps<\/td>\n<td style=\"width: 33.333333333333336%;\"><a href=\"https:\/\/amzn.to\/3g7XpAu\">https:\/\/amzn.to\/3g7XpAu<\/a><\/td>\n<td style=\"width: 33.333333333333336%;\">(Optional) Only needed if you want to use a jumper to reconfigure the inputs to the expanded 120A measurement range.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 33.333333333333336%;\">4-Pin Keyed Connector<\/td>\n<td style=\"width: 33.333333333333336%;\"><a href=\"https:\/\/www.jameco.com\/z\/25403R-04-R-Header-Low-Profile-Shroud-4-Pin-Right-Angle-Keyed_152726.html\">Jameco 152726<\/a><\/td>\n<td style=\"width: 33.333333333333336%;\">(Optional) Header for temperature sensor. You can also use the breakaway headers or leave it out entirely.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>You may find these items cheaper from other places like eBay or AliExpress. I&#8217;ve seen counterfeit products on eBay, so be careful. I have not gotten counterfeit items from AliExpress, but they are slow. Stay away from wish.com!<\/p>\n<p>The BOM above doesn&#8217;t include quantities. Buy what you need. You may also have the parts in your drawers. Most of those are very common.<\/p>\n<p>Note: The amazon links are affiliate links.<\/p>\n<h2>Assembly Notes<\/h2>\n<p>Use the featured image above as your guide for assembly. It&#8217;s always best to solder components from the shortest first and work your way up from there.<\/p>\n<p>If you don&#8217;t ever plan on measuring more than 35 amps, you don&#8217;t need to install the header for on the 120A select jumpers. Use a jumper cap to hold the headers together at the proper width. Alternatively, you can solder a jumper wire across the pins of the 120A Selection block if you want to always measure 120A &#8230; but don&#8217;t do that if you can avoid it.<\/p>\n<h3>CT Connector<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-957\" src=\"https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/1E3BAE4F-9E4D-4765-BA01-340D7C12581A.jpeg\" alt=\"\" width=\"2499\" height=\"1874\" srcset=\"https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/1E3BAE4F-9E4D-4765-BA01-340D7C12581A.jpeg 2499w, https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/1E3BAE4F-9E4D-4765-BA01-340D7C12581A-768x576.jpeg 768w, https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/1E3BAE4F-9E4D-4765-BA01-340D7C12581A-1536x1152.jpeg 1536w, https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/1E3BAE4F-9E4D-4765-BA01-340D7C12581A-2048x1536.jpeg 2048w, https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/1E3BAE4F-9E4D-4765-BA01-340D7C12581A-500x375.jpeg 500w\" sizes=\"auto, (max-width: 2499px) 100vw, 2499px\" \/><\/p>\n<p>I made a mistake in routing the nets on the schematic for Rev001. To fix this, add a jumper wire on the back of the circuit board to connect the Tip to the Sleeve pins of the input connector.<\/p>\n<h3>Low Pass Filter<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-958\" src=\"https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/226EE9AF-DDD0-48B6-9D70-D0E5BB17F6D9.jpeg\" alt=\"\" width=\"2003\" height=\"925\" srcset=\"https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/226EE9AF-DDD0-48B6-9D70-D0E5BB17F6D9.jpeg 2003w, https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/226EE9AF-DDD0-48B6-9D70-D0E5BB17F6D9-768x355.jpeg 768w, https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/226EE9AF-DDD0-48B6-9D70-D0E5BB17F6D9-1536x709.jpeg 1536w\" sizes=\"auto, (max-width: 2003px) 100vw, 2003px\" \/><\/p>\n<table style=\"width: 100%; border-collapse: collapse; border-style: hidden;\">\n<tbody>\n<tr>\n<td style=\"width: 50%; vertical-align: top;\">This is an optional step but highly recommended. The low end performance of the CT Sensors can be improved by soldering a small value capacitor (0.01uf -&gt; 1uf) in parallel with the burden resistors (R4, R7, R10, R13, R16). Do this by piggybacking the capacitor onto the top of the resistor. (Click on the image on the right to zoom on)<\/td>\n<td style=\"width: 50%;\"><a href=\"https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/jmpm001-low-pass-filter.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-959 size-thumbnail\" src=\"https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/jmpm001-low-pass-filter-359x280.png\" alt=\"\" width=\"359\" height=\"280\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h1>Schematic<\/h1>\n<p><a href=\"https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/jmpm-rev001-schematic.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-979 size-full\" src=\"https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/jmpm-rev001-schematic.png\" alt=\"\" width=\"2902\" height=\"1969\" srcset=\"https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/jmpm-rev001-schematic.png 2902w, https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/jmpm-rev001-schematic-768x521.png 768w, https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/jmpm-rev001-schematic-1536x1042.png 1536w, https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/jmpm-rev001-schematic-2048x1390.png 2048w\" sizes=\"auto, (max-width: 2902px) 100vw, 2902px\" \/><\/a><\/p>\n<p>Click on the image to zoom in.<\/p>\n<h1>Power Up<\/h1>\n<p>The board can be powered in one of three ways:<\/p>\n<ol>\n<li>(Preferred) 7-14VDC power supply\n<ol>\n<li>Connect a 7-14VDC @ &gt;250ma power supply to the power header. This is preferred since this provides the most amount of filtering. It really is overkill, but do it if you can.<\/li>\n<\/ol>\n<\/li>\n<li>5VDC power supply\n<ol>\n<li>Connect a 5VDC @ &gt;250ma regulated power supply to the power header.<\/li>\n<\/ol>\n<\/li>\n<li>MicroUSB\n<ol>\n<li>Plug a MicroUSB cable to the ESP32 dev kit. This is the least preferred method because this connector is fragile. Functionally, there&#8217;s no difference between this and #2 above.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h1>Firmware<\/h1>\n<p>The latest firmware can be found in GitHub at:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/mc-hamster\/JMPM\/tree\/master\/firmware\/JMPM%20v1.0\">https:\/\/github.com\/mc-hamster\/JMPM\/tree\/master\/firmware\/JMPM%20v1.0<\/a><\/li>\n<\/ul>\n<p>Read my post on how to install the Arduino IDE and ESP32 board files:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.casler.org\/wordpress\/esp32-dev-kit-getting-started-guide-for-mac\/\">ESP32 Dev Kit &#8211; Getting Started Guide for Mac<\/a><\/li>\n<\/ul>\n<h1>Enclosure<\/h1>\n<p>The enclosure on the BOM is untested, but the CAD drawings suggest it *should* fit. You&#8217;ll need to drill holes for the various sockets for the sensors.<\/p>\n<p>If you do plan on using to measure current of circuits in your electrical panel, just remember that this can not be mounted inside the electrical panel. It has to be mounted outside the panel.<\/p>\n<ul>\n<li>Board Dimensions: 2.225&#8243; x 3.225&#8243;<\/li>\n<li>Current Connector Spacing: 0.525&#8243; on center<\/li>\n<\/ul>\n<h1>Notes &amp; Errata<\/h1>\n<ul>\n<li>The voltage sense input is currently untested. I&#8217;m probably going to take it out of rev002.<\/li>\n<li>The temperature sensor connector is currently untested. It *should* work.<\/li>\n<li>You can leave K2, JP2 and JP2B unpopulated. I have those there to control my hot tub.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The first batch of JMPM Hardware Rev001 was delivered last week. After some initial testing, the board was found to be rather functional. One signal for each CT sensor was misrouted, but this is easily fixed with a jumper wire. Having the prototype also allowed proper characterization of the circuit and can be improved on by the inclusion of an&hellip;<\/p>\n","protected":false},"author":1,"featured_media":956,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","footnotes":""},"categories":[15],"tags":[],"class_list":["post-954","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-iot"],"gutentor_comment":0,"jetpack_featured_media_url":"https:\/\/www.casler.org\/wordpress\/wp-content\/uploads\/2020\/05\/B9F585C2-A3AE-4416-A5A2-D4F365436CF1.jpeg","_links":{"self":[{"href":"https:\/\/www.casler.org\/wordpress\/wp-json\/wp\/v2\/posts\/954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.casler.org\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.casler.org\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.casler.org\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.casler.org\/wordpress\/wp-json\/wp\/v2\/comments?post=954"}],"version-history":[{"count":0,"href":"https:\/\/www.casler.org\/wordpress\/wp-json\/wp\/v2\/posts\/954\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.casler.org\/wordpress\/wp-json\/wp\/v2\/media\/956"}],"wp:attachment":[{"href":"https:\/\/www.casler.org\/wordpress\/wp-json\/wp\/v2\/media?parent=954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.casler.org\/wordpress\/wp-json\/wp\/v2\/categories?post=954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.casler.org\/wordpress\/wp-json\/wp\/v2\/tags?post=954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}