HMC5883L Magnetometer chip Possibilities.


Closed Thread
Results 1 to 40 of 58

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: HMC5883L Magnetometer chip Possibilities.

    Hi Richard.

    Still reading between 100 to 900 on degrees.

    Close to the River Mersey in Liverpool here fireworks are all ready noisy

    Thank you for help ....

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: HMC5883L Magnetometer chip Possibilities.

    looks like you are converting azimuth to degrees twice
    once here
    Code:
     'Calculate Azimuth
    
      GOSUB GetAzimuth
    
      'Calculated Heading in Degrees
    
       brads = azimuth     'get angle
      'degr = brads */ 361 'convert to degrees
       degr = brads*360/256      and this is still wrong needs to be  degr = brads */ 360 
    
      
       Lcdout $fe, $C0, "Degrees =",SDEC degr
    and once here


    Code:
    x = readx >>4  
    Y = readY >>4
    Z = readZ >>4
    
      'DEBUG       "SCALED X,Y", CR
      'DEBUG       "X = ",11, SDEC x, CR
      'DEBUG       "Y = ",11, SDEC y, CR
    
       'azimuth = x ATN -y
      azimuth = ( x ATN -y) */ 360 
    surly once is enough

    Code:
    azimuth = x ATN -y

Similar Threads

  1. 3 axis digital compass sensor HMC5883L
    By ScaleRobotics in forum General
    Replies: 1
    Last Post: - 8th June 2014, 22:19
  2. How to use this IO chip?
    By wdmagic in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th April 2013, 19:06
  3. compass chip
    By Macgman2000 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th October 2009, 01:42
  4. Do you use ICD possibilities of MicroCode Studio
    By octal in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th December 2007, 17:22
  5. Which chip do i use?
    By The Master in forum Off Topic
    Replies: 77
    Last Post: - 2nd December 2007, 22:28

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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