lsm303 give heading when tilted help

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rwerner
 
Posts: 53
Joined: Fri Feb 28, 2014 9:23 pm

lsm303 give heading when tilted help

Post by rwerner »

Hi
Building a battery operated unit that lights an LED when a predetermined heading is in range. How do you program it to still give good headings when
the lsm303 is tipped along several different axes--in this use the board may pitch and roll too. Heading goes to very inaccurate while these things are happening.
Thanx.

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

Re: lsm303 give heading when tilted help

Post by adafruit_support_bill »

You need 'tilt-compesated' calcuations. The Pololu library does this:
https://github.com/pololu/lsm303-arduino

User avatar
rwerner
 
Posts: 53
Joined: Fri Feb 28, 2014 9:23 pm

Re: lsm303 give heading when tilted help

Post by rwerner »

will this software library work with the adafruit board?
thanx
R

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

Re: lsm303 give heading when tilted help

Post by adafruit_support_bill »

Yes it will.

User avatar
rwerner
 
Posts: 53
Joined: Fri Feb 28, 2014 9:23 pm

Re: lsm303 give heading when tilted help

Post by rwerner »

Hey thanks for your help--finished project and posted it as an Instructable:

http://www.instructables.com/id/Goggles-Guidance/

Robert

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

Re: lsm303 give heading when tilted help

Post by adafruit_support_bill »

Nice project! Thanks for posting..

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

Return to “Other Products from Adafruit”