potentiometer reading - calibration
sjogan
Posts: 17
Ok Guys, here is my question.
When you are reading a potentiometer and need to calibrate it,how do you do it?
When I have a reading, say right now of 214 and I push the pot all the way to the max and then return it to center, my new reading is not exactly the same. (say 223 this time)
How much slop do I put in? How can my code adjust for say weaker batteries or (once I PCB my circuit) a slightly different value of what my reading is.
Or is this just one of those things you have to play with until you feel it's right?
(I'm using RCTIME with 10K pot and C = 0.1 uf. and a state = 1 (pull up) I am using a joystick with 2 pots, with spring return.)
Thank you
When you are reading a potentiometer and need to calibrate it,how do you do it?
When I have a reading, say right now of 214 and I push the pot all the way to the max and then return it to center, my new reading is not exactly the same. (say 223 this time)
How much slop do I put in? How can my code adjust for say weaker batteries or (once I PCB my circuit) a slightly different value of what my reading is.
Or is this just one of those things you have to play with until you feel it's right?
(I'm using RCTIME with 10K pot and C = 0.1 uf. and a state = 1 (pull up) I am using a joystick with 2 pots, with spring return.)
Thank you
Comments