Feature

●✅Input voltage range: DC 3.3V to 5V ,DO port for digital output, AO port for analog output.
●✅AIHJCNELE Joystick Module consists of two sliding rheostats and a button. When the joystick is toggled, the resistance of the sliding rheostat changes, and the corresponding X/Y voltage value also changes. Pressing the joystick hard will trigger the button to be pressed. the corresponding SW signal becomes low level.
●✅For specific product details and parameter information, please refer to the product description at the bottom of the page. For more information on how to use the product, please refer to the product description.
●✅Please Note that , This is a precision product, Please use with care. You need professional knowledge to use this product. If the product is damaged due to an operating error, it cannot be returned. beg to be excused. All products are factory tested. Tools DIY products. Please understand. Thanks .
●✅If the product has any quality problem , pls contact us by email , How to contact us ? Please click “ AIHJCNELE ”(you can find "Sold by AIHJCNELE " under Buy Now button), in the new page, click “Ask a question” to email us


Description

PS2游戏摇杆 KY-023PS2游戏摇杆 KY-023

Dual Axis XY Joystick Module Game Control Lever Sensor Game Button Controller

Two-axis pushbutton rocker sensor module by joystick potentiometer with (X, Y) 2 axis analog output, (Z) 1 channel button digital output. With the sensor expansion board can be produced such as remote control interactive works.

In addition, this product in order to allow customers to more easily with expansion board and other standard interface, the design of the X, Y, Z axis of the circuit leads alone, the user can use 3-PIN special line really plugged into the expansion board for Use.

It consists of two sliding rheostats and a button. When the joystick is toggled, the resistance of the sliding rheostat changes, and the corresponding X/Y voltage value also changes. Pressing the joystick hard will trigger the button to be pressed. the corresponding SW signal becomes low level.

Package Contents:

  • 5pcs AIHJCNELE Dual Axis XY Joystick Module Game Control Lever
  • 1bag Female to Male Dupont Cable Line 40Pin
PS2游戏摇杆 KY-023PS2游戏摇杆 KY-023

Product performance:

  1. Input voltage range: DC 3.3V to 5V
  2. Output signal: module ad hoc two-way analog output and one digital output interface, the output value corresponding to (X, Y) biaxial offset, the type is analog; the button indicates whether the user presses the Z axis, Its type is digital switch.
  3. Through the controller programming, plug the sensor expansion board to complete the creative remote interactive works.
  4. Cross rocker is a bi-directional 10K resistor, with the rocker in different directions, the tap resistance changes. The module uses 5V power supply, the original state of X, Y read-out voltage of 2.5V or so, with the direction of the arrow down, read the voltage value increases with up to 5V; the arrow is pressed in the opposite direction, read the voltage value decreases , The minimum is 0V.
  5. In fact, this module is a potentiometer, and the data output of x and y dimensions is the voltage value read by the analog port. The development board reads the voltage value and uses it.

PS2游戏摇杆 KY-023PS2游戏摇杆 KY-023

Pin Description

  • GND = Ground
  • 5V = Power supply 5V
  • SW = Button (digital)
  • VRX = X axis (analog)
  • VRY = Y axis (analog)

PS2游戏摇杆 KY-023PS2游戏摇杆 KY-023

Product parameters:

  • Product Name: Rocker module (two-axis button rocker)
  • Product Size: About 34.0mm * 26.0mm * 32.0mm (LxWxH)
  • Weight : About 12g , Colour: Black
  • Material: FR4 + Electronic component ABS
  • DO port for digital output,
  • AO port for analog output.
  • Connector: +5Vcc - GND - VRx - VRy - SW
  • Game joystick module suits for PS2 , connects 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, convenient to use.
  • 2.54mm PIN header interface, Easy wiring, Strong versatility

Test PIN Wiring

PS2游戏摇杆 KY-023PS2游戏摇杆 KY-023

PS2游戏摇杆 KY-023PS2游戏摇杆 KY-023

PS2游戏摇杆 KY-023PS2游戏摇杆 KY-023

  • GND and VCC (+5V) Needless to say ,
  • VRx, VRy (X, Y axis) are analog input signals, which are connected to analog IO ports A0~A7.

  • The values of VRx and VRy: from 0 to 1023, represent left to right, up to down, respectively. The median value is 512.
  • SW (Z-axis) is the digital input signal, connected to the digital port, with pull-up resistors enabled.

  • SW value: 1 means not pressed, 0 means pressed.
  • In the experiment, VRx is connected to A0, VRy is connected to A1, and SW is connected to D6.

Test program:

int JoyStick_X = 0; //x

int JoyStick_Y = 1; //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);