K8055 linear/logarithmic analog input

Hello all (french version follows - une version en français est située en fin de message)

I’m an happy owner of a K8055 USB board which I bought assembled for more convenience. That one works properly but I think I’ve troubles with the analog inputs. I can’t have a linear input !
What did I do ?
I put a 2Mohms linear potentiometer between the +5V and the ground with the ouput connected to the analog input. The input voltage is included in the [0…+5V] interval, linearly.
But the read data in the C-program stand in the [0…130] interval, logarithmically !
Is there a way to change the logarithmic scale within the board or do I have to build a pre-module that turns the linear input into a log one ?
In advance, thanks for any help.

French version :
J’ai fait l’acquisition d’une carte K8055 assemblée, qui fonctionne correctement mais j’ai quelques soucis avec les entrées analogiques : je ne parviens pas à obtenir une entrée linéaire !
J’ai disposé un potar linéaire de 2 Mohms entre le +5V et la masse avec la sortie variable reliée à l’entrée analogique de la carte. Ainsi le tension d’entrée varie entre 0 et 5V.
Mais lorsque je lis la valeur d’entrée dans le programme, celle-ci est systématiquement comprise entre 0 et 130 ! Je ne parviens donc déjà pas à 255 !! Par ailleurs cette valeur est exponentielle par rapport à la course linéaire du potar. Ainsi sur la première moitié de la course, je varie de 0 à 5, puis de 5 à 18 sur le quart suivant et enfin de 19 à 130 sur le dernier quart…
Existe-t-il une solution pour obtenir une variation linéaire de la valeur lue correspondant à une entrée linéaire ou faut-il reprogrammer le PIC ? Ou alors faut-il rendre l’entrée logarithmique pour inverser le passage exponentiel ?

Merci à qui m’aiderait à contourner ce problème

Did you remove the jumpers SK2, SK3?

[ On a enlevé les liens SK2 et SK3? ]

No need to build any pre-module to get linear response. Just use lower resistor value potentiometer or make a minor change to the circuit.

Probably you get the data values 0…130 due to that the input trimmer potentiometer RV1 or RV2 is not adjusted to the max. position.
You get un-linear response due to that your 2Mohms linear potentiometer is loaded by the 100kohm resistance of RV1 or RV2. This causes un-linear correspondence between your potentiometer position and the output data. The solution is to use lower value potentiometer or disconnect the earth leg of RV1 or RV2 depending the channel you are using.

Hi all and thanks for answers.
Do you mean that the RV1 (or RV2 depending the input) potentiometer, when connected to the ground, shunts or shortcuts my 2Mohms potentiometer ?
I have removed the SK2 and SK3 jumpers since the beginning and I do use the USB card +5V from SKx jumpers as the +5V reference. The input voltage changes properly between 0 and +5V when the A1 input is not connected. For sure the input voltage value changes before IC1.
I’m gonna try to use a lower value for my potentiometer to be sure the read values are linear. Then I’m gonna try with my 2 Mohms potentiometer with the earth leg of SKx disconnected to ensure the result is the same.
Then, I’ll choose between both solutions…

I’ll tell you my remarks later…

Indeed, the RV1 or RV2 shunts your 2Meg potentiometer and you get unlinear voltage/position response. If you use e.g. 1k potentiometer you’ll get very linear response. Yes, the other solution is to disconnect the earth leg of SKx and use your 2Meg potentiometer.