@johnwasser
Thanks
I will try this code.
Iām wondering if the OP is using a ācontinuous rotationā pot, rather than a āmulti turnā pot.
This might be tricking him as to what he expects ??
I hope not after the trouble @rc_fan04 went to in #10 to āsplain what s/he is talking about.
So the why is a mystery.
a7
OP said in his first post:
ā that's the datasheet (3600° = 10 turn)
https://www.mouser.fr/datasheet/2/54/3590-776468.pdf
aah k, I missed that. thanks
I thought it may have been 360, then jump back to zero⦠odd, but used in some industrial equipment !
OP Said
the thing is there is nothing to change in the code. You read the pot, you get a value, you map it
pot = analogRead(A0);
Input1 = map(pot,0,1023,-255,255);
but because it's 10 turns to get the full range, the user has to do a lot of turning to get from 0 to 1023...
What we need to know to answer is what behaviour OP would want to see
An alternative to using a 10-turn pot is to use different size pulleys between the motor and the pot. If a pot is good for 270° and you want a servo that goes 3600° (10 turns) you could have pulleys with a 1:13.33 ratio.
Likewise, if you only need 5 turns with your 10-turn pot you could use a 2:1 pulley ratio to use the full range of your pot over 5 turns.
I am still curious. Why do you want to use a multi-turn pot?
Agreed - thatās the key question. It gives precision but is a pain as a quick human interface