A method for reading a position of a wiper on a potentiometer, comprising the
steps
of (A) charging a capacitor connected to a wiper terminal of the potentiometer,
(B) discharging the capacitor through a particular terminal of the potentiometer,
(C) measuring a first time taken to discharge the capacitor from a first voltage
to a second voltage, (D) recharging the capacitor, (E) discharging the capacitor
through another particular terminal of the potentiometer, (F) measuring a second
time taken to discharge the capacitor from the first voltage to the second voltage,
(G) reading the position of the wiper by calculating a ratio of the times measured
in steps (C) and (F).