|
Re: Programming a Potentiometer
A potentiometer is just a voltage divider, so at one end of the dial its output is your input voltage (5V probably), and at the other end your output is 0V. Wire this output into your analog module, and use an AnalogChannel and its getAverageVoltage() method to read the output. You should experiment to see what the voltage should be for the limits.
__________________
I code stuff.
|