ElectronAssetTracker icon indicating copy to clipboard operation
ElectronAssetTracker copied to clipboard

Accelerometer: cancelling gravity and using Z (LowPowerWakeMode)

Open DigiDr opened this issue 8 years ago • 0 comments

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]...

DigiDr avatar Sep 13 '16 17:09 DigiDr