Page 1 of 1

3 axis mag (HMC5843)

Posted: 04 January 2011, 14:46 PM
by sturgessb
Hey guys

Just on the off chance, has anyone interfaced a HMC5843 mag and have a code base for getting a 3d compass bearing?

Cheers

Ben

3 axis mag (HMC5843)

Posted: 05 January 2011, 6:18 AM
by pdubinsky
Digi-Key has an eval board for $150!!!!!!!!! To be fair, it does have 2 smt resistors and 2 smt caps already mounted AND the connector headers. Better hurry before they sell out :roll: .

Paul

Posted: 05 January 2011, 9:17 AM
by mikep
Sparkfun has a breakout board for $50 too.

I haven't used this chip myself but Googling around I found this thread which might be useful: http://www.arduino.cc/cgi-bin/yabb2/YaB ... 1274748346 It might not be too hard to convert the Arduino library to a ZBasic module - certainly the I2C interface looks quite easy to use.

Posted: 05 January 2011, 9:57 AM
by mikep
Ben, I don't know if you are still in Research mode or have decided on the HMC5843.

There is a ZBasic Application note (AN-211) called "Navigating the CMPS03 Magnetic Compass" which includes example code. The CMPS09 device from the same manufacturer should work with the same code except that the calibration process is different.

Posted: 05 January 2011, 9:59 AM
by sturgessb
Thanks guys

Yeah i have the device and its all hooked up communicating (sorry should have said that).

It's just more the code im after. Ill have a look at that AN.