Hi Guys!!
I have recently started out with Arduino and have been facing some problems with my joysticks.
When connect to an Arduino UNO they would give me values of 1023 and 1023 at rest.
moving them in the positive x or positive y direction would cause no change in their values on the other hand moving in the -ve x or -ve y direction would decrement their values as expected.
I then switched to an Arduino Nano and now the joysticks are giving me rest values in the range of 750-820 and the values are quite random when I move the joystick.
My code is quite basic and involves just reading of the joystick values.
Those lines could be omited, but it's not the problem here. Just make sure the joystick is wired correctly, if it is ... Are the joysticks new ? They use to wear down with usage. Maybe they're broken internaly