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

Number of digit reported for accelerations ang gravity components are just two #88

Closed
dimitrigrigoriev opened this issue Jan 16, 2022 · 6 comments

Comments

@dimitrigrigoriev
Copy link

Is it possible to increase the accuracy of the reported accelerations to at least 8 digits? It is currently just two digits, however, in a 2G mode 14 bit ADC should have an LSB value of 0.002395019531250m/s^2 and we are loosing information.

@ladyada
Copy link
Member

ladyada commented Jan 16, 2022

can you be more specific about what you mean, you can print out the value iwth more digits of precision in arduino?

@dimitrigrigoriev
Copy link
Author

Hi Ladyada,
I am using Python driver on the Raspberry Pi. My output currently is:
Gravity (m/s^2): (0.62, -0.42, 9.77)
When I try to format the output with five digits it just gives extra zeros: 0.62000
It looks like the number of digits is limited when data is converted from binary to float.

@ladyada
Copy link
Member

ladyada commented Jan 16, 2022

could be - that precision may not be available!

@dimitrigrigoriev
Copy link
Author

OK, but is it possible to get raw output out in in binary or in dec? If yes than I can convert the the data into needed precision on a higher level using range and offeset data.

@ladyada
Copy link
Member

ladyada commented Jan 21, 2022

https://github.com/adafruit/Adafruit_CircuitPython_BNO055/blob/main/adafruit_bno055.py#L859
thats where the response is read from i2c, so you just have to call bno._read_register(0x28, 6) to get the raw data from that register

@caternuson
Copy link
Contributor

Closing. Looks answered.

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

3 participants