

It reads the voltage through the potentiometer and gives analog value to the Arduino, and the analog value changes as we move the joystick shaft (which is simply the potentiometer pointer.Īs you can see this analog 2-axis joystick has a total of 5 pins clearly labeled with GND, +5V, VRx, VRy, and SW. This joystick is nothing but a combination of two potentiometers for X and Y plane respectively. I would appreciate your support in this way! About the 2-axis analog Joystick:

I may make a commission if you buy the components through these links. Without any further delay let’s get started!!!įor the step-by-step detailed explanation watch video given at the end of this Article. 2-axis joystick Arduino Programming and finally.2-axis joystick Interfacing with Arduino.When the joystick push button is pressed again the Led is turned off which means that the joystick cannot be used to control the led’s, this Tutorial covers each and every detail, this tutorials covers When the joystick push button is pressed an Led is turned on which means that the joystick is ready and can be used to control the led’s. In this tutorial I am using the joystick push-button for activating and deactivating the 2-axis joystick. This 2-axis joystick also has a push button which can be used for various other purposes or it can be left unconnected. We have placed 4 LEDs in such a way that it represents the direction of the joystick shaft movement. 2 axis joystick Arduino Program Explanation:Ģ-Axis Joystick Arduino Tutorial– In this tutorial, you will learn how to use a 2-Axis analog joystick with Arduino and control some led’s as per the movement of the joystick.2-Axis Joystick Interfacing with Arduino:.2 axis Joystick Arduino Circuit Diagram:.
