Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pmod:pmodjstk2:reference-manual [2021/05/14 23:05] – ↷ Links adapted because of a move operation Arthur Brown | pmod: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 | ^ Parameter | ||
Line 56: | Line 56: | ||
---- | ---- | ||
- | ====== Interfacing with the Pmod====== | + | ===== Interfacing with the Pmod===== |
The %%Pmod JSTK2%% communicates with the host board via the [[pmod: | The %%Pmod JSTK2%% communicates with the host board via the [[pmod: | ||
Line 84: | Line 84: | ||
---- | ---- | ||
- | ======= Command Summary | + | ====== Command Summary ====== |
A list of commands supported by the Pmod JSTK2 [[pmod: | A list of commands supported by the Pmod JSTK2 [[pmod: | ||
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: | Example code demonstrating how to get information from the %%Pmod JSTK2%% can be found [[pmod: | ||
- | If you have any questions or comments about the %%Pmod JSTK2%%, feel free to post them under the appropriate section (" | + | If you have any questions or comments about the %%Pmod JSTK2%%, feel free to post them under the appropriate section (" |