Interface 5 V ratiometric sensors safely to 3.3 V MCU ADCs
Automotive pressure transducers, ACS712 Hall current sensors and analog ultrasonic rangers commonly output 0.5–4.5 V or 0–5 V signals that exceed 3.3 V microcontroller absolute maximum ratings. A precision 5:3 divider (e.g., 10 kΩ + 15 kΩ) translates 5.0 V cleanly to 3.00 V with R_th = 6.0 kΩ.
For classic ESP32 boards whose ADC saturates above ~2.5 V, load the 2.4 V preset to keep full 0–5 V sensor swings inside the ESP32’s cleanest measurement window.
Formulas
Ratio = 3.0 ÷ 5.0 = 0.600 (R1 = 10 kΩ, R2 = 15 kΩ exact in E24!)R_th = 10 kΩ ∥ 15 kΩ = 6.00 kΩ12-bit input resolution = 5.5 V ÷ 4096 = 1.34 mV/LSB
Worked example
E24 pair R1 = 10 kΩ and R2 = 15 kΩ delivers 2.998 V at 5.0 V (−0.06% loaded error), R_th = 5.99 kΩ, 200 µA sensor load and 1.34 mV/LSB resolution.