SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By allegutta
#97014
Hi,

I need a compass module with tilt compensation that works with Arduino Duemilanove. I tried this USB demo board(see the attached image), and it was perfect, but I need one that I can connect to the Arduino. Do you have any recomendations?

Kind Regards allegutta!
You do not have the required permissions to view the files attached to this post.
By ryowens84
#97017
Hello,

This could be interfaced to an Arduino:

http://www.sparkfun.com/commerce/produc ... ts_id=8656

It's very pricey, but tilt compensation doesn't come cheap. If you're feeling amibitious you could get a triple axis magneto sensor without tilt compensation (like this one: http://www.sparkfun.com/commerce/produc ... ts_id=9371) and also add a triple axis accelerometer like the ADXL335 and build your own tilt-compensation code. Might be tought with an 8-bit processor but it probably depends on your implementation.

Good luck!
By allegutta
#97045
Hi,

The thing I liked about the HMC5843 was how fast it updatet the headding position, is this(HMC6343) equaly fast. I tried to check it out in the datasheet, but could not find anything about it.

Another question, I am new to electronics, I have worked with potentiometers, buttons and LEDs on the Arduino. How more complicated is it to program this board(http://www.sparkfun.com/commerce/produc ... ts_id=8656)?

Regards allegutta
By ryowens84
#97051
The HMC6343 is not as fast as the HMC5843. The HMC5843 can update at a maximum of 50 Hz while the 6343 is only capable of 10 Hz. What are you trying to do with the compass heading? Might the slower data rate still fit your application?

These sensors use a communication protocol called I2C; it's a two wire interface that lets both connected devices send and receive information from one another. You can wiki it for more information. This protocol is definately more complicated then using pots and buttons, however there is a ton of information that will help you get the sensor running. I checked the Arduino website and there is an I2C library already written; this will make it much easier for you to start interfacing with the sensor. Here's the link:

http://www.arduino.cc/en/Reference/Wire
By allegutta
#100259
Hi ryowens84,

It has been a long time since I posted in this thread(sorry for that), but I wanted you to know that I went for the HMC6343 and made it talk over I2C. Even though its only 10Hz it was fast enough for the task.

Thanks for the help!

Best,
allegutta