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: cancelling gravity and using Z (LowPowerWakeMode) #8

Open
DigiDr opened this issue Sep 13, 2016 · 0 comments
Open

Accelerometer: cancelling gravity and using Z (LowPowerWakeMode) #8

DigiDr opened this issue Sep 13, 2016 · 0 comments

Comments

@DigiDr
Copy link

DigiDr commented Sep 13, 2016

So, as i understand it - Z axis determination is turned off, as it wasn't clear how to get the chip to cancel out the effects of gravity:

setting: writeRegister8(REG_CTRL_REG2, CTRL_REG2_HPM1 | CTRL_REG2_HPM0 | CTRL_REG2_HPIS1);

& adding Z axis to int1_cfg seems to solve the problem. I can't say i quite understand how this works, as the documentation really isn't clear [to a newb like me]...

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

1 participant