{"id":2245,"date":"2022-11-05T11:41:39","date_gmt":"2022-11-05T10:41:39","guid":{"rendered":"https:\/\/www.espthings.io\/?p=2245"},"modified":"2024-06-14T16:32:18","modified_gmt":"2024-06-14T14:32:18","slug":"et-sw01-a-very-low-consumption-mailbox-switch","status":"publish","type":"post","link":"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/","title":{"rendered":"ET-SW01 &#8211; A very low consumption mailbox sensor"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f65793123e3\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f65793123e3\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#Introduction\" >Introduction<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#Design_parameters\" >Design parameters<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#Practical_design\" >Practical design<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#The_circuit\" >The circuit<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#The_switch_inputs\" >The switch inputs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#Power_supply\" >Power supply<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#Battery_life\" >Battery life<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#USB_Connection\" >USB Connection<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#PCB_design\" >PCB design<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#Build_it\" >Build it!<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#Putting_it_together\" >Putting it together<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#External_antenna\" >External antenna<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#Enclosure\" >Enclosure<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#Software_configuration\" >Software configuration<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#ESPHome_configuration\" >ESPHome configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#Final_thoughts\" >Final thoughts<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Introduction\"><\/span>Introduction<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>With the amount of online shopping happening, which only became more during the Covid-19 pandemic, it would be handy to know when you receive something in your mailbox. Monitoring your mailbox with a remote switch using Home Assistant will come in handy. There are several ways of doing this, but since we want to use ESPhome, there is a requirement to use an ESP8266 o ESP32 based solution. This design, the ET-SW01 is what we came up with.<\/p>\n<div id=\"attachment_2286\" style=\"width: 523px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2286\" class=\"wp-image-2286\" src=\"https:\/\/www.espthings.io\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173-1024x829.png\" alt=\"Espthings.io ET-SW01\" width=\"513\" height=\"415\" srcset=\"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173-1024x829.png?v=1664702346 1024w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173-300x243.png?v=1664702346 300w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173-768x622.png?v=1664702346 768w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173-720x583.png?v=1664702346 720w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173-520x421.png?v=1664702346 520w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173-320x259.png?v=1664702346 320w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173.png?v=1664702346 1536w\" sizes=\"auto, (max-width: 513px) 100vw, 513px\" \/><p id=\"caption-attachment-2286\" class=\"wp-caption-text\">Espthings.io ET-SW01<\/p><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Design_parameters\"><\/span>Design parameters<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The requirements were:<\/p>\n<ul>\n<li>Multiple switches need to be able to be connected. (One detection and one reset as a minimum)<\/li>\n<li>Battery powered, with very low power consumption, to extend battery life<\/li>\n<li>It needs to be small enough to fit in a mailbox<\/li>\n<li>Possibility to connect external antenna (optional)<\/li>\n<li>Based on an ESP8266 or ESP32 module to allow easy use with ESPhome<\/li>\n<li>Enclosure must be readily available or 3D printable<\/li>\n<\/ul>\n<h1><span class=\"ez-toc-section\" id=\"Practical_design\"><\/span>Practical design<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>ESP modules have a deep-sleep mode available which will lower the power consumption considerable. Reading the various articles online, the current can drop to approx. 20\u00b5A while in deep-sleep. This approach was considered, but after reading the<a href=\"https:\/\/esphome.io\/components\/deep_sleep.html\"> ESPhome Deep Sleep component manual page<\/a>, it became clear that the only way to use it was by using an ESP32 based module.\u00a0 Since these modules are in general much larger than an ESP8266 based module, an alternative approach was taken.<\/p>\n<p>Our design:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2247\" src=\"https:\/\/www.espthings.io\/wp-content\/uploads\/2022\/09\/SW01-220514-1-sch-1024x743.png\" alt=\"\" width=\"1024\" height=\"743\" srcset=\"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/SW01-220514-1-sch-1024x743.png?v=1664123442 1024w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/SW01-220514-1-sch-300x218.png?v=1664123442 300w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/SW01-220514-1-sch-768x558.png?v=1664123442 768w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/SW01-220514-1-sch-1536x1115.png?v=1664123442 1536w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/SW01-220514-1-sch-2048x1487.png?v=1664123442 2048w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/SW01-220514-1-sch-720x523.png?v=1664123442 720w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/SW01-220514-1-sch-520x378.png?v=1664123442 520w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/SW01-220514-1-sch-320x232.png?v=1664123442 320w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>.<\/p>\n<h1><span class=\"ez-toc-section\" id=\"The_circuit\"><\/span>The circuit<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>The main principle of the circuit is based on the fact that the ESP module is normally powered down completely. This will eliminate all possible power consumption of the ESP module. Therefore we need a power switch which will power the module up when there is mail detected.<\/p>\n<p>This power switch is created using a CMOS logic gate chip, the 4001, which has a quiescent current of under 1\u00b5A. (At least 20x power saving over the deep-sleep of the ESP modules!) The logic gates are wired in as a so-called flip-flop. There are two of these flip-flops, one made up by IC2A &amp; IC2D and the other one made up by IC2B &amp; IC2C.<\/p>\n<p>Each flip-flop has 2 inputs, one connected to the switch (the &#8220;Set&#8221; input of the flip-flop), and the other one (the &#8220;Reset&#8221; input of the flip-flop) connected to the ESP module. The output of the flip-flop is connected to an OR gate (IC1). The output of this gate becomes active the moment one of its inputs is active. This OR gate output is directly powering up the ESP module through MOSFET T1.<\/p>\n<p>The outputs of the flip-flops are also connected to the ESP module, so the ESP module can detect which input was the one switching on the ESP module, so once the module is powered up, this information can be transmitted to Home Assistant.<\/p>\n<p>Once Home Assistant has processed the information, it can then switch on GPIO14, which is the reset signal to the flip-flops. This will result in the ESP module to power off, ensuring that Home Assistant is &#8220;aware&#8221; of the input status of the switch module.<\/p>\n<p>The ESP module picked for this project is the ESP-07 module in the variant with 1MB (8Mbit) of memory. Older ESP-07 modules had only 512kB (4Mbit) memory, which will work too, but in that case it will be 100% impossible to use OTA updates, even with a brand new battery. Optionally an ESP-12 module can be used, just make sure that the additional connections on the &#8220;short side&#8221; of the module are not touching any component mounted next to the module.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"The_switch_inputs\"><\/span>The switch inputs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Imagine that there is a piece of mail blocking your sensor \/ keeping your switch activated. That might result in Home Assistant not being able to switch off the module, draining the battery without any reason. To prevent this from happening C7 \/ R12 have been added to the circuit. These two components will ensure that the flip-flop is only reacting on a rising edge on input 1. So it will detect the switch closing, but it will &#8220;ignore&#8221; \/ &#8220;filter&#8221; the signal if it remains active. It needs to be inactive for a number of milliseconds to allow a re-trigger. To allow flexibility, input #2 does not have this capacitor, so you have a choice in your application. If you connect here a pushbutton &#8220;mailbox emptied&#8221;, then Home Assistant can change the internal flag indicating mail in the mailbox.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Power_supply\"><\/span>Power supply<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The power supply section of the design is very important, since in this section a lot of power can be wasted. Since the decision was made to use a\u00a0<span style=\"text-decoration: underline;\">non-rechargeable<\/span> battery, specifically a CR123A lithium battery, which meant no charging control \/ monitoring was required. Another great benefit of this type of battery is that the nominal voltage of this type of battery is 2.85 &#8211; 2.90V, which eliminates any possible voltage regulation requirement for the ESP module:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2253 \" src=\"https:\/\/www.espthings.io\/wp-content\/uploads\/2022\/09\/Screen-Shot-2022-09-25-at-1.12.33-PM-1024x621.png\" alt=\"\" width=\"608\" height=\"369\" srcset=\"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/Screen-Shot-2022-09-25-at-1.12.33-PM-1024x621.png?v=1664125984 1024w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/Screen-Shot-2022-09-25-at-1.12.33-PM-300x182.png?v=1664125984 300w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/Screen-Shot-2022-09-25-at-1.12.33-PM-768x466.png?v=1664125984 768w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/Screen-Shot-2022-09-25-at-1.12.33-PM-720x437.png?v=1664125984 720w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/Screen-Shot-2022-09-25-at-1.12.33-PM-520x315.png?v=1664125984 520w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/Screen-Shot-2022-09-25-at-1.12.33-PM-320x194.png?v=1664125984 320w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/Screen-Shot-2022-09-25-at-1.12.33-PM.png?v=1664125984 1534w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/p>\n<p>In the above curve it is clear that for the majority of the discharge time under normal temperatures (between -20C and +23C) the voltage is pretty stable. To check if this theoretical curve is also achievable in practice, one of the finished modules was switched on, and left, reporting every minute the Wifi signal strength and the battery voltage. This curve was achieved:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2255\" src=\"https:\/\/www.espthings.io\/wp-content\/uploads\/2022\/09\/Battery-voltage-discharge-curve-1024x439.jpeg\" alt=\"\" width=\"699\" height=\"300\" srcset=\"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/Battery-voltage-discharge-curve-1024x439.jpeg?v=1664126365 1024w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/Battery-voltage-discharge-curve-300x129.jpeg?v=1664126365 300w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/Battery-voltage-discharge-curve-768x329.jpeg?v=1664126365 768w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/Battery-voltage-discharge-curve-720x309.jpeg?v=1664126365 720w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/Battery-voltage-discharge-curve-520x223.jpeg?v=1664126365 520w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/Battery-voltage-discharge-curve-320x137.jpeg?v=1664126365 320w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/Battery-voltage-discharge-curve.jpeg?v=1664126365 1280w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/p>\n<p>In this curve the tail end of the first test can be observed, and a full discharge curve of the second test. Besides the stable voltage for the majority of the discharge, also something else can be observed. The module was working until the voltage dropped under 1.50V! This reading can be skewed because of the internal construction of the ESP onboard ADC, which might become (very) inaccurate at lower supply voltages. But it looks like the module did work with a supply voltage of &lt; 2.0V.<\/p>\n<p>The total running time is &gt; 20 hours, but this is for sure a bit skewed, since every time the module starts up, and connects to the WiFi network, it will use more current than when the module is already connected to the WiFi network. Therefore for the calculations of how many months the battery will last, a total discharge time of 10 hours (36000 seconds) is used.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Battery_life\"><\/span>Battery life<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>All our experiments have shown that the module requires less than 10 seconds to start up, connect to Home Assistant, and then afterwards Home Assistant to switch off the module. If the calculation is done with a battery life of (at least) 10 hours and\u00a0 a connection cycle of (max) 10 seconds, a total of 3600 cycles can be achieved. Each time the sensor is activated or when the &#8220;mailbox emptied&#8221; button is pressed, counts like a cycle. If as an average 4 cycles are performed per day, the lifetime of the battery should be at least 3600 \/ 4 = 900 days, or in other words &gt; 2.5 years! This was considered as more than sufficient to achieve the energy efficiency we are looking for. We do not know what the real life battery life is going to be. Depending on the number of cycles per day, temperature, battery quality \/ capacity, it would not surprise us if the actual lifetime of the battery is far exceeding 2.5 years.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"USB_Connection\"><\/span>USB Connection<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To program the module, the design has an USB &lt;&#8211;&gt; serial bridge mounted. When the USB cable is plugged in, it is\u00a0<strong><span style=\"text-decoration: underline;\">very important to remove the battery<\/span><\/strong>, since otherwise the USB power will start to charge the lithium battery, which can result in damage to the circuit or the battery to get damaged. A low quiescent current 3.3V regulator has been used to feed the module during USB connection. The diodes in the circuit ensure that the USB converter chip is only powered when the USB cable is connected, this to prevent the quiescent current of the USB chip to discharge the battery.<\/p>\n<p>Programming the module has to be done using the USB connection. this due to the OTA programming working very unreliable on this module. This is caused by high current consumption during the flash programming which the battery has issues with delivering when it is not a brand new. The only times we succeeded to do OTA programming was with a very fresh battery installed, and then the chance was only 1 in 5 that it would work&#8230; Therefore the only way to program, which we know for sure works absolutely fine and reliable, is using the USB cable. To flash the module, close the &#8220;Flash&#8221; jumper pads on the module, and afterwards start the flash program on your computer.<\/p>\n<p style=\"text-align: center;\"><span style=\"font-size: 18pt;\"><em><b style=\"text-decoration-line: underline;\">Warning! DO NOT USE ANY RECHARGEABLE BATTERY TO SUPPLY THE MODULE!!!!<\/b><\/em><\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-size: 18pt;\"><em><b style=\"text-decoration-line: underline;\">The voltage of the rechargeable batteries is too high and will cause <\/b><b><u>catastrophic<\/u><\/b><b style=\"text-decoration-line: underline;\"> damage to the ESP module!!!!<\/b><\/em><\/span><\/p>\n<h1><span class=\"ez-toc-section\" id=\"PCB_design\"><\/span>PCB design<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>The goal was to have the circuit as small as possible. The idea was to make sure the circuit would fit on a PCB roughly the same size as the battery holder. This is the final result:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2289\" src=\"https:\/\/www.espthings.io\/wp-content\/uploads\/2022\/10\/ET-SW01_battery_attached-e1664702906100-283x300.png\" alt=\"\" width=\"283\" height=\"300\" srcset=\"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ET-SW01_battery_attached-e1664702906100-283x300.png?v=1664702879 283w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ET-SW01_battery_attached-e1664702906100-968x1024.png?v=1664702879 968w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ET-SW01_battery_attached-e1664702906100-768x813.png?v=1664702879 768w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ET-SW01_battery_attached-e1664702906100-720x762.png?v=1664702879 720w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ET-SW01_battery_attached-e1664702906100-520x550.png?v=1664702879 520w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ET-SW01_battery_attached-e1664702906100-320x339.png?v=1664702879 320w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ET-SW01_battery_attached-e1664702906100.png?v=1664702879 1233w\" sizes=\"auto, (max-width: 283px) 100vw, 283px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2286\" src=\"https:\/\/www.espthings.io\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173-300x243.png\" alt=\"Espthings.io ET-SW01\" width=\"363\" height=\"294\" srcset=\"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173-300x243.png?v=1664702346 300w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173-1024x829.png?v=1664702346 1024w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173-768x622.png?v=1664702346 768w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173-720x583.png?v=1664702346 720w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173-520x421.png?v=1664702346 520w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173-320x259.png?v=1664702346 320w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/09\/ET-SW01_top_2-e1664702525173.png?v=1664702346 1536w\" sizes=\"auto, (max-width: 363px) 100vw, 363px\" \/><\/p>\n<p>As you can see, the full design is an SMD design. If we would have made it with conventional components, the PCB would be at least 2-3x larger.<\/p>\n<p>For people with some experience in building projects with SMD parts, it might be very doable to build this. There are not many components, and the design is not &#8220;tiny&#8221;.<\/p>\n<h1><span class=\"ez-toc-section\" id=\"Build_it\"><\/span>Build it!<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>See below the list with the components you will need to build the SW01 module by yourself. Remember that a number of the SMD components are not available to purchase in single quantities. You will most likely have a good number of components left after building a module!<\/p>\n<p>We would really appreciate it if you will use the links below to buy the components, since it will give a little bit of commission to us without any additional cost for yourself. These commissions will be used to cover some of the costs involved in the development of the design.<\/p>\n<table class=\"aligncenter\" style=\"width: 99.8078%; height: 432px;\" border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr style=\"background-color: #769adb;\">\n<td style=\"width: 28.4039%; height: 24px; text-align: left;\"><span style=\"color: #ffffff; font-size: 12pt;\"><strong>Part<\/strong><\/span><\/td>\n<td style=\"width: 4.80808%; height: 24px; text-align: left;\"><span style=\"color: #ffffff; font-size: 12pt;\"><strong>Value<\/strong><\/span><\/td>\n<td style=\"width: 6.87141%; height: 24px; text-align: left;\"><span style=\"color: #ffffff; font-size: 12pt;\"><strong>Package<\/strong><\/span><\/td>\n<td style=\"width: 19.9221%; height: 24px; text-align: left;\"><span style=\"color: #ffffff; font-size: 12pt;\"><strong>Description<\/strong><\/span><\/td>\n<td style=\"width: 15.7123%; height: 24px; text-align: left;\"><span style=\"color: #ffffff; font-size: 12pt;\"><strong>Link<\/strong><\/span><\/td>\n<td style=\"width: 3.28138%; height: 24px; text-align: left;\"><span style=\"color: #ffffff; font-size: 12pt;\"><strong>Qty<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 28.4039%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">C1, C2, C4, C5, C6, C7<\/span><\/td>\n<td style=\"width: 4.80808%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">0.1\u00b5F<\/span><\/td>\n<td style=\"width: 6.87141%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">0603<\/span><\/td>\n<td style=\"width: 19.9221%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">0.1\u00b5F \/ 50V capacitor<\/span><\/td>\n<td style=\"width: 15.7123%; height: 24px; text-align: left;\"><span style=\"background-color: #e5f5ed; font-size: 12pt;\"><a class=\"thirstylink\" target=\"_blank\" title=\"ALI - 100pcs\/lot 0603(1608) SMD Chip Multilayer Ceramic Capacitor\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/recommends\/ali-100pcs-lot-06031608-smd-chip-multilayer-ceramic-capacitor\/\" data-shortcode=\"true\"><span>Link<\/span><\/a><\/span><\/span><\/td>\n<td style=\"width: 3.28138%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">6<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 28.4039%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">C3<\/span><\/td>\n<td style=\"width: 4.80808%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">470\u00b5F<\/span><\/td>\n<td style=\"width: 6.87141%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">7343<\/span><\/td>\n<td style=\"width: 19.9221%; height: 24px; text-align: left;\"><\/td>\n<td style=\"width: 15.7123%; height: 24px; text-align: left;\"><a class=\"thirstylink\" target=\"_blank\" title=\"ALI - 470uF - D Type SMD Tantalum Capacitor\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/recommends\/ali-470uf-d-type-smd-tantalum-capacitor\/\" data-shortcode=\"true\">Link<\/a><\/td>\n<td style=\"width: 3.28138%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">1<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 28.4039%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">R1, R2, R3, R4, R5, R8, R9, R10, R11, R12<\/span><\/td>\n<td style=\"width: 4.80808%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">10k\u03a9<\/span><\/td>\n<td style=\"width: 6.87141%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">0603<\/span><\/td>\n<td style=\"width: 19.9221%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">10k\u03a9 resistor<\/span><\/td>\n<td style=\"width: 15.7123%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\"><a class=\"thirstylink\" target=\"_blank\" title=\"ALI - 4250pcs 0603 SMD Resistor Kit Assorted Kit 1ohm-10M ohm 1%\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/recommends\/ali-4250pcs-0603-smd-resistor-kit-assorted-kit-1ohm-10m-ohm-1\/\" data-shortcode=\"true\"><span style=\"font-size: 10pt\" data-mce-style=\"font-size: 10pt;\">Link<\/span><\/a><\/span><\/span><\/td>\n<td style=\"width: 3.28138%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">10<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 28.4039%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">R6<\/span><\/td>\n<td style=\"width: 4.80808%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">180k\u03a9<\/span><\/td>\n<td style=\"width: 6.87141%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">0603<\/span><\/td>\n<td style=\"width: 19.9221%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">180k\u03a9 resistor<\/span><\/td>\n<td style=\"width: 15.7123%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\"><a class=\"thirstylink\" target=\"_blank\" title=\"ALI - 4250pcs 0603 SMD Resistor Kit Assorted Kit 1ohm-10M ohm 1%\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/recommends\/ali-4250pcs-0603-smd-resistor-kit-assorted-kit-1ohm-10m-ohm-1\/\" data-shortcode=\"true\"><span style=\"font-size: 10pt\" data-mce-style=\"font-size: 10pt;\">Link<\/span><\/a><\/span><\/span><\/td>\n<td style=\"width: 3.28138%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">1<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 28.4039%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">R7<\/span><\/td>\n<td style=\"width: 4.80808%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">20k\u03a9<\/span><\/td>\n<td style=\"width: 6.87141%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">0603<\/span><\/td>\n<td style=\"width: 19.9221%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">20k\u03a9 resistor<\/span><\/td>\n<td style=\"width: 15.7123%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\"><a class=\"thirstylink\" target=\"_blank\" title=\"ALI - 4250pcs 0603 SMD Resistor Kit Assorted Kit 1ohm-10M ohm 1%\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/recommends\/ali-4250pcs-0603-smd-resistor-kit-assorted-kit-1ohm-10m-ohm-1\/\" data-shortcode=\"true\"><span style=\"font-size: 10pt\" data-mce-style=\"font-size: 10pt;\">Link<\/span><\/a><\/span><\/span><\/td>\n<td style=\"width: 3.28138%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">1<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 28.4039%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">T1<\/span><\/td>\n<td style=\"width: 4.80808%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">AO3401A<\/span><\/td>\n<td style=\"width: 6.87141%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">SOT23<\/span><\/td>\n<td style=\"width: 19.9221%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">AO3401A Mosfet<\/span><\/td>\n<td style=\"width: 15.7123%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\"><a class=\"thirstylink\" target=\"_blank\" title=\"ALI - 4250pcs 0603 SMD Resistor Kit Assorted Kit 1ohm-10M ohm 1%\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/recommends\/ali-4250pcs-0603-smd-resistor-kit-assorted-kit-1ohm-10m-ohm-1\/\" data-shortcode=\"true\"><span style=\"font-size: 10pt\" data-mce-style=\"font-size: 10pt;\">Link<\/span><\/a><\/span><\/span><\/td>\n<td style=\"width: 3.28138%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">1<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 28.4039%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">D1, D2<\/span><\/td>\n<td style=\"width: 4.80808%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">B0520LW<\/span><\/td>\n<td style=\"width: 6.87141%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">SOD123<\/span><\/td>\n<td style=\"width: 19.9221%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">Schottky diode\u00a0<\/span><\/td>\n<td style=\"width: 15.7123%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\"><a class=\"thirstylink\" target=\"_blank\" title=\"ALI - 4250pcs 0603 SMD Resistor Kit Assorted Kit 1ohm-10M ohm 1%\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/recommends\/ali-4250pcs-0603-smd-resistor-kit-assorted-kit-1ohm-10m-ohm-1\/\" data-shortcode=\"true\"><span style=\"font-size: 10pt\" data-mce-style=\"font-size: 10pt;\">Link<\/span><\/a><\/span><\/span><\/td>\n<td style=\"width: 3.28138%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">2<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 28.4039%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">IC1<\/span><\/td>\n<td style=\"width: 4.80808%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">74AHC1G02<\/span><\/td>\n<td style=\"width: 6.87141%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">SOT23-5<\/span><\/td>\n<td style=\"width: 19.9221%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">Single 2 input NOR gate<\/span><\/td>\n<td style=\"width: 15.7123%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\"><a href=\"https:\/\/www.aliexpress.us\/item\/1005004414390661.html?gatewayAdapt=4itemAdapt\">Link<\/a><\/span><\/td>\n<td style=\"width: 3.28138%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">1<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 28.4039%; height: 25px; text-align: left;\"><span style=\"font-size: 12pt;\">IC2<\/span><\/td>\n<td style=\"width: 4.80808%; height: 25px; text-align: left;\"><span style=\"font-size: 12pt;\">CD4001<\/span><\/td>\n<td style=\"width: 6.87141%; height: 25px; text-align: left;\"><span style=\"font-size: 12pt;\">SO14<\/span><\/td>\n<td style=\"width: 19.9221%; height: 25px; text-align: left;\"><span style=\"font-size: 12pt;\">Quad 2 input NOR gate<\/span><\/td>\n<td style=\"width: 15.7123%; height: 25px; text-align: left;\"><span style=\"font-size: 12pt;\"><a href=\"https:\/\/www.aliexpress.us\/item\/3256804039898478.html\">Link<\/a><\/span><\/td>\n<td style=\"width: 3.28138%; height: 25px; text-align: left;\"><span style=\"font-size: 12pt;\">1<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 28.4039%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">IC3<\/span><\/td>\n<td style=\"width: 4.80808%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">ESP07<\/span><\/td>\n<td style=\"width: 6.87141%; height: 24px; text-align: left;\"><\/td>\n<td style=\"width: 19.9221%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">ESP 8266 module<\/span><\/td>\n<td style=\"width: 15.7123%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\"><a class=\"thirstylink\" target=\"_blank\" title=\"ALI - ESP8266 ESP07 WIFI Module\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/recommends\/ali-esp8266-esp07-wifi-module\/\" data-shortcode=\"true\"><span style=\"font-size: 10pt\" data-mce-style=\"font-size: 10pt;\">Link<\/span><\/a><\/span><\/span><\/td>\n<td style=\"width: 3.28138%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">1<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 28.4039%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">IC4<\/span><\/td>\n<td style=\"width: 4.80808%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">CH330N**<\/span><\/td>\n<td style=\"width: 6.87141%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">SO08<\/span><\/td>\n<td style=\"width: 19.9221%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">USB to Serial bridge<\/span><\/td>\n<td style=\"width: 15.7123%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\"><a href=\"https:\/\/www.aliexpress.us\/item\/3256804170449186.html\">Link<\/a><\/span><\/td>\n<td style=\"width: 3.28138%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">1<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 28.4039%; height: 25px; text-align: left;\"><span style=\"font-size: 12pt;\">IC5<\/span><\/td>\n<td style=\"width: 4.80808%; height: 25px; text-align: left;\"><span style=\"font-size: 12pt;\">HT7333A<\/span><\/td>\n<td style=\"width: 6.87141%; height: 25px; text-align: left;\"><span style=\"font-size: 12pt;\">SOT89R<\/span><\/td>\n<td style=\"width: 19.9221%; height: 25px; text-align: left;\"><span style=\"font-size: 12pt;\">3.3V voltage regulator<\/span><\/td>\n<td style=\"width: 15.7123%; height: 25px; text-align: left;\"><span style=\"font-size: 12pt;\"><a href=\"https:\/\/www.aliexpress.us\/item\/3256804170449186.html\">Link<\/a><\/span><\/td>\n<td style=\"width: 3.28138%; height: 25px; text-align: left;\"><span style=\"font-size: 12pt;\">1<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 28.4039%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">X1<\/span><\/td>\n<td style=\"width: 4.80808%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">\u00b5USB<\/span><\/td>\n<td style=\"width: 6.87141%; height: 24px; text-align: left;\"><\/td>\n<td style=\"width: 19.9221%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">Micro USB socket<\/span><\/td>\n<td style=\"width: 15.7123%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\"><a class=\"thirstylink\" target=\"_blank\" title=\"ALI - 4250pcs 0603 SMD Resistor Kit Assorted Kit 1ohm-10M ohm 1%\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/recommends\/ali-4250pcs-0603-smd-resistor-kit-assorted-kit-1ohm-10m-ohm-1\/\" data-shortcode=\"true\"><span style=\"font-size: 10pt\" data-mce-style=\"font-size: 10pt;\">Link<\/span><\/a><\/span><\/span><\/td>\n<td style=\"width: 3.28138%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">1<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 28.4039%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">B1<\/span><\/td>\n<td style=\"width: 4.80808%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">CR123A<\/span><\/td>\n<td style=\"width: 6.87141%; height: 24px; text-align: left;\"><\/td>\n<td style=\"width: 19.9221%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">Battery holder<\/span><\/td>\n<td style=\"width: 15.7123%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\"><a class=\"thirstylink\" target=\"_blank\" title=\"ALI - CR123A X1 16340 battery box\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/recommends\/ali-cr123a-x1-16340-battery-box\/\" data-shortcode=\"true\"><span style=\"font-size: 10pt\" data-mce-style=\"font-size: 10pt;\">Link<\/span><\/a><\/span><\/span><\/td>\n<td style=\"width: 3.28138%; height: 24px; text-align: left;\"><span style=\"font-size: 12pt;\">1<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 28.4039%; text-align: left; height: 24px;\"><span style=\"font-size: 12pt;\">PCB<\/span><\/td>\n<td style=\"width: 4.80808%; text-align: left; height: 24px;\"><span style=\"font-size: 12pt;\">ET-SW01<\/span><\/td>\n<td style=\"width: 6.87141%; text-align: left; height: 24px;\"><\/td>\n<td style=\"width: 19.9221%; text-align: left; height: 24px;\"><span style=\"font-size: 12pt;\">PCB<\/span><\/td>\n<td style=\"width: 15.7123%; text-align: left; height: 24px;\"><span style=\"font-size: 12pt;\">\u00a0<a class=\"thirstylink\" target=\"_blank\" title=\"PCBway - Espthings.io - SW01\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/recommends\/pcbway-espthings-io-sw01\/\" data-shortcode=\"true\">Link<\/a><\/span><\/td>\n<td style=\"width: 3.28138%; text-align: left; height: 24px;\"><span style=\"font-size: 12pt;\">1<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>** The CH330N and CH340N are pin compatible. Both can be used.<\/p>\n<p>There are a number of sellers at AliExpress which sell complete kits of 0603 resistors and\/or capacitors. In general these are very good deals looking at the price each. Therefore we have selected one of these kits for all resistors.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Putting_it_together\"><\/span>Putting it together<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Unlike with our other projects, this design uses SMD components. These are a lot more difficult to mount for inexperienced hobbyists. If you are going to build it by hand, start with the resistors, followed by the capacitors and the MOSFET. Then mount the USB connector, this to ensure you have enough space to solder the connector without IC4 blocking the pads. The ICs together with the diodes and voltage regulator are next. The final step is mounting the ESP module. Note; You can order the solder paste stencil for this PCB from PCBway as well. Just use the PCB-link above.<\/p>\n<h1><span class=\"ez-toc-section\" id=\"External_antenna\"><\/span>External antenna<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>A lot of mailboxes are made from metal which is very effective in blocking the RF signals coming from the ESP module. In that case a simple <span style=\"color: #47cc00;\"><strong><a class=\"thirstylink\" target=\"_blank\" title=\"ALI - esp external wifi antenna\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/recommends\/ali-esp-external-wifi-antenna\/\" data-shortcode=\"true\">external antenna<\/a><\/strong> <\/span>could be beneficial. Depending on the type you use, you might want to coat the antenna with &#8220;conformal coating&#8221; (preferred) or acrylic lacquer, which will prevent corrosion of the antenna.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2292 aligncenter\" src=\"https:\/\/www.espthings.io\/wp-content\/uploads\/2022\/10\/external_antenna.jpeg\" alt=\"\" width=\"528\" height=\"528\" srcset=\"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/external_antenna.jpeg?v=1664703317 1001w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/external_antenna-300x300.jpeg?v=1664703317 300w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/external_antenna-150x150.jpeg?v=1664703317 150w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/external_antenna-768x768.jpeg?v=1664703317 768w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/external_antenna-80x80.jpeg?v=1664703317 80w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/external_antenna-320x320.jpeg?v=1664703317 320w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/external_antenna-720x720.jpeg?v=1664703317 720w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/external_antenna-520x520.jpeg?v=1664703317 520w\" sizes=\"auto, (max-width: 528px) 100vw, 528px\" \/><\/p>\n<p>To use the antenna, a small modification needs to be made to the module. The component marked in the below photo needs to be removed. To do so put a small blob of solder on the soldering iron tip, and touch the component. Within a few seconds the component should come loose and stick to the soldering iron.<\/p>\n<p>If this component is not removed, the antenna on the module and the external antenna will be connected at the same time. This will make the total performance extremely poor! Therefore it is required to be removed if an external antenna is used!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2342\" src=\"https:\/\/www.espthings.io\/wp-content\/uploads\/2022\/10\/ESP07-antenna-connector-1024x768.jpeg\" alt=\"\" width=\"600\" height=\"450\" srcset=\"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ESP07-antenna-connector-1024x768.jpeg?v=1667147422 1024w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ESP07-antenna-connector-300x225.jpeg?v=1667147422 300w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ESP07-antenna-connector-768x576.jpeg?v=1667147422 768w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ESP07-antenna-connector-720x540.jpeg?v=1667147422 720w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ESP07-antenna-connector-520x390.jpeg?v=1667147422 520w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ESP07-antenna-connector-320x240.jpeg?v=1667147422 320w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ESP07-antenna-connector.jpeg?v=1667147422 1280w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Enclosure\"><\/span>Enclosure<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-2341\" src=\"https:\/\/www.espthings.io\/wp-content\/uploads\/2022\/10\/mailbox-closed-1024x489.png\" alt=\"\" width=\"400\" height=\"191\" srcset=\"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/mailbox-closed-1024x489.png?v=1667146894 1024w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/mailbox-closed-300x143.png?v=1667146894 300w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/mailbox-closed-768x367.png?v=1667146894 768w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/mailbox-closed-720x344.png?v=1667146894 720w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/mailbox-closed-520x248.png?v=1667146894 520w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/mailbox-closed-320x153.png?v=1667146894 320w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/mailbox-closed.png?v=1667146894 1440w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-2340\" src=\"https:\/\/www.espthings.io\/wp-content\/uploads\/2022\/10\/mailbox-open-1024x489.png\" alt=\"\" width=\"400\" height=\"191\" srcset=\"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/mailbox-open-1024x489.png?v=1667146891 1024w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/mailbox-open-300x143.png?v=1667146891 300w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/mailbox-open-768x367.png?v=1667146891 768w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/mailbox-open-720x344.png?v=1667146891 720w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/mailbox-open-520x248.png?v=1667146891 520w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/mailbox-open-320x153.png?v=1667146891 320w, https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/mailbox-open.png?v=1667146891 1440w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>To mount the PCB in the mailbox, we have designed a <a href=\"https:\/\/www.espthings.io\/wp-content\/uploads\/2022\/10\/mailbox_case.zip\">3D printable enclosure.<\/a>\u00a0It is a &#8220;tight&#8221; fit, and uses a snap-fit lid. If the enclosure is mounted outside the mailbox, then print it in PETG or ABS, and use some silicone to closeup the connection opening. It is recommended to place the box somewhere inside the mailbox, and if needed bring an external antenna to the outside of the mailbox.<\/p>\n<h1><span class=\"ez-toc-section\" id=\"Software_configuration\"><\/span>Software configuration<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h2><span class=\"ez-toc-section\" id=\"ESPHome_configuration\"><\/span>ESPHome configuration<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The software configuration is a bit different than normal. Where for other designs the wifi configuration was dynamic, using DHCP, but for this particular situation it is advisable to use static \/ manual configuration instead. The DHCP handshake \/ setup will take time and more power to perform. Making it static with &#8220;fast_connect&#8221; set to true, will save a lot of additional power consumption, and therefore battery life. See below the YAML for this project with a number of comments in it to guide you how to configure it for your setup.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">substitutions:\r\n  devicename: espthings-sw01-01\r\n  upper_devicename: espthings SW01 01\r\n\r\nesphome:\r\n  name: $devicename\r\n  comment: Mailbox sensor\r\n  platform: ESP8266\r\n\r\n# Use for the ESP-07 module with 1MB of memory, the \"esp01_1m\" board.\r\n  board: esp01_1m\r\n  board_flash_mode: dout\r\n\r\n# The below configuration lines create a \"safety net\", in case the module is unable\r\n# to contact Home Assistant, and therefore is not switched off by Home Assistant.\r\n# In that case, there is a possibility that the module will remain powered on, draining\r\n# the battery. With the below settings, the module will shutdown after 30 seconds,\r\n# saving the battery energy.\r\n  on_boot:\r\n    - priority: 200.0\r\n      then:\r\n        - delay: 30s\r\n        - switch.turn_on: resetinput  \r\n  \r\nlogger:\r\n\r\napi:\r\n  password: !secret esphome_api_password\r\n\r\nota:\r\n  password: !secret esphome_ota_password\r\n\r\nweb_server:\r\n  port: 80\r\n\r\nwifi:\r\n  ssid: !secret esphome_wifi_ssid\r\n  password: !secret esphome_wifi_password\r\n\r\n# Ensure you set the IP address to an available address!\r\n# An option is to use the DHCP option first, and then\r\n# record the settings your router issues to the module.\r\n# Then copy those settings below.\r\n\r\n# To use the automatic DHCP settings comment out the below lines\r\n  manual_ip:\r\n    static_ip: 192.168.1.100\r\n    gateway: 192.168.1.1\r\n    subnet: 255.255.255.0\r\n  fast_connect: true\r\n  #power_save_mode: light\r\n# End of network config.\r\nsensor:\r\n  - platform: wifi_signal\r\n    name: \"$upper_devicename - RSSI\"\r\n    update_interval: 9s\r\n  - platform: adc\r\n\r\n# This is the sensor to track the battery voltage, the internal option of \"pin: VCC\"\r\n# has shown to be less accurate than this solution.\r\n\r\n    pin: A0\r\n    filters:\r\n      - multiply: 10\r\n\r\n# The offset was applicable to our prototypes. Please confirm the offset with your\r\n# multimeter, and replace \"-0.15\" with the correct offset.\r\n\r\n      - offset: -0.15\r\n    name: \"$upper_devicename - Battery Voltage\"\r\n    update_interval: 9s\r\n    \r\nbinary_sensor:\r\n  - platform: gpio\r\n    pin:\r\n      number: GPIO13\r\n    name: \"$upper_devicename - Input 1 - Edge\"\r\n    filters:\r\n      - delayed_on: 20ms\r\n  - platform: gpio\r\n    pin:\r\n      number: GPIO12\r\n    name: \"$upper_devicename - Input 2 - Level\"\r\n    filters:\r\n      - delayed_on: 20ms\r\n  \r\nbutton:\r\n  - platform: template\r\n    name: \"$upper_devicename - Reset\"\r\n    icon: \"mdi:emoticon-outline\"\r\n    on_press:\r\n      - switch.turn_on: resetinput\r\n\r\nswitch:\r\n    platform: gpio\r\n    disabled_by_default: true\r\n    pin: GPIO14\r\n    id: resetinput\r\n# Saving some energy by disabling the status LED. During testing\r\n# you might want to keep the LED enabled.\r\n\r\n#status_led:\r\n#  pin:\r\n#    number: GPIO2\r\n#    inverted: true<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Final_thoughts\"><\/span>Final thoughts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The goal was to design a simple power efficient module to detect mailbox activity. The big problem with WiFi power consumption we tried to solve in a creative manner, which has proven to be very efficient. It is not clear yet how long the battery will last, but what we have seen so far it looks like it will be for a very long time.<\/p>\n<p>Please let us know in the comments what you think.<\/p>\n<p>If you enjoy our designs, please leave a comment and subscribe to our <a href=\"https:\/\/www.youtube.com\/@espthings?sub_confirmation=1\">youtube channel<\/a>, to help us grow the website and channel!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction With the amount of online shopping happening, which only became more during the Covid-19 pandemic, it would be handy to know when you receive something in your mailbox. Monitoring your mailbox with a remote switch using Home Assistant will come in handy. There are&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":2386,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[38,3],"tags":[],"class_list":["post-2245","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","category-projects"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ET-SW01 - A very low consumption mailbox sensor - ingeniousmakers.com<\/title>\n<meta name=\"description\" content=\"A ESPhome and Home Assistant compatible battery powered low-consumption mailbox sensor!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A very low consumption ESPHOME mailbox sensor\" \/>\n<meta property=\"og:description\" content=\"A ESPhome and Home Assistant compatible battery powered low-consumption mailbox sensor!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/\" \/>\n<meta property=\"og:site_name\" content=\"ingeniousmakers.com\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-05T10:41:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-14T14:32:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ET-SW01_enclosure_1-e1664702828387.png?v=1664702801\" \/>\n\t<meta property=\"og:image:width\" content=\"1085\" \/>\n\t<meta property=\"og:image:height\" content=\"1034\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Paul\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"A very low consumption ESPHOME mailbox sensor\" \/>\n<meta name=\"twitter:description\" content=\"A ESPhome and Home Assistant compatible battery powered low-consumption mailbox sensor!\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ET-SW01_enclosure_1-e1664702828387.png?v=1664702801\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"14 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/index.php\\\/2022\\\/11\\\/05\\\/et-sw01-a-very-low-consumption-mailbox-switch\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/index.php\\\/2022\\\/11\\\/05\\\/et-sw01-a-very-low-consumption-mailbox-switch\\\/\"},\"author\":{\"name\":\"Paul\",\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/#\\\/schema\\\/person\\\/dc92ed07eedaed0a762c93b9545bf541\"},\"headline\":\"ET-SW01 &#8211; A very low consumption mailbox sensor\",\"datePublished\":\"2022-11-05T10:41:39+00:00\",\"dateModified\":\"2024-06-14T14:32:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/index.php\\\/2022\\\/11\\\/05\\\/et-sw01-a-very-low-consumption-mailbox-switch\\\/\"},\"wordCount\":2401,\"commentCount\":28,\"publisher\":{\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/index.php\\\/2022\\\/11\\\/05\\\/et-sw01-a-very-low-consumption-mailbox-switch\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/et-sw01.png?v=1667644570\",\"articleSection\":[\"News\",\"Projects\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.ingeniousmakers.com\\\/index.php\\\/2022\\\/11\\\/05\\\/et-sw01-a-very-low-consumption-mailbox-switch\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/index.php\\\/2022\\\/11\\\/05\\\/et-sw01-a-very-low-consumption-mailbox-switch\\\/\",\"url\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/index.php\\\/2022\\\/11\\\/05\\\/et-sw01-a-very-low-consumption-mailbox-switch\\\/\",\"name\":\"ET-SW01 - A very low consumption mailbox sensor - ingeniousmakers.com\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/index.php\\\/2022\\\/11\\\/05\\\/et-sw01-a-very-low-consumption-mailbox-switch\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/index.php\\\/2022\\\/11\\\/05\\\/et-sw01-a-very-low-consumption-mailbox-switch\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/et-sw01.png?v=1667644570\",\"datePublished\":\"2022-11-05T10:41:39+00:00\",\"dateModified\":\"2024-06-14T14:32:18+00:00\",\"description\":\"A ESPhome and Home Assistant compatible battery powered low-consumption mailbox sensor!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/index.php\\\/2022\\\/11\\\/05\\\/et-sw01-a-very-low-consumption-mailbox-switch\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.ingeniousmakers.com\\\/index.php\\\/2022\\\/11\\\/05\\\/et-sw01-a-very-low-consumption-mailbox-switch\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/index.php\\\/2022\\\/11\\\/05\\\/et-sw01-a-very-low-consumption-mailbox-switch\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/et-sw01.png?v=1667644570\",\"contentUrl\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/et-sw01.png?v=1667644570\",\"width\":521,\"height\":293},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/index.php\\\/2022\\\/11\\\/05\\\/et-sw01-a-very-low-consumption-mailbox-switch\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ET-SW01 &#8211; A very low consumption mailbox sensor\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/#website\",\"url\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/\",\"name\":\"Ingeniousmakers.com\",\"description\":\"Make it or break it!\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/#organization\",\"name\":\"Ingeniousmakers.con\",\"url\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-cropped-logo_landscape_no_payoff_transparent.png\",\"contentUrl\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-cropped-logo_landscape_no_payoff_transparent.png\",\"width\":1905,\"height\":671,\"caption\":\"Ingeniousmakers.con\"},\"image\":{\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCeMzk2C5tbMkpsByg7Nbgyw\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/#\\\/schema\\\/person\\\/dc92ed07eedaed0a762c93b9545bf541\",\"name\":\"Paul\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e2b00a08eb733cde522bbde7c83794598275bb5513c12d172cc8cd922b9b5cc7?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e2b00a08eb733cde522bbde7c83794598275bb5513c12d172cc8cd922b9b5cc7?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e2b00a08eb733cde522bbde7c83794598275bb5513c12d172cc8cd922b9b5cc7?s=96&r=g\",\"caption\":\"Paul\"},\"url\":\"https:\\\/\\\/www.ingeniousmakers.com\\\/index.php\\\/author\\\/paul\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ET-SW01 - A very low consumption mailbox sensor - ingeniousmakers.com","description":"A ESPhome and Home Assistant compatible battery powered low-consumption mailbox sensor!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/","og_locale":"en_US","og_type":"article","og_title":"A very low consumption ESPHOME mailbox sensor","og_description":"A ESPhome and Home Assistant compatible battery powered low-consumption mailbox sensor!","og_url":"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/","og_site_name":"ingeniousmakers.com","article_published_time":"2022-11-05T10:41:39+00:00","article_modified_time":"2024-06-14T14:32:18+00:00","og_image":[{"width":1085,"height":1034,"url":"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ET-SW01_enclosure_1-e1664702828387.png?v=1664702801","type":"image\/png"}],"author":"Paul","twitter_card":"summary_large_image","twitter_title":"A very low consumption ESPHOME mailbox sensor","twitter_description":"A ESPhome and Home Assistant compatible battery powered low-consumption mailbox sensor!","twitter_image":"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/ET-SW01_enclosure_1-e1664702828387.png?v=1664702801","twitter_misc":{"Written by":"Paul","Est. reading time":"14 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#article","isPartOf":{"@id":"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/"},"author":{"name":"Paul","@id":"https:\/\/www.ingeniousmakers.com\/#\/schema\/person\/dc92ed07eedaed0a762c93b9545bf541"},"headline":"ET-SW01 &#8211; A very low consumption mailbox sensor","datePublished":"2022-11-05T10:41:39+00:00","dateModified":"2024-06-14T14:32:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/"},"wordCount":2401,"commentCount":28,"publisher":{"@id":"https:\/\/www.ingeniousmakers.com\/#organization"},"image":{"@id":"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/et-sw01.png?v=1667644570","articleSection":["News","Projects"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/","url":"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/","name":"ET-SW01 - A very low consumption mailbox sensor - ingeniousmakers.com","isPartOf":{"@id":"https:\/\/www.ingeniousmakers.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#primaryimage"},"image":{"@id":"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/et-sw01.png?v=1667644570","datePublished":"2022-11-05T10:41:39+00:00","dateModified":"2024-06-14T14:32:18+00:00","description":"A ESPhome and Home Assistant compatible battery powered low-consumption mailbox sensor!","breadcrumb":{"@id":"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#primaryimage","url":"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/et-sw01.png?v=1667644570","contentUrl":"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2022\/10\/et-sw01.png?v=1667644570","width":521,"height":293},{"@type":"BreadcrumbList","@id":"https:\/\/www.ingeniousmakers.com\/index.php\/2022\/11\/05\/et-sw01-a-very-low-consumption-mailbox-switch\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.ingeniousmakers.com\/"},{"@type":"ListItem","position":2,"name":"ET-SW01 &#8211; A very low consumption mailbox sensor"}]},{"@type":"WebSite","@id":"https:\/\/www.ingeniousmakers.com\/#website","url":"https:\/\/www.ingeniousmakers.com\/","name":"Ingeniousmakers.com","description":"Make it or break it!","publisher":{"@id":"https:\/\/www.ingeniousmakers.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.ingeniousmakers.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.ingeniousmakers.com\/#organization","name":"Ingeniousmakers.con","url":"https:\/\/www.ingeniousmakers.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ingeniousmakers.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2025\/03\/cropped-cropped-logo_landscape_no_payoff_transparent.png","contentUrl":"https:\/\/www.ingeniousmakers.com\/wp-content\/uploads\/2025\/03\/cropped-cropped-logo_landscape_no_payoff_transparent.png","width":1905,"height":671,"caption":"Ingeniousmakers.con"},"image":{"@id":"https:\/\/www.ingeniousmakers.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.youtube.com\/channel\/UCeMzk2C5tbMkpsByg7Nbgyw"]},{"@type":"Person","@id":"https:\/\/www.ingeniousmakers.com\/#\/schema\/person\/dc92ed07eedaed0a762c93b9545bf541","name":"Paul","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e2b00a08eb733cde522bbde7c83794598275bb5513c12d172cc8cd922b9b5cc7?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e2b00a08eb733cde522bbde7c83794598275bb5513c12d172cc8cd922b9b5cc7?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e2b00a08eb733cde522bbde7c83794598275bb5513c12d172cc8cd922b9b5cc7?s=96&r=g","caption":"Paul"},"url":"https:\/\/www.ingeniousmakers.com\/index.php\/author\/paul\/"}]}},"_links":{"self":[{"href":"https:\/\/www.ingeniousmakers.com\/index.php\/wp-json\/wp\/v2\/posts\/2245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ingeniousmakers.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ingeniousmakers.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ingeniousmakers.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ingeniousmakers.com\/index.php\/wp-json\/wp\/v2\/comments?post=2245"}],"version-history":[{"count":52,"href":"https:\/\/www.ingeniousmakers.com\/index.php\/wp-json\/wp\/v2\/posts\/2245\/revisions"}],"predecessor-version":[{"id":2649,"href":"https:\/\/www.ingeniousmakers.com\/index.php\/wp-json\/wp\/v2\/posts\/2245\/revisions\/2649"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ingeniousmakers.com\/index.php\/wp-json\/wp\/v2\/media\/2386"}],"wp:attachment":[{"href":"https:\/\/www.ingeniousmakers.com\/index.php\/wp-json\/wp\/v2\/media?parent=2245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ingeniousmakers.com\/index.php\/wp-json\/wp\/v2\/categories?post=2245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ingeniousmakers.com\/index.php\/wp-json\/wp\/v2\/tags?post=2245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}