Compass + inclinometer ?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- forum_questions_1
- Posts: 114
- Joined: Tue Oct 25, 2022 4:05 pm
Compass + inclinometer ?
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.
- adafruit_support_bill
- Posts: 88155
- Joined: Sat Feb 07, 2009 10:11 am
Re: Compass + inclinometer ?
There is the BNO085: https://www.adafruit.com/product/4754
- gammaburst
- Posts: 1016
- Joined: Thu Dec 31, 2015 12:06 pm
Re: Compass + inclinometer ?
The BNO085 outputs quaternions.
You can convert the quaternions to Euler angles (roll pitch heading) using some math or a library.
You can convert the quaternions to Euler angles (roll pitch heading) using some math or a library.
- forum_questions_1
- Posts: 114
- Joined: Tue Oct 25, 2022 4:05 pm
Re: Compass + inclinometer ?
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.
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.
- adafruit_support_bill
- Posts: 88155
- Joined: Sat Feb 07, 2009 10:11 am
Re: Compass + inclinometer ?
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.
- forum_questions_1
- Posts: 114
- Joined: Tue Oct 25, 2022 4:05 pm
Re: Compass + inclinometer ?
Ok, thanks! I will check it out.
Please be positive and constructive with your questions and comments.