Main Content


Read output data rate and bandwidth setting of BNO055 sensor

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



SensorInfo = info(bno055) returns the output data rate (ODR) and bandwidth of the BNO055 sensor in the amg operating mode.


In the ndof mode, an internal fusion algorithm configures the bandwidth and ODR of the sensor with some values. Hence info cannot be used in ndof operating mode.


Read Info of Sensor

Create an arduino object and include the I2C library.

a = arduino('COM4', 'Uno', 'Libraries', 'I2C');

Create the sensor object and read info.

imu = bno055(a,'OperatingMode','amg','SampleRate',100,'Bus',1);
ans = 
    struct with fields:

    AccelerometerBandwidth: 31.2500
        GyroscopeBandwidth: 47
           MagnetometerODR: 30	 

Input Arguments

collapse all

BNO055 sensor object created in the amg operating mode with the default or specified properties.

Output Arguments

collapse all

Sensor information such as acceleration and angular velocity bandwidth, and magnetic field output data rate of the BNO055 sensor.

Data Types: struct

Version History

Introduced in R2019a