LSM303 Code

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Xjkh3vk
 
Posts: 32
Joined: Sun Mar 24, 2013 1:20 pm

LSM303 Code

Post by Xjkh3vk »

Hi guys, I'm having trouble with my LSM303 accelerometer/magnetometer. I've tried all of the example code from the tutorial, and it doesn't work. I'm not great at coding, could someone please help me? I'm trying to get the x,y,z axis force, and the heading. I would appreciate any suggestions you may have.

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

Re: LSM303 Code

Post by adafruit_support_bill »

Have you tried the accelsensor or magsensor examples from the library? Post the output from the serial monitor.

Xjkh3vk
 
Posts: 32
Joined: Sun Mar 24, 2013 1:20 pm

Re: LSM303 Code

Post by Xjkh3vk »

Ah that worked, thanks. I hadn't imported the library properly so I couldn't access the examples. Thanks.

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

Return to “Other Arduino products from Adafruit”