I have a tapered log 10K potentiometer. I would like some function which returns tapered log value to linear values. The potentiometer is a slider. When connected to the Arduino the wiper displays the values ranging from 0 to 1023. Currently if I set the slider to the half way position it displays the value 856 (approx), when I'd expect (or want) the value it to be more like 512 (as it's half way). The quarter way mark for example shows a value in the region of 570, where I'd expect the value to be 256. I hope that this makes sense.
This is about the extent of the code so far :))
curpos1 = analogRead(potPin); Serial.println(curpos1);