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)
3 axis mag (HMC5843)
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
Paul
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.
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.
Mike Perks
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.
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.
Mike Perks