Joysticks make the control of your devices fast and convenient. They can perfectly sit on any control panel of any robot or navigation console. This joystick module is similar to video game controllers, such as the PlayStation or Xbox,. It combines a dual-axis joystick and click button for maximum performance.
The Troyka 3D joystick offers separate analog signals for both axes, as well as a digital signal for the button.
In the resting position, the analog signal outputs half the supply voltage. When moving the joysitck in one direction, the voltage will increase, and when moving the joystick in the other direction, the voltage will decrease. With this in mind, you can get the exact position of the joystick by adding in the angle of inclination (or tilt) of the joystick.
There are two three-pin connectors on the module. One connector is used for supplying voltage and reading the X-axis position. The other is to read the Y-axis position and the current state of the button.
Connect the joystick via 3-pin jumper cable. The 3-pin jumper cables needed for the connection are included in the kit.
There are several different ways to wire this module:
Troyka Shield. The most straightforward method. Connect the module to a pin group on Troyka Shield with the 3-pin jumper cable and you’re ready to interface with it from your Arduino.
Troyka Slot Shield. The best choice for quick prototyping. Using slots on the shield, you can get rid of cables. The module will be held securely in place using both pin headers.
Breadboard. For advanced use. Troyka pin headers have 0.1” spacing which is compatible with any breadboard. Simply wire the module like you would do with any IC.