24V Industrial Rail to 3.3V MCU ADC Voltage Divider Calculator (E96)

Select optimal E96 or E24 resistors for sensing a 24 V (28 V max) PLC/industrial power rail on a 3.3 V 12-bit microcontroller ADC.

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 = 88.7 kΩ · R2 = 10.7 kΩ
Actual Vout at Vin,max
3.011 V (error +0.37%)
Source impedance (R_th)
9.539 kΩ (Within ADC source limit)
Input resolution
7.49 mV/LSB (0.806 mV/LSB at pin)
ADC code at Vin,max
3,737 / 4,095 (FS = 30.69 V)
Tolerance worst-case
±0.9% (at ±0.5% R)
Divider quiescent draw
281.7 µA (7.89 mW)
ADC resistor divider schematic (E96 pair)
Vin,max = 28 VR1 = 88.7 kΩVout = 3.011 VRth = 9.539 kΩ12-bit ADCVref = 3.3 VR2 = 10.7 kΩ
Top E96 candidate pairs
R1R2Vout (V)Error %R_thDraw (µA)
88.7 kΩ10.7 kΩ3.011+0.37%9.539 kΩ281.7
84.5 kΩ10.2 kΩ3.013+0.44%9.093 kΩ295.7
13.7 kΩ1.65 kΩ3.009+0.31%1.472 kΩ1,824.1
23.2 kΩ2.8 kΩ3.015+0.49%2.498 kΩ1,077
17.4 kΩ2.1 kΩ3.015+0.49%1.873 kΩ1,435.9

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.

Scale 24 V industrial rails (up to 28.8 V) into a 3.3 V SAR ADC

Industrial 24 V DC supplies and 24 V battery banks typically fluctuate between 20 V and 28.8 V. Designing with `Vin,max = 28 V` to `3.0 V` prevents ADC saturation while preserving sub-8 mV resolution on a 12-bit MCU.

At a ~9.3:1 attenuation ratio, R1 sees nearly the full 28 V bus and must be checked for resistor power rating and working voltage alongside Thevenin source impedance.

Formulas

  • Target ratio = 3.0 ÷ 28.0 = 0.10714
  • R_th = R1 ∥ R2 ≤ 10 kΩ
  • Input mV/LSB = 3,300 mV ÷ (4096 × Ratio_actual)

Worked example

In E96 for 28 V → 3.0 V, R1 = 82.5 kΩ and R2 = 10 kΩ (R_th = 8.91 kΩ) yield 3.024 V (+0.8% error) or R1 = 90.9 kΩ / R2 = 10.9 kΩ, giving ~7.5 mV/LSB resolution and <300 µA draw.

Frequently asked questions

Is a tiny 0402 SMD resistor safe for R1 on a 28 V rail?

Check the resistor’s continuous working voltage: many 0402 parts are rated 50 V, while 0603/0805 parts offer 75–150 V working voltage and better surge survival.

How does 0.5% vs 1% resistor tolerance impact a 24 V measurement?

In a 9:1 divider, worst-case gain error approaches `2 × (1 − ratio) × tol`, so ±1% resistors allow ±1.8% error (~±0.43 V at 24 V), while ±0.5% cuts that in half.

Should I measure 24 V industrial analog 0–10 V signals with the same divider?

For 0–10 V PLC outputs, enter Vin,max = 10 V and targetVout = 3.0 V to get a tighter ~3.3:1 divider with ~2.7 mV/LSB resolution.