tockn / MPU6050_tockn

Arduino library for easy communication with MPU6050
218 stars 84 forks source link

Measurement units of raw data of acceleration and angular velocity #43

Closed Y-Grigoriy closed 3 years ago

Y-Grigoriy commented 4 years ago

@tockn, could you tell, what is the measurement units of raw data of acceleration and angular velocity? I mean variables here: rawAccX = wire->read() << 8 | wire->read(); rawAccY = wire->read() << 8 | wire->read(); rawAccZ = wire->read() << 8 | wire->read(); rawGyroX = wire->read() << 8 | wire->read(); rawGyroY = wire->read() << 8 | wire->read(); rawGyroZ = wire->read() << 8 | wire->read();

bhupiister commented 3 years ago

@tockn, could you tell, what is the measurement units of raw data of acceleration and angular velocity? I mean variables here: rawAccX = wire->read() << 8 | wire->read(); rawAccY = wire->read() << 8 | wire->read(); rawAccZ = wire->read() << 8 | wire->read(); rawGyroX = wire->read() << 8 | wire->read(); rawGyroY = wire->read() << 8 | wire->read(); rawGyroZ = wire->read() << 8 | wire->read();

Did you get the solution ?

rfetick commented 3 years ago

Raw data is given in units of bits. The conversion to physical units of m/s² or °/s depends on the calibration of the MPU6050. You can have a look at the Invensense MPU6050 documentation. Different calibrations allow to modify the full range and sensitivity of the device.

Y-Grigoriy commented 3 years ago

@rfetick thank you for clarification. You are right.