{"id":84742,"date":"2019-05-02T14:51:48","date_gmt":"2019-05-02T14:51:48","guid":{"rendered":"https:\/\/randomnerdtutorials.com\/?p=84742"},"modified":"2019-06-06T15:20:57","modified_gmt":"2019-06-06T15:20:57","slug":"power-esp32-esp8266-solar-panels-battery-level-monitoring","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/power-esp32-esp8266-solar-panels-battery-level-monitoring\/","title":{"rendered":"Power ESP32\/ESP8266 with Solar Panels (includes battery level monitoring)"},"content":{"rendered":"\n<p>This tutorial shows step-by-step how to power the ESP32 development board with solar panels, a 18650 lithium battery and the TP4056 battery charger module. The circuit we&#8217;ll build is also compatible with the ESP8266 or any microcontroller that is powered at 3.3V.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/ESP32-Solar-Powered-Battery-Level-Monitor.jpg?resize=1200%2C675&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Power ESP32 ESP8266 with Solar Panels includes battery level monitoring\" class=\"wp-image-84784\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/ESP32-Solar-Powered-Battery-Level-Monitor.jpg?w=1280&amp;quality=100&amp;strip=all&amp;ssl=1 1280w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/ESP32-Solar-Powered-Battery-Level-Monitor.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/ESP32-Solar-Powered-Battery-Level-Monitor.jpg?resize=768%2C432&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/ESP32-Solar-Powered-Battery-Level-Monitor.jpg?resize=1024%2C576&amp;quality=100&amp;strip=all&amp;ssl=1 1024w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure><\/div>\n\n\n\n<p>When you power your ESP32 with solar panels, it may be useful to use its deep sleep capabilities to save power. Learn everything you need to know about deep sleep with the ESP32 with our guide: <a href=\"https:\/\/randomnerdtutorials.com\/esp32-deep-sleep-arduino-ide-wake-up-sources\/\">ESP32 Deep Sleep with Arduino IDE and Wake Up Sources<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Parts Required<\/h2>\n\n\n\n<p>To power the ESP32 or ESP8266 with solar panels, we&#8217;ll use the following parts:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/makeradvisor.com\/tools\/esp32-dev-board-wi-fi-bluetooth\/\" target=\"_blank\">ESP32 <\/a>or <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/makeradvisor.com\/tools\/esp8266-esp-12e-nodemcu-wi-fi-development-board\/\" target=\"_blank\">ESP8266<\/a> (read <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/makeradvisor.com\/esp32-vs-esp8266\/\" target=\"_blank\">ESP32 vs ESP8266<\/a>)<\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/makeradvisor.com\/tools\/mini-5v-solar-panel\/\" target=\"_blank\">2x Mini Solar Panel (5\/6V 1.2W)<\/a> <\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/makeradvisor.com\/tools\/rechargeable-li-ion-batteries\/\" target=\"_blank\">Lithium Li-ion battery 18650<\/a><\/li><li>Battery holder<\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/makeradvisor.com\/tools\/rechargeable-li-ion-batteries\/\" target=\"_blank\">Battery charger (optional)<\/a><\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/makeradvisor.com\/tools\/tp4056-lithium-battery-charger\/\" target=\"_blank\">TP4056 Lithium Battery Charger Module<\/a><\/li><li>Voltage regulator:<ul><li><a rel=\"noreferrer noopener\" href=\"https:\/\/makeradvisor.com\/tools\/low-dropout-ldo-regulator-mcp1700-3320e\/\" target=\"_blank\">Low-dropout or LDO regulator (MCP1700-3302E)<\/a><\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/makeradvisor.com\/tools\/electrolytic-capacitors-kit\/\" target=\"_blank\">100uF electrolytic capacitor<\/a><\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/makeradvisor.com\/tools\/ceramic-capacitors-kit\/\" target=\"_blank\">100nF ceramic capacitor<\/a> <\/li><\/ul><\/li><li><strong>Optional<\/strong> &#8211; voltage divider for battery monitor:<ul><li><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/makeradvisor.com\/tools\/resistors-kits\/\" target=\"_blank\">27k Ohm resistor<\/a><\/li><li><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/makeradvisor.com\/tools\/resistors-kits\/\" target=\"_blank\">100k Ohm resistor<\/a><\/li><\/ul><\/li><\/ul>\n\n\n<p>You can use the preceding links or go directly to <a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\">MakerAdvisor.com\/tools<\/a> to find all the parts for your projects at the best price!<\/p><p style=\"text-align:center;\"><a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/header-200.png?w=1200&#038;quality=100&#038;strip=all&#038;ssl=1\"><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ESP32 Solar Powered &#8211; Circuit Overview<\/h2>\n\n\n\n<p>The following diagram shows how the circuit to power the ESP32 with solar panels works.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-circuit-1.png?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"1200\" height=\"405\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-circuit-1.png?resize=1200%2C405&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 Solar Powered Circuit Schematic Diagram Overview\" class=\"wp-image-84763\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-circuit-1.png?w=1266&amp;quality=100&amp;strip=all&amp;ssl=1 1266w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-circuit-1.png?resize=300%2C101&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-circuit-1.png?resize=768%2C259&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-circuit-1.png?resize=1024%2C345&amp;quality=100&amp;strip=all&amp;ssl=1 1024w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/a><\/figure><\/div>\n\n\n\n<ol class=\"wp-block-list\"><li>The solar panels output between 5V to 6V with direct sun.<\/li><li>The solar panels charge the <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/makeradvisor.com\/tools\/rechargeable-li-ion-batteries\/\" target=\"_blank\">lithium battery<\/a> through the <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/makeradvisor.com\/tools\/tp4056-lithium-battery-charger\/\" target=\"_blank\">TP4056 battery charger module<\/a>. This module is responsible for charging the battery and prevent overcharging. <\/li><li>The lithium battery outputs 4.2V when fully charged.<\/li><li>You need to use a low dropout voltage regulator circuit (<a href=\"https:\/\/makeradvisor.com\/tools\/low-dropout-ldo-regulator-mcp1700-3320e\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">MCP1700-3302E<\/a>) to get 3.3V from the battery output.<\/li><li>The output from the voltage regulator will power the ESP32 through the 3.3V pin.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Solar Panels<\/h2>\n\n\n\n<p>The solar panels we&#8217;re using have an output voltage up to between 5V to 6V. If you want your battery to charge faster, you can use several solar panels in parallel. In this example we&#8217;re using <a href=\"https:\/\/makeradvisor.com\/tools\/mini-5v-solar-panel\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">two mini solar panels<\/a> as shown in the following figure.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"750\" height=\"421\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/hobby-sollar-panels.jpg?resize=750%2C421&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Power ESP32 ESP8266 Solar Panels\" class=\"wp-image-84743\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/hobby-sollar-panels.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/hobby-sollar-panels.jpg?resize=300%2C168&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<p>To wire solar panels in parallel solder the (+) terminal of one solar panel to the (+) terminal of the other solar panel. Do the same for the (-) terminals. It may help taking a look at the following figure.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"429\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solder-solar-panels-in-parallel.jpg?resize=750%2C429&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Power ESP32 ESP8266 Solar Panels Circuit\" class=\"wp-image-84786\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solder-solar-panels-in-parallel.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solder-solar-panels-in-parallel.jpg?resize=300%2C172&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<p>When wiring solar panels in parallel you\u2019ll get the same output voltage, and double the current (for identical solar panels).  As you can see in the following figure, the solar panels output approximately 6V.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"421\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solar-panels-output-voltage.jpg?resize=750%2C421&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Power ESP32 ESP8266 Solar Panels Multimeter Measurements\" class=\"wp-image-84752\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solar-panels-output-voltage.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solar-panels-output-voltage.jpg?resize=300%2C168&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<p>In the picture above, we&#8217;re using the ANENG AN8002 multimeter, read our review here: <strong><a href=\"https:\/\/makeradvisor.com\/aneng-an8002-an8008-multimeter-review\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">ANENG AN8002 Multimeter Review \u2013 Best Low Cost Multimeter?<\/a><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TP4056 Charger Module<\/h2>\n\n\n\n<p>The <a href=\"https:\/\/makeradvisor.com\/tools\/tp4056-lithium-battery-charger\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">TP4056 lithium battery charger module<\/a> comes with circuit protection and prevents battery over-voltage and reverse polarity connection. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"438\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/tp4056-battery-charger.jpg?resize=750%2C438&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"TP4056 lithium battery charger module\" class=\"wp-image-84753\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/tp4056-battery-charger.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/tp4056-battery-charger.jpg?resize=300%2C175&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<p>The TP4056 module lights up a red LED when it\u2019s charging the battery and lights up a blue LED when the battery is fully charged. <\/p>\n\n\n\n<p>Wire the solar panels to the TP4056 lithium battery charger module as shown in the schematic diagram below. Connect the positive terminals to the pad marked with <span class=\"rnthl rntcred\">IN+<\/span>&nbsp;and the negative terminals to the pad marked with&nbsp;<span class=\"rnthl rntcblack\">IN-<\/span>. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solar-panel-tp4056-step-1.png?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1090\" height=\"426\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solar-panel-tp4056-step-1.png?resize=1090%2C426&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"TP4056 lithium battery charger module connected to solar panels\" class=\"wp-image-84754\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solar-panel-tp4056-step-1.png?w=1090&amp;quality=100&amp;strip=all&amp;ssl=1 1090w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solar-panel-tp4056-step-1.png?resize=300%2C117&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solar-panel-tp4056-step-1.png?resize=768%2C300&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solar-panel-tp4056-step-1.png?resize=1024%2C400&amp;quality=100&amp;strip=all&amp;ssl=1 1024w\" sizes=\"(max-width: 1090px) 100vw, 1090px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Then, connect the battery holder positive terminal to the <span class=\"rnthl rntcred\">B+<\/span>&nbsp;pad, and the battery holder negative terminal to the&nbsp;<span class=\"rnthl rntcblack\">B-<\/span> pad.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solar-panel-tp4056-wiring-step2.png?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"935\" height=\"311\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solar-panel-tp4056-wiring-step2.png?resize=935%2C311&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"TP4056 lithium battery charger module connected to solar panels and lithium battery\" class=\"wp-image-84757\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solar-panel-tp4056-wiring-step2.png?w=935&amp;quality=100&amp;strip=all&amp;ssl=1 935w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solar-panel-tp4056-wiring-step2.png?resize=300%2C100&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/solar-panel-tp4056-wiring-step2.png?resize=768%2C255&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 935px) 100vw, 935px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>The <span class=\"rnthl rntcred\">OUT+<\/span>&nbsp;and&nbsp;<span class=\"rnthl rntcblack\">OUT-<\/span> are the battery outputs. These lithium batteries output up to 4.2V when fully charged (although they have 3.7V marked in the label). <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"421\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/lithium-battery-output.jpg?resize=750%2C421&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"lithium battery multimeter output voltage\" class=\"wp-image-84795\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/lithium-battery-output.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/lithium-battery-output.jpg?resize=300%2C168&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<p>To power the ESP32 through its 3.3V pin, we need a voltage regulator circuit to get 3.3V from the battery output.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Voltage Regulator<\/h2>\n\n\n\n<p>Using a typical linear voltage regulator to drop the voltage from 4.2V to 3.3V isn\u2019t a good idea, because as the battery discharges to, for example 3.7V, your voltage regulator would stop working, because it has a high cutoff voltage.<\/p>\n\n\n\n<p>To drop the voltage efficiently with batteries, you need to use a low-dropout regulator, or LDO for short, that can regulate the output voltage.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"360\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/MCP1700.jpg?resize=750%2C360&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"MCP1700-3302E LDO Low-dropout Voltage Regulator\" class=\"wp-image-84758\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/MCP1700.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/MCP1700.jpg?resize=300%2C144&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<p>After researching LDOs, the&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/makeradvisor.com\/tools\/low-dropout-ldo-regulator-mcp1700-3320e\/\" target=\"_blank\">MCP1700-3302E<\/a> is the best for what we want to do. There is also a good alternative like the HT7333-A.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"254\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/HT73333.jpg?resize=550%2C254&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"HT7333-A LDO Low-dropout Voltage Regulator\" class=\"wp-image-47779\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/HT73333.jpg?w=550&amp;quality=100&amp;strip=all&amp;ssl=1 550w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/HT73333.jpg?resize=300%2C139&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/figure><\/div>\n\n\n\n<p>Any LDO that has similar specifications to these two are also good alternatives. Your LDO should have similar specs when it comes to output voltage, quiescent current, output current and a low dropout voltage. Take a look at the datasheet below. <br><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"629\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/datasheet.jpg?resize=900%2C629&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"MCP1700 Datasheet LDO Low-dropout Voltage Regulator\" class=\"wp-image-47769\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/datasheet.jpg?w=900&amp;quality=100&amp;strip=all&amp;ssl=1 900w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/datasheet.jpg?resize=300%2C210&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/11\/datasheet.jpg?resize=768%2C537&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/figure><\/div>\n\n\n\n<p>Here\u2019s the MCP1700-3302E pinout: GND, VIN and VOUT pins.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"244\" height=\"415\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/mcp1700-pinout.png?resize=244%2C415&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"MCP1700-3320E pinout pins\" class=\"wp-image-84759\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/mcp1700-pinout.png?w=244&amp;quality=100&amp;strip=all&amp;ssl=1 244w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/mcp1700-pinout.png?resize=176%2C300&amp;quality=100&amp;strip=all&amp;ssl=1 176w\" sizes=\"(max-width: 244px) 100vw, 244px\" \/><\/figure><\/div>\n\n\n\n<p>The LDOs should have a ceramic capacitor and an electrolytic capacitor connected in parallel to GND and Vout to smooth the voltage peaks. Here we\u2019re using a <a href=\"https:\/\/makeradvisor.com\/tools\/electrolytic-capacitors-kit\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">100uF electrolytic capacitor<\/a>, and a <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/makeradvisor.com\/tools\/ceramic-capacitors-kit\/\" target=\"_blank\">100nF ceramic capacitor<\/a>.<\/p>\n\n\n\n<p>Follow the next schematic diagram to add the voltage regulator circuit to the previous setup.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-circuit.png?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"405\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-circuit.png?resize=1200%2C405&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 ESP8266 Solar Panels and voltage regulator circuit\" class=\"wp-image-84760\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-circuit.png?w=1266&amp;quality=100&amp;strip=all&amp;ssl=1 1266w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-circuit.png?resize=300%2C101&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-circuit.png?resize=768%2C259&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-circuit.png?resize=1024%2C345&amp;quality=100&amp;strip=all&amp;ssl=1 1024w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/a><\/figure><\/div>\n\n\n\n<p class=\"rntbox rntcred\"><strong>Warning: <\/strong> electrolytic capacitors have polarity! The lead with the white\/gray strip should be connected to GND.<\/p>\n\n\n\n<p>The Vout pin of the voltage regulator should output 3.3V. That is the pin that will power the ESP32 or ESP8266.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"421\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/output-voltage-after-voltage-regulator-circuit.jpg?resize=750%2C421&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 ESP8266 Solar Panels and voltage regulator circuit multimeter measurements\" class=\"wp-image-84761\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/output-voltage-after-voltage-regulator-circuit.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/output-voltage-after-voltage-regulator-circuit.jpg?resize=300%2C168&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<p>Finally, after making sure that you&#8217;re getting the right voltage on the Vout pin of the voltage regulator, you can power the ESP32. Connect the Vout pin to the 3.3V pin of the ESP32 and GND to GND.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-ff.png?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1127\" height=\"545\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-ff.png?resize=1127%2C545&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Power ESP32 with Solar Panels circuit schematic\" class=\"wp-image-84781\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-ff.png?w=1127&amp;quality=100&amp;strip=all&amp;ssl=1 1127w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-ff.png?resize=300%2C145&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-ff.png?resize=768%2C371&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-ff.png?resize=1024%2C495&amp;quality=100&amp;strip=all&amp;ssl=1 1024w\" sizes=\"(max-width: 1127px) 100vw, 1127px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>If you&#8217;re using an ESP8266 instead, you can follow the same circuit. Wire the output of the MCP1700-3302E to the ESP8266 3.3V pin and GND to GND.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/05\/esp8266-solar-powered-f.png?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1075\" height=\"530\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/05\/esp8266-solar-powered-f.png?resize=1075%2C530&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Power ESP8266 with Solar Panels circuit schematic\" class=\"wp-image-84858\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/05\/esp8266-solar-powered-f.png?w=1075&amp;quality=100&amp;strip=all&amp;ssl=1 1075w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/05\/esp8266-solar-powered-f.png?resize=300%2C148&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/05\/esp8266-solar-powered-f.png?resize=768%2C379&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/05\/esp8266-solar-powered-f.png?resize=1024%2C505&amp;quality=100&amp;strip=all&amp;ssl=1 1024w\" sizes=\"(max-width: 1075px) 100vw, 1075px\" \/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Battery Voltage Level Monitoring Circuit<\/h2>\n\n\n\n<p>When you have your ESP32 powered with batteries or solar powered as in this case, it can be very useful to monitor the battery level. One way to do that is reading the output voltage of the battery using an analog pin of the ESP32.<\/p>\n\n\n\n<p>However, the battery we&#8217;re using here outputs a maximum of 4.2V when fully charged, but the ESP32 GPIOs work at 3.3V. So, we need to add a voltage divider so that we&#8217;re able to read the voltage from the battery.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/voltage-divider-battery-level.png?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"837\" height=\"420\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/voltage-divider-battery-level.png?resize=837%2C420&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Battery Voltage Level Monitoring Circuit Schematic\" class=\"wp-image-84787\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/voltage-divider-battery-level.png?w=837&amp;quality=100&amp;strip=all&amp;ssl=1 837w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/voltage-divider-battery-level.png?resize=300%2C151&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/voltage-divider-battery-level.png?resize=768%2C385&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 837px) 100vw, 837px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>The voltage divider formula is as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Vout = (Vin*R2)\/(R1+R2)<\/code><\/pre>\n\n\n\n<p>So, if we use R1=27k Ohm, and R2=100k Ohm, we get:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Vout = (4.2*100k)\/(27k + 100k) = 3.3V<\/code><\/pre>\n\n\n\n<p>So, when the battery is fully charged, the Vout outputs 3.3V that we can read with an ESP32 GPIO.<\/p>\n\n\n\n<p>Add two resistors to your circuit as shown in the following schematic diagram.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-battery-monitor.png?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"603\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-battery-monitor.png?resize=1200%2C603&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Final circuit Power ESP32 with Solar Panels battery level monitoring\" class=\"wp-image-84782\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-battery-monitor.png?w=1280&amp;quality=100&amp;strip=all&amp;ssl=1 1280w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-battery-monitor.png?resize=300%2C151&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-battery-monitor.png?resize=768%2C386&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/esp32-solar-powered-battery-monitor.png?resize=1024%2C514&amp;quality=100&amp;strip=all&amp;ssl=1 1024w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>In this case, we&#8217;re monitoring the battery level through <span class=\"rnthl rntcgreen\">GPIO33<\/span>, but you can use any other suitable GPIO. Read our <a href=\"https:\/\/randomnerdtutorials.com\/esp32-pinout-reference-gpios\/\">ESP32 GPIO guide<\/a> to learn which GPIOs are the best to use. <\/p>\n\n\n\n<p>Finally, to get the battery level, you can simply read the voltage on <span class=\"rnthl rntcgreen\">GPIO33<\/span> using the <span class=\"rnthl rntliteral\">analogRead()<\/span> function in your code (if you&#8217;re using Arduino IDE).<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>analogRead(33);<\/code><\/pre>\n\n\n\n<p>You can also use the <span class=\"rnthl rntliteral\">map()<\/span> function, to convert the analog values to a percentage:<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>float batteryLevel = map(analogRead(33), 0.0f, 4095.0f, 0, 100);<\/code><\/pre>\n\n\n\n<p>If you&#8217;re using ESP8266, it just supports analog reading on the <span class=\"rnthl rntcgreen\">A0<\/span> pin. So, you need to wire the circuit as follows:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/05\/esp8266-solar-powered-battery-monitor.jpg?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"610\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/05\/esp8266-solar-powered-battery-monitor.jpg?resize=1200%2C610&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Final circuit Power ES8266 with Solar Panels battery level monitoring\" class=\"wp-image-84859\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/05\/esp8266-solar-powered-battery-monitor.jpg?w=1280&amp;quality=100&amp;strip=all&amp;ssl=1 1280w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/05\/esp8266-solar-powered-battery-monitor.jpg?resize=300%2C153&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/05\/esp8266-solar-powered-battery-monitor.jpg?resize=768%2C391&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/05\/esp8266-solar-powered-battery-monitor.jpg?resize=1024%2C521&amp;quality=100&amp;strip=all&amp;ssl=1 1024w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>With the ESP8266 to read the analog value use:<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>analogRead(0);<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Wrapping Up<\/h2>\n\n\n\n<p>In this article we&#8217;ve shown you how to power the ESP32 or the ESP8266 with solar panels, a lithium battery and a TP4056 battery charger module. The circuit we&#8217;ve shown you can also be used to power other microcontrollers that require 3.3V to operate.<\/p>\n\n\n\n<p>When powering the ESP32 using solar panels or batteries, it is important to save power. For that, you can use the <a href=\"https:\/\/randomnerdtutorials.com\/esp32-touch-wake-up-deep-sleep\/\">ESP32 deep sleep capabilities<\/a>.<\/p>\n\n\n\n<p>Now, you can use this circuit to make your projects solar powered. For example, it would be interesting to modify the following projects to use solar panels:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-data-logging-temperature-to-microsd-card\/\">ESP32 Data Logging Temperature to MicroSD Card<\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-web-server-with-bme280-mini-weather-station\/\">ESP32 Web Server with BME280 \u2013 Mini Weather Station<\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/low-power-weather-station-datalogger-using-esp8266-bme280-micropython\/\">Low Power Weather Station Datalogger<\/a><\/li><\/ul>\n\n\n\n<p>If you want to learn more about ESP32, make sure you check our dedicated ESP32 course: <strong><a href=\"https:\/\/randomnerdtutorials.com\/learn-esp32-with-arduino-ide\/\">Learn ESP32 with Arduino IDE<\/a><\/strong>.<\/p>\n\n\n\n<p>Thanks for reading.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial shows step-by-step how to power the ESP32 development board with solar panels, a 18650 lithium battery and the TP4056 battery charger module. The circuit we&#8217;ll build is also &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Power ESP32\/ESP8266 with Solar Panels (includes battery level monitoring)\" class=\"read-more button\" href=\"https:\/\/randomnerdtutorials.com\/power-esp32-esp8266-solar-panels-battery-level-monitoring\/#more-84742\" aria-label=\"Read more about Power ESP32\/ESP8266 with Solar Panels (includes battery level monitoring)\">CONTINUE READING \u00bb<\/a><\/p>\n","protected":false},"author":5,"featured_media":84784,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[281,299,264],"tags":[],"class_list":["post-84742","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-esp32-project","category-0-esp32","category-project"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2019\/04\/ESP32-Solar-Powered-Battery-Level-Monitor.jpg?fit=1280%2C720&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/84742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=84742"}],"version-history":[{"count":0,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/84742\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/84784"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=84742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=84742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=84742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}