Single-Cell LiPo (4.2V) to 1.1V Internal ADC Vref Divider Calculator

Size a low-draw resistor divider scaling a 4.2 V Li-ion/LiPo battery to an AVR/ESP32 1.1 V internal bandgap reference for accurate battery state-of-charge sensing.

Jump to results

Inputs

Voltage scaling targets
Leave ~10% headroom below Vref for transients.
MCU ADC constraints
STM32/AVR SAR ADCs typically require R_th ≤ 10 kΩ.
Models leakage / parallel load on R2.

Results

Estimates
Best E96 resistor pairR1 = 34 kΩ · R2 = 10.7 kΩ
Actual Vout at Vin,max
1.005 V (error +0.46%)
Source impedance (R_th)
8.132 kΩ (Within ADC source limit)
Input resolution
4.49 mV/LSB (1.074 mV/LSB at pin)
ADC code at Vin,max
934 / 1,023 (FS = 4.6 V)
Tolerance worst-case
±0.76% (at ±0.5% R)
Divider quiescent draw
94 µA (0.39 mW)
ADC resistor divider schematic (E96 pair)
Vin,max = 4.2 VR1 = 34 kΩVout = 1.005 VRth = 8.132 kΩ10-bit ADCVref = 1.1 VR2 = 10.7 kΩ
Top E96 candidate pairs
R1R2Vout (V)Error %R_thDraw (µA)
34 kΩ10.7 kΩ1.005+0.46%8.132 kΩ94
32.4 kΩ10.2 kΩ1.005+0.49%7.752 kΩ98.6
36.5 kΩ11.5 kΩ1.005+0.54%8.737 kΩ87.5
11.5 kΩ3.57 kΩ0.995-0.53%2.724 kΩ278.7
10.7 kΩ3.32 kΩ0.994-0.57%2.533 kΩ299.6

Add a 10 nF–100 nF ceramic capacitor in parallel with R2 to supply the SAR ADC sample-and-hold charge impulse and filter high-frequency noise.

Measure a LiPo battery against a stable 1.1 V internal bandgap reference

When an MCU runs directly from a discharging LiPo cell (or through a dropping LDO), using VDD as the ADC reference fails because Vref falls right alongside the battery! Switching the ADC to its stable 1.1 V internal bandgap reference requires dividing the 4.2 V max cell voltage down to ~1.0 V.

At 10-bit resolution (1,024 levels), a 4.2:1 divider resolves ~4.5 mV per LSB—tracking 3.0 V to 4.2 V battery discharge across 265 clean steps.

Formulas

  • Target ratio = 1.0 ÷ 4.2 = 0.2381
  • Full-scale Vin = 1.1 V ÷ Ratio_actual ≈ 4.62 V
  • 10-bit resolution = 4.62 V ÷ 1024 ≈ 4.51 mV/LSB

Worked example

In E96 with R_th ≤ 10 kΩ, R1 = 42.2 kΩ and R2 = 13.3 kΩ (R_th = 10.1 kΩ cap -> nearest ≤10 kΩ pair) yields ~1.00 V at 4.2 V with ~4.5 mV/LSB resolution and <80 µA draw.

Frequently asked questions

How accurate is an MCU’s 1.1 V internal bandgap reference?

On AVR ATmega328P, the 1.1 V bandgap is very stable over temperature and VCC but has a ±10% part-to-part initial tolerance (1.0–1.2 V)—calibrate it once per board against a DMM.

How do I stop a LiPo battery divider from draining a sleeping IoT node?

Use the 100 kΩ source preset (with a 100 nF cap at the ADC pin) to cut continuous draw below 8 µA, or gate the top of the divider with a P-channel MOSFET controlled by a GPIO.

Can I scale 4.2 V to 1.0 V using E24 resistors instead?

Yes—switch Series to E24 to find standard 33 kΩ / 10 kΩ (ratio 0.2326, Vout = 0.977 V) with zero custom BOM parts.