I hate this to be my first post, but this is my need. Sorry if this is not the right place to post this...
I want to sense tilt, roll, and heading (tilt compensated) with an Arduino. I am new on programming, and finding the software side of the matter too challenging for my amount of free time. Currently I am using an Adafruit LSM303DLHC accelerometer + magnetometer, but I am open to using any other hardware so long as it is common, affordable, and available long-term.
So here it is: It is worth cash if you can supply the ability to return tilt, roll, and heading with rights released to me for any use. Name your price.
Guys thank you... John seriously that was above and beyond! I really appreciate it.
But I am not looking to figure it out, or to get close. I am looking for someone to supply functional code that returns an accurate value for those 3 variables, and I supply money. I know it may sound strange, but I just don't have the time to tinker.
As an added detail to the project, the sensor will be 'stood up' to for its entire usage. So "Y" or "X" will be within 45 degrees of 'up', and "Z" will be horizontal. That changes the pan/tilt relevance and I think it changes the heading compensation calculations.
Thank you again! Feel free to write me direct here t@tgwms.com