Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max Values of adxl345 #46

Open
LadAussie opened this issue Mar 23, 2016 · 1 comment
Open

Max Values of adxl345 #46

LadAussie opened this issue Mar 23, 2016 · 1 comment

Comments

@LadAussie
Copy link

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();

@alrevuelta
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants