Instructions

www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn
2. USAGE WITH THE ARDUINO
1. Connection
2. Code example
In the following, you will find a code example to test your gamepad.
We use the following library, which you can download here. More
information about this library can be found here, this library was released
under the GNU General Public License.
Now download the library and place it in your Arduino library folder. If it
is unknown, open your Arduino IDE and select
file
preferences
.
The
Sketchbook location
field contains this address of your IDE. From
there, select the
libraries
folder. In this folder deposit the extracted
library and restart your Arduino IDE.
Now you can start the code example from the IDE by clicking on
file
Examples
PS2X_lib
Examples
PS2X_Example
. Now click on
Upload
aer you have connected your Arduino and put batteries in the
gamepad. Also, open the Serial Monitor to see the output of the program.
You can open the Serial Monitor in
Tools
Serial Monitor
.
Arduino Gamepad
3.3 V
5
(Power)
GND
4
(GND)
Pin 10
6
(Attention)
Pin 11
2
(Command)
Pin 12
1
(Data)
Pin 13
7
(Clock)