{"id":237735,"date":"2021-02-20T13:26:37","date_gmt":"2021-02-20T12:26:37","guid":{"rendered":"https:\/\/emariete.com\/?p=237735"},"modified":"2025-12-10T09:39:30","modified_gmt":"2025-12-10T08:39:30","slug":"esp8266-esp32-battery-charger-well-made","status":"publish","type":"post","link":"https:\/\/emariete.com\/en\/cargador-bateria-esp8266-esp32-bien-hecho\/","title":{"rendered":"Adding battery charger to ESP8266 and ESP32 (well done)"},"content":{"rendered":"<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this tutorial I will show you how to add battery and charger to any microcontroller based project, <strong>is based on Arduino, ESP8266, ESP32, or any other<\/strong>, <strong>correctly, safely, easily and for very little money.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph translation-block\">The goal of this project <strong>is not just to build it<\/strong>, but also to <strong>highlight some key insights along the way\u2014especially for hobbyists who want to power their creations with a battery.<\/strong> After all, <strong>did you notice the \u201c<span style=\"text-decoration: underline\">well done<\/span>\u201d in the title?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The uses are endless and, although I will be using <strong>as an example<\/strong> my project of <a href=\"https:\/\/emariete.com\/en\/meter-co2-enp8266-nodemcu-sensor-senseair-s8\/\">Home CO2 Meter<\/a>you can use it in <strong>any other project.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are more than a few occasions when we would like to <strong>use our battery-powered CO2 meter<\/strong> (at least it often happens to me). Even to calibrate it outdoors periodically, it is good for me that they are autonomous. Until now I have been using for this purpose a <strong>powerbank<\/strong> (rechargeable power supply with battery), commonly used for powering mobile phones<strong>,<\/strong> but I thought it was time for a slightly more integrated solution.<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-y-que-es-eso-de-que-esta-bien-hecho\">And what's this about it being well done?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Adding a battery to a device that runs on 5V (or even 3.3V) might seem easy enough, right?<\/p>\n\n\n\n<p class=\"has-global-color-8-background-color has-background wp-block-paragraph translation-block\"><strong>Here\u2019s a secret<\/strong>: This article isn\u2019t just about showing you <strong>how<\/strong> to \u201chook up\u201d a battery\u2014it\u2019s about explaining <strong>why it\u2019s important to do it the right way<\/strong>. That\u2019s why it\u2019s so long (and believe me, it could be even longer if we went deeper into the details).<br><br><strong>Do me a favour: Even if this seems simple and there\u2019s too much talk for something so basic, please read the whole article (don\u2019t just skip to the build). You might already know it all\u2014but then again, you might be surprised.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I think that by now everyone knows that<strong> Lithium-Ion (Li-Ion) and Lithium Polymer (Lithium Polymer) batteries<\/strong> o \"<strong>Lipo\") are <span style=\"text-decoration: underline;\">delicate <\/span>and may even be <span style=\"text-decoration: underline;\">dangerous<\/span><\/strong>. I'm sure many of you remember the scooters that went out on fire on their own in the street, not too long ago.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We live with these batteries and nothing usually happens, but that's because the vast majority of commercial devices that use them<strong> know their risks and manage them appropriately<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The danger does not come from the battery itself (well, it does a little) but, above all, from the way it is used.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The problem often lies in the fact that the majority of the \"<em>non-specialists<\/em>doesn't know (and it's logical, he doesn't have to know) what it is about \"...\".<em>the use made of it<\/em>\"And even less so when they trust that if they take a battery and take a charger and plug them in carefully, nothing bad can happen.<\/p>\n\n\n\n<p class=\"has-text-align-center has-large-font-size wp-block-paragraph\"><strong>WRONG!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There is one type of use which is particularly sensitive and <strong>I am sick and tired of seeing projects with a design that puts your battery, your device and your home at risk<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This type of use is mainly when <strong>You want to use the device and charge the battery at the same time.<\/strong>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Think about it, <strong>there are not that many devices that do that<\/strong>. We can think of the <strong>phones <\/strong>and, that they are really widespread, few others...<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We want the battery of our meter to be charged at all times, <strong>we want our device to work while the battery is charging<\/strong>. We do not want to have to turn the meter off for a few hours while the battery is charging.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-los-mandamientos-de-las-baterias-li-ion-y-li-po\">Essential rules for working with Li-ion and Li-po batteries<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These are <strong>the ten most important commandments<\/strong> + 1 when working with Li-ion and Li-po batteries (and then others follow):<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Don't overcharge the battery<\/strong><\/li>\n\n\n\n<li><strong>Don't overcharge the battery<\/strong><\/li>\n\n\n\n<li><strong>Don't overcharge the battery<\/strong><\/li>\n\n\n\n<li><strong>Don't overcharge the battery<\/strong><\/li>\n\n\n\n<li><strong>Don't overcharge the battery<\/strong><\/li>\n\n\n\n<li><strong>Don't overcharge the battery<\/strong><\/li>\n\n\n\n<li><strong>Don't overcharge the battery<\/strong><\/li>\n\n\n\n<li><strong>Don't overcharge the battery<\/strong><\/li>\n\n\n\n<li><strong>Don't overcharge the battery<\/strong><\/li>\n\n\n\n<li><strong>Don't overcharge the battery<\/strong><\/li>\n\n\n\n<li>No <strong>short circuits <\/strong>the battery (this is as important as the previous 10)<\/li>\n\n\n\n<li class=\"translation-block\">Don\u2019t <strong>discharge<\/strong> the battery below its safe threshold<\/li>\n\n\n\n<li class=\"translation-block\">Don\u2019t let the battery <strong>overheat<\/strong><\/li>\n\n\n\n<li>Do not put batteries in parallel <strong>if they are not equal and have the same load<\/strong><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>They are not the only ones, but they are the ones you can do<strong> may your house go up in flames<\/strong> more easily.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-el-pecado-de-la-mayoria-de-proyectos\">The sin of most projects<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Most of the projects you see on the internet commit the following mistakes <strong>a serious mistake<\/strong> and I am going to tell you what it is in a simple way so that you can quickly understand it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you remember, the first ten commandments said: <strong>\"Don't overcharge the battery\".<\/strong>. This means that, in the process of charging the battery, there is a certain point in the charging process at which <strong>you have to stop carrying it and go no further than that.<\/strong>. Continuing to charge the battery past this point is dangerous.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As you can imagine from the above paragraph, it follows that <strong>the charging process of a battery is very delicate<\/strong> and chargers for Li-ion and Li-po batteries (as opposed to lead-acid, nickel-cadmium or nickel-metal batteries, which can take more abuse) are very precise devices.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I am not going to explain in detail how the charging process of a Li-ion and Li-po battery works (maybe in another article) but I am going to give you the basics. <strong>main lines of what a charger does<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/TP4056-Proceso-de-Carga.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"632\" height=\"580\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/TP4056-Proceso-de-Carga.jpg\" alt=\"\" class=\"wp-image-237749\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/TP4056-Proceso-de-Carga.jpg 632w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/TP4056-Proceso-de-Carga-300x275.jpg 300w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/a><figcaption class=\"wp-element-caption\">Battery charging process with TP4056<\/figcaption><\/figure>\n<\/div>\n\n\n<ol class=\"wp-block-list\">\n<li>First the charger makes <strong>security checks<\/strong> to ensure that the battery is not connected the wrong way round, that it is within a certain voltage range, etc.<\/li>\n\n\n\n<li>The charger then performs a <strong>\"pre-conditioning\".<\/strong>The battery is tested, in a very controlled way and by supplying low currents, that the battery \"absorbs\" the current it is expected to absorb, that its voltage rises when it is supplied with current, and so on.<\/li>\n\n\n\n<li>The <strong>constant current load<\/strong>The charging process lasts almost the entire charging process. This means that <strong>the charger will keep changing the voltage<\/strong> supplying the battery as required, so that the battery always absorbs <strong>the same intensity<\/strong>.<\/li>\n\n\n\n<li>When the charger detects that the battery is close to 4.2 volts, which marks its maximum voltage, <strong>starts to reduce the current intensity<\/strong> supplying the battery.<\/li>\n\n\n\n<li>When <strong>the current is below a certain value, the charger stops charging.<\/strong>. It has ended.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Well, the problem is that in most projects, <strong>the last point is never reached and the battery charges, and charges, and charges....<\/strong> until... until the battery holds out.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Have you ever noticed how many battery-operated devices have problems with the battery? Well, that's a good reason.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>And why doesn't it stop charging?<\/strong> Well, I will also explain it to you below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-el-dano-oculto-micro-ciclos-y-estres-quimico\">The Hidden Damage: Micro-cycles and Chemical Stress<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In addition to the risk of overcharging that prevents safe termination (the \"deadly sin\" you have already covered), this common and poorly made power supply system introduces other problems that drastically shorten battery life:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-a-degradacion-por-micro-ciclos\"><strong>A. Micro-Cycle Degradation<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When the charger (e.g. TP4056) is connected in parallel with the battery and the load:<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>The charger attempts to keep the battery at its maximum voltage (<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/emariete.com\/wp-content\/ql-cache\/quicklatex.com-1449ac17c365c454271747b8ce48efcd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"4.2 V\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"36\" style=\"vertical-align: 0px;\"\/>).<\/li>\n\n\n\n<li>The ESP8266\/ESP32 circuitry, together with the converter <em>step-up<\/em>is constantly active and its current consumption is variable (especially with WiFi).<\/li>\n\n\n\n<li>Whenever the consumption of the device increases sharply (e.g. a WiFi transmission peak), the charger may not be able to react fast enough or the resistance of the cables\/components causes a voltage drop.<\/li>\n\n\n\n<li>This drop causes the battery to supply the necessary peak current, which results in a <strong>micro-discharge<\/strong>.<\/li>\n\n\n\n<li>Immediately after that, the charger detects the slightly lower voltage and <strong>reloads<\/strong> the battery.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Consequence:<\/strong> The battery undergoes constant tiny charge\/discharge cycles (<em>micro-cycling<\/em>) while connected to the power supply. This continuous work in a state of <strong>High State-of-Charge (SoC)<\/strong> generates a chemical stress that destroys the lithium cells more quickly than if it were simply at rest or if the charger could prioritise charging power.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>B. Voltage and Temperature Accelerated Chemical Stress<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This system also adds two factors that kill the battery in the long run:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><td><strong>Factor<\/strong><\/td><td><strong>Problem in the usual System (TP4056 in parallel)<\/strong><\/td><td><strong>Consequence on the Battery<\/strong><\/td><\/tr><\/thead><tbody><tr><td><strong>High SoC Constant<\/strong><\/td><td>The battery is constantly floating at <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/emariete.com\/wp-content\/ql-cache\/quicklatex.com-1449ac17c365c454271747b8ce48efcd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"4.2 V\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"36\" style=\"vertical-align: 0px;\"\/>.<\/td><td><strong>Degradation of the calendar:<\/strong> Maintaining a lithium-ion battery at 100% charge (the maximum voltage) is the most destructive factor to its chemical longevity, even without cycling. A good system <em>power path<\/em> prevents the battery from charging to 100% until the main load is disconnected, or keeps it at a safer level (e.g. 80%).<\/td><\/tr><tr><td><strong>Heat Generation<\/strong><\/td><td>1. The battery is in constant activity (micro-cycles). 2. The charger chip itself (TP4056) dissipates heat that radiates to the battery, especially if they are in close proximity.<\/td><td><strong>Premature Death:<\/strong> The high temperature exponentially accelerates unwanted chemical reactions within the cell. <strong>Every <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/emariete.com\/wp-content\/ql-cache\/quicklatex.com-d9954811400ed6eaf59e0dc406851a01_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"10 \u00b0C\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"35\" style=\"vertical-align: 0px;\"\/> increase of more than <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/emariete.com\/wp-content\/ql-cache\/quicklatex.com-0895b5ef3a608a619ec3af2d7ac3b70e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"25 \u00b0C\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"36\" style=\"vertical-align: 0px;\"\/> can halve its service life.<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-el-sistema-de-alimentacion-habitual-y-muy-mal-hecho\">The usual and (very) poorly made feeding system<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">What they do in many (very many) projects is the following:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We start from a project, which is powered normally at 5 volts.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"275\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-1-1024x275.jpg\" alt=\"\" class=\"wp-image-237754\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-1-1024x275.jpg 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-1-300x80.jpg 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-1-768x206.jpg 768w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-1.jpg 1037w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The next step would be to add a battery with its charger (a small board based on the TP4056 integrated circuit, which works very well and is able to charge the battery with an accuracy of 1.5%), and which could be left connected at all times to keep the battery permanently charged:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-2.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"915\" height=\"379\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-2.jpg\" alt=\"\" class=\"wp-image-237763\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-2.jpg 915w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-2-300x124.jpg 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-2-768x318.jpg 768w\" sizes=\"auto, (max-width: 915px) 100vw, 915px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Of course, in the above example we would have a charged battery but that battery would give us a voltage of between about 3 and 4.2 volts, depending on how charged it is, and <strong>we would not be able to use it directly to power our circuit.<\/strong> (which needs 3.3 or 5 volts to operate).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What our clever designer does is to connect, in parallel with the battery, a circuit called \"step up down\" (among other curious combinations of words such as booster or SEPIC), to which we can apply any voltage at the input (within limits that depend on the exact circuit we use, say between 2.5 and 30 volts) and that <strong>at the output will always give a nice 3.3 or 5 volts stabilised.<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-3.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1018\" height=\"377\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-3.jpg\" alt=\"\" class=\"wp-image-237757\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-3.jpg 1018w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-3-300x111.jpg 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-3-768x284.jpg 768w\" sizes=\"auto, (max-width: 1018px) 100vw, 1018px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">But, alas, our amateur designer soon realises that he is not alone (<strong>when the battery dies or disaster strikes<\/strong>The first thing that happens, but it won't take long), that things are missing here to make your circuit work properly, and <strong>can sleep peacefully at night<\/strong>.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>A protection against <strong>overload<\/strong>If you leave your device plugged in for too long and the battery discharges below a certain point, the battery will die (some batteries have this protection built in).<\/li>\n\n\n\n<li>A protection against <strong>short circuits<\/strong>because, let's be serious, at any moment (and more so in an amateur circuit, which is what we are) a cable can touch another one, ... and then the magic smoke escapes\u2014every electronics enthusiast knows what that means.<\/li>\n\n\n\n<li><strong>Other protections<\/strong> which may not cause the assembly or the house to burn down, but which are convenient to have.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">So he goes back to the design board and changes the simple loader he had been using for <strong>a more complete charger<\/strong>The device must be equipped with the necessary protections (pay attention to the connections to the charger), <strong>are very similar, but not the same:<\/strong> the previous one had only <strong>two terminals<\/strong> and it has <strong>four terminals<\/strong> two for the battery and two for the output):<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-4.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1009\" height=\"494\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-4.jpg\" alt=\"\" class=\"wp-image-237759\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-4.jpg 1009w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-4-300x147.jpg 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Cargador-Peligroso-4-768x376.jpg 768w\" sizes=\"auto, (max-width: 1009px) 100vw, 1009px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">At this point, our amateur designer has got what he wanted. A battery-operated power supply system that can charge the battery and power the device at the same time and has the necessary protections...<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">He tests it and it works! and he is so happy he publishes it...<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But that design (so extremely widespread, Google it if you want and you'll see hundreds of them) <strong>hides a dark secret, a deadly sin<\/strong> that can put us in danger:<\/p>\n\n\n\n<p class=\"has-text-align-center has-pale-cyan-blue-background-color has-background has-medium-font-size wp-block-paragraph\"><strong>THE CHARGER NEVER FINISHES CHARGING THE BATTERY, THUS BREAKING THE FIRST 10 COMMANDMENTS!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Why is this happening? <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The key to this can be found in the first point of the TP4056 integrated circuit datasheet:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/TP4056-Carga-Terminada.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"527\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/TP4056-Carga-Terminada-1024x527.png\" alt=\"\" class=\"wp-image-237748\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/TP4056-Carga-Terminada-1024x527.png 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/TP4056-Carga-Terminada-300x155.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/TP4056-Carga-Terminada-768x396.png 768w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/TP4056-Carga-Terminada.png 1126w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>\"The TP4056 automatically terminates the charge cycle when the charge current drops to 1\/10 of the programmed value after reaching the final float voltage.\"<\/em><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This means that the TP4056 will stop charging the battery. <strong><span style=\"text-decoration: underline;\">only when the final voltage has reached 4.2V and the charge current drops to one tenth of the programmed charge current<\/span>.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph translation-block\">By default, most boards using the TP4056 (and similar chips) have a programmed charging current of 1 Ampere (which can be adjusted by changing a resistor). This means that <strong>the charging process won\u2019t stop until the current draw drops below <span style=\"text-decoration: underline\">100mA<\/span>. Since we have an additional circuit connected\u2014<em>hanging off the charger<\/em>\u2014the charger gets <em>confused<\/em> by this extra consumption and <span style=\"text-decoration: underline\">never stops charging the battery<\/span>.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the programmed charging current was 500mA. the charger would only finish charging the battery when the voltage had reached 4.2V and the consumption was <strong>less than 50mA<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-la-solucion-basica\">The basic solution<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The solution to the above problem is to achieve <strong>that the battery charging and power supply circuits of our device are independent of each other.<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Look at the diagram below, imagine if we had that switch in our circuit and it switched automatically. <strong>depending on whether the external power supply is connected or not<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Load-Sharing-Cunmutador-1-1024x576.png\" alt=\"\" class=\"wp-image-237902\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Load-Sharing-Cunmutador-1-1024x576.png 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Load-Sharing-Cunmutador-1-300x169.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Load-Sharing-Cunmutador-1-768x432.png 768w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Load-Sharing-Cunmutador-1.png 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here it is with the <strong>external power connected<\/strong>. As you can see the battery continues to charge, but <strong>has no connection to our circuit<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Load-Sharing-Cunmutador-3-1024x576.png\" alt=\"\" class=\"wp-image-237904\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Load-Sharing-Cunmutador-3-1024x576.png 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Load-Sharing-Cunmutador-3-300x169.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Load-Sharing-Cunmutador-3-768x432.png 768w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Load-Sharing-Cunmutador-3.png 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">And here it is <strong>only with the battery<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Load-Sharing-Cunmutador-2-1024x576.png\" alt=\"\" class=\"wp-image-237903\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Load-Sharing-Cunmutador-2-1024x576.png 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Load-Sharing-Cunmutador-2-300x169.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Load-Sharing-Cunmutador-2-768x432.png 768w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Load-Sharing-Cunmutador-2.png 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This, electronically, is usually done by <strong>a MOSFET transistor and a diode<\/strong>The two are working together, so that between them they are capable of <strong>directing the current in the right direction<\/strong>depending on whether external power is available or not:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"845\" height=\"485\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/LoadSharingCircuit-AN1149.png\" alt=\"\" class=\"wp-image-237905\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/LoadSharingCircuit-AN1149.png 845w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/LoadSharingCircuit-AN1149-300x172.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/LoadSharingCircuit-AN1149-768x441.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Basically we have <strong>the same forbidden circuit as before<\/strong>but now we have this \"<strong>automatic switch<\/strong>\"who chooses <strong>the right path for the current<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is the path the current takes when the external power supply is connected. As you can see <strong>the charging of the battery and the power supply of our device are completely independent<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"865\" height=\"436\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/LoadSharingCircuit-AN1149-ExternalPower.png\" alt=\"\" class=\"wp-image-237906\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/LoadSharingCircuit-AN1149-ExternalPower.png 865w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/LoadSharingCircuit-AN1149-ExternalPower-300x151.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/LoadSharingCircuit-AN1149-ExternalPower-768x387.png 768w\" sizes=\"auto, (max-width: 865px) 100vw, 865px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When there is no external power supply, our device is powered by<strong> of the battery only<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"840\" height=\"491\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/LoadSharingCircuit-AN1149-BatteryPower.png\" alt=\"\" class=\"wp-image-237907\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/LoadSharingCircuit-AN1149-BatteryPower.png 840w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/LoadSharingCircuit-AN1149-BatteryPower-300x175.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/LoadSharingCircuit-AN1149-BatteryPower-768x449.png 768w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In addition, this also allows you to <strong>we prioritize external power over the battery<\/strong> on the battery when the device is powered by cable, so that we will avoid our circuit causing <strong>continuous charging and discharging of the battery <\/strong>(which would greatly shorten its life).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The above images are of an excellent <strong>manufacturer's application note Microchip<\/strong>where he talks about the design of Li-Ion battery chargers and circuits\".<strong>load sharing<\/strong>\"(load sharing) or \"<strong>power path<\/strong>\"(path of the current). If you are interested in finding out more <strong>I recommend you to read it, <a href=\"http:\/\/ww1.microchip.com\/downloads\/en\/AppNotes\/01149c.pdf\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">here<\/a><\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-y-como-lo-hacemos-bien\">And how do we get it right?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A few years ago we would have needed a lot of components: Several for battery protections, several for the charger, several for load sharing. Now we have on the market <strong>integrated circuits that do all of these functions in a quarter of a square centimetre<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The solution I bring you this time is based on one of these integrated circuits. <strong>The integrated circuit MCP73871<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the datasheet of the MCP73871.<\/p>\n\n\n\n<div data-wp-interactive=\"core\/file\" class=\"wp-block-file\"><object data-wp-bind--hidden=\"!state.hasPdfPreview\" hidden class=\"wp-block-file__embed\" data=\"https:\/\/emariete.com\/wp-content\/uploads\/2023\/12\/MCP73871-Data-Sheet-20002090E.pdf\" type=\"application\/pdf\" style=\"width:100%;height:600px\" aria-label=\"Embed of MCP73871-Data-Sheet-20002090E.\"><\/object><a id=\"wp-block-file--media-799dfcf6-c59b-486f-910d-6caaca12cde7\" href=\"https:\/\/emariete.com\/wp-content\/uploads\/2023\/12\/MCP73871-Data-Sheet-20002090E.pdf\">MCP73871-Data-Sheet-20002090E<\/a><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2023\/12\/MCP73871-Data-Sheet-20002090E.pdf\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-799dfcf6-c59b-486f-910d-6caaca12cde7\">Download<\/a><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Because it is so small it is really very difficult for an amateur to solder. The good news is that we can <a rel=\"noreferrer noopener nofollow\" href=\"https:\/\/s.click.aliexpress.com\/e\/_9HReZ0\" target=\"_blank\">buy a board that has the integrated MCP73871<\/a> and all the components it needs to function by <strong>less than \u20ac2<\/strong>. so <strong>the project is super easy<\/strong>!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I have prepared a complete video tutorial where I explain everything, everything and everything, <strong>step by step<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Don't miss it if you ever plan to add battery and charger to any of your projects.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By the way, before I forget, and as I tell in the video, this circuit is completely compatible with the <strong>battery charging by solar panels <\/strong>(5.5 and 6V), as it has the intelligence to avoid overcharging the solar panel and to extract as much energy as possible from it at any given moment. Below you can read more about this functionality, called <strong>VPCC <\/strong>(similar to what other manufacturers call <strong>MPPT<\/strong>).<\/p>\n\n\n\n<div class=\"wp-block-group has-pale-cyan-blue-background-color has-background\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>IMPORTANT (UPDATE FROM THE FIRST VIDEO):<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>If you are going to use this board powered by a charger or power supply, I recommend that you connect it as shown below.<\/strong> (current input to terminals <strong>+ y - <\/strong>instead of the PWR terminal (look closely at the picture so as not to confuse the two pins marked \"+\" which are close together):<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Diagrama-con-NodeMCU-y-Step-Up.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Diagrama-con-NodeMCU-y-Step-Up-1024x576.png\" alt=\"\" class=\"wp-image-238179\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Diagrama-con-NodeMCU-y-Step-Up-1024x576.png 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Diagrama-con-NodeMCU-y-Step-Up-300x169.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Diagrama-con-NodeMCU-y-Step-Up-768x432.png 768w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Diagrama-con-NodeMCU-y-Step-Up-1536x865.png 1536w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Diagrama-con-NodeMCU-y-Step-Up.png 1620w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Also check below, and in the <strong>second video<\/strong>as you must <a href=\"https:\/\/emariete.com\/en\/medidor-co2-con-bateria-bien-hecho\/#h-modificando-la-placa-para-su-uso-con-cargador-alimentador-modificar-vpcc\">modify the plate<\/a> to optimise it for use with a power supply or charger.<\/p>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The tutorial is divided into two videos:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the <strong>first video <\/strong>you will see the explanation and general assembly. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the <strong>second video<\/strong> you will see the recommended modifications to make the charger work properly with an external power supply or charger (instead of a solar panel).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The videos are a bit long because they are explained in great detail and are full of tips and information that I think you might find interesting.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Battery Charger and Power SIMULTANEOUSLY (well done) ESP8266, ESP32, Arduino\ud83d\udc48\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/y3QN1IYQx3Y?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"MCP73871 Use with charger or external power supply (DIY More board). Improvements, optimisation and safety.\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/rjHRpDRk2fk?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n<div class=\"gb-container gb-container-68641a62\">\n\n<p class=\"wp-block-paragraph\"><strong>Making these videos takes a lot of work<\/strong>. If you like the video don't forget to <strong><span style=\"text-decoration: underline;\">Like and subscribe to the channel<\/span><\/strong>. That&nbsp;<strong>will motivate me to keep making more videos like these.<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2023\/11\/Mesa-laboratorio-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"462\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2023\/11\/Mesa-laboratorio-1024x462.jpg\" alt=\"\" class=\"wp-image-241245\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2023\/11\/Mesa-laboratorio-1024x462.jpg 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2023\/11\/Mesa-laboratorio-300x135.jpg 300w, https:\/\/emariete.com\/wp-content\/uploads\/2023\/11\/Mesa-laboratorio-768x347.jpg 768w, https:\/\/emariete.com\/wp-content\/uploads\/2023\/11\/Mesa-laboratorio-1536x693.jpg 1536w, https:\/\/emariete.com\/wp-content\/uploads\/2023\/11\/Mesa-laboratorio-2048x924.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">To find out how to measure battery voltage with ESP Easy, be sure to watch the following tutorial:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-emariete wp-block-embed-emariete\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"3DclBZT5uT\"><a href=\"https:\/\/emariete.com\/en\/modemcu-como-voltmeter\/\">Using a ModeMCU as a voltmeter<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&quot;Using a ModeMCU as a voltmeter&quot; - eMariete\" src=\"https:\/\/emariete.com\/modemcu-como-voltimetro\/embed\/#?secret=axIzBe5C0N#?secret=3DclBZT5uT\" data-secret=\"3DclBZT5uT\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-los-materiales-del-tutorial\">The tutorial materials<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the tutorial I have used <strong>very cheap and easily available materials<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are the links to the components and materials I used to make the tutorial:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table class=\"has-background\" style=\"background-color:#e7f5fe\"><tbody><tr><td><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"169\" class=\"wp-image-237915\" style=\"width: 300px;\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Placa-Modulo-MCP73871.png\" alt=\"\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Placa-Modulo-MCP73871.png 1080w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Placa-Modulo-MCP73871-300x169.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Placa-Modulo-MCP73871-1024x576.png 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Placa-Modulo-MCP73871-768x432.png 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/td><td> <p>\r\n  <a href=\"https:\/\/s.click.aliexpress.com\/e\/_c2zy4k1F\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\r\n\t  \ud83d\udc49 Power management board, charger MCP73871 DIY More\r\n  <\/a>\r\n<\/p>\r\n <\/td><\/tr><tr><td><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"169\" class=\"wp-image-237916\" style=\"width: 300px;\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Step-Up.png\" alt=\"\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Step-Up.png 1080w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Step-Up-300x169.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Step-Up-1024x576.png 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/02\/Step-Up-768x432.png 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/td><td> <p>\r\n  <a href=\"https:\/\/s.click.aliexpress.com\/e\/_oEEPA6G\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\r\n\t  \ud83d\udc49 Step-up lifting plate (booster)\r\n  <\/a>\r\n<\/p>\r\n <\/td><\/tr><tr><td><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"169\" class=\"wp-image-238167\" style=\"width: 300px;\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Placa-Proteccion-Bateria.png\" alt=\"\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Placa-Proteccion-Bateria.png 1080w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Placa-Proteccion-Bateria-300x169.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Placa-Proteccion-Bateria-1024x576.png 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Placa-Proteccion-Bateria-768x432.png 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/td><td> <p>\r\n  <a href=\"https:\/\/s.click.aliexpress.com\/e\/_oka40ic\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\r\n\t  \ud83d\udc49 Battery protection plate\r\n  <\/a>\r\n<\/p>\r\n <\/td><\/tr><tr><td><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"279\" class=\"wp-image-238168\" style=\"width: 300px;\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Cable-Silicona-e1617259409696.jpg\" alt=\"\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Cable-Silicona-e1617259409696.jpg 576w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Cable-Silicona-e1617259409696-300x279.jpg 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/td><td> <p>\r\n  <a href=\"https:\/\/s.click.aliexpress.com\/e\/_oFgmgfO\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\r\n    \ud83d\udc49 Silicone cables\r\n  <\/a>\r\n<\/p>\r\n <\/td><\/tr><tr><td><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"154\" class=\"wp-image-238185\" style=\"width: 300px;\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Flux-RMA-223.jpg\" alt=\"\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Flux-RMA-223.jpg 693w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/Flux-RMA-223-300x154.jpg 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/td><td> <p>\r\n  <a href=\"https:\/\/s.click.aliexpress.com\/e\/_oBTth3E\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\r\n\t  \ud83d\udc49 Soldering flux RMA-223\r\n  <\/a>\r\n<\/p>\r\n <\/td><\/tr><tr><td><img decoding=\"async\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2023\/01\/Conector-Micro-USB-PCB.jpg\" alt=\"\"><\/td><td> <p>\r\n  <a href=\"https:\/\/s.click.aliexpress.com\/e\/_oF6HXk4\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\r\n\t  \ud83d\udc49 Micro-USB connector with PCB board for cabling\r\n  <\/a>\r\n<\/p>\r\n <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-la-solucion-bien-hecha-gestion-de-trayectoria-de-potencia-power-path\">The solution done right: Power Path management<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The charging board using the chip <strong>MCP73871<\/strong> (or any chip with <em>Power Path Management<\/em>) solves the two previous problems (termination failure and micro-cycles) thanks to a concept called <strong>\"System Load Priority\".<\/strong> (<em>Load Sharing<\/em>).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The MCP73871 Priority Principle<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The secret of the MCP73871 lies in its logic of <strong>Low Loss Power Path Management<\/strong> (<em>Low-Loss Power-Path Management<\/em>), which is based on a simple and safe principle: <strong>system charging always takes priority over battery charging.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>How does it work?<\/strong><\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Energy Monitoring:<\/strong> The MCP73871 chip constantly monitors the total current input from the external source (USB, AC\/DC charger or solar panel).<\/li>\n\n\n\n<li><strong>Direct Supply:<\/strong> When the external power supply is connected, the chip uses this energy to power <strong>directly<\/strong> the ESP8266\/ESP32 circuitry and the <em>step-up<\/em> (the <strong>cargo<\/strong>).<\/li>\n\n\n\n<li><strong>Priority to Consumption:<\/strong> Only the <strong>remaining current<\/strong> (the one not using the ESP) is diverted to the internal charger circuit to top up the battery.<\/li>\n\n\n\n<li><strong>Battery Disconnection:<\/strong> While the external source can fully satisfy the needs of the device (the load), the chip uses a MOSFET transistor (acting as the \"ideal diode\") to <strong>virtually disconnecting the battery from the load<\/strong>isolating the switchgear from system consumption.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">How do you solve problems?<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. Troubleshoot Load Termination Failure<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>In TP4056 (badly done):<\/strong> The charging current never drops to zero because the charger is feeding the battery AND the circuit at the same time, which falsifies the termination current reading.<\/li>\n\n\n\n<li><strong>In MCP73871 (well done):<\/strong> The internal charger only sees the current flowing. <strong>to the battery<\/strong>. When the battery is fully charged (<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/emariete.com\/wp-content\/ql-cache\/quicklatex.com-1449ac17c365c454271747b8ce48efcd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"4.2 V\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"36\" style=\"vertical-align: 0px;\"\/>), its current requirement drops to zero, <strong>independently<\/strong> of what the ESP32 is consuming. The chip detects this drop to zero of the load current and <strong>ends the cycle safely<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">2. Eliminates Micro-Cycles and Chemical Stress<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>In TP4056 (badly done):<\/strong> The battery is constantly connected to the load, which causes micro-discharges and recharges with every consumption peak.<\/li>\n\n\n\n<li><strong>In MCP73871 (well done):<\/strong> By giving priority to the external source and using the <em>Power Path<\/em> to isolate the battery, this <strong>remains at rest<\/strong> once it has been fully loaded.\n<ul class=\"wp-block-list\">\n<li>If the device requests a current peak that the external source cannot cover, the battery intervenes in a controlled manner and only for as long as necessary.<\/li>\n\n\n\n<li>While the external power supply is connected, the battery is not under the stress of the constant consumption peaks of the ESP, which <strong>maximises its lifespan<\/strong> by reducing unnecessary activity and chemical stress from fluctuations in the high load state.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"h-caracteristicas-beneficios-y-funcionalidades-de-nuestro-sistema-de-alimentacion-con-bateria\"><strong>In short: With the MCP73871, power flows from the external source to the system, and the battery is only charged with what is left over, or intervenes only if the external source fails or is not sufficient.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-caracteristicas-beneficios-y-funcionalidades-de-nuestro-sistema-de-alimentacion-con-bateria\">Features benefits and functionalities of our battery powered system<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are other ways of tackling this problem, but the one I propose in this tutorial has <strong>many advantages<\/strong>. These are some of them:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Integrated system load sharing and battery charge management (<strong>load sharing\/power path<\/strong>).<\/li>\n\n\n\n<li><strong>Simultaneous system power supply and charging<\/strong> of the lithium-ion battery<\/li>\n\n\n\n<li>The <strong>voltage proportional current control<\/strong> (VPCC or pseudo-MPPT) ensures that system charging takes priority over the charging current of the lithium-ion battery.<\/li>\n\n\n\n<li>Management of the<strong> low loss feed route <\/strong>with \"ideal diode\" operation<\/li>\n\n\n\n<li>Controller of <strong>linear load management<\/strong> complete<\/li>\n\n\n\n<li>Pass transistors <strong>integrated<\/strong><\/li>\n\n\n\n<li>Protection of <strong>reverse discharge<\/strong> integrated<\/li>\n\n\n\n<li>Selectable input power supplies: <strong>USB port<\/strong> or wall adapter <strong>AC-DC<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You also have at your disposal a wide range of <strong>additional options<\/strong> (for some of them you will have to check the datasheet of the integrated circuit to know how to use them):<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pre-set high precision charging voltage options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Battery charging at 4.10V, 4.20V, 4.35V or 4.40V<\/li>\n\n\n\n<li>Regulating tolerance of 0.5%.<\/li>\n\n\n\n<li>Constant Current \/ Constant Voltage (CC\/CV)<\/li>\n\n\n\n<li><span style=\"font-size: inherit; background-color: initial;\">1.8A max. total input current control (with heatsink)<\/span>. <strong>Without heatsink it is recommended not to exceed 1Amp.<\/strong>.<\/li>\n\n\n\n<li>Fast charge current programmable by resistance. Control: 50 mA to 1A<\/li>\n\n\n\n<li>Resistor programmable load termination set point<\/li>\n\n\n\n<li>Selectable USB input current control. Absolute maximum: 100 mA (L) \/ 500 mA (H)<\/li>\n\n\n\n<li>Automatic reloading<\/li>\n\n\n\n<li>Automatic end-of-load control<\/li>\n\n\n\n<li>Safety timer with timer activation\/deactivation control<\/li>\n\n\n\n<li>0.1C preconditioning for heavily depleted cells<\/li>\n\n\n\n<li>Battery cell temperature control<\/li>\n\n\n\n<li>Under Voltage Lockout (UVLO)<\/li>\n\n\n\n<li>Low battery status indicator (LBO)<\/li>\n\n\n\n<li>Power status indicator (PG)<\/li>\n\n\n\n<li>Indicators for charge status and error states<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In addition, with the improvements introduced in the second video, we will get:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Optimised for use with external power supply or charger<\/li>\n\n\n\n<li>Short-circuit protection<\/li>\n\n\n\n<li>Overload protection<\/li>\n\n\n\n<li>Over-discharge protection<\/li>\n\n\n\n<li>Overcurrent protection<\/li>\n\n\n\n<li>Battery voltage measurement from ESP8266<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-analisis-y-pruebas-practicas\">Analysis and practical tests<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I leave you with the first practical test.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I was very struck by the fact that this board has a <strong>such an extremely large capacitor<\/strong> (4700uF 25V), especially when the chip manufacturer recommends in its datasheet the use of a 4.7uF capacitor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It seems to me that the answer is in the datasheet itself and I mark it below.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"530\" height=\"528\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-MCP73871-Datasheet.png\" alt=\"\" class=\"wp-image-237920\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-MCP73871-Datasheet.png 530w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-MCP73871-Datasheet-300x300.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-MCP73871-Datasheet-150x150.png 150w\" sizes=\"auto, (max-width: 530px) 100vw, 530px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Of course, it says \"any good output filter capacitor\" and <strong>a \"good capacitor\" is not cheap<\/strong>The manufacturer therefore seems to have decided to <strong>saving costs by using a mediocre but much larger capacitor<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To check whether this was the case, I carried out the following two tests:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With the condenser <strong>original <\/strong>from <strong>4700\u03bcF 25V<\/strong>. With a 5V input from a powerbank.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-4700uF-25V-MCP73871.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-4700uF-25V-MCP73871-1024x576.jpg\" alt=\"\" class=\"wp-image-237921\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-4700uF-25V-MCP73871-1024x576.jpg 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-4700uF-25V-MCP73871-300x169.jpg 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-4700uF-25V-MCP73871-768x432.jpg 768w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-4700uF-25V-MCP73871-1536x864.jpg 1536w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-4700uF-25V-MCP73871.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">And the result is as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/emariete.com\/en\/osciloscopio-condensador-mcp73871-4700uf-25v-2\/\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"480\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Osciloscopio-Condensador-MCP73871-4700uF-25V-2.png\" alt=\"\" class=\"wp-image-237925\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Osciloscopio-Condensador-MCP73871-4700uF-25V-2.png 800w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Osciloscopio-Condensador-MCP73871-4700uF-25V-2-300x180.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Osciloscopio-Condensador-MCP73871-4700uF-25V-2-768x461.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">With a <strong>4.7\u03bcF 25V tantalum capacitor, as specified by manufacturer<\/strong> of the chip.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-4.7uF-25V-MCP73871.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-4.7uF-25V-MCP73871-1024x576.jpg\" alt=\"\" class=\"wp-image-237926\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-4.7uF-25V-MCP73871-1024x576.jpg 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-4.7uF-25V-MCP73871-300x169.jpg 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-4.7uF-25V-MCP73871-768x432.jpg 768w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-4.7uF-25V-MCP73871-1536x864.jpg 1536w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Condensador-4.7uF-25V-MCP73871.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The result is as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Osciloscopio-Condensador-MCP73871-4.7uF-25V.png\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"480\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Osciloscopio-Condensador-MCP73871-4.7uF-25V.png\" alt=\"\" class=\"wp-image-237924\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Osciloscopio-Condensador-MCP73871-4.7uF-25V.png 800w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Osciloscopio-Condensador-MCP73871-4.7uF-25V-300x180.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Osciloscopio-Condensador-MCP73871-4.7uF-25V-768x461.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">As you can see, the result is practically the same (slightly better with the 4.7\u03bcF 25V tantalum, as it is a better quality capacitor).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>In both cases the result is very good<\/strong>The more so since some of the observed noise is probably from the oscilloscope itself, which is also in a rather electrically noisy environment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These have been some of the <strong>rapid no-load tests<\/strong>. It could be that as the load increases the 4.7\u03bcF capacitor is not enough and a larger one has to be fitted. I will make more measurements when I have time and post them here.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is also quite possible that this larger capacitor may only be necessary when using <strong>solar panels<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-analisis-de-la-placa-de-carga-con-mcp73871\">Analysis of the load plate with MCP73871<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Update (23\/3\/2021): The mystery is solved. The problems I discuss below were caused by a misconfigured VPCC. If you are going to use the board with a power supply or USB charger, read \"Modifying the board for use with a charger\/charger (modifying VPCC)\" below to learn more.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This charging plate is a bit of a mystery.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It looks like a <strong>low-cost version of an Adafruit board<\/strong> \"USB, DC &amp; Solar Lipoly Charger\" which, with the same chip and the same features, is priced at 17\u20ac. Adafruit no longer sells this board, but has replaced it with a similar one with the BQ24074 chip.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The reality is that after having the meter with which I have written this article and recorded the video running for several weeks without any problems (mainly plugged into the mains, with very little battery use), following a comment from a user, who said that the meter did not work if he did not have a battery installed (which theoretically would not be a problem, according to the datasheet of the MCP73871) I started to investigate and found some things a little <em>strangers<\/em>\u2026<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The thing is that I haven't had time yet to test the meter I assembled (you have already seen in the video that it is all glued and quite tight, so you have to disassemble a lot) but I have made a test assembly composed of: A lab power supply at the Power input, an 18650 battery of about 2800mAh capacity at the BAT input and a computer controlled electronic load at the output.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The results of the initial tests have been very mysterious...<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With the source set to 5.0V and limited to 1A, the battery charged (4.15V) and a load increasing from 0.1A to 1.2A in 0.1A increments every 2 seconds, the result was this:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Carga-MCP73871-de-0.1A-a-1.2A.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1116\" height=\"648\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Carga-MCP73871-de-0.1A-a-1.2A.png\" alt=\"\" class=\"wp-image-238094\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Carga-MCP73871-de-0.1A-a-1.2A.png 1116w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Carga-MCP73871-de-0.1A-a-1.2A-300x174.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Carga-MCP73871-de-0.1A-a-1.2A-1024x595.png 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Carga-MCP73871-de-0.1A-a-1.2A-768x446.png 768w\" sizes=\"auto, (max-width: 1116px) 100vw, 1116px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">As you can see, as the load increases (red line) the voltage supplied by the board (blue line) goes down, so that when the load is 0.5A the voltage supplied is 3.79V and when the load is 1.2A the voltage goes down to 3.16A.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Unfortunately the manufacturer of the board (DIY More) has not published the schematic or documentation on its use, so we have to reverse engineer it with microscope, multimeter and MCP73871 datasheet. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Updated 23\/3\/2021<\/strong>: Thanks to the user jcomas we have available the <a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2023\/11\/Schematic_DIY-MORE-Solar-Charger-MCP73871_2021-03-23.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">DIY More<\/a>(Thank you Josep!)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Update (23\/3\/2021):<\/strong> This is now fixed. As mentioned above, if you are going to use the board with a power supply or USB charger, read \"Modifying the board for use with a power supply\/charger (modifying VPCC)\" below to find out more.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Update (1\/4\/2021):<\/strong> Published <strong>second video<\/strong> with VPCC modification, improvements, optimisations, protection.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-algunos-pines-del-mcp73871\">Some pins of the MCP73871<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The MCP73871 integrated chip has several pins which, depending on whether they are set to logic high or logic low, change the chip's operating characteristics, activate and deactivate options, etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the datasheet you can find a detailed description of what each of them does.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are some of the checks, measurements and tests I have carried out on some of the pins in that reverse engineering effort I was telling you about.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-pin-sel-3-funcionamiento-desde-puerto-usb-o-alimentador\">SEL pin (3) - Operation from USB port or mains power supply<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">This pin allows the MCP73871 to operate in two modes, \"USB\" or \"power\". <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When it gets to<strong> low level the operating mode is USB<\/strong> and, in this mode, the MCP73871 will limit the current consumption so as not to damage the USB port to which it is connected (according to the USB standard these ports have relatively low power limitations).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With the pin to <strong>high level the operating mode shall be \"feeder\".<\/strong>. In this case, the MCP73871 eliminates input current consumption limitations and will draw up to 1.8A from the power supply to which it is connected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The plaque for <strong>default comes with the pin at high level<\/strong> (through a 10K resistor), so its mode of operation is as a feeder, and it can consume up to 1.8A from the power supply.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The bottom of the plate has <strong>a pad marked SEL<\/strong> which allows us to modify the level of this pin easily (easily when I know how to use it, of course, I have to investigate it to see how is the scheme of this area because I have not found any explanation).<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-pin-prog2-4-corriente-maxima-del-puerto-usb-cuando-sel-low\">Pin PROG2 (4) - Maximum USB port current when SEL=LOW<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">This pin allows, when the MCP73871 is operating in USB mode (SEL pin low), to choose whether we want the chip to draw up to a maximum of 100mA or 500mA (low level = 100mA, high level = 500 mA).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This pin is accessible from the underside of the board, on a <strong>pad marked PROG2<\/strong>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-pin-prog1-13-programacion-de-la-corriente-de-carga\">Pin PROG1 (13) - Programming of the charging current<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The battery charging current can be programmed by means of the resistor connected to the PROG1 pin of the MCP73871 integrated circuit, so that it can be varied. <strong>between 100mA and 1000mA<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The plate is supplied <strong>factory set with a resistance of 2K<\/strong>which programs the MCP73871 to charge the battery with<strong> 500mA<\/strong>. Substituting the 2K resistor for a <strong>1K resistor would give a charge current of 1000mA. <\/strong>and if we replace it with a 10K the charge would be at 100mA.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the following graph you can see what the load current would be for different values of the resistor connected to PROG1 so that you can choose the one that suits you best.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note that the maximum charging current specified by the battery manufacturer must always be observed. Where this information is not available, the acceptable value would be <strong>half of the battery capacity<\/strong> (i.e. if the battery is 1200mAh it is acceptable to charge it at 600mA).<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/MCP73871-Programming-Resistor.png\"><img loading=\"lazy\" decoding=\"async\" width=\"717\" height=\"476\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/MCP73871-Programming-Resistor.png\" alt=\"\" class=\"wp-image-238106\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/MCP73871-Programming-Resistor.png 717w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/MCP73871-Programming-Resistor-300x199.png 300w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-pin-vpcc-2-control-de-carga-proporcional-al-voltaje-importante-para-paneles-solares\">VPCC pin (2) - Voltage Proportional Charge Control (important for solar panels)<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">This pin is important for the operation of the MCP73871, as it is one of the main characteristics of this chip, which differentiates it from other similar chips.<\/p>\n\n\n<div class=\"gb-container gb-container-5e8f3e00\">\n<div class=\"gb-container gb-container-abf0b294\">\n\n<p class=\"has-global-color-8-background-color has-background wp-block-paragraph\">It is very important to note at this point that this \"VPCC\" feature is very similar to what other manufacturers call MPPT. If we take as an example the ubiquitous chip (in amateur projects) <strong>CN3971, it does not have a real MPPT, but a pseudo-MPPT.<\/strong> (sufficient most of the time).<br><br>Sel CN3971 better optimises the energy extraction from the solar panel. The MCP73871 is more similar to the CN3065.<\/p>\n\n<\/div>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">The MCP73871 allows battery charging using solar panels (maximising their efficiency to make the most of the energy these panels can provide), and one of the characteristics of the panels is that as you charge a solar panel further (asking for more output current) there is a critical point at which the panel \"collapses\"; its voltage drops suddenly and so does the energy it can deliver.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This means that we have to be careful that the panel does not collapse. In other words, we must try to get the maximum possible intensity out of it, but we must also be careful that the panel does not collapse. <strong>just before the \"collapse\" point<\/strong> and that point varies continuously with the solar energy available at that moment and with the consumption of the circuit that we have connected...<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The VPCC feature included in the MCP73871 chip serves to optimise this and works in the following way (short and simple explanation, to understand what it is all about, for more information see the datasheet where it is explained in detail):<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The MCP73871 monitors the voltage delivered by the panel through a voltage divider that is connected to the VPCC pin. The voltage divider must be calculated so that 1.23V is present at the VPCC pin when the voltage of the solar panel is the optimum voltage that allows it to deliver maximum power.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When the voltage on the VPCC pin falls below 1.23V <strong>the chip reduces the current demanded from the panel, lowering the charging current of the battery to give priority to the output (the device connected to its output) and supplying the necessary current from the battery, if that of the solar panel is not sufficient, until it is completed.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>This function can be disabled by connecting the VPCC pin to IN.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, if we have a system designed for panels providing 5.5V with \u00b10.5V tolerance (which is quite common), we will have to select the worst case scenario, which in this case would be 5.0V, to calculate the voltage to apply to the VPCC pin through the divider.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/MCP73871-Divisor-Tension-VPCC.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/MCP73871-Divisor-Tension-VPCC-1024x576.png\" alt=\"\" class=\"wp-image-238101\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/MCP73871-Divisor-Tension-VPCC-1024x576.png 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/MCP73871-Divisor-Tension-VPCC-300x169.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/MCP73871-Divisor-Tension-VPCC-768x432.png 768w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/MCP73871-Divisor-Tension-VPCC-1536x865.png 1536w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/MCP73871-Divisor-Tension-VPCC.png 1620w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><br>This voltage divider that you can see in the example is very similar to the one that comes with our board. The difference is that in our board instead of a 330K resistor we have a 270K resistor and instead of a 110K resistor we have a 100K resistor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The board we have chosen is factory-configured to optimise operation as a charger with a solar panel, and not with a power supply or USB port.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Like <strong>our plate comes from the factory optimised for use with solar panels.<\/strong> with a voltage of 5.0V, it is possible that, if we connect it to a USB charger or power supply, the voltage drops below 5.0V (due to the voltage drop in the cables and the tolerances of the components), which would mean that the MCP73871 would limit the current it would demand from the power supply, supplementing the energy that is lacking to supply the circuit from the battery.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Important: If you are going to use this circuit with solar panels and you are going to power 5V equipment<\/strong>Instead of a step up, it is recommended that you use a step down, as solar panels can give 5.5, 6V or more at full output. The step up only raises the voltage (so the input voltage must be lower than the output voltage), while the step up down is able to raise or lower the voltage, depending on whether the input voltage is lower or higher than desired.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By the way, if you plan to use this plate with solar panels, it is essential that you read the post below. When you finish you will say: <em>I used to be blind, now I can see<\/em>eo...<\/p>\n\n\n<div class=\"gb-container gb-container-d6af269f\">\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-emariete wp-block-embed-emariete\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"oM2cQqVyY2\"><a href=\"https:\/\/emariete.com\/en\/solar-panel-issues-low-power-esp32\/\">Low-Power Solar Panels: MPPT is the Secret to Running Your ESP32 on Just 1W<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&quot;Low Power Solar Panels: The Secret to running your ESP32 on just 1W is called MPPT&quot; - eMariete\" src=\"https:\/\/emariete.com\/problemas-paneles-solares-baja-potencia-esp32\/embed\/#?secret=BsVp3YF5LS#?secret=oM2cQqVyY2\" data-secret=\"oM2cQqVyY2\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-modificando-la-placa-para-su-uso-con-cargador-alimentador-modificar-vpcc\">Modifying the board for use with charger\/feeder (modifying VPCC)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>If we are going to habitually use our charging board powered by a charger or power supply, (and although in many cases everything works correctly because the voltage remains above 5V) it is advisable to reduce the VPCC, modifying the voltage divider or disabling it by connecting the VPCC pin to IN.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As I mentioned in the previous point, the board, as it comes from the factory, is optimised for solar panel charging, with the VPCC set to decrease the charging current when the power supply drops below 5V.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This, when using the board with a power supply or USB charger, is a lottery because, depending on several factors that I have already mentioned, it is easy for the power supply to drop below 5V, which would drastically reduce the charging current.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To solve this problem, you have two options:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You can disable VPCC completely by binding the VPCC pin to IN.<\/li>\n\n\n\n<li>You can change the voltage divider of the VPCC to reduce the voltage at which the load is reduced.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">I will explain here how you can easily disable VPCC completely (option 1).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I am not going to explain option 2 step by step for two reasons: The first one is that it is not normally necessary if you are going to use the board with a charger or USB power supply. The second is that, being an advanced use, it is assumed that you know what you are doing and in the previous point I have already explained how to calculate the voltage divider yourself.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-deshabilitando-el-vpcc-del-mcp73871\">Disabling the VPCC of MCP73871<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">As I mentioned before, we can disable this functionality<strong>by connecting the VPCC pin to Vin.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">How about this <strong>how we do it<\/strong>?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Well, it's simple: As I explained before, the VPCC pin is connected to the power input via a voltage divider as follows:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"810\" height=\"455\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/MCP73871-Divisor-Tension-VPCC-edited.png\" alt=\"\" class=\"wp-image-238110\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/MCP73871-Divisor-Tension-VPCC-edited.png 810w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/MCP73871-Divisor-Tension-VPCC-edited-300x169.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/MCP73871-Divisor-Tension-VPCC-edited-768x431.png 768w\" sizes=\"auto, (max-width: 810px) 100vw, 810px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This voltage divider that you can see in the example is very similar to the one that comes with our board. The difference is that in our board instead of a 330K resistor we have a 270K resistor and instead of a 110K resistor we have a 100K resistor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is the <strong>position of the two resistors we are interested in<\/strong> on our board (R1 and R5 is the silkscreen on the board, although you can't see it well now because the resistors are on top of the silkscreen, hiding it):<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Placa-DIY-More-Divisor-Tension-VPCC.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Placa-DIY-More-Divisor-Tension-VPCC-1024x576.png\" alt=\"\" class=\"wp-image-238119\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Placa-DIY-More-Divisor-Tension-VPCC-1024x576.png 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Placa-DIY-More-Divisor-Tension-VPCC-300x169.png 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Placa-DIY-More-Divisor-Tension-VPCC-768x432.png 768w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Placa-DIY-More-Divisor-Tension-VPCC-1536x865.png 1536w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Placa-DIY-More-Divisor-Tension-VPCC.png 1620w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">As what we have to do is to connect the VPCC pin directly to Vin, we just have to <strong>remove both resistors and in the place where the 270K resistor used to be, we make a bridge<\/strong> with a drop of tin or a small piece of wire (where the 100K was, we left the hole) and that's it!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"539\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Placa-DIY-More-Quitar-Resistencias-Divisor-Tension-VPCC-edited.jpg\" alt=\"\" class=\"wp-image-238125\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Placa-DIY-More-Quitar-Resistencias-Divisor-Tension-VPCC-edited.jpg 960w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Placa-DIY-More-Quitar-Resistencias-Divisor-Tension-VPCC-edited-300x168.jpg 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/03\/Placa-DIY-More-Quitar-Resistencias-Divisor-Tension-VPCC-edited-768x431.jpg 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/figure>\n\n\n\n<p class=\"has-vivid-red-color has-text-color wp-block-paragraph\"><strong>Step-by-step instructions on how to make this modification can be found in the second video, which you can find above.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-el-step-up-y-optimizacion-del-consumo\">Step up and consumption optimisation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After considerable research, it appears that the step up used is based on the <strong>integrated circuit MT3608<\/strong> (or a Chinese version).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One interesting thing about this chip is that it features a <strong>pin ENABLE<\/strong> (enable), which allows you to <strong>switch the step up \"on and off\" at will from your microcontroller<\/strong>The sensors or actuators connected to it can be switched on and off in order to save energy.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is very simple: when this pin is connected to VCC, the step up is working and we will obtain the expected voltage at its output. When the pin is connected to GND, the chip will be \"off\" and at its output we will obtain 0 volts (which in practice means turning off whatever we have connected to it).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is essential for energy savings.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The step up board does not have this pin accessible and it comes from the factory permanently connected to VCC (so the step up is always working), so if you want to use this pin, you will have to make <strong>a small modification<\/strong>which consists of <strong>cut the track that connects it to VCC and connect the pin to a pin on your microcontroller.<\/strong>by means of a small cable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When the pin of your microcontroller is at level 1 (on) we will start the step up and when it is at level 0 we will stop it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It's a bit of a tricky operation, given the small size of the components, but, as I always say, nothing that can't be achieved with a bit of determination.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the following pictures you can see the PCB track that you have to cut to disconnect it from VCC, as well as the little wire soldered to the ENABLE pin that you will have to connect to the pin of your microcontroller that you want to turn the step up on and off.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_43_34_Pro-3.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_43_34_Pro-3-1024x576.jpg\" alt=\"\" class=\"wp-image-238210\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_43_34_Pro-3-1024x576.jpg 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_43_34_Pro-3-300x169.jpg 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_43_34_Pro-3-768x432.jpg 768w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_43_34_Pro-3-1536x864.jpg 1536w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_43_34_Pro-3.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_13_Pro-2.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_13_Pro-2-1024x576.jpg\" alt=\"\" class=\"wp-image-238209\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_13_Pro-2-1024x576.jpg 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_13_Pro-2-300x169.jpg 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_13_Pro-2-768x432.jpg 768w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_13_Pro-2-1536x864.jpg 1536w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_13_Pro-2.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_25_Pro-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_25_Pro-1-1024x576.jpg\" alt=\"\" class=\"wp-image-238208\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_25_Pro-1-1024x576.jpg 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_25_Pro-1-300x169.jpg 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_25_Pro-1-768x432.jpg 768w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_25_Pro-1-1536x864.jpg 1536w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_25_Pro-1.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_45_Pro-6.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_45_Pro-6-1024x576.jpg\" alt=\"\" class=\"wp-image-238213\" srcset=\"https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_45_Pro-6-1024x576.jpg 1024w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_45_Pro-6-300x169.jpg 300w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_45_Pro-6-768x432.jpg 768w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_45_Pro-6-1536x864.jpg 1536w, https:\/\/emariete.com\/wp-content\/uploads\/2021\/04\/MT3608-Enable-Mod_20210409_10_44_45_Pro-6.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here you have the <strong>MT3608 datasheet<\/strong>if you want to know more about him:<\/p>\n\n\n\n<div data-wp-interactive=\"core\/file\" class=\"wp-block-file\"><object data-wp-bind--hidden=\"!state.hasPdfPreview\" hidden class=\"wp-block-file__embed\" data=\"https:\/\/emariete.com\/wp-content\/uploads\/2023\/12\/MT3608.pdf\" type=\"application\/pdf\" style=\"width:100%;height:600px\" aria-label=\"Embed of MT3608.\"><\/object><a id=\"wp-block-file--media-97bf7acc-2ef4-4660-95fd-46606082dd85\" href=\"https:\/\/emariete.com\/wp-content\/uploads\/2023\/12\/MT3608.pdf\">MT3608<\/a><a href=\"https:\/\/emariete.com\/wp-content\/uploads\/2023\/12\/MT3608.pdf\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-97bf7acc-2ef4-4660-95fd-46606082dd85\">Download<\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-esto-seguira-creciendo\">This tutorial will continue to evolve\u2026<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">With this you can start, although<strong> many things have been left out<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>There are more things that I will be adding<\/strong> to this page as I prepare them, as the video was getting too long and there is \"a lot of material to cut\".<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I want to show other similar boards, tests, measurements and performance analysis carried out with oscilloscope, electronic load and other measuring instruments. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And, you know, if you want me to expand on any particular aspect of this topic, leave it in the comments.<\/p>\n\n\n\n<p class=\"has-pale-cyan-blue-background-color has-background wp-block-paragraph\"><strong>Sign up now for the newsletter and join the<a href=\"https:\/\/t.me\/emariete_chat\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"> Telegram group<\/a> and don't miss it.<\/strong><\/p>\n<div class=\"essb_break_scroll\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Learn how to add a rechargeable battery to your project, easily and safely.<\/p>","protected":false},"author":1,"featured_media":240363,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","_lmt_disableupdate":"yes","_lmt_disable":"no","footnotes":""},"categories":[12,16,17],"tags":[20,43],"class_list":["post-237735","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-co2-easy","category-medidor-co2","category-proyectos-arduino","tag-arduino","tag-proyectos-arduino"],"modified_by":"Mariete","uagb_featured_image_src":{"full":["https:\/\/emariete.com\/wp-content\/uploads\/2022\/01\/cargador-bateria-esp8266-esp32-bien-hecho.png",1080,608,false],"thumbnail":["https:\/\/emariete.com\/wp-content\/uploads\/2022\/01\/cargador-bateria-esp8266-esp32-bien-hecho-150x150.png",150,150,true],"medium":["https:\/\/emariete.com\/wp-content\/uploads\/2022\/01\/cargador-bateria-esp8266-esp32-bien-hecho-300x169.png",300,169,true],"medium_large":["https:\/\/emariete.com\/wp-content\/uploads\/2022\/01\/cargador-bateria-esp8266-esp32-bien-hecho-768x432.png",768,432,true],"large":["https:\/\/emariete.com\/wp-content\/uploads\/2022\/01\/cargador-bateria-esp8266-esp32-bien-hecho-1024x576.png",1024,576,true],"1536x1536":["https:\/\/emariete.com\/wp-content\/uploads\/2022\/01\/cargador-bateria-esp8266-esp32-bien-hecho.png",1080,608,false],"2048x2048":["https:\/\/emariete.com\/wp-content\/uploads\/2022\/01\/cargador-bateria-esp8266-esp32-bien-hecho.png",1080,608,false],"trp-custom-language-flag":["https:\/\/emariete.com\/wp-content\/uploads\/2022\/01\/cargador-bateria-esp8266-esp32-bien-hecho.png",18,10,false]},"uagb_author_info":{"display_name":"Mariete","author_link":"https:\/\/emariete.com\/en\/author\/admin_xlyz052h\/"},"uagb_comment_info":46,"uagb_excerpt":"Aprende a a\u00f1adir bater\u00eda recargable a tu proyecto, f\u00e1cilmente y con seguridad.","_links":{"self":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts\/237735","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/comments?post=237735"}],"version-history":[{"count":16,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts\/237735\/revisions"}],"predecessor-version":[{"id":242990,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/posts\/237735\/revisions\/242990"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/media\/240363"}],"wp:attachment":[{"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/media?parent=237735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/categories?post=237735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emariete.com\/en\/wp-json\/wp\/v2\/tags?post=237735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}