Lots of robot projects need joystick. This module provides a affordable solution to that. Simply connect to 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 module consists of 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 module × 1
Connection for Arduino and Joystick module:
GND --> Module pin -
+5V --> Module pin +5V
Analoog 0 --> Module VRx
Analoog 1 --> Module VRy
Example :
// 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 :
10 X JoyStick PS2 Game Joystick Axis Module
【Regarding the voltage】:You will 10 joystick modules. The module uses 5V power supply, and the original state reading voltage of X and Y is 2.5V. In the direction of the arrow, the voltage increases, the maximum value is 5V, and in the opposite direction of the arrow, the voltage value decreases, and the minimum value is 0V
【Composition】:The joystick is a combination of 2 analog potentiometers and a digital switch, just connect to the analog inputs and the robot can listen to your commands with X,Y control. offerirectional 10 k resistor, the resistance varies with the joystick in different directions
【Applicable】:Game stick module for Arduino PS2, electronic building block standard connector with 2.54mm pins, can be easily connected to Arduino by normal IO Expansion Shield with cables
【Output】:The DO port is used for digital output, and the AO port is used for analog output
Please feel to ask any questions you may have and will respond within 24 hours. We will give you a satisfactory solution
