Analog-to-Digital (ADC) Interface

Module Support

The user ADC interface is supported by only the Fortiq-42 modules.

Speed Modules

Speed Module Support for User ADC

Module

User ADC Support

Vertiq 81-08

Vertiq 40-06

Vertiq 23-06

Servo Modules

Servo Module Support for User ADC

Module

User ADC Support

Vertiq 81-08

Vertiq 40-06

Vertiq 23-06

Vertiq Fortiq-42

Description

Vertiq’s ADC Interface provides access to an on-board Analog to Digital Converter (ADC). An ADC makes it possible for your module to read input analog voltages. The ADC handles voltages from 0.0V to 3.3V with a 12-bit resolution. For example, if you input 1V to the ADC interface, reading the voltage would return 1V, and reading the “raw value” would return 1241 (\(\frac{V_{\text{in}} * 4096}{3.3}\)).

The ADC interface provides read-only access to both the voltage read and the raw ADC value.

Usage

IQ Control Center

The IQ Control Center provides the easiest way to test reading the voltage input on your module’s ADC. To do so:

  1. Open IQ Control Center. If you have not installed the program, please follow the instructions in Getting Started with Speed Motors Using IQ Control Center.

  2. Connect your module to IQ Control Center

  3. Select the Testing Tab on the left side:

    ../_images/control_center_testing.png
  4. Scroll down in the Testing Tab until you find Read ADC Voltage

    ../_images/read_adc_tab.png
  5. Click the refresh button to read the ADC voltage keeping in mind that the ADC is limited to 0 to 3.3V

Vertiq Python API - ADC Interface

Note

Please note that the following ADC Interface testing was performed with a Fortiq-42 module. Your exact commands may change depending on the module in use.

The ADC interface can also be accessed through Vertiq’s Python API. Through the API you can read both the ADC’s read voltage and raw ADC value. To use the API, please use the following steps:

  1. If you have never used Vertiq’s Python API, you must first set up your local computer to use the Python API using the instructions found at Getting Started with Python

  2. After completing the walkthrough, you can interact with the adc_interface client

  3. To read the voltage, use:

    print(fortiq.get("adc_interface", "adc_voltage"))
    
  4. To read the raw value, use:

    print(fortiq.get("adc_interface", "raw_value"))