Datasheet
1300 Henley Court
Pullman, WA 99163
509.334.6306
www.digilentinc.com
PmodJSTK2™ Reference Manual
Revised July 19, 2016
This manual applies to the PmodJSTK2 rev. C
DOC#: 502-330
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 1 of 9
Overview
The Digilent PmodJSTK2 (Revision C) is a versatile user input device that can be easily incorporated into a wide
variety of projects. With a two-axis joystick on a center button, a trigger button, and a programmable
RGB LED capable of 24-bit color.
1 Functional Descriptions
The PmodJSTK2 utilizes two potentiometers oriented orthogonally to one another and are manipulated by moving
the joystick in the X and Y directions. As the joystick moves, the voltage output at the sweep pin of each
potentiometer changes and is measured by the 10-bit ADC present on the embedded PIC16F1618 microcontroller.
The raw measured data is stored at a rate of 100 Hz as a 16-bit right-justified variable in RAM with the upper 6 bits
masked with zeros.
Additionally, each successive measurement also produces two 8-bit values representative of the joysticks physical
location with respect to each axis. Note that if inversion of either of the 8-bit position axis are set, the values will
not change until the data has been re-collected by the PIC16 at the 100 Hz rate.
The PmodJSTK2.
Factory Calibrated Two Axis Resistive
Joystick
Center Joystick Button
Trigger Style Push Button
24-bit RGB LED
6-pin Pmod connector with SPI interface
Library and example code available in
resource center
Features include:









