adis16505
Description
The adis16505
object reads acceleration, angular velocity, and
temperature using the ADIS16505 sensor connected to the SPI bus of the hardware. The
ADIS16505 sensor is an inertial measurement unit (IMU) used to read acceleration and
angular velocity in all three dimensions. The ADIS16505 sensor also has an embedded
temperature sensor. Attach an ADIS16505 sensor to the SPI pins on the hardware. You can
read the data from your sensor in MATLAB® using the object functions.
Creation
Syntax
Description
creates a sensor object with default property values.imu
= adis16505(obj,'SPIChipSelectPin',chipSelectPin
)
Example:
imu = adis16505(a,'SPIChipSelectPin','D10');
.
creates a sensor object with properties using one or more
imu
= adis16505(a
,'SPIChipSelectPin',chipSelectPin,
Name,Value
)Name,Value
pair arguments.
Example:
imu =
adis16505(a,'SPIChipSelectPin',D10,'SampleRate',50);
.
Input Arguments
Properties
Object Functions
readAcceleration | Read one sample of acceleration from sensor |
readAngularVelocity | Read one sample of angular velocity from sensor |
readTemperature | Read one sample of temperature from sensor |
read | Read real-time sensor data at a specified rate |
release | Release the sensor object |
flush | Flush the host buffer |
info | Read information related to sensor |
Examples
Create Connection to ADIS16505 Sensor
Create an arduino
object with the SPI
library.
a = arduino('COM3','Uno','Libraries','SPI');
Create the sensor object.
imu = adis16505(a,'SPIChipSelectPin','D10');
imu = adis16505 with properties: NumTapsBartlettFilter: 1 Interface: "SPI" SPIChipSelectPin: "D10" SCLPin: "D13" SDIPin: "D12" SDOPin: "D11" SampleRate: 110 (samples/s) SamplesPerRead: 10 ReadMode: "latest" SamplesRead: 0 SamplesAvailable: 0 Show all properties, functions
Create ADIS16505 Sensor Connection with Additional Name-Value Pair Arguments
Create a sensor object with additional properties specified as name-value pair arguments.
imu = adis16505(a,'SPIChipSelectPin','D10','SampleRate',110,'SamplesPerRead',3,'ReadMode','latest')
imu = adis16505 with properties: NumTapsBartlettFilter: 1 Interface: "SPI" SPIChipSelectPin: "D10" SCLPin: "D13" SDIPin: "D12" SDOPin: "D11" SampleRate: 110 (samples/s) SamplesPerRead: 3 ReadMode: "latest" SamplesRead: 0 SamplesAvailable: 0 Show all properties all functions
More About
Version History
Introduced in R2024a