How Does A Joystick Work? | Arduino For Beginners

You have already used the joystick while playing video games or using remote-controlled cars. It is an important input device commonly used with Arduino to make projects like Joystick-controlled car. Today we'll learn how to connect the joystick to Arduino and display its position on Arduino serial monitor. 

Pin Layout Joystick Module

Hardware Setup

Arduino GND connects to Joystick GND
Arduino 5V connects to Joystick 5V
Arduino Analog Input pins A0 and A2 to Joystick VRx and VRy respectively
Arduino Digital I/O pin 3 to Joystick Swith pin SW

Note: Arduino Analog and Digital pin connections may vary depending on your code.

Software Setup


To see how the project works refer to the video below.

We hope that you learned how to use Joystick with Arduino. Now it's time for you to make this project and share it with us. Feel free to ask any queries in the comments below. Happy Learning :) 


Popular Posts

How To Make Line Follower Using Three IR Sensor | Arduino Line Following Car

How to Make Traffic Lights Using Arduino Uno | Make Traffic Control System