Because it's analog, You will need two analog studying pins with your microcontroller to find out X and Y. Obtaining an additional digital enter will Enable you to examine the change. Note that this instance assumes you happen to be utilizing an Arduino-suitable board that supports the Joystick library, such https://cesarybazz.wizzardsblog.com/38093682/5-simple-statements-about-diy-arcade-parts-explained