I have a uC device, that, using a potentiometer, let me dial a time interval (in milliseconds)
The problem is that it doesn't display (on the LCD) the actual time interval, it only shows a value between 0 and 127 (128 values).
So in order to understand the actual time interval of each value of the potentiometer, I measured some of the values and I came up with this table
(where p(20) is when I set the potentiometer to "20", and so on..)
With this, I noticed that it doesn't go linear, it looks like exponential.
How can I approximate the other values, for example p(65), without having to measure them all?
I mean. If OP wanted to he could use the above equation to get the values he needed without switching components. However, if the range that he required was as small as 70 ms MAX, then he would be wasting a large section of the range of the pot and his resolution would suck.
actually it is the opposite,
the potentiometer is linear, and indeed you can dial a value between 0 and 127 in a linear fashion (in the middle, you get 63).
The response that you get, in ms, is somewhat log (or exp?).
btw what I need is to obtain the table used to map the linear value (0-127) to the ms values, knowing only those values I already found.
Of course that table can't be obtained in full precision, but an approximation would be good.
I think the only way is to interpolate the values that I already got?