Comments on: Arduino Joystick Module Example https://42bots.com/tutorials/arduino-joystick-module-example/ Hobby robotics and electronics with Arduino, ESP82666 and Raspberry Pi Thu, 09 Jul 2020 15:43:39 +0000 hourly 1 https://wordpress.org/?v=5.6.11 By: Trying to use a Nintendo Joycon Joystick with Arduino… – Arduino Apprentices https://42bots.com/tutorials/arduino-joystick-module-example/#comment-342359 Thu, 09 Jul 2020 15:43:39 +0000 http://42bots.com/?p=1269#comment-342359 […] Arduino was printing what seemed to be unrelated measurements of the X/Y to the Serial Monitor). https://42bots.com/tutorials/arduino-joystick-module-example/ Is the problem my shit soldering? Do I need to try to put more solder on it to work? Do I need to […]

]]>
By: Sai https://42bots.com/tutorials/arduino-joystick-module-example/#comment-286859 Tue, 12 Feb 2019 14:41:02 +0000 http://42bots.com/?p=1269#comment-286859 In reply to Tom.

I have this exact same problem. The strange thing is that both X and Y act the same way. I’ve measured the resistance across the range of motion and it does indeed go to a limit value around 50% of the range of motion. I’ve found that the middle is around 4k ohm, max is 5k and min is 0. My guess (but I’m new to all this) is that the wiper should be reoriented so that the middle would be at 2.5k, but I’m not sure if that’s possible without breaking it.

]]>
By: RogerRabbit https://42bots.com/tutorials/arduino-joystick-module-example/#comment-267084 Wed, 15 Aug 2018 13:55:38 +0000 http://42bots.com/?p=1269#comment-267084 You are stating that your xValue is = analogread, but also stating that is it = map.

X_pinValue = analogRead(X_pin);
XVal = map (X_pinValue, 0, 1023, 0 ,255);

works

]]>
By: RogerRabbit https://42bots.com/tutorials/arduino-joystick-module-example/#comment-267083 Wed, 15 Aug 2018 13:54:02 +0000 http://42bots.com/?p=1269#comment-267083 In reply to AYKUT.

You are stating that your xValue is = analogread, but also stating that is it = map.

X_pinValue = analogRead(X_pin);
XVal = map (X_pinValue, 0, 1023, 0 ,255);

works

]]>
By: AYKUT https://42bots.com/tutorials/arduino-joystick-module-example/#comment-233874 Sun, 26 Nov 2017 16:26:48 +0000 http://42bots.com/?p=1269#comment-233874 How can I apply map() for this joystick module ?

I was added this to my joystick arduino sketch
int xValue = analogRead(joyX);
xValue = map(xValue, 0,1023, 0, 255);

but still on the serial monitor I see values between 0 and 1023; instead of between 0 and 255. Do you know how to fix this problem ? thank you.

]]>
By: trickybilly https://42bots.com/tutorials/arduino-joystick-module-example/#comment-214994 Fri, 04 Aug 2017 18:49:18 +0000 http://42bots.com/?p=1269#comment-214994 Thank you, the first part has worked. I do not have that adapter for the 8×8 matrix, but later I would like to try that part too. Keep up the good work

]]>
By: Tom https://42bots.com/tutorials/arduino-joystick-module-example/#comment-213141 Sat, 15 Jul 2017 22:27:37 +0000 http://42bots.com/?p=1269#comment-213141 does your joystick top out at maybe 50% of its mechanical travel, and read the maximum value for the rest of the journey to the edge? do you have any advice to avoid this, I could do with a bit more flexibility

]]>
By: Patryk https://42bots.com/tutorials/arduino-joystick-module-example/#comment-208183 Sun, 23 Apr 2017 08:00:40 +0000 http://42bots.com/?p=1269#comment-208183 My serial look like that :
X: 0 | Y: 0 | Button: 1
X: 0 | Y: 0 | Button: 1
X: 0 | Y: 0 | Button: 1
X: 0 | Y: 0 | Button: 1
X: 0 | Y: 0 | Button: 1
X: 0 | Y: 0 | Button: 1
X: 0 | Y: 0 | Button: 1
X: 0 | Y: 0 | Button: 1
X: 15 | Y: 28 | Button: 1
X: 81 | Y: 92 | Button: 1
X: 151 | Y: 164 | Button: 1
X: 236 | Y: 252 | Button: 1
X: 353 | Y: 373 | Button: 1
X: 489 | Y: 510 | Button: 1
X: 647 | Y: 677 | Button: 1
X: 808 | Y: 832 | Button: 1
X: 950 | Y: 972 | Button: 1
X: 1023 | Y: 1023 | Button: 1
X: 1023 | Y: 1023 | Button: 1
X: 1023 | Y: 1023 | Button: 1
X: 1023 | Y: 1023 | Button: 1
X: 1023 | Y: 1011 | Button: 1
X: 903 | Y: 881 | Button: 1
X: 771 | Y: 745 | Button: 1
X: 621 | Y: 590 | Button: 1
X: 447 | Y: 416 | Button: 1
X: 281 | Y: 252 | Button: 1
X: 158 | Y: 138 | Button: 1
X: 61 | Y: 45 | Button: 1
X: 0 | Y: 0 | Button: 1
X: 0 | Y: 0 | Button: 1
X: 0 | Y: 0 | Button: 1 //loop i dont know why
It isnt responding when i move joystick

]]>