Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pmod:pmodjstk2:reference-manual [2021/05/14 23:05] – ↷ Links adapted because of a move operation Arthur Brownpmod:pmodjstk2:reference-manual [2023/02/10 13:24] (current) – external edit 127.0.0.1
Line 22: Line 22:
 ---- ----
  
-====== Features ======+===== Features =====
   * Factory Calibrated Two Axis Resistive Joystick   * Factory Calibrated Two Axis Resistive Joystick
   * Center Joystick Button   * Center Joystick Button
Line 32: Line 32:
 ---- ----
  
-====== Functional Description ======+===== Functional Description =====
 The %%Pmod JSTK2%% 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.  The %%Pmod JSTK2%% 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. 
  
Line 39: Line 39:
 ---- ----
  
-======Specifications ======+=====Specifications =====
  
 ^  Parameter                                                    Min  ^  Typical¹  ^  Max  ^  Units    ^ ^  Parameter                                                    Min  ^  Typical¹  ^  Max  ^  Units    ^
Line 56: Line 56:
  
 ---- ----
-====== Interfacing with the Pmod======+===== Interfacing with the Pmod=====
 The %%Pmod JSTK2%% communicates with the host board via the [[pmod:communication_protocols:spi|SPI protocol]] with SPI Mode 0, CS active low, a 1 MHz clock, and each data byte organized MSb first. With the Pmod JSTK2, there are two types of data packet protocols: the standard data packet of 5 bytes and an extended data packet with 6 or 7 bytes in total. With the standard 5 byte protocol, users may use the old code from the %%Pmod JSTK%% without any syntax errors. The 5 byte packet structure is provided in the image below: The %%Pmod JSTK2%% communicates with the host board via the [[pmod:communication_protocols:spi|SPI protocol]] with SPI Mode 0, CS active low, a 1 MHz clock, and each data byte organized MSb first. With the Pmod JSTK2, there are two types of data packet protocols: the standard data packet of 5 bytes and an extended data packet with 6 or 7 bytes in total. With the standard 5 byte protocol, users may use the old code from the %%Pmod JSTK%% without any syntax errors. The 5 byte packet structure is provided in the image below:
  
Line 84: Line 84:
 ---- ----
  
-======= Command Summary =======+====== Command Summary ======
  
 A list of commands supported by the Pmod JSTK2 [[pmod:pmodjstk2:start#example_projects|library code]] is provided below. A list of commands supported by the Pmod JSTK2 [[pmod:pmodjstk2:start#example_projects|library code]] is provided below.
Line 111: Line 111:
 ---- ----
  
-====== Pinout Description Table ======+===== Pinout Description Table =====
 A pinout table of the %%Pmod JSTK2%% is provided below.  A pinout table of the %%Pmod JSTK2%% is provided below. 
  
Line 127: Line 127:
 Any external power applied to the %%Pmod JSTK2%% must be within 2.95V and 5.5V; however, it is recommended that Pmod is operated at 3.3V. Any external power applied to the %%Pmod JSTK2%% must be within 2.95V and 5.5V; however, it is recommended that Pmod is operated at 3.3V.
 ---- ----
-====== Physical Dimensions ======+===== Physical Dimensions =====
 The pins on the pin header are spaced 100 mil apart. The PCB is 1.875 inches long on the sides parallel to the pins on the pin header, 0.9375 inch long on the sides perpendicular to the pin header, and 1.75 inches tall. With the 3-D printed housing the module is 1.875 inches long on the sides parallel to the pins on the pin header, 1.125 inches long on the sides perpendicular to the pin header, and 1.75 inches tall. The pins on the pin header are spaced 100 mil apart. The PCB is 1.875 inches long on the sides parallel to the pins on the pin header, 0.9375 inch long on the sides perpendicular to the pin header, and 1.75 inches tall. With the 3-D printed housing the module is 1.875 inches long on the sides parallel to the pins on the pin header, 1.125 inches long on the sides perpendicular to the pin header, and 1.75 inches tall.
 ---- ----
Line 135: Line 135:
 Example code demonstrating how to get information from the %%Pmod JSTK2%% can be found [[pmod:pmodjstk2:start#example_projects| here]].  Example code demonstrating how to get information from the %%Pmod JSTK2%% can be found [[pmod:pmodjstk2:start#example_projects| here]]. 
  
-If you have any questions or comments about the %%Pmod JSTK2%%, feel free to post them under the appropriate section ("Add-on Boards") of the [[https://forum.digilentinc.com/|Digilent Forum]].+If you have any questions or comments about the %%Pmod JSTK2%%, feel free to post them under the appropriate section ("Add-on Boards") of the [[https://forum.digilent.com/|Digilent Forum]].