Components / Sensors / Joystick module (dual axis)

Joystick module (dual axis)

Thumb joystick with two potentiometers and a push button.

MeasuresX and Y position plus press
InterfaceTwo analog outputs plus digital switch
Supply voltage3.3 to 5 V
SensorsReviewedMPN KY-023Used in 20 projects
In short

What is the Joystick module (dual axis) and what is it used for?

Thumb joystick with two potentiometers and a push button. Makers use it for robot remotes, game controllers.

How it works

Two potentiometers sit at right angles under the stick, plus a push switch underneath.

Key specifications

Sensor specValue
MeasuresX and Y position plus press
InterfaceTwo analog outputs plus digital switch
Supply voltage3.3 to 5 V

Pinout

GNDGround
+5VSupply, 3.3 V on 3.3 V boards
VRxX axis analog
VRyY axis analog
SWPress switch, LOW when pressed (use a pull-up)

How to use it

Read VRx and VRy with analogRead; the centre is about mid-scale but rarely exact, so record it at start-up and add a small dead zone. Power it from the same voltage as your ADC reference.

Applications

Alternatives

Buy at

Common questions

What is the Joystick module (dual axis) used for?

In maker projects: robot remotes, game controllers.

How does the Joystick module (dual axis) work?

Two potentiometers sit at right angles under the stick, plus a push switch underneath.

What voltage does the Joystick module (dual axis) need?

3.3 to 5 V.

How do I connect the Joystick module (dual axis) to an Arduino or ESP32?

Two analog outputs plus digital switch. Pins: GND (Ground), +5V (Supply, 3.3 V on 3.3 V boards), VRx (X axis analog), VRy (Y axis analog), SW (Press switch, LOW when pressed (use a pull-up)).

What can I use instead of the Joystick module (dual axis)?

Rotary encoder module (KY-040).