Main Content

센서

센서에서 데이터 읽기

여러 센서에 연결하여 데이터를 읽습니다.

함수

모두 확장

mpu9250Connect to MPU-9250 sensor on Arduino hardware I2C bus
lsm9ds1Connect to LSM9DS1 sensor on Arduino hardware I2C bus
mpu6050Connect to MPU-6050 sensor on Arduino hardware I2C bus
lsm303cConnect to LSM303C sensor Arduino hardware I2C bus (R2021a 이후)
lsm6ds3Connect to LSM6DS3 sensor on Arduino hardware I2C bus (R2021a 이후)
lsm6ds3hConnect to LSM6DS3H sensor on Arduino hardware I2C bus (R2021a 이후)
lsm6dslConnection to LSM6DSL sensor on Arduino hardware I2C bus (R2021a 이후)
lsm6dsmConnect to LSM6DSM sensor on Arduino hardware I2C bus (R2021a 이후)
lsm6dsoConnect to LSM6DSO sensor on Arduino hardware I2C bus (R2021a 이후)
lsm6dsrConnect to LSM6DSR sensor on Arduino hardware I2C bus (R2021a 이후)
hts221Connect to HTS221 sensor on Arduino hardware I2C bus (R2021a 이후)
lps22hbConnect to LPS22HB sensor on Arduino hardware I2C bus (R2021a 이후)
adxl345Connect to ADXL345, ADXL343, ADXL344, or ADXL346 sensor on Arduino hardware I2C bus (R2022a 이후)
icm20948Connect to ICM-20948 sensor on Arduino hardware I2C bus (R2022a 이후)
bmp280Connect to BMP280 sensor on Arduino hardware I2C bus (R2022b 이후)
lis3dhConnect to LIS3DH sensor on Arduino hardware I2C bus (R2022b 이후)
bmi160Connect to BMI160 sensor on Arduino hardware I2C bus (R2023a 이후)
adis16505Connect to ADIS16505 sensor on Arduino hardware SPI bus (R2024a 이후)
flushFlush the host buffer
infoRead information related to sensor
readRead real-time sensor data at a specified rate
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 (R2021a 이후)
readHumidityRead one sample of relative humidity data from the sensor (R2021a 이후)
readPressureRead one sample of barometric air pressure data from the sensor (R2021a 이후)
readVoltageRead voltage from ADC pins on sensor (R2023a 이후)
releaseRelease the sensor object
stopStop data collection from sensor object (R2020a 이후)
bno055Connect to BNO055 sensor on Arduino hardware I2C bus (R2020a 이후)
flushFlush the host buffer for BNO055 sensor
infoRead output data rate and bandwidth setting of BNO055 sensor
readRead acceleration, angular velocity, magnetic field, time, and overrun data from BNO055 sensor
readAccelerationRead one sample of acceleration from BNO055 sensor
readAngularVelocityRead one sample of angular velocity from BNO055 sensor
readCalibrationStatusRead calibration status of BNO055 sensor (R2019b 이후)
readMagneticFieldRead one sample of magnetic field strength from BNO055 sensor
readOrientationRead orientation data from BNO055 sensor (R2019b 이후)
releaseRelease the BNO055 object
gpsdevConnect to GPS receiver on Arduino hardware (R2020a 이후)
flushFlush the host buffer (R2020a 이후)
infoRead Update Rate, GPS Lock information and number of satellites in View for the GPS receiver (R2020a 이후)
readRead data from GPS (R2020a 이후)
releaseRelease the GPS object (R2020a 이후)
stopStop data collection from GPS module (R2020a 이후)
writeBytesWrite raw data to GPS module (R2020a 이후)
apds9960Connect to APDS9960 sensor on Arduino hardware using I2C bus (R2021b 이후)
readColorReads clear light and RGB components through APDS9960 sensor (R2021b 이후)
readGestureRead gesture through APDS9960 sensor (R2021b 이후)
readProximityRead the proximity from APDS9960 sensor (R2021b 이후)
ultrasonicConnection to ultrasonic sensor on Arduino hardware
readDistanceDistance to object in front of ultrasonic sensor
readEchoTimeRead echo time of ultrasound waves

도움말 항목

문제 해결

Troubleshooting Sensors

Troubleshoot sensors.