Open LadAussie opened 8 years ago
After converting the output to G's I can only get max values around 2 and I am not sure why. Is the code set to +-16G?
Serial.print("#A-"); Serial.print(raw_or_calibrated); Serial.print('='); // Gs = Measurement Value * (G-range/(2^13)) or Gs = Measurement Value * (32/8192) = 0.00390625 Serial.print(accel[0]_0.00390625); Serial.print(","); Serial.print(accel[1]_0.00390625); Serial.print(","); Serial.print(accel[2]*0.00390625); Serial.println();
The code is set to +-2 G. If you want to archive +-16 G you will need to change the DATA_FORMAT register (0x31) to the value 0x0B (the value set in the code is 0x08). See the datasheet for further information.
After converting the output to G's I can only get max values around 2 and I am not sure why. Is the code set to +-16G?
Serial.print("#A-"); Serial.print(raw_or_calibrated); Serial.print('='); // Gs = Measurement Value * (G-range/(2^13)) or Gs = Measurement Value * (32/8192) = 0.00390625 Serial.print(accel[0]_0.00390625); Serial.print(","); Serial.print(accel[1]_0.00390625); Serial.print(","); Serial.print(accel[2]*0.00390625); Serial.println();