주요 콘텐츠

IMU Sensors

R2026b
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 Sensor blockLSM9DS1 IMU SensorMeasure linear acceleration, angular rate and magnetic field along X, Y, and Z axes
block icon for LSM6DS3 IMU SensorLSM6DS3 IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DS3 sensor (Since R2022b)
block icon for LSM6DSL IMU SensorLSM6DSL IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSL sensor (Since R2022b)
block icon for LSM6DSM IMU SensorLSM6DSM IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSM sensor (Since R2022b)
block icon for ICM20948 IMU sensorICM20948 IMU SensorMeasure linear acceleration, angular velocity, magnetic field, and temperature from ICM20948 IMU sensor (Since R2022b)
block icon for LSM303 IMU sensorLSM303C IMU SensorMeasure linear acceleration, magnetic field strength, and temperature from LSM303C sensor (Since R2022b)
block icon for LSM6DSR IMU SensorLSM6DSR IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSR sensor (Since R2022b)
block icon for LSM6DSO IMU SensorLSM6DSO IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSO sensor (Since R2022b)
block icon for LSM6DS3HLSM6DS3H IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DS3H sensor (Since R2022b)
ADXL34x AccelerometerADXL34x AccelerometerMeasure linear acceleration along axes of ADXL34x family of accelerometers (Since R2022b)
Raspberry Pi BMI160 IMU Sensor Block IconBMI160 IMU SensorMeasure linear acceleration, angular rate, and temperature from BMI160 sensor
Raspberry Pi BMM150 Magnetometer Block IconBMM150 MagnetometerMeasure magnetic field from BMM150 sensor (Since R2022b)
block icon for LIS3MDL Magnetometer sensorLIS3MDL Magnetometer SensorMeasure magnetic field strength and temperature from LIS3MDL Magnetometer sensor (Since R2022b)
Ultrasonic Sensor blockUltrasonic SensorMeasure distance between ultrasonic sensor and object (Since R2022b)
VL53L0X SensorVL53L0X 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