2-axis Joystick

advertisement

Sensor User Manual

Last updated: 15 October 2012

Prepared by Vanissa Law [vanissalaw@gmail.com]

Sensor: 2-axis Joystick (#27800)

URL: http://www.parallax.com/tabid/768/ProductID/614/Default.aspx

Cost per unit: $9.99 USD (approx. HKD78)

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-AxisJoyStickv1.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

Connection

Upper Left

L/R+ connected to

Upper Right

U/D+ connected to

L/R connected to

Lower Right

U/D connected to

GND connected to

5V

5V

A4

A1

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.

Download