News : Hyperion-world

-- Earn 5% Off Your Next Purchase! Order Now And Receive A 5% Coupon USA Only

-- Free Shipping On Orders More Than $150! USA Only*

-- Hyperion Is Now Home to AirCraft-World.com Exclusive Items

Arduino Compatible XY-axis joystick module

Old Price: $2.30

Special Price: $1.15

Part Number: HP-AMO-STK

Ships from :

USA

IN STOCK

Available: 10+ Shipping Info*

Get creative with your friends and families

This Arduino compatible XY-Axis joystick module (or KY-023) is an easy-to-use analog joysticks for the Arduino micro controller. The joysticks features two dimensions (x and y axis) as well as a state that is set when the joystick is pressed. The 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 analog potentiometer and a digital switch.

In the non-operating mode, the potentiometer is in the middle so that resistor1=resistor2, so that the voltage will equally split to both resistors - e.g. Measurement of +V=5V -> 2,5V. If one of the axis changes, like the x-axis for example, the values of the resistors will change - e.g. value of resistor 1 will raise than the value of resistor 2 will fall or the value of resistor 1 will fall and the value of resistor 2 will raise. According to the division of the resistor values, you can measure a specific voltage value between the resistors and locate the position of the axis.

Included with the package:

  • Arduino Compatible XY-axis joystick module x 1

Specifications:

  • Operating Voltage: 5V DC

Connecting to the Arduino:

  • GND :(Ground Pin)
  • +5V :(5V Pin)
  • VRX :(voltage proportional to x-axis)
  • VRY :(voltage proportional to y-axis)
  • SW :(joystick pressed PIN)

How to connect the KY-023 to the Arduino?

Connecting the KY-023 to the Arduino is very straight forward. The module’s “GND” has to be connected to the Arduino’s “GND”. As the KY-023 work on 5 Volt, the module’s “+5V” has to be connected to one of the Arduino’s “5V” pins. The joystick is basically a combination of two potentiometers. This means, when the joystick is moved along the x-axis the resistance changes resulting also in a change of voltage. The voltage can be used to detect the x-position of the joystick by connecting the VRX Pin to an analog input of the Arduino. The same applies for the y-axis. The y-axis’ position can be read by connecting VRY to an analog input. In this tutorial, VRX is connected to “A0” and VRY is connected to “A1”. Lastly, SW is connected to the Arduino’s digital pin “2”.

*This product is not produced or endorsed by Arduino.