Component used:
- Elegoo Uno R3
- Joystick module
- Female to Male Dupont wires
A joystick is known as an input device consisting of a stick that pivots on a base and reports its angle. it is also known as control column . analog joysticks helps a lot in controlling a project.
In this project we have learned how to use the analog joysticks module. The module of a joystick we have used has 5 pins which are VCC, Ground, X, Y keys. Here we have connected the joystick to the Elegoo UNO R3 through male to female wire.
Below here we can see the connection diagram

Code:
