A small sensor interface board with two resistors, a cylindrical analog sensor and insulated test leads.

What you need

Use a current-limited low-voltage source, a multimeter and datasheets. Do not apply unknown industrial or mains signals to this circuit.

Ideal divider output for a 2/3 ratio. 3.0 V input: 2 V; 4.5 V input: 3 V; 5.0 V input: 3.333 V.
Ideal divider output for a 2/3 ratio. Original Academy diagram using illustrative values; not a measured hardware result.
Read the diagram as a data table
Values used in the illustration
Condition or componentV
3.0 V input2
4.5 V input3
5.0 V input3.333

The calculation

V_out = V_in × R₂ / (R₁ + R₂)

R₁ is the upper resistor from input to output and R₂ connects output to reference ground. The ideal model assumes negligible load current.

Worked example

Illustrative numbers. Replace them with your measured inputs.

For R₁=10 kΩ and R₂=20 kΩ, a 3 V input becomes 2 V and a 4.5 V input becomes 3 V. A 5 V input becomes 3.333 V, which may exceed a nominal 3.3 V ADC’s permitted input.

Try it step by step

  1. Check absolute maximum input, normal conversion range, grounding and sensor output-drive capability before selecting values.
  2. Choose the ratio with tolerance and worst-case sensor voltage included, rather than targeting the ADC limit exactly.
  3. Check source impedance against ADC sampling requirements and add appropriate protection using the device guidance.
  4. Measure the divider across the expected input range before connecting it to the microcontroller.

How to check the result

The worst-case output must stay within allowed limits, and measured conversion settling should satisfy the required sampling behavior.

Common mistake to avoid

A divider can load a high-impedance sensor. It is not a safe general interface for 24 V industrial signals, isolation barriers or fault conditions.

Reference reading

Primary references for the underlying models, APIs or application context. The worked numbers and plots above are educational calculations, not results reported by these sources.

Read our methods, limitations and safety notes.