Main Content

传感器

从传感器读取数据

从连接到 Raspberry Pi® 硬件的传感器采集实时数据。安装 MATLAB® Support Package for Raspberry Pi Hardware 后,您可以从 MATLAB 桌面或从 MATLAB Online™ 连接到这些传感器。

函数

全部展开

lsm9ds1Connect LSM9DS1 sensor on Raspberry Pi hardware I2C bus (自 R2021a 起)
readAccelerationRead one sample of acceleration from sensor (自 R2021a 起)
readAngularVelocityRead one sample of angular velocity from sensor (自 R2021a 起)
readMagneticFieldRead one sample of magnetic field from sensor (自 R2021a 起)
lsm6dslConnect LSM6DSL sensor on Raspberry Pi hardware I2C bus (自 R2021a 起)
readAccelerationRead one sample of acceleration from sensor (自 R2021a 起)
readAngularVelocityRead one sample of angular velocity from sensor (自 R2021a 起)
readTemperatureRead one sample of temperature from sensor (自 R2021a 起)
lsm303cConnect LSM303C sensor on Raspberry Pi hardware I2C bus (自 R2021a 起)
readAccelerationRead one sample of acceleration from sensor (自 R2021a 起)
readTemperatureRead one sample of temperature from sensor (自 R2021a 起)
readMagneticFieldRead one sample of magnetic field from sensor (自 R2021a 起)
mpu6050Connect MPU-6050 sensor on Raspberry Pi hardware I2C bus (自 R2021a 起)
readAccelerationRead one sample of acceleration from sensor (自 R2021a 起)
readAngularVelocityRead one sample of angular velocity from sensor (自 R2021a 起)
mpu9250Connect MPU-9250 sensor on Raspberry Pi hardware I2C bus (自 R2021a 起)
readAccelerationRead one sample of acceleration from sensor (自 R2021a 起)
readAngularVelocityRead one sample of angular velocity from sensor (自 R2021a 起)
readMagneticFieldRead one sample of magnetic field from sensor (自 R2021a 起)
hts221Connect HTS221 sensor on Raspberry Pi hardware I2C bus (自 R2021a 起)
readTemperatureRead one sample of temperature from sensor (自 R2021a 起)
readHumidityRead one relative humidity data sample from HTS221 sensor (自 R2021a 起)
lps22hbConnect LPS22HB sensor on Raspberry Pi hardware I2C bus (自 R2021a 起)
readTemperatureRead one sample of temperature from sensor (自 R2021a 起)
readPressureRead one absolute pressure data sample from sensor (自 R2021a 起)
bmi160Connect BMI160 sensor on Raspberry Pi hardware I2C bus (自 R2023a 起)
readAccelerationRead one sample of acceleration from sensor (自 R2021a 起)
readAngularVelocityRead one sample of angular velocity from sensor (自 R2021a 起)
readTemperatureRead one sample of temperature from sensor (自 R2021a 起)
readMagneticFieldRead one sample of magnetic field from sensor (自 R2021a 起)
lsm6ds3Connect LSM6DS3 sensor on Raspberry Pi hardware I2C bus (自 R2023a 起)
readAccelerationRead one sample of acceleration from sensor (自 R2021a 起)
readAngularVelocityRead one sample of angular velocity from sensor (自 R2021a 起)
readTemperatureRead one sample of temperature from sensor (自 R2021a 起)
lsm6ds3hConnect LSM6DS3H sensor on Raspberry Pi hardware I2C bus (自 R2023a 起)
readAccelerationRead one sample of acceleration from sensor (自 R2021a 起)
readAngularVelocityRead one sample of angular velocity from sensor (自 R2021a 起)
readTemperatureRead one sample of temperature from sensor (自 R2021a 起)
lsm6dsmConnect LSM6DSM sensor on Raspberry Pi hardware I2C bus (自 R2023a 起)
readAccelerationRead one sample of acceleration from sensor (自 R2021a 起)
readAngularVelocityRead one sample of angular velocity from sensor (自 R2021a 起)
readTemperatureRead one sample of temperature from sensor (自 R2021a 起)
lsm6dsrConnect LSM6DSR sensor on Raspberry Pi hardware I2C bus (自 R2023a 起)
readAccelerationRead one sample of acceleration from sensor (自 R2021a 起)
readAngularVelocityRead one sample of angular velocity from sensor (自 R2021a 起)
readTemperatureRead one sample of temperature from sensor (自 R2021a 起)
lsm6dsoConnect LSM6DSO sensor on Raspberry Pi hardware I2C bus (自 R2023a 起)
readAccelerationRead one sample of acceleration from sensor (自 R2021a 起)
readAngularVelocityRead one sample of angular velocity from sensor (自 R2021a 起)
readTemperatureRead one sample of temperature from sensor (自 R2021a 起)
adxl345Connect ADXL345, ADXL343, ADXL344, or ADXL346 sensor on Raspberry Pi hardware I2C bus (自 R2023a 起)
readAccelerationRead one sample of acceleration from sensor (自 R2021a 起)
icm20948Connect ICM-20948 sensor on Raspberry Pi hardware I2C bus (自 R2023a 起)
readAccelerationRead one sample of acceleration from sensor (自 R2021a 起)
readAngularVelocityRead one sample of angular velocity from sensor (自 R2021a 起)
readTemperatureRead one sample of temperature from sensor (自 R2021a 起)
readMagneticFieldRead one sample of magnetic field from sensor (自 R2021a 起)
bmp280Connect BMP280 sensor on Raspberry Pi hardware I2C bus (自 R2023a 起)
readTemperatureRead one sample of temperature from sensor (自 R2021a 起)
readPressureRead one absolute pressure data sample from sensor (自 R2021a 起)