LSM303DLHC Tilt compensation problems with Uno
Posted: Tue May 15, 2018 11:39 pm
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.
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.