Originally Posted by

**Grrrmachine**
Since I'm free to choose the values of R2 in my voltage dividers, I'm free to determine the voltage range that my sensors will operate on. A basic example is this:

R1 is a variable sensor between 0 and 120 Ohms. At 120 Ohms it equates to 0 litres of fuel in the tank, at 0 Ohms it means 63 litres.

So it doesn't matter what value I place on R2, as it will just widen or narrow the range of input voltages. But if I've chosen a 60 Ohm resistor (for example), I just need to say "input voltage 1.1V = 0 litres, input voltage 3.3V = 63litres. Presumably 1.1V would equate to a raw data position of 310 (one third of 1023), so replace "1.1V" with 310 and "3.3V" with 1023, and you'd get the same principle.

This also affects the sliders, as it means I can configure sensors to deliver a value as close to 0V (and therefore 0 as a raw data point) as possible at one end of their scale to get the most out of the slider range.