You can power an ESP32 from a single 3.7 V lithium polymer (LiPo) cell, but you can’t clip the cell straight to the board’s 3.3 V pin. A full cell reads about 4.2 V, and Espressif lists 3.6 V as the maximum supply voltage for the ESP32 chip. The right setup depends on your board. Some boards include a charger and a battery connector. Others need a converter between the cell and the board. This guide covers both cases, cell protection, and a runtime estimate.
Why a LiPo can’t go straight to the 3.3 V pin
A LiPo cell runs from about 4.2 V when full down to about 3.0 V when nearly empty. A full cell is above the chip’s 3.6 V limit, so wiring it straight to the 3.3 V rail can damage the chip. Many dev boards also use a linear regulator that needs about 1 V of headroom above 3.3 V. A single cell can’t provide that headroom for most of its discharge, so the 3.3 V output sags and the board can reset.
Check your board first
Look at the board’s labels and connectors:
- A BAT or LiPo pin, or a JST battery connector, usually means the board has a charger and a battery path. Confirm this in the board’s documentation before you connect a cell.
- A plain dev board with 5V, VIN, 3V3, and GND pins usually has no charger. It needs an external converter, and ideally a charger module as well.
If your board has a battery connector, you don’t need a separate converter. Otherwise, add one as described below.
Option 1: board with a built-in charger
Plug the cell’s connector into the board’s battery connector. The onboard charger handles charging over USB, and the board draws from the cell when USB is unplugged. Use a cell whose connector matches the board, and check the polarity markings before you plug it in. Keep to the charge current that the board’s documentation lists.
Option 2: bare dev board with a 5 V boost converter
A boost converter raises 3.7 V to 5 V. On many ESP32 dev boards, VIN is the regulator input, so feed the converter’s 5 V output into VIN, and the board’s regulator makes the 3.3 V rail. Set the converter’s output to 5 V, and check that its input range covers at least 3.0 to 4.2 V. Choose a converter that can supply more than the board’s peak current, because Wi-Fi bursts can reach a few hundred milliamps. Boost converters lose some energy as heat, so real runtime is shorter than the cell’s rated capacity suggests.
Option 3: 3.3 V buck-boost for a bare module
For a bare ESP32 module, or a board where you want to skip the onboard regulator, use a buck-boost converter set to 3.3 V and connect it to the chip’s 3.3 V supply pin. A buck-boost is needed because the cell’s voltage moves above and below 3.3 V as it charges and drains. A step-down converter can’t raise the voltage when the cell is low, and a typical linear regulator needs more headroom than a cell has near the bottom of its range. Check the converter’s datasheet for its minimum input voltage and its output current, and make sure the output current covers Wi-Fi bursts.
Protect the cell
A LiPo cell needs protection against over-discharge, over-charge, and short circuits. Use one of these:
- A protected cell, which has a built-in protection circuit. The circuit cuts off near the cell’s low-voltage limit and guards against overcharge and short circuits.
- A charger module with protection. Many TP4056-based charger boards charge at up to about 1 A and stop at 4.2 V. Cheap versions often have no protection on the battery side, so pair them with a protected cell.
Charge the cell only with a charger designed for LiPo cells, and don’t let it drain below about 3.0 V. The protection circuit’s cutoff is a last line of defense, and repeated deep discharge shortens the cell’s life.
How much current the ESP32 draws
Wi-Fi transmit bursts draw the most current, reaching a few hundred milliamps for short periods. Between bursts, modem sleep and light sleep lower the average. Espressif’s published figures put deep sleep at around 10 µA for the chip. A dev board draws more than the chip alone, because the USB-to-serial chip, the power LED, and the regulator all add to the total. Measure the whole board, not just the chip, before you choose a cell.
Estimate runtime
Use this formula:
runtime (hours) ≈ battery capacity (mAh) × usable fraction ÷ average current (mA)
Use the average current over your duty cycle, not the peak. The usable fraction accounts for converter losses and the cutoff voltage. Until you measure your setup, use a conservative value such as 0.8, and treat it as an assumption.
As an illustration, not a measurement: a 2000 mAh cell, a usable fraction of 0.8, and an average draw of 50 mA gives 2000 × 0.8 ÷ 50 = 32 hours. A project that wakes every 10 minutes, sends data for a second, and sleeps in between has a much lower average draw, so it runs much longer. Measure your own average before you rely on the number.
Common questions
How much voltage does an ESP32 take?
The ESP32 chip runs from 3.0 to 3.6 V, and 3.3 V is the usual target. Dev boards accept higher input, typically 5 V on USB or VIN, because their regulator steps it down to 3.3 V. The input range varies by board, so check your board’s documentation.
Can an ESP32 run on a 3.7 V battery?
Yes, in the sense that a 3.7 V nominal cell is inside the chip’s range. A full cell, though, is 4.2 V, which is above the chip’s 3.6 V limit, and the cell falls toward 3.0 V as it drains. The cell is in range for only part of its discharge, so you need a converter, a charger with protection, or a board designed for LiPo cells.
How do I power an ESP32 with AA batteries?
Three alkaline AA cells give about 4.5 V when new. A board’s regulator can run from that for a while, but the regulator loses headroom as the cells drain, so the board can brown out before the cells are empty. Two AA cells, about 3 V, are too low for a standard regulator to produce 3.3 V. For AA cells, use a boost converter to 5 V into VIN, or a buck-boost set to 3.3 V. Check the converter’s minimum input voltage against the cells’ output as they drain.
Can I connect a 9 V battery to an ESP32?
Many dev boards have a regulator that accepts 9 V on VIN, but check your board’s rated input range first. The regulator turns the extra voltage into heat. A 9 V battery also holds a small amount of charge, so it runs the board for a short time. For a Wi-Fi project, use a larger cell or a converter from a bigger pack.
Wiring checklist
- Confirm whether your board has a charger and a battery connector.
- Use a protected cell, and a charger designed for LiPo cells.
- Check polarity with a multimeter before the first connection.
- Keep the cell between about 3.0 V and 4.2 V.
- Measure the 3.3 V output under Wi-Fi load, not just at idle.
If you’re powering an Arduino board instead, the Arduino power supply guide covers the Uno’s inputs, voltage ranges, and soft power switch.