The joystick is an input device. The analogue joystick is sometimes called a control stick. Used to control the movement of the pointer on the 2-dimensional axis. The joystick has two potentiometers for reading user input. A potentiometer is used to get the analogue output voltage for the XDirection movement. The other potentiometer is used to get the analogue output voltage for moving in the Y direction. The potentiometers are connected between + VCC and the ground. They only behave like a voltage divider network. The joystick has a rotatable holder. According to the movement of the bracket, the potentiometer button changes its position and the resistance of the potentiometer.

Analog Joystick Module
Analog Joystick Module

Output Voltage Mapping with XY Position

In the rest position, the output voltage is VCC / 2. Taking into account VCC = 5 volts, the following figure shows the voltage assignment with different XY positions.

When the joystick is in the rest position, the output values ​​of terminal X and terminal Y are centre (2.5 V) of the specified range (0 V to 5 V). Depending on the movement of support, the output values ​​vary from the minimum limit (0 V) to the maximum limit (5 V). This joystick also has a select button/switch support movement they were switch support that is operated when the joystick button is pressed.

 

Pin Description

pin description of Analog Joystick Module
pin description of Analog Joystick Module

Pin 1, 5 – VCC and GND Supply voltage(+5V) and the ground were given to Joystick.

Pin 2 –X-OUT This pin provides an analogue output voltage from 0 volts to VCC according to the movement of Holder in X-direction (axis).

Pin 3 – Y-OUT This pin provides an analogue output voltage from 0 volts to VCC according to the movement of Holder in Y- Y-direction (axis).

Pin 4 – Switch This pin has one tactile switch. When a switch is not pressed, this pin is connected to VCC through a resistor. When a switch is pressed, this pin is connected to Ground.

Author

Write A Comment