Web Site: www.parallax.com Office: (916) 624-8333 Forums: forums.parallax.com Fax: (916) 624-8003 Sales: sales parallax.com Sales: (888) 512-1024 Technical: support parallax.com Tech Support: (888) 997-8267 2-Axis Joystick ( 27800) The 2-Axis Joystick can be used to add analog input to your next project. The 2-Axis Joystick contains two independent potentiometers (one per axis) that can be used as dual adjustable voltage dividers, providing 2-Axis analog input in a control stick form. The modular form-factor allows you to plug the 2-Axis Joystick directly into a breadboard for easy prototyping. The 2-Axis Joystick includes spring auto- return to center and a comfortable cup-type knob which gives the feel of a thumb-stick. Features Easy breadboard connection Two independent potentiometers with common ground Spring auto-return to center position Comfortable cup-type knob Compatible with most microcontrollers Key Specifications Power capability: 0.01W 10 VDC maximum working voltage Interface: Dual 10 k potentiometers with common ground Operating temperature: 32 to 158 F (0 to 70 C) Dimensions: 1.64 H x 1.40 L x 1.10 W (41.67 mm H x 35.56 mm L x 27.94 mm W) Application Ideas Camera Pan/Tilt Control Game Input/Control Robot Control Analog Input of Parameters Copyright Parallax Inc. 2-Axis Joystick ( 27800) v1.2 1/16/2012 Page 1 of 3 Quick Start Circuit This circuit works with the code below for the BASIC Stamp 2 to provide an RCTIME value for each axis that relates to the position of the joystick. In this manner the two potentiometers are providing a variable resistance for use with the RCTIME command. Caution: When using this circuit, do not use a resistor value less than 220 and do not apply more than 5 VDC through this resistor to the L/R or U/D pins. For more information on how to measure resistance using the BASIC Stamp RCTIME command, please read Chapter 5 of Whats a Microcontroller book, a free download at www.parallax.com/go/WAM. The PDF is also included in the BASIC Stamp Editor softwares Help file, which is a free download from www.parallax.com/basicstampsoftware. BASIC Stamp 2 Program STAMP BS2 PBASIC 2.5 LR VAR Word UD VAR Word DO HIGH 4 PAUSE 2 RCTIME 4, 1, UD HIGH 11 PAUSE 2 RCTIME 11, 1, LR DEBUG HOME,UD = , DEC UD, CLREOL, CR, LR = , DEC LR, CLREOL PAUSE 50 LOOP Copyright Parallax Inc. 2-Axis Joystick ( 27800) v1.2 1/16/2012 Page 2 of 3