How to Interface Dual Axis Joystick With Arduino Uno

by embedotronics in Circuits > Arduino

544 Views, 3 Favorites, 0 Comments

How to Interface Dual Axis Joystick With Arduino Uno

Arduino_Joystick.png

Here we are going to interface one duel axis joystick with arduino uno. This joystick has two analogue pins for x axis and y axis and one digital pin for switch.

Software Used:

arduinopage.jpg

Here we are using one software and that is Arduino IDE

Arduino IDE: You can download the latest Arduino IDE from this link: https://www.arduino.cc/en/Main/Software

Components Used:

arduino.jpg
dual-axis.jpg

1) Arduino UNO: Arduino/Genuino Uno is a microcontroller board based on the ATmega328P (datasheet). It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header and a reset button.

2) Duel axis Joystick: Arduino joystick module, it uses a biaxial potentiometer to control the X and Y axis. When pushed down, it activates a switch. Based on the PS2 controller's joystick, it's used to control a wide range of projects from RC vehicles to color LEDs.

3) Jumper Wires

Circuit Diagram

Arduino_Joystick.png

Here in this case we have A4 and A5 of Arduino Uno for analogue pins of Joystick and one switch which is connected to 4th pin of Arduino Uno

Code:

You can get the source code from our github link

Video:

Arduino interfacing with dual axis joystick

The whole Project Description is given in above video

If you have any doubt regarding this project feel free to comment us below. And if you want to learn more about embedded system you can visit our youtube channel

Please visit and like our Facebook Page for frequent updates.

Thanks & Regards,

Embedotronics Technologies