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.10714R_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.