So I'm building a device for my psychology lab that will allow subjects to continuously rate their moods on a slide potentiometer (which will be analyzed on a 0 to 100 scale). I need a rather large slider to do this in order for participants to easily visualize their ratings on an actualized scale. I picked up a 5" slider from Digi-Key, linked here:
The problem is that this slider (and any slider I could find in this size) is an audio pot designed to be used as a fader on a mixing board. In order to collect data on a linear scale I clearly need a linear pot.
From what I've read, there are not any feasible hardware tricks to correct this- a logarithmic set resistor won't do me any good. In my googling, I have found this line of code:
linear = log(sensorValue) / log(1000) * 1023;
It seems to almost correct the problem, but the midway point is still slightly off. I know this might be futile, but does anyone have any other suggestions? The data sheet did list multiple tapers, but I frankly have no idea what I'm looking at there, and there is no visible toggle or adjustment on the slider that I can find. If you think this would be better suited on the coding board, I can move myself over there.
Thanks for your patience.