Dual-Axis Joystick Module to Control Robots, Games and Cameras With Arduino

PS2 Analog Joystick Module (Dual Axis + Push Button)

Rs. 180 - In stock - SKU ABH-MISC-0463 - Brand Generic

A PS2-style analog joystick module with two potentiometers (X and Y axes) and a push button when pressed down. It outputs two analog values and one digital signal, for robot, game and pan-tilt control.

Delivery anywhere in Pakistan for a flat Rs. 250 paid in advance, product price Cash on Delivery. 7-Day Checking Warranty.

Key features

Specifications

Axes2 (X, Y) potentiometers
ButtonPush down switch
Supply3.3-5V
Outputs2 analog + 1 digital
PinsGND, +5V, VRx, VRy, SW

What's in the box

Use cases

Description

Overview

This thumb joystick gives smooth two-axis control with a click button. It is the same kind of stick used in game controllers.

Pins

Reading it

Centre position reads about 512 on a 10-bit ADC. Pushing in each direction moves the value towards 0 or 1023.

Projects

Tip

Add a small dead zone around the centre in code, because the stick rarely returns to exactly 512.

Frequently asked questions

Why does my joystick button not work?

Use pinMode(SW, INPUT_PULLUP). The button pulls the pin to ground when pressed.

Does it work with ESP32?

Yes. Power it at 3.3V for full range on the ESP32 ADC.

What is the centre value?

About 512 on Arduino's 10-bit ADC.

Related products

All Breakout & Utility Modules