10PCS Thumb Joystick Module Dual Axis Sensor Game Controller Sensor Joystick Breakout Module for Arduino PS2 Raspberry Pi
10PCS Thumb Joystick Module Dual Axis Sensor Game Controller Sensor Joystick Breakout Module for Arduino PS2 Raspberry Pi
SPECIFICATIONS
Brand Name: UNO R3
Origin: Mainland China
Condition: New
Type: Voltage Regulator
Model Number: Thumb Joystick Module
Supply Voltage: -
Dissipation Power: Computer
is_customized: Yes
Operating Temperature: Thumb Joystick Module
Application: Computer
Package: SOP
Lots of robot projects need joystick. This module provides a affordable solution to that. Simply connect to two analog inputs, the robot is at your commands with X,Y control. It also has a switch that is connected to a digital pin. This joystick module can be easily connect to (for) Arduino by normal IO Expansion Shield with supplied cables.
Description:
The company produces PS2 game joystick axis sensor module consists of using original quality metal PS2 joystick potentiometer system For the (X, Y) a 2-axis analog output and for (Z) 1 digital output channel button.
The joystick is a combination of 2 analoog potentiometer and a digital switch.
Test:
For Arduino controller × 1
USB data cable × 1
PS2 Game sensor module × 1
Connection for Arduino and Joystick module:
GND --> Module pin -
+5V --> Module pin +5V
Analoog 0 --> Module VRx
Analoog 1 --> Module VRy
Example Code:
// Module KY023
// For more info
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);
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);
}
Package Included:
10 X JoyStick PS2 Game Joystick Axis Sensor Module