Table of Contents



2-axis Joystick (#27800)
Last updated: 15 October 2012
Prepared by Vanissa Law [vanissalaw@gmail.com]
URL: http://www.parallax.com/tabid/768/ProductID/614/Default.aspx
Cost per unit: $9.99 USD (approx. HKD78)



2-axisjoystick.jpg

General Information

About 2-axis Joystick
The 2-Axis Joystick contains two independent potentiometers (one per axis) for reporting the joystick’s position, with wiring options for voltage or resistance outputs. The 2-Axis Joystick includes spring auto return to center and a comfortable cup-type knob.

Features & Specifications
For full specs refer to datasheet available here:
http://www.parallax.com/Portals/0/Downloads/docs/prod/sens/27800-2-AxisJoyStick-v1.0.pdf
Here’s a list of important features to note:
Two independent 10K potentiometers with common ground
Spring auto return to center
Power: 0.01W
Interface: Dual 10K potentiometers with common ground
Operating temp range: +32 °F to +158 °F


Getting it to work!
Connections

joystick_schem.JPG




Connection
Upper Left
L/R+ connected to 5V
Upper Right
U/D+ connected to 5V
L/R connected to A4
Lower Right
U/D connected to A1
GND connected to GND


Routing readings into Max

1. Open Arduino software. From the “File” pulldown menu choose Examples> Firmata> AllInputsFirmata. Then upload the code onto your Arduino.
2. Open the “maxuinoForLUME-2axisjoystick.maxpat” patch. Click the “print” message box on the grey panel. It will print all the available serial ports on your computer into the “umenu” underneath. Choose “usbmodem621” port to route serial data from Arduino into Max.
3. You should see the circle in the node object moves according to your joystick.