Hi Richard
Had put this on the back burner for a whilst....
Will revisit it later... I see you have done a few things differently!
Thank you for Ideas. Andy
Hi Richard
Had put this on the back burner for a whilst....
Will revisit it later... I see you have done a few things differently!
Thank you for Ideas. Andy
Last edited by andybarrett1; - 22nd January 2015 at 10:17. Reason: typo
Hi Richard,
you need to add a 3-axis accelerometer to do tilt compensation, something like LSM303DLM.
George
turns out that the premise of using this chip alone as a compass is basically flawed. it can't do its own tilt compensation because the earths magnetic field is not necessarily parallel to the earth .
as George says an accelerometer needs to be added to compensate for tilt. (read, complicated math probably needs floats for any decent accuracy)
no wonder they are so cheap , not a total loss it makes a pretty sensitive 3 axis hall effect sensor , nice colour
Richard,
Not if your application will not be required to tilt or has some mechanical (gimbals) way to negate the problem.
George
Hi both
Yeah.... I put your code in Richard ... Does pretty much same as before... So I think I need find a better chip
Or use a real needle
Thank you again for ideas .... Appreciated !
Bookmarks