2-Axis PS2 Game Joystick Axis Sensor Module for Arduino AVR PIC

  • Our Wholesale Price includes Shipping & Handling Charges and GST
  • Processing time12 ~ 20 days
  • Country Of OriginChina
  • Quantity
  • Available
  • SKU14009440

Product Description

This company produces the PS2 game biaxial rocker sensor module by using original of high-quality metal PS2 rocker potentiometer has 2 axis (X, Y) analog output, digital output (Z) 1 road button.Cooperate with the Arduino sensor extension board can make interactive work such as remote control.In addition, our products in order to make customers more easily with the arduino extension standard interface, such as on the design of X, Y, Z axis of the circuit are separate derivation, users can use 3 pin arduino private sidings true plug to extend board to use.Is very convenient.

Features:

  • Breakout module for Playstation2 analog joystick
  • 5 pins on board: VCC, GND, X, Y and Button. Connect the module with 5V power suppy with VCC and GND, you can read out the joystick status by X,Y and button pins
  • When using the 5V power supply, the default analog output for X,Y is 2.5V. With the direction of the arrow, the voltage up to 5V, and the opposite direction down to 0V.
  • Simply connect 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
  • Size(L*W*H): 38mm*27mm*35mm/ 1.50*1.06*1.38inch
  • Weight: 15g
  • Joystick Color: Black

     

Example Code:

     int sensorPin = 7;

     int value = 0;

      

     void setup() {

       pinMode(3, OUTPUT);

       Serial.begin(9600);

     }

      

     void loop() {

       value = analogRead(0);

       Serial.print("X:");

       Serial.print(value, DEC);

      

       value = analogRead(1);

       Serial.print(" | Y:");

       Serial.print(value, DEC);

      

       value = digitalRead(7);

       Serial.print(" | B: ");

       Serial.println(value, DEC);

      

       delay(100);

     }
 

Result:

It can put the game sensor state (x, y, z) 3 d data response to the display screen of a computer in real time. We use Serial Monitor window to show the result.

     

Package Included:

  • 1 x Arduino Compatible Joystick Module