3 axis digital compass sensor HMC5883L


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530

    Default 3 axis digital compass sensor HMC5883L

    Anyone had experience with a 3 axis compass (or specifically the HMC5883L) they can share? We have code working to grab the I2C data for all three axis. However, for some reason, the Y axis (though centered when you have the Y axis perpendicular the earths magnetic pole = 0), when pointed directly at it, gets around 410, and pointed directly away from it get about -605. X and Z axis seem to be more believeable at within 10 or 20 or so when flipped 180 degrees. The code to grab and manipulate the data is the same for all axis. No, we don't have any electromagnets on the board Tested a few different sensor boards (of the same design), with same result.

    Edit: Self test function gives -1138 and 1154 on the Y axis, similar to X and Z. Gain is set to default: 001
    Attached Images Attached Images
    Last edited by ScaleRobotics; - 1st June 2011 at 19:29.

  2. #2
    Join Date
    May 2012
    Location
    Merseyside, UK
    Posts
    237


    Did you find this post helpful? Yes | No

    Default Re: 3 axis digital compass sensor HMC5883L

    Hi

    I just found this original post on here,

    I am thinking of using same chip in one of my projects ..I wonder , how did you progress?

    Did you progress??

    Thank you for any pointers good or bad

    BR
    Andy

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts