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

Pb with self-test #36

Open
jmcornil opened this issue Sep 10, 2018 · 3 comments
Open

Pb with self-test #36

jmcornil opened this issue Sep 10, 2018 · 3 comments

Comments

@jmcornil
Copy link

Hello Kris

First of all, thank you for your work and for sharing it.

I am a beginner with MPU6050 and I am reading your code in order to understand the lacks in the documentation of Invense. I have two questions

  1. In your SelfTest() function code, there are lines such as :
    selfTest[0] = (rawData[0] >> 3) | (rawData[3] & 0x30) >> 4
    I wonder if (rawData[0] >> 3) would not be replaced with (rawData[0] >> 3) & ~0b11
    in order to kill bit-0 and bit-1 ?
    Without & ~0b11, it could generate a little error up to 3, no ?
  2. I have also a question about bit-0 in accel bias register.
    Can we arbitrarily set them to 0 or 1, and what is the influence of each choice
    on the temperature compensation?

Thank you in advance for your reply

J.M. CORNIL

@kriswiner
Copy link
Owner

kriswiner commented Sep 10, 2018 via email

@jmcornil
Copy link
Author

About the (2.) question
Yes, I saw it on your code but at the beginning, I executed a script by jF ROWBERG
https://github.com/jrowberg/i2cdevlib/blob/master/Arduino/MPU6050/examples/IMU_Zero/IMU_Zero.ino
and it seems not to me that he takes account of these bit-0.

Is it possible to retrieve the initial value that Invensense wrote in the register ?

Where can I find info about these bit ?
For the only one I found is on the page 7 the MPU Hardware Offset Registers Application Note
It is this line
Bit 0 on the low byte of each axis is a reserved bit and needs to be preserved
which caught my attention and encourage me to search on Google until I reach your work.

@kriswiner
Copy link
Owner

kriswiner commented Sep 12, 2018 via email

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