Skip to main content

Menu

Joystick Module Arduino Compatible

ARD2-2223
Arduino Compatible ARD2 Joystick Module

$4.95

QTYPrice
1 $4.95

Description

The joystick module Arduino compatible is similar to joysticks found in gamepads. It was styled after a PS2 analog stick. It has an X/Y 2-axis analog output and Z-axis single digital output channel button. The joystick is a combination of 2 analog potentiometers and a digital switch. Useful for retro gaming, robot control, or RC cars.

Test Code

// Module KY023
// For more info see http://tkkrlab.nl/wiki/Arduino_KY-023_XY-axis_joystick_module
int JoyStick_X = A0; // x
int JoyStick_Y = A1; // y
int JoyStick_Z = 3; // key


void setup () {
pinMode(JoyStick_X, INPUT);
pinMode(JoyStick_Y, INPUT);
pinMode(JoyStick_Z, INPUT_PULLUP);
Serial.begin(9600); // 9600 bps
}


void loop () {
int x, y, z;
x = analogRead(JoyStick_X);
y = analogRead(JoyStick_Y);
z = digitalRead(JoyStick_Z);
Serial.print(x, DEC);
Serial.print(",");
Serial.print(y, DEC);
Serial.print(",");
Serial.println(z, DEC);
delay(100);
}

 

Features

  • Features 2 analog X/Y inputs and 1 digital Z input
  • Perfect for games or as a navigation device

Specifications

Switch Protocol

Digital

X, Y Protocol

Analog

Operating Voltage

3.0-5.0VDC

Colour

Black

Material

PCB

Dimensions

Length (mm)

47

Width (mm)

25

Height (mm)

32

Resources

You Might Also Like

All prices are in Australian Dollars and include GST. GST will be removed from your order if you are ordering from outside Australia.
Products may differ from pictured.
All trademarks and trade names are the properties of their respective owners. Wiltronics disclaims any proprietary interest in trademarks and trade names other than its own.

Joystick Module Arduino Compatible

ARD2-2223

$4.95

We use cookies to ensure you have the best experience on our site. If you continue to use this site you consent to the use of these cookies. OK

Find out more in our Privacy Policy