The joystick is an integration of two potentiometers for the X and Y plane respectively. It shows the voltage via the potentiometer and provides analog value to the Arduino and the analog value modifies as we move the joystick shaft.
Joysticks are accessible in various shapes and sizes. The joystick module is as follows. This Joystick module generally gives Analog Outputs and the output voltages given by this module have changed as per the direction in which we drive it. And we can get the direction of evolution by understanding these voltage changes utilizing some microcontroller.
This joystick module has two axes. X-axis as well as Y-axis. Each axis of JOYSTICK is installed to a potentiometer or pot. The midpoints of these pots are turned out as Rx and Ry. So these two axes are variable points to these pots.