Data Sheet
4
The POT command allows users to read resistive components and
sensors.
POT Pin, Scale, Var
The commands reads a resistive device on one of the I/O Pin
specified in the command. Resistance is measure by timing the
discharge of a capacitor through the resistive component
(typically 5-50K). Scale is used to adjust the resistor-
capacitor (RC) constant.
Setting Scale:
Scale is determined experimentally. Set the sensor to be a maxi-
mum resistance and read the outputted value with the scale set
to 255. Under these conditions the numeric value outputted will
be the approximate value to use in Scale.