+21622886281
Arduino Joystick

Using the joystick with Arduino

Purpose of this tutorial:

In this tutorial we will see how to display the direction of the joystick controller on an LCD display with Arduino:

  • When the user points the joystick to the right, the word “Right” is displayed.
  • When the user points the joystick to the left, the word “Left” is displayed.
  • When the user points the joystick controller forward, the word “Forward” is displayed.
  • When the user moves the joystick to the rear, the word “Backward” is displayed.
  • When the user presses the joystick button, the word “pressed button” is displayed.

Necessary components 

  • Arduino UNO
  • Joystick
  • Connecting wires
  • I2C LCD display

Mounting

To make the assembly we connect:

For joystick :

  •  5V pin to 3.3V pin of Arduino

  • GND pin to GND pin of Arduino

  • VRx pin to A0 pin of Arduino

  • VRy pin to A1 pin of Arduino

  • SW pin to pin 2 of Arduino

For LCD display:

  • VCC pin to 5V pin of Arduino

  • GND pin to GND pin of Arduino

  • SDA pin to A4 of Arduino

  • SCL pin to A5 pin of Arduino

Program

Note: You must download the LiquidCrystal_I2C library(Download).




4 commentaires

Henry 03-01-2222

Hi every one, here every one is sharing these kinds of familiarity, thus it's pleasant to read this webpage, and I used to go to see this web site daily.

Dominga 03-01-2222

Thanks for sharing superb informations. Your site is very cool. I'm impressed by the details that you have on this site. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for extra articles. You, my pal, ROCK! I found just the info I already searched all over the place and just couldn't come across. What a great site.

Ashly 03-01-2222

Hello there, I discovered your site by way of Google while searching for a similar matter, your web site got here up, it seems good. I've bookmarked it in my google bookmarks.[X-N-E-W-L-I-N-S-P-I-N-X]Hi there, just become aware of your weblog through Google, and located that it's really informative. I am gonna watch out for brussels. I will appreciate should you continue this in future. Lots of other people might be benefited from your writing. Cheers!

Etta 16-12-2121

Hello to every body, it's my first pay a visit of this web site; this weblog includes awesome and actually excellent data designed for visitors.


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top