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.
Description
Measure the voltage of the selected analog input pin.
The block outputs a voltage value between 0 (GND_ADC) and 1.8 (VDD_ADC). The units of the output are volts.
During simulations without the hardware, this block emits zeros. See Block Produces Zeros or Does Nothing in Simulation.
Parameters
- Pin
Select the analog input pin.
Use View pin map to locate the pin.
Do not specify the same pin more than once within a given model.
- Sample time
Specify how often this block reads the pin value, in seconds.
This parameter value defaults to
0.1
seconds.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