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
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
readMagneticFieldRead one sample of magnetic field from sensor
releaseRelease the IMU object
stopStop data collection from IMU 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

Limitations

Limitations when using sensors and GPS receiver.

Troubleshooting

Troubleshooting Sensors

Troubleshoot sensors

Featured Examples