11. Scale sensor output

Circuit

Loading simulator…

Design Approach

A 0–12 V sensor cannot be fed directly into an ADC expecting a lower voltage. A resistor divider scales the sensor voltage while keeping its current draw under control.

How the Circuit Works

  1. Determine the divider ratio. At SENSOR_OUT = 12 V, ADC_IN must be 5 V, so:R2R1+R2=512\frac{R_{2}}{R_{1} + R_{2}} = \frac{5}{12}
  2. Use the current target. For I_SENSOR = 500 µA at 12 V, the total resistance must be:12V0.5mA=24kΩ\frac{12\,\mathrm{V}}{0.5\,\mathrm{mA}} = 24\,\mathrm{k}\Omega
  3. Choose the resistors. The solution adds R1 = 14 kΩ in series with R2 = 10 kΩ. The existing I_SENSOR ammeter measures total divider current; ADC_IN connects to the midpoint. The total is 24 kΩ and the lower fraction is 1024\frac{10}{24}.
  4. Check other readings. At a 3 V sensor output, ADC_IN = 1.25 V and I_SENSOR = 125 µA; at 9 V, they become 3.75 V and 375 µA. This scaling is linear.

Verify the Circuit

Sweep SENSOR_OUT through 0 V, 3 V, 9 V, and 12 V. Check both ADC_IN and I_SENSOR against the task examples. Experiment with an additional load at the ADC node to see why ADC input impedance matters.

Key Learnings

  • Use the desired voltage ratio to scale a signal and the total resistance to control sensor loading.
  • A passive divider protects the ADC from ordinary over-range signals only if the input stays within its designed range; it is not complete surge protection.