Compass + inclinometer ?

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
forum_questions_1
 
Posts: 114
Joined: Tue Oct 25, 2022 4:05 pm

Compass + inclinometer ?

Post by forum_questions_1 »

Do you have a Stemma I2C device that combines a compass and an inclinometer? I am looking for something that would provide compass orientation in degrees and angle orientation in degrees. Thanks.

User avatar
adafruit_support_bill
 
Posts: 88155
Joined: Sat Feb 07, 2009 10:11 am

Re: Compass + inclinometer ?

Post by adafruit_support_bill »


User avatar
gammaburst
 
Posts: 1016
Joined: Thu Dec 31, 2015 12:06 pm

Re: Compass + inclinometer ?

Post by gammaburst »

The BNO085 outputs quaternions.
You can convert the quaternions to Euler angles (roll pitch heading) using some math or a library.

User avatar
forum_questions_1
 
Posts: 114
Joined: Tue Oct 25, 2022 4:05 pm

Re: Compass + inclinometer ?

Post by forum_questions_1 »

Thanks very much for the ideas on this.
Wow! That BNO085 looks incredible. I bet it's possible to make some really interesting robotics with it.

I was also looking at the LSM303. Would that one work as well?

I'd like to use it on a telescope for Alt(altimeter)/Az(compass) coordinates.

Thanks again.

User avatar
adafruit_support_bill
 
Posts: 88155
Joined: Sat Feb 07, 2009 10:11 am

Re: Compass + inclinometer ?

Post by adafruit_support_bill »

The LSM303 will give you just the raw accelerometer and magnetometer readings for the x, y and z axis. You will need to do some math to translate those raw values into inclinations and headings. I think www.pololu.com has a library for that.

User avatar
forum_questions_1
 
Posts: 114
Joined: Tue Oct 25, 2022 4:05 pm

Re: Compass + inclinometer ?

Post by forum_questions_1 »

Ok, thanks! I will check it out.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”