I have a joystick. Resistance of the pots in the joystick are 8.5k ohm. I want to use it but it doesn't give the correct output. It changes between 424 and 602. What kind of curcit or power supply should i use?
It sounds like its worn out or wearing out. What range of values are you getting?
min:424 max:602. I dont think there is a problem on joystick. I have 2 joystick and i tested all of their pots. there are 3 cables on the joystick yellow black and red. Red connected to arduino's 5v pin, black one connected to gnd and the yellow connected to A0.
178 difference is not a whole lot of range. When you say it doesn't give the correct output, what do you mean? What are you expecting to get as opposed to what you are getting?
I would assume 512 is the default value when reading it without moving the stick.
When it stays on middle position it gives 512 but as you can said difference is not a whole lot of range. I was expecting values between 0 and 1023.
Well 0-1023 would be full travel and you won't get that with those kind of joysticks. Right now you have about 17% of usable travel. I was expecting more like 25% but that's just me guessing.
I would say either use different joysticks or make do with what you have available to you.
such joysticks are mechanically not able to rotate potentiometer in 270° but only 45-90°. normally is potentiometer installed with 45-90° of active range, but now here is potentiometer with usual 270° installed, maybe because it dirt cheap.
After your comment i dismantled the joystick and i rotated the pot and it worked as a normal potantiometer. So, you are right and as i understand it has no fix. I will buy a new joystick after a couple resarch. Thanks a lot.
are you tested it with DMM and it shows changing of resistance on full range of 270° ?
visually you can't see difference
you can dismantle the poti and place conductive ink or Aluminium foil to cover ends of carbon track, only 60° should be exposed.

or buy potentiometer with reduced range, probably 60°. like this one
or dump analog potentiometer and get a digital one, like TLE5010 or similar
or save this one and connect it via the HX711 module, or ADS1115.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
