Joystick module (dual axis)
Thumb joystick with two potentiometers and a push button.
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.
Two potentiometers sit at right angles under the stick, plus a push switch underneath.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | X and Y position plus press |
| Interface | Two analog outputs plus digital switch |
| Supply voltage | 3.3 to 5 V |
Pinout
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
Builds that use it
Joystick-controlled pan-tilt camera mount
Snake on an LED matrix
RC car with an ESP-NOW handheld remote
Pico joystick snake game
DIY RC transmitter
Mini claw machine
Joystick wheelchair controller model
Mecanum-wheel robot that drives sideways
Alternatives
- Rotary encoder module (KY-040)Endless turning control with steps
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).
