Power Supply for NodeMCU with Battery Charger & Boost Converter

In this article, we’ll learn how to create a power supply for the NodeMCU ESP8266 board. We’ll also integrate a Battery Booster or Boost Converter Circuit, which will allow NodeMCU to run on a 3.7V Lithium-Ion battery. Because the battery can be depleted after a lengthy period of use, we’ll include a Battery Charger Circuit on the board, as well as a Battery Management System. We previously designed a Power Supply for the ESP32, and we will recreate that circuit here for the ESP32.

Most Lithium-Ion Batteries on the market can only charge to 4.2V, which is insufficient for the NodeMCU Board. As a result, we must convert the voltage from the battery to 5 volts. That’s why we’re employing a simple boost converter module with inductors, an IC, and a resistor. We’ll utilize the TP4056 Battery Charger Module to charge and control the battery in the same way.

Apart from that, we can also use a 9V/12V adapter to power this circuit. The voltage is limited to 5V by the LM7805 Voltage Regulator IC. If you don’t want to use batteries to power the circuit, you can use a DC Power Adapter instead.

Power Required By NodeMCU

Nodemcu runs on 5V and 3.3V. There is already an LDO voltage regulator for 3.3V to keep the voltage constant. The NodeMCU is fueled through a Micro USB jack and a VIN pin (External Supply Pin).

NodeMCU Power Requirements

NodeMCU requires 600mA of power, while the ESP8266 consumes up to 80mA during RF communications. It draws up to 200mA peak current during boot or wifi operation. When we add numerous sensors or modules to the NodeMCU 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. : Nodemcu ESP8266 Datasheets

Components Required:

  • NodeMCU-ESP8266-12E Board
  • 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.

1. Input 1-1.5V, output 5V 40-100mA

2. Input 1.5-2V, output 5V 100-150mA

3. Input 2-3V, output 5V 150-380mA

4. 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 Circuit for NodeMCU with Battery Charger & Boost Converter

The Power Supply Circuit for NodeMCU 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.

Power Supply Circuit for NodeMCU with Battery Charger & Boost Converter

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 Vin pin of the NodeMCU, while 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 NodeMCU, 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 switch is connected to the 5V Vin pin of the NodeMCU, and the 5V boosted voltage is connected to the switch. 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.

PCB Designing

The PCB for the NodeMCU Power Supply with Battery Charger and Booster is shown below. EasyEDA PCB Designing tool was used to create the PCB. The front and rear views of the PCB are shown below.

Fig: Front View
Fig: Back View

The Gerber File for the PCB is given below. You can download the Gerber File & go for PCB ordering.

Download Gerber File: Power Supply for NodeMCU


I hope all of you understand how to Power Supply for NodeMCU 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.