User Manual
73 
Lesson 29 Joystick PS2 
Introduction 
A joystick is an input device consisting of a stick that pivots on a base and reports its angle 
or direction to the device it is controlling. Joysticks are often used to control video games 
and robots. A Joystick PS2 is used here. 
Components 
- 1 * SunFounder Uno board 
- 1 * USB data cable 
- 1 * Joystick PS2 module 
- Several jumper wires 
Experimental Principle 
This module has two analog outputs (corresponding to X,Y biaxial offsets) and one digital 
output representing whether it is pressed on Z axis. The module integrates power indicator 
and can display operation condition. 
In this experiment, we use the SunFounder Uno board to detect the moving direction of the 
Joystick knob and pressing of the button. 
Experimental Procedures 
Step 1: Build the circuit 
   Joystick PS2 Module   SunFounder Uno 
    SW -------------------------------------- D8 
   VRx ------------------------------------- A0 
   VRy ------------------------------------- A1 
   +5V ------------------------------------- 5V 
   GND ------------------------------------ GND 
SunFounder










