3 axis mag (HMC5843)

This forum is for posts that might be considered off-topic but that may be useful or interesting to members. Examples include posts about electronics or programming in general, other microcontrollers or interesting devices, useful websites, etc.
Post Reply
sturgessb
Posts: 287
Joined: 25 April 2008, 6:34 AM
Location: Norwich, UK

3 axis mag (HMC5843)

Post 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
pdubinsky
Posts: 70
Joined: 24 November 2005, 18:19 PM
Location: South Carolina
Contact:

3 axis mag (HMC5843)

Post 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
mikep
Posts: 796
Joined: 24 September 2005, 15:54 PM

Post 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.
Mike Perks
mikep
Posts: 796
Joined: 24 September 2005, 15:54 PM

Post 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.
Mike Perks
sturgessb
Posts: 287
Joined: 25 April 2008, 6:34 AM
Location: Norwich, UK

Post 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.
Post Reply