Pages: [1]   Go Down
Author Topic: examples for LSM303  (Read 4733 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 45
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi!

Are there any examples for this sensor with arduino ?
http://www.sparkfun.com/products/9810
if there aren't could some one point me in the right direction or post some example code.

Thanks
Regards

Jak24
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48556
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you look at the comments on that page? First one is a link to a library for the Arduino.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I received mine today from Sparkfun - with the breakout.  Havent been able to do anything with it at all.  Tried the new library but to no avail.  Does anyone have a small sample program that work with Uno and LSM303DLH?

Or, can anyone else with a LSM303DLH try the new library with their suggested pin-outs and see if it works.  That would at least help me figure out if mine is bad or not.
« Last Edit: January 31, 2011, 09:16:46 pm by sailingguitarist » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I'm using the LSM303DLH.
I implemented the I2C comunication, the compensatio of the compass with the accelerometer data, and the accelerometer calibration (using the AN3192 of ST).
Now, I'm calibraiting the compass (method of the least square fitting ellipsoid AN3192) but I having big problems...
Anyone can help me????
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Exuse me, now I'm calibraiting the MAGNETIC SENSOR, not the compass...
Logged

Juvignac
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Works fine for me.
Make sure you are using ANALOG pins, not the DIGITAL ones.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 291
Posts: 25875
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
) but I having big problems...
Well, I'm sure we are all really sorry to hear that, but until you open up to us, and tell us what those problems are, we won't be able to help you.
(It's a bit like AA in that respect)
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Hi I Can confirm that using the sparkfun level converter works with the LSM303DLH on a Arduino Uno and stuff

http://www.sparkfun.com/products/8745


https://picasaweb.google.com/lh/photo/AIiOfELj07YYfxNzte1jWfUyuJg5fbvJpQtmBljJuuk?feat=directlink
Logged

Pages: [1]   Go Up
Jump to: