This product may not be available anymore.

KY-023 PS2 XY-Axis Joystick

30 EGP
LiveOut of stock

## Description ### KY-023 PS2 XY-Axis Joystick Specifications The KY-023 PS2 XY-Axis Joystick is a combination of 2 analoog potentiometer and a digital switch. ### Connecting... more on TechDepot Egypt

Check it on TechDepot Egypt

KY-023 PS2 XY-Axis Joystick Details

  • The best price of KY-023 PS2 XY-Axis Joystick by TechDepot Egypt in Egypt is 30 EGP
  • Available payment methods are
    Cash on Delivery
  • Delivery fees are 35-45 EGP, with delivery expected within 5+ day(s)
  • The first appearance of this product was on Jul 31, 2016

Technical Specifications

Weight:5 g

TechDepot Egypt's Description

Description

KY-023 PS2 XY-Axis Joystick Specifications

The KY-023 PS2 XY-Axis Joystick is a combination of 2 analoog potentiometer and a digital switch.

Connecting

  • Arduino GND –> Module pin –
  • Arduino +5V –> Module pin +5V
  • Arduino Analoog 0 –> Module VRx
  • Arduino Analoog 1 –> Module VRy
  • Arduino Digital –> Resistor??–>Module SW

you need a resistor, you can use Arduino internal pullup resistor, instruction (pimode(pin, INPUT_PULLUP);) does the job

Code

// Module KY023// For more info see http://tkkrlab.nl/wiki/Arduino_KY-023_XY-axis_joystick_moduleint JoyStick_X = A0;// xint JoyStick_Y = A1;// yint JoyStick_Z =3;// keyvoid 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);}

Reviews of KY-023 PS2 XY-Axis Joystick

  • No reviews exist yet for this product.