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

Changing accelerometer sensing range #14

Open
ugemassolo opened this issue Jan 4, 2024 · 1 comment
Open

Changing accelerometer sensing range #14

ugemassolo opened this issue Jan 4, 2024 · 1 comment

Comments

@ugemassolo
Copy link

Hi, I am looking for help to change the sensing range of the sensor. I would like to know what I should change for it to work correctly, since from what I understand, not only do you have to change the scaling factor but also the DATA_FORMAT. Thanks!

@nagimov
Copy link
Owner

nagimov commented Jan 11, 2024

DATA_FORMAT is a register address (0x31) and should stay unchanged. DATA_FORMAT_B defines the measurement range and some other data formatting params:
adxl_data_format
You'll also need to update the accConversion accordingly.
Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/ADXL345.pdf

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