Main Content

Sensors

Read data from sensors

Connect to sensors to read real-time data.

Functions

expand all

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
flushFlush the host buffer
infoRead output data rate and bandwidth setting of sensor
readRead acceleration, angular velocity, magnetic field, time, and overrun data
readAccelerationRead one sample of acceleration from sensor
readAngularVelocityRead one sample of angular velocity from sensor
readMagneticFieldRead one sample of magnetic field from sensor
releaseRelease the IMU object
stopStop data collection from IMU object
bno055Connect to BNO055 sensor on Arduino hardware I2C bus
flushFlush the host buffer
infoRead output data rate and bandwidth setting of sensor
readRead acceleration, angular velocity, magnetic field, time, and overrun data
readAccelerationRead one sample of acceleration from sensor
readAngularVelocityRead one sample of angular velocity from sensor
readCalibrationStatusRead calibration status of sensor
readMagneticFieldRead one sample of magnetic field strength from sensor
readOrientationRead orientation data from sensor
releaseRelease the BNO055 object
gpsdevConnect to GPS receiver on Arduino hardware
flushFlush the host buffer
infoRead Update Rate, GPS Lock information and number of satellites in View for the GPS receiver
readRead data from GPS
releaseRelease the GPS object
stopStop data collection from GPS module
writeBytesWrite raw data to GPS module

Topics

Read and Plot Real-Time Data from BNO055 Sensor in NDOF Mode

This example shows you how to read and plot calibrated data from a a Bosch Sensortec BNO055 a 9-axis absolute orientation sensor in real time.

Calibrate BNO055 Sensors

Steps to calibrate the BNO055 sensors.

Limitations

Limitations when using sensors and GPS receiver.

Pitch and Roll Calculation on Arduino Using IMU Sensor (Simulink Support Package for Arduino Hardware)

This example shows how to read the acceleration and angular velocity data from IMU sensor mounted on Arduino® hardware and calculate the pitch and roll angles.

Troubleshooting

Troubleshooting Sensors

Troubleshoot sensors

Featured Examples