Dual-axis XY Joystick Module Size: 4 X 2.6 X 3.2CM 1.switch 2.potentiometers for 2 axes Connector: +5Vcc – GND – VRx – VRy – SW
PinOut
The joystick module consists of 5 pins. The description of each pin is given below:
Pin Number
Pin Name
Description
1
GND
Connect to ground terminal of Raspberry Pi Pico
2
+5v
Connect 5-volt pin of Raspberry Pi Pico
3
VRx
It provides voltage w.r.t x-axis position of the joystick. (left/right)
4
VRy
It provides voltage w.r.t Y-axis position of the joystick. (up/down)
5
SW
Switch at the center. This pin gives the output obtained from the push button. When the push button is released the output will be HIGH and when it will be pressed the output will be LOW.