主要内容

IMU Sensors

Sensors connected to Raspberry Pi® hardware that track motion

Configure sensor blocks and MATLAB® objects to capture acceleration, angular velocity, and magnetic field data from inertial measurement unit (IMU) sensors connected to Raspberry Pi hardware.

Blocks

LSM9DS1 IMU SensorMeasure linear acceleration, angular rate and magnetic field along X, Y, and Z axes
LSM6DS3 IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DS3 sensor (Since R2022b)
LSM6DSL IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSL sensor (Since R2022b)
LSM6DSM IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSM sensor (Since R2022b)
ICM20948 IMU SensorMeasure linear acceleration, angular velocity, magnetic field, and temperature from ICM20948 IMU sensor (Since R2022b)
LSM303C IMU SensorMeasure linear acceleration, magnetic field strength, and temperature from LSM303C sensor (Since R2022b)
LSM6DSR IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSR sensor (Since R2022b)
LSM6DSO IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSO sensor (Since R2022b)
LSM6DS3H IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DS3H sensor (Since R2022b)
ADXL34x AccelerometerMeasure linear acceleration along axes of ADXL34x family of accelerometers (Since R2022b)
BMI160 IMU SensorMeasure linear acceleration, angular rate, and temperature from BMI160 sensor (Since R2021b)
BMM150 MagnetometerMeasure magnetic field from BMM150 sensor (Since R2022b)
LIS3MDL Magnetometer SensorMeasure magnetic field strength and temperature from LIS3MDL Magnetometer sensor (Since R2022b)
Ultrasonic SensorMeasure distance between ultrasonic sensor and object (Since R2022b)
VL53L0X Time of Flight SensorMeasure distance to a target object (Since R2022b)

Objects

lsm9ds1Connect LSM9DS1 sensor on Raspberry Pi hardware I2C bus
lsm6ds3Connect LSM6DS3 sensor on Raspberry Pi hardware I2C bus (Since R2023a)
lsm6dslConnect LSM6DSL sensor on Raspberry Pi hardware I2C bus
lsm6dsmConnect LSM6DSM sensor on Raspberry Pi hardware I2C bus (Since R2023a)
icm20948Connect ICM-20948 sensor on Raspberry Pi hardware I2C bus (Since R2023a)
lsm303cConnect LSM303C sensor on Raspberry Pi hardware I2C bus
lsm6dsrConnect LSM6DSR sensor on Raspberry Pi hardware I2C bus (Since R2023a)
lsm6dsoConnect LSM6DSO sensor on Raspberry Pi hardware I2C bus (Since R2023a)
mpu6050Connect MPU-6050 sensor on Raspberry Pi hardware I2C bus
mpu9250Connect MPU-9250 sensor on Raspberry Pi hardware I2C bus
lsm6ds3hConnect LSM6DS3H sensor on Raspberry Pi hardware I2C bus (Since R2023a)
bmi160Connect BMI160 sensor on Raspberry Pi hardware I2C bus (Since R2023a)
adxl345Connect ADXL345, ADXL343, ADXL344, or ADXL346 sensor on Raspberry Pi hardware I2C bus (Since R2023a)

Functions

readAccelerationRead one sample of acceleration from sensor
readAngularVelocityRead one sample of angular velocity from sensor
readMagneticFieldRead one sample of magnetic field from sensor
readTemperatureRead one sample of temperature from sensor

Apps

Raspberry Pi Resource Monitor AppMonitor and manage Raspberry Pi resources

Featured Examples