Battery
Using LiPo 2000mAh Battery with ESP32
What is the LiPo 2000mAh?
LiPo 2000mAh practical reference
A rechargeable lithium-polymer pouch cell offering a good capacity-to-weight ratio for wearables, drones, and compact robots. Unlike a rigid cylindrical 18650, a LiPo pouch cell is thin, flexible in shape, and lightweight for its capacity, making it well suited to projects where the battery needs to fit into a slim enclosure or minimize overall weight — but it requires careful handling, since LiPo cells are more sensitive to puncture, overcharge, and over-discharge damage than more rugged cell formats.
Key specifications
- Chemistry: Lithium-polymer (LiPo), single cell
- Nominal voltage: 3.7V (charged: 4.2V, discharged cutoff: ~3.0-3.2V)
- Capacity: 2000 mAh
- Connector: Common 2-pin JST-PH connector (2.0mm pitch) — verify polarity before connecting, as JST connector polarity is not universally standardized across suppliers
- Discharge rate: Typically 1C-2C continuous for standard (non-high-discharge) LiPo cells, check the specific cell's rated C-rating for higher-draw applications
- Protection: Bare cell has no built-in protection circuit — requires a separate charge/protection module (e.g. TP4056 with DW01) for safe charging and discharge cutoff
- Physical form: Thin flexible pouch, size and shape vary by supplier at a given capacity
Pinout and connection notes
Always verify the exact polarity of the JST connector before plugging into a charge board or power circuit, since not all suppliers wire the same pin as positive; reversing polarity can damage both the cell and connected electronics. Never charge a bare LiPo cell without a proper protection/charge circuit, never puncture or bend the pouch, and always monitor charging, since damaged or improperly charged LiPo cells present a fire risk.
- Red wire (+): Positive terminal via JST-PH connector
- Black wire (-): Negative terminal via JST-PH connector
Integration checklist
- Confirm the exact part number and breakout-board revision.
- Verify supply voltage, current demand, logic levels, and signal direction against the datasheet.
- Check controller pin assignments and bus address or interface mode against the example code.
- Power up with external loads disconnected, then test signals before full integration.
- If readings or communication fail, check power and ground first, then pin mapping, interface settings, and library initialization.
Troubleshooting and reproducibility
Record the board used, wiring, library/version, supply arrangement, and measured behavior. Use the selected board-specific wiring example as the source of truth. Never assume visually similar modules share identical voltage tolerance or pin order.
Setting Up LiPo 2000mAh with ESP32
Library
Power supply (no code library) by Not applicable
Use the exact ESP32 dev-board USB/VIN documentation. No code library is required for power wiring.
Wiring
| Component pin | ESP32 pin | Note |
|---|---|---|
| Regulator input + | Protected battery output + | Use a protected single-cell LiPo and a regulated 5V boost converter rated for ESP32 current peaks. |
| Regulator input - | Protected battery output - | Verify polarity and use undervoltage protection. |
| ESP32 documented 5V/VIN input | Regulated 5V output + | Confirm the exact dev-board input range. Never feed 5V into the 3V3 pin. |
| ESP32 GND | Regulated output - | Verify output voltage before connecting the board. |
Swipe sideways to see every column →
Use a chemistry-appropriate CC/CV charger and suitable protection. A TP4056 is a charger, not a boost converter. Do not charge a damaged, swollen, or unattended LiPo cell.
Related Components
18650 Holder
Single-cell 18650 holder for portable project power.
AMS1117 33
Fixed 3.3V linear regulator for powering logic-level components.
CN3065
Solar-friendly single-cell Li-ion charger. 4.2 V, 500 mA out of the box.
MAX17043
I2C battery fuel gauge that reports accurate state-of-charge — far better than voltage guessing.
Related Guides & Projects
MicroPython vs Arduino on ESP32: Which Should You Learn First?
An honest comparison for beginners: where MicroPython is easier, where Arduino C++ is faster, how libraries and memory differ, and how to choose based on your project instead of hype.
MicroPython ESP32 Web Server: Control an LED or Relay from Your Browser
Create a working web server with the socket module, parse requests, serve a responsive control page for an LED or a relay, keep the displayed state truthful, choose a safe relay startup state and make the server survive bad or repeated requests.
MicroPython on ESP32 and Raspberry Pi Pico W: The Complete Guide
A structured MicroPython learning path for ESP32 and Pico W. Set up your tools, control GPIO, read sensors, connect to WiFi, build web servers, publish MQTT data and make projects reliable. Start here, then follow the links by level.
boot.py vs main.py in MicroPython: What Runs, When and Why
Understand the difference between boot.py and main.py in MicroPython, startup order, Wi-Fi setup, project structure, and recovery from boot errors.