i accidently bought some nonlinear (logarithmic) slide potentiometers which output this curve (see the added picture) by moving it in a constant speed up, so how can i make them output a linear value?
(extra details: i read there value through a 16bit adc so the values are really big and accurate)
i accidently bought some nonlinear (logarithmic) slide potentiometers which output this curve (see the added picture) by moving it in a constant speed up, so how can i make them output a linear value?
(extra details: i read there value through a 16bit adc so the values are really big and accurate)
If it was me, I would simply read the ADC value for as many wiper positions as I can (more positions = better accuracy) and create a lookup table. If a read falls between any 2 'saved' values, then interpolate for that set as already suggested.
ich have about 12 to 20 inputs and just want a little math converter like the thread forum.arduino.cc show it, except now with a code that actually working. there function "f_outRange = 10*pow(ADC/1023.,10);"
just reverse the direction of the effects, so in the 0 -30% area of the slider change now alot and above just a little .