Web Site:
www.parallax.com
Forums:
forums.parallax.com
Sales:
sales@parallax.com
Technical:
support@parallax.com
Office:
(916) 624-8333
Fax:
(916) 624-8003
Sales:
(888) 512-1024
Tech Support:
(888) 997-8267
Trackball Module (#27908)
Add a fun human interface component to your Propeller microcontroller projects with the Trackball
Module from Parallax! Similar to the trackball found on many smart phones, this sensor is easily portable
and can be used to replace a mouse in many applications. The Trackball Module comes with a built-in
center select switch and a red LED, which can be programmed to light up the trackball when desired.
Features
Built-in center select switch and red LED
Detects movement in the up, down, left, right, and
diagonal directions
8-pin DIP module is ready for breadboard or
through-hole projects
Built-in 1 kΩ series resistors for compatibility with
the Propeller microcontroller and other 3.3 V devices
Key Specifications
Power requirements: 5 VDC
Communication: Four-pin variable-frequency binary
signaling output (for trackball)
Operating temperature: 32 to 158 °F (0 to +70 °C)
Dimensions: 1.0 x 1.0 x 0.67 in
(25.4 x 25.4 x 17.08 mm)
Application Ideas
Mouse replacement
Video game input
Device Information
Theory of Operation
The Trackball Module has four tiny rotatable magnets attached to each corner of the component.
Rotating the Trackball Module in the up, down, left, or right directions will result in the rotation of one
magnet, while any diagonal movement will result in the rotation of two magnets.
Whenever any of the magnets rotate, a tiny magnetic field is created, which can be detected by a Hall
Effect sensor paired with each magnet. The Hall Effect sensor will then output a series of high/low signals
which can be monitored by the Propeller microcontroller to determine the direction of movement of the
trackball. The speed of rotation is then proportional to the period of the pulse, where slow rotation will
result in a longer period and faster rotation will result in a shorter period.
Note:
The Trackball Module does require a small break-in period before the ball will rotate smoothly.
Copyright © Parallax Inc.
Trackball Module (#27908)
v1.0 4/8/2010 Page 1 of 3
Pin Definitions and Ratings
Pin
1
2
3
4
5
6
7
8
Name
+5V
OPA
SW
OPB
GND
OPC
LED
OPD
Function
5V Supply Voltage
Output of Hall Effect IC - Up
Center select switch, active-high
Output of Hall Effect IC - Left
Ground -> 0V
Output of Hall Effect IC - Down
LED control pin
Output of Hall Effect IC - Right
Connection Diagram
For use with the example program included on the Trackball Module product page.
Copyright © Parallax Inc.
Trackball Module (#27908)
v1.0 4/8/2010 Page 2 of 3
Propeller™ P8X32A Application
The Trackball Module Demo uses the Parallax Serial Terminal to display the current movement of the
Trackball Module. The Parallax Serial Terminal itself is installed with the Propeller Tool v1.2.7 which is
available from the Downloads link at
www.parallax.com/Propeller.
The download for this demo code is available on the Trackball Module’s product page. Browse to
www.parallax.com
and search for 27908.
Copyright © Parallax Inc.
Trackball Module (#27908)
v1.0 4/8/2010 Page 3 of 3