
Previously we interfaced Joystick with AVR, Joystick with Arduino and Raspberry Pi.īefore interfacing any sensor or module with a microcontroller it is important to know how it functions. And we can get the direction of movement by interpreting these voltage changes using some microcontroller. Both the Potentiometers output an analog voltage which depends on the position of the joystick. The potentiometer is used to keep track of the X and Y movement of the joystick and the button is used to sense if the joystick is pressed. A Joystick is nothing more than a couple of potentiometers and push button mounted over a smart mechanical arrangement. A typical Joystick module is shown in the figure below. Joysticks are available in different shapes and sizes.

For people who are new to pickit is recommended to learn the above ADC project as well as the LED Blinking Sequence Project to make it easier to understand the project. We have already learnt how to use ADC with PIC, hence it is would be just a work around for interfacing the Joystick. Hence it is also very easy to interface with any MCU provided we know how to use the ADC feature of that MCU.


In this tutorial we are going to learn how to interface a joystick with our PIC microcontroller, a joystick is a cool way to interact with the digital world and almost everyone would have used one for playing video games in their adolescence age.Ī joystick might seem to be a sophisticated device, but it actually is just a combination of two Potentiometers and a push button. An input device can be as simple as a push button or as complicated as a touch screen it varies based on the requirement of the project. These input device help the user to interact with the digital world. Input devices play a vital role in any electronics projects.
