12V Automotive Battery to 3.3V MCU ADC Voltage Divider Calculator

Find exact E24/E96 resistors to scale a 12 V automotive rail (up to 16 V alternator charging) to a 3.3 V 12-bit MCU ADC with ≤10 kΩ source impedance.

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 = 51.1 kΩ · R2 = 11.8 kΩ
Actual Vout at Vin,max
2.999 V (error -0.04%)
Source impedance (R_th)
9.577 kΩ (Within ADC source limit)
Input resolution
4.3 mV/LSB (0.806 mV/LSB at pin)
ADC code at Vin,max
3,721 / 4,095 (FS = 17.61 V)
Tolerance worst-case
±1.63% (at ±1% R)
Divider quiescent draw
254.4 µA (4.07 mW)
ADC resistor divider schematic (E96 pair)
Vin,max = 16 VR1 = 51.1 kΩVout = 2.999 VRth = 9.577 kΩ12-bit ADCVref = 3.3 VR2 = 11.8 kΩ
Top E96 candidate pairs
R1R2Vout (V)Error %R_thDraw (µA)
51.1 kΩ11.8 kΩ2.999-0.04%9.577 kΩ254.4
35.7 kΩ8.25 kΩ3.001+0.05%6.697 kΩ364.1
16.2 kΩ3.74 kΩ3+3.05e-3%3.038 kΩ802.5
23.2 kΩ5.36 kΩ3.001+0.05%4.352 kΩ560.3
44.2 kΩ10.2 kΩ2.998-0.08%8.281 kΩ294.2

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.

Sense 12 V automotive battery voltage safely on a 3.3 V MCU

A "12 V" car or RV battery regularly hits 14.4–14.8 V during alternator bulk charging and 15.5–16 V during cold-weather equalization. Sizing your voltage divider for `Vin,max = 16 V` mapped to `3.0 V` leaves 0.3 V of headroom before clipping a 3.3 V ADC.

The E96 search selects real standard resistors that keep Thevenin source impedance under 10 kΩ while drawing only ~250–350 µA of standby current.

Formulas

  • Target ratio = 3.0 V ÷ 16.0 V = 0.1875
  • R1 / R2 ≈ (16 ÷ 3) − 1 = 4.333
  • 12-bit input resolution ≈ 17.6 V ÷ 4096 ≈ 4.3 mV/LSB

Worked example

For 16 V → 3.0 V in E96 with R_th ≤ 10 kΩ, the finder recommends R1 = 46.4 kΩ and R2 = 10.7 kΩ (R_th = 8.69 kΩ), giving 2.999 V (−0.02% error) and 4.30 mV/LSB input resolution.

Frequently asked questions

How do I protect a 3.3 V ADC pin against 40 V automotive load-dump spikes?

Add a low-leakage Schottky clamp diode (like BAT54S) from the ADC node to 3.3 V and GND, plus a 100 nF ceramic filter cap; R1 naturally limits clamp fault current to a few milliamps.

Will 300 µA divider draw drain a car battery while parked?

0.3 mA draws only ~0.2 Ah per month—tiny on a 60 Ah starter battery—or switch the divider ground with a low-R_DS(on) MOSFET/P-FET when sleeping on small batteries.

What ADC code corresponds to 12.6 V nominal battery voltage?

Divide 12.6 V by the full-scale input voltage (~17.6 V) and multiply by 4095: roughly ADC code 2,931.