bmi160
Description
The bmi160
object reads linear acceleration, angular velocity,
and temperature along the X, Y, and Z axes using the BMI160 sensor interfaced with the
Raspberry Pi® hardware. If BMM150 is connected as a secondary sensor to BMI160, the
bmi160
object also outputs magnetic field along x-, y- and z- axes as
measured by the BMM150 sensor. Before you use the bmi160
object, ensure that
the I2C interface is enabled on your Raspberry Pi kernel. You can then create a connection to the Raspberry Pi board using the raspi
object and set its properties. For more
information, see raspi
.
Creation
Description
creates a BMI160 sensor object with default property values. The object represents a
connection to the sensor on the Raspberry Pi hardware sensor
= bmi160(mypi
)mypi
.
creates a BMI160 sensor object with properties using one or more
sensor
= bmi160(mypi
,Name,Value
)Name,Value
arguments.
Input Arguments
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 |
readMagneticField | Read one sample of magnetic field from sensor |
Examples
Extended Capabilities
Version History
Introduced in R2023a