Buy the 37 in 1 kit at Amazon
Contents
- 1 PS2 game joystick axis sensor module
- 2 product description
- 3 Specifications
- 4 Test
- 5 Schematic
- 6 Example Code
PS2 game joystick axis sensor module
product description
The company produces 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.
Specifications
The joystick is a combination of 2 analoog potentiometer and a digital switch.
Test
- Arduino controller × 1
- USB data cable × 1
- PS2 Game sensor module × 1
Schematic
- 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, command ( pinMode(pin, INPUT_PULLUP); ) does the jobExample Code