DIY ELECTRONICSTR

← All parts

XY Joystick Module

Control

Analog thumbstick that moves on two axes (X and Y) and also works as a button when pressed down; for controlling robot cars, pan-tilt cameras, games and menus. Inside are two 10 kΩ potentiometers: VRx and VRy go to analog pins; with the stick centred they read ~512, moving towards 0 or 1023 as it is pushed to the ends. Turn on INPUT_PULLUP for the SW pin. On 3.3V boards such as the ESP32, power the module from 3.3V.

Specifications

Axes
2 (X and Y), analog
Potentiometers
2 x 10 kΩ
Button
Press-down switch (SW)
Operating voltage
3.3 - 5V
Pins
GND, +5V, VRx, VRy, SW
Reading
~512 centred, 0 - 1023 at the ends (Uno)
Button wiring
INPUT_PULLUP (LOW = pressed)

Shop prices

Prices read from the shops' pages on 22 October 2026. Prices and stock may have changed since; check at the shop before you buy.

Projects with this part

In the app, tick off every wire, match the parts to your inventory and pick up where you left off.

Build it step by step in the app