-40%
Joystick Module Dual-axis Control Lever Sensor For Arduino XY PS2 KY-023 4.9 /5
$ 4.64
- Description
- Size Guide
Description
Joystick Module Dual-axis Control Lever Sensor For Arduino XY PS2 KY-023 4.9 /5Product Performance:
Input Voltage Range: Dc 3.3v To 5v
Output Signal: The Module Special Two-way Analog Output And A Digital Output Interface, The Output Value Corresponding To (X, Y) Biaxial Offset, The Type Of Analog; Keys That The User Press The Z Axis, Its Type Is A Digital Switch.
Arduino Controller Can Be Programmed, The Sensor Expansion Board Plug, Complete With Creative Remote Interactive Works.
Cross Joystick Is A Bi-directional 10k Resistor, With The Rocker In Different Directions, And The Tap Resistance With The Change.
This Module Uses A 5v Power Supply, The Original State Of X, Y Read Voltage Of 2.5v Or So, When Pressed With The Arrow Direction, The Read Voltage Value Increases With The Maximum To 5v; Arrows In The Opposite Direction To Press, Read The Voltage Decreases, The Minimum Is 0v.
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}
Y = Analog read (Joystick_y); Z = Digitalread (Joystick_z); Void Loop () {int X, Y, Z;
Serial.print (X, Dec); Serial.print ( ",");
Serial.print (Y, Dec); Serial.print ( ",");
Serial.println (Z, Dec);