Page 1 of 1

LSM303DLHC Tilt compensation problems with Uno

Posted: Tue May 15, 2018 11:39 pm
by viktor_au
Ebay module: Chinese LSM303DLHC e-Compass 3 axis Accelerometer and 3 axis Magnetometer.
Module connections: Vin (5v), Gnd, SDA->SDA (A4 on 'classic' Arduinos), SCL->SCL (A5 on 'classic' Arduinos), Int1 to Uno board A0. Note: Int2 is not connected.
Without using the tilt compensation the azimuth value is more stable but does change with module in off-level position.
With tilt compensation formulas (some from this forum and some from the internet) the azimuth value is noisy and not stable.
Is it the Chinese module? Is it the code? Any suggestions with a different tilt-compensated sensor (supported in FC7)?
Will appreciate any help.

Re: LSM303DLHC Tilt compensation problems with Uno

Posted: Thu May 31, 2018 12:02 am
by viktor_au
Probably this is the answer:
Because of drift and noise components at low angular rates, MEMS-based gyroscopes are typically not used directly in the calculation of heading... ... on-effects