Main Content

ADIS16505 IMU Sensor

Measure acceleration, angular rate, and temperature along axes of ADIS16505 sensor

Since R2024a

Add-On Required: This feature requires the Simulink Support Package for Arduino Hardware add-on.

  • ADIS16505 IMU Sensor block

Libraries:
Simulink Support Package for Arduino Hardware / Sensors

Description

The ADIS16505 IMU Sensor block outputs the values of acceleration, angular rate, and temperature along x-, y- and z- axes as measured by the ADIS16505 IMU Sensor connected to Arduino board.

Note

The output from the ADIS16505 sensor may have a finite non-negligible offset value except for the Temperature output. You may consider correcting this offset value for such cases.

If you simulate a model that contains the ADIS16505 IMU Sensor block without connecting it to the hardware, the block outputs zeros. For more information, see Block Produces Zeros or Does Nothing in Simulation.

Ports

Output

expand all

The Acceleration port outputs acceleration in m/s2 along the x-, y-, and z- axes of the sensor as a n-by-3 vector, where n is the value specified as Samples per frame.

Dependencies

This output port appears only if you select the Acceleration (m/s2) parameter.

Data Types: double | single | int32

The Angular Rate port outputs angular velocity in radians per second (rad/s) along the x-, y-, and z- axes of the sensor as a n-by-3 vector, where n is the value specified as Samples per frame.

Dependencies

This output port appears only if you select the Angular Velocity (rad/s) parameter.

Data Types: double | single | int32

Temperature (in ℃) measured by ADIS16505 IMU sensor connected to Arduino board.

Dependencies

This output port appears only if you select the Temperature (℃) parameter.

Data Types: double | single | int32

Status of acceleration, angular velocity and temperature measurements, specified as a scalar. 0 indicates that the data read is new, 1 indicates that the data read is not new.

Note

To observe the status changes, set the block sample time to less than 0.5 milliseconds. This is because the ADIS16505 sensor operates at a clock frequency of 2000 Hz.

Dependencies

The Status port is available only when you select the Status parameter.

Data Types: uint8

Timestamp (in seconds) at which data is read from the sensor, returned as n-by-1 matrix, where n is the value specified as Samples per frame.

Dependencies

This output port appears only if you select the Timestamp (s) parameter.

Data Types: double

Parameters

expand all

Enter the pin number on the Arduino® board to which the sensor chip select pin is connected. See Pin Mapping for Arduino Timer Independent Blocks to know the SS pin restriction with different Arduino boards.

Select the logic level for INT1 pin as Active high or Active low.

Enter the desired output data rate between 1 Hz to 2000 Hz, at which accelerometer data has to be sampled.

Accelerometer data output rate in Hz is determined by the following calculation.

Achieved output data rate = 2000/(1+DEC_RATE), where DEC_RATE is 0,1,2,...1999.

Depending on the desired output data rate specified on the block mask, Achieved output data rate (Hz) will be set on the sensor.

Select the number of taps for Bartlett window filter.

Click Frequency response based on number of taps to view the frequency response of Bartlett filter. A sample screen is shown below.

Bartlett Window Filter

Specify the datatype for acceleration, angular rate, and temperature outputs.

Specify the number of samples that the block outputs.

The value that you specify here is also used to compute the output sample time:

Output sample time = Samples per frame * Sample time.

Specify how often the block read values from the sensor, in seconds. When you specify this parameter as -1, Simulink® determines the best sample time for the block based on the block context within the model. The output sample time is the product of Samples per frame and Sample time that you specify.

Select outputs

When you select the Acceleration (m/s^2) parameter, the Acceleration port becomes available. For more information on the Acceleration port, see Acceleration.

When you select the Angular velocity (rad/s) parameter, the Angular Rate port becomes available. For more information on the Angular Rate port, see Angular Rate.

When you select the Temperature (deg C) parameter, the Temperature port becomes available. For more information on the Temperature (deg C) port, see Temperature.

Select this parameter to display the status of read operation.

When you select the Status parameter, the Status port becomes available. For more information on the Status port, see Status.

Select this parameter to set Timestamp as one of the output ports. For more information on the Timestamp port, see Timestamp.

Version History

Introduced in R2024a