Power Supply for ESP32 with Battery Charger & Boost Converter

In this article, we will learn how to create a power supply for the ESP32 board. We’ll also include a Battery Booster or Boost Converter Circuit, allowing the ESP32 to run on a 3.7V Lithium-Ion battery. Because the Lithium-Ion Battery can be discharged, a Battery Charger Circuit will be included with the Battery Management System. We designed a power supply for the NodeMCU previously, and we’ll do the same for the ESP32 now.

The majority of Lithium-Ion/Lithium Polymer Batteries can only charge to 4.2V, which is insufficient for the ESP32 Board. As a result, the 2.8V-3.7V voltage from the battery must be increased to 5V. That’s why we’re employing a tiny Boost Converter Module with inductors, an IC, and a resistor. The TP4056 Battery Charger Module will be used to charge and control the battery.

We can also use a 9V/12V DC Adapter to power this circuit. The voltage is limited to 5V by the LM7805 voltage regulator IC. You can use a DC Power Adapter or a 9V Battery to power the circuit if you don’t want to use batteries.

ESP32 Power Requirement

The ESP32 Board runs on a voltage range of 2.2 to 3.6 volts. However, we provide 5V via the Micro-USB connector. There is already an LDO voltage regulator for 3.3V to keep the voltage constant. The ESP32 is powered through a Micro USB connector and a VIN pin (External Supply Pin).

ESP32 Power Requirement

ESP32 requires 600mA of power since it draws up to 250mA during RF broadcasts. It draws more than 200mA current during boot or wifi operation. When we add numerous sensors or modules to the ESP32 Board, the power supplied by the Micro-USB Cable is insufficient. This is due to the fact that the USB port on a computer can only produce 500mA of current. Check more about ESP32 Power requirements here: ESP32 Datasheet.

Hardware Required

  • ESP32 ESP-32S Development Board (ESP-WROOM-32)
  • TP4056 5V,1A Battery Charging Module
  • LM7805 5V Voltage Regulator IC
  • Female DC Power Jack
  • 3.7V to 5V Boost Converter Module
  • 3 Pin SPDT Switch
  • Electrolytic Capacitor-470uF, 25V/100uF,16V
  • 5mm LED Any Color
  • Resistor-220ohm
  • 2.54mm Female Header
  • 2.54mm Female Header

3.7V to 5V Step-Up Boost Converter Module

3.7V to 5V Boost Converter Module

This is a Step-Up DC-DC Boost converter module that outputs a 5V DC stable voltage at varied input voltage ranges between 1.5V and 5V. This little circuit enhances the voltage level and delivers a steady 5V output that has been amplified. This module operates at a frequency of 150 kHz, while the rest of the modules function at a frequency of 150 kHz. It consumes a variable amount of current for each input range in order to provide a balanced output.

  • Input 1-1.5V, output 5V 40-100mA
  • Input 1.5-2V, output 5V 100-150mA
  • Input 2-3V, output 5V 150-380mA
  • Input more than 3V, output 5V 380-480mA

TP4056 Battery Charger Module

TP4056 Battery Charger Module

The constant-current/constant-voltage (CC/CV) charging method is used to charge rechargeable lithium batteries with this 3.7V Battery Charger TP4056 module. The TP4056 BMS Board not only properly charges a lithium battery, but it also offers the necessary safety that lithium batteries require. The TP4056 can be used with USB and adapter power supplies. External isolation diodes are not required because of the internal PMOSFET architecture and anti-reverse charging path.

To learn more about this module, you can go through its datasheet here: TP4056 Module Datasheet.

Power Supply for ESP32 with Battery Charger & Boost Converter

The Power Supply Circuit for ESP32 with Battery Charger and Boost Converter circuit diagram is shown below. The circuit can be powered via two different methods: a 9V/12V DC Adapter and a 3.7V Lithium-Ion Battery.

ESP32 Power Supply Circuit

We utilized DCJ0202 Female Jack to power the board using DC Jack. To eliminate DC fluctuations and voltage spikes, we used 470uF and 100uF electrolytic capacitors. The LM7805 voltage regulator IC can handle voltages ranging from 7 to 35 volts. However, it is recommended that the input voltage be limited to 15V. With a higher voltage, more heat is dissipated, necessitating a larger heat sink. The Voltage regulator’s output is connected to the ESP32’s Vin pin, and GND is connected to GND. As a result, the module can be powered by a 9V/12V DC adapter or a 9V battery.

If you don’t want to use a DC adapter to power the ESP32, you can use a 3.7V Lithium-Ion or Lithium Polymer Battery instead. The Boost Converter Module raises the voltage from 3.7 to 5 volts (can work from 2.8V input to 4.2V input). The 5V boosted voltage is connected to the switch, which is connected to the ESP32’s 5V Vin pin. The output terminal of the TP4056 Battery Charger Module is also linked to the Battery terminal. As a result, a 5V MicroUSB Data Cable can be used to charge the battery.

The board features a 220ohm resistor attached to an LED that indicates the Module is powered on. It is advised that the SPDT switch be turned off when charging the battery.

Project PCB Gerber File & PCB Ordering Online

If you don’t want to put the circuit together on a breadboard and instead want a PCB for your project, here is the PCB for you. EasyEDA ‘s online Circuit Schematics & PCB Design tool was used to create the PCB for the Power Supply for ESP32 with Battery Charger & Booster. The PCB’s front and back sides are shown below.

Fig: Front View

Fig: Back View

The Gerber File for the PCB is given below. You can simply download the Gerber File and order the PCB from

Download Gerber File: ESP32 Power Supply PCB

Now you can visit the NextPCB official website by clicking here: So you will be directed to the NextPCB website.

You can now upload the Gerber File and place an order on the website. The PCBs are in excellent condition. That is why the majority of people entrust NextPCB with their PCB and PCBA needs.


I hope all of you understand how to Power Supply for ESP32 with Battery Charger & Boost converters. We MATHA ELECTRONICS will be back soon with more informative blogs.

Leave a Reply

Your email address will not be published.