Skip to content
Advertisements

How to simply interface the Joystick module with Arduino board

 

Hello everyone, yassine here,

In this tutorial we gonna try to interface a Joystick module with Arduino board, here as always I’m using Arduino Uno board, so this is the module I’m using: it has 5 pins (Vcc, GND, Xaxis,Yaxis and the push button pin):

 

Wirings:

Wiring 1: no button problem

This normally the wiring, in case you don’t have the problem like me with the push button, it’s simple 5v and GND from the Arduino then we wire the pins from the X axis and Y axis with analog inputs here I used 0 and 1, and for last we wire the button pin with a Digital I/O here I used D2

 

Wiring 2: in case you got the same problem as me

 

Codes:

Here are “.ino” codes I used in the video, if you want a text version you can tell me to post it here:

you can find X axis alone, Y axis alone and( X and Y), also the button alone, it’s simple to assemble them

Thanks, and hope you enjoy it, any problem, suggestion or comment you can tell me.

 

Advertisements

Yassine View All

Electronics, Automation engineering student... I try to share my little experience with other electronics amateur.

One thought on “How to simply interface the Joystick module with Arduino board Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: