Main Content

Analog Input

Measure voltage of analog input pin

Add-On Required: This feature requires the Embedded Coder Support Package for BeagleBone Black Hardware add-on.

  • Analog Input block

Libraries:
Embedded Coder Support Package for BeagleBone Black Hardware

Description

Use the Analog Input block to measure the voltage of a BeagleBone® board analog input pin.

Ports

Output

expand all

The block outputs the voltage level of an analog pin relative to the analog input reference voltage on the BeagleBone hardware. The block outputs a voltage value between 0 (GND_ADC) and 1.8 (VDD_ADC). The units of the output are volts.

Data Types: double

Parameters

expand all

Specify the BeagleBone board analog input pin number. To open the BeagleBone pin mapping table, click View pin map.

Specify how often the block measures voltage of the analog input pin, in seconds. Enter a value greater than zero. When you specify this parameter as –1, Simulink® determines the best sample time for the block based on the block context within the model. Smaller values require the processor to complete the same number of instructions in less time, which can cause task overruns.

Version History

Introduced in R2014b

See Also