LSM303 Code
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 32
- Joined: Sun Mar 24, 2013 1:20 pm
LSM303 Code
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.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: LSM303 Code
Have you tried the accelsensor or magsensor examples from the library? Post the output from the serial monitor.
-
- Posts: 32
- Joined: Sun Mar 24, 2013 1:20 pm
Re: LSM303 Code
Ah that worked, thanks. I hadn't imported the library properly so I couldn't access the examples. Thanks.
Please be positive and constructive with your questions and comments.