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

Accelerometer scale #11

Open
Oliv4945 opened this issue Oct 29, 2019 · 2 comments
Open

Accelerometer scale #11

Oliv4945 opened this issue Oct 29, 2019 · 2 comments

Comments

@Oliv4945
Copy link
Contributor

Hi,

There is something I do not understand. There is a scaling made here for the accelerometer but it is just a divider by 100 instead values given in the datasheet.

1 LSB = 3.91 mg (2-g range)
1 LSB = 7.81 mg (4-g range)
1 LSB = 15.63 mg (8-g range)
1 LSB = 31.25 mg (16-g range)

Is it intended ? I am in the process of implementing it for the interrupts, should I put the right scale here too ? From my point of view it will be much cleaner but it is also a breaking change.

@Oliv4945
Copy link
Contributor Author

Oliv4945 commented Oct 29, 2019

Oops, it is only for interrupt thresholds. For acc values the datasheet says:

1 mg = 1 LSB

That said why dividing by 100 and not 1000 as 1 g = 1000 mg ?

@arrowcircle
Copy link
Contributor

I used this repo as an example https://github.com/ShellAddicted/BNO055ESP32 and looks like I got these values from it.
1000 makes more sense as milli = 10^-3

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