Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| test-and-measurement:digital-discovery:pmod-kypd-output-to-console [2022/09/12 18:14] – changed forum.digilentinc.com to forum.digilent.com jeff.greenberg_ni.com | test-and-measurement:digital-discovery:pmod-kypd-output-to-console [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Using a Script to Output Keypad Data to Console ====== | ||
| + | <WRAP group> <WRAP column half> | ||
| + | {{ reference: | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | ===== Introduction ===== | ||
| + | This project streams key press data from the Pmod KYPD. The presses are displayed on the console in WaveForms' | ||
| + | |||
| + | The Pmod KYPD uses pull up and pull down resistors to determine which rows and columns have closed switches, correlating to button presses. See the {{/ | ||
| + | |||
| + | ---- | ||
| + | ===== Inventory ===== | ||
| + | * A Discovery Device with Digital I/O: | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * //An Analog Discovery (Legacy) can also be used.// | ||
| + | * [[https:// | ||
| + | * {{reference: | ||
| + | |||
| + | ---- | ||
| + | ===== Setup Instructions ===== | ||
| + | ==== 1. Hardware Setup ==== | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | This script requires that Pmod KYPD be connected to the Discovery device' | ||
| + | |||
| + | Finish the hardware setup by plugging the Discovery device into the computer. | ||
| + | </ | ||
| + | {{reference: | ||
| + | </ | ||
| + | ---- | ||
| + | ==== 2. Software Setup ==== | ||
| + | Download and extract the WaveForms workspace from the {{reference: | ||
| + | ---- | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | Open WaveForms. Upon launch, WaveForms will generate a prompt asking to switch to the device used with the workspace. As this is the device originally used when the workspace was created and archived, select **No**. Navigate to //Settings → Device Manager// in the menu bar at the top of the window, to check that the active device is your Discovery. | ||
| + | </ | ||
| + | {{reference: | ||
| + | </ | ||
| + | ---- | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | Open the //keypad// workspace, found in the folder extracted from the archive, in WaveForms. | ||
| + | </ | ||
| + | {{reference: | ||
| + | </ | ||
| + | ---- | ||
| + | ==== 3. Running the Script ==== | ||
| + | <WRAP GROUP> <WRAP COLUMN HALF> | ||
| + | Once the connections are made, open the workspace in WaveForms. Press the **Run** button ({{reference: | ||
| + | </ | ||
| + | {{ reference: | ||
| + | </ | ||
| + | ---- | ||
| + | ===== Final Notes ===== | ||
| + | For more guides and example projects for your Test and Measurement device, please visit its Resource Center, which can be found through this wiki's [[test-and-measurement: | ||
| + | |||
| + | For technical support, please visit the [[https:// | ||
| + | |||
| + | {{tag> | ||

