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):
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
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.
Automation and Electrical Engineer, Electronics amateur trying to share my little projects.