Replies

  • Developer
    Tim check this out

    http://eclecti.cc/hardware/hmc5843-magnetometer-library-for-arduino

    I got mine working with that library in matter of minutes and here is how i connected mine HMC:

    Ardu A5 -> HMC SCL
    Ardu A4 -> HMC SDA
    Ardu Vcc-> HMC Vcc (+5v)
    Ardu GND->HMC GND

    and then i had 10Kohm resistors from SCL andSDA lines to +5 e.g. pullup resistors. Output what i'm getting looks like:

    x:-133 y:153 z:-289
    x:-132 y:147 z:-290
    x:-132 y:151 z:-292
    x:-130 y:151 z:-289
    x:-135 y:154 z:-292

    all axis working. Ok this is not a "compass" heading like many people are thinking. Tho it can me make to show it too with more programming. One thing that you need to keep on your mind is that this device do NOT have any tilt compensation so when turning/tilting etc all values are changing.

    -jp
  • T3
    Tim,

    SparkFun has links to the datasheet and some programming examples that you can find on their webpage for their HMC5843 breakout board.

    Bill
This reply was deleted.

Activity