FX30 Digital Inputs

This topic describes how to physically connect a digital input to an FX30.

Now that you've decided to connect to your FX30 via GPIO, you'll need to:

  1. Take a look at the FX30 pin map and decide which pin you'll use.
  2. Wire up the pin.
  3. Configure the pins via the GPIO Service in Octave.

Locating the Appropriate Pin Map

Review the FX30 pin map and identify the input pin you would like to use.

Configuring a Digital Input

The subsections below describe how to add, configure, and verify a digital input on your FX30.

Adding a Digital Input

Follow the steps below to configure a digital input pin:

  1. Navigate to Device > Services, locate the GPIO section, and click Configure.
  2. Locate the Add pin section.
  3. Click the Pin drop down and select a GPIO pin (e.g. EXT_IO2_DI).
  4. Note the expected voltage indicated for the pin which will be 1800mV.
  5. (Optional) Change the name in Resource to a more descriptive name.
  6. (Optional) Configure Edge Detection. Edge detection will enable the interrupt to detect changes in the input and can be set to:
  • None: The input will only be observed (and the resource possibly updated) when the polling period expires (e.g. every 10 seconds).
  • Both: The input resource will be updated whenever the input pin changes state, regardless of the polling period.
  1. Click Add. The configured pin appears in the list of GPIO Services.

Configure the IO Pull-up state

If you want to control the pull-up configuration of your Digital Input

  1. Navigate to Device > Services, locate the GPIO section, and click Configure.
  2. Locate the Add pin section.
  3. Click the Pin drop down and select a GPIO Pull-up configuration pin (e.g. /io/EXT_IO2_PU which is actually GPIO53 as per the FX30 documentation and as highlighted in the UI).
  4. (Optional) Change the name in Resource to a more descriptive name.
  5. Click Add. The configured pin appears in the list of GPIO Services.

With the Pull-up resource now appearing in the list of resources (as an ouptut), you can set it to the value that you wish, from resource state in the UI (recommended), through Octave API or through a command.

Verify the Input Value

Follow the steps below to verify that the input value is being read by Octave:

  1. Assert voltage on the input pin selected.
  2. Navigate to Device > Resources
  3. Expand io and locate the input pin resource corresponding to the input pin on which voltage is asserted.
  4. Verify that the Value column for the value property indicates true.