LEARN.PARALLAX.COM
Published on LEARN.PARALLAX.COM (https://learn.parallax.com)

Home > Propeller BlocklyProp Block Reference > Sensor > 2-Axis Joystick > Joystick Wiring & Example Code

Joystick Wiring & Example Code

The Parallax 2-Axis Joystick can be used for a wide variety of projects like wheeled robots, video games, or anything requiring user input. The Propeller Activity Board's A/D converter reads the joystick's output on each axis.

Wiring & Connections

 

Quick Code Example

Using the connections shown in the wiring diagram above, this program will show you Joystick Up/Down and Left/Right position values (0-99) in the Terminal.

BlocklyProp code to run a simple Terminal program for the 2-Axis Joystick.

DISCUSSION FORUMS | PARALLAX INC. STORE

About | Terms of Use | Feedback: learn@parallax.com | Copyright©Parallax Inc. 2023


Source URL: https://learn.parallax.com/support/reference/propeller-blocklyprop-block-reference/sensor/2-axis-joystick/joystick-wiring