2pcs/lot For Arduino Dual-axis XY Joystick Module Higher Quality PS2 Joystick Control Lever Sensor KY-023 Rated 4.9 /5
Product parameters:
Product Name: Rocker Module (Double Axis Button Rocker)
Product size: 34.0mm * 26.0mm* 32.0mm (length x width x height)
Colour: Black
Product performance:
1. Input voltage range: DC 3.3V to 5V
2. Output signal: The module te sets two analog outputs and one digital output interface. The output values correspond to (X, Y) biaxial offsets respectively, and the type is analog; the button indicates whether the user presses on the Z axis. Its type is digital switching.
3. It can be programmed by Arduino controller, and the sensor expansion board can be plugged in to complete the creative remote interactive work.
4. The cross rocker is a bidirectional 10K resistor, and the resistance of the tap changes with the direction of the rocker. This module uses 5V power supply. In the original state, the X and Y read voltages are about 2.5V. When pressed in the direction of the arrow, the read voltage value increases with the value of 5V. When the arrow is pressed in the opposite direction, the voltage value is read. Reduced. Small 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 }
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);
Supply Voltage : 3.3V to 5V
Model Number : XY Joystick Module
Dissipation Power : standard
Operating Temperature : standard
Origin : CN(Origin)
Brand Name : SISJQRR
Package : DIP
Application : Computer
Condition : New
Type : Voltage Regulator
Unit Type : piece
is_customized : Yes
Package Weight : 0.002kg (0.00lb.)