Page 1
Welcome! Thank you very much for purchasing our AZ-Delivery PS2 Joystick Shield for Arduino. On the following pages, we will introduce you to how to use and setup this handy device. Have fun!
Areas of application The products are intended for the support and assembly of electronic components and circuits. Required knowledge and skills The use of these products requires basic knowledge of electrical engineering and the handling of electronic components. Users should be able to install the products correctly and take the necessary safety precautions. Environmental conditions The products should be used in an environment free from moisture, dust and direct sunlight.
Page 4
The PS2 Joystick Shield (Funduino) is a plug-in attachment for the Arduino Uno or any other Arduino Uno voltage and port compatible board. It offers a digital control pad with 4 buttons, an analog 2-axis control pad with digital pushbutton and two additional buttons for extended control.
Page 5
Now connect your Arduino to your PC. The red LED on your PS2 Joystick Shield should light up. With this you have already created all the necessary technical connections to use the Shield in programs. To make it easier for you to understand the programming for the shield, we have divided the e-book into 3 parts.
Page 6
The output can then be evaluated with your own program on the PC side. In the first part we take a look at the digital part of the PS2 Joystick Shields and with it the wiring and the query of the individual buttons. The buttons on the PS2 Joystick Shield are marked with the letters A to F and K.
Page 7
In the second part we now come to the analog part of the PS2 Joystick Shield and thus to the versatile analog joystick. The analog joystick is technically realized via a horizontal (X axis) potentiometer on analog port 0 of the Arduino and a vertical (Y axis) potentiometer on analog port 1 of the Arduino.
Page 8
In the last section of our manual we now come to the Arduino example sketch which outputs the data of the PS2 Joystick Shields via the serial interface of the Arduino: // Digital inputs, connected to push buttons const byte PIN_BUTTON_A = 2;...
Page 9
void loop() { ButtonStatus = PIND & 0b11111100; // Pin 2 is configured to input with pullup resistor (Port D) // Pin 3 is configured to input with pullup resistor. (Port D) // Pin 4 is configured to input with pullup resistor. (Port D) // Pin 5 is configured to input with pullup resistor.
Page 10
Our program generates the following output on the serial interface at 57600 baud rate and S1 switch position 5V. You've done it, you can now use your module for your projects.
Page 11
If you are looking for the high quality products for Arduino and Raspberry Pi, AZ-Delivery Vertriebs GmbH is the right company to get them from. You will be provided with numerous application examples, full installation guides, eBooks, libraries and assistance from our technical experts.
Need help?
Do you have a question about the PS2 and is the answer not in the manual?
Questions and answers