Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: andybarrett1; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Hi both

    Yeah.... I put your code in Richard ... Does pretty much same as before... So I think I need find a better chip
    Or use a real needle

    Thank you again for ideas .... Appreciated !
  2. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Hi Richard

    Had put this on the back burner for a whilst....

    Will revisit it later... I see you have done a few things differently!

    Thank you for Ideas. Andy
  3. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Hi George

    I wondered about this

    I have measured 2K2 to the 5v rail on the breakout board.

    The Ic2 link seems to run OK so happy with that.

    My issue remains to be the conversion from...
  4. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Hi George

    This is the exact one I am using ... The ebay link has Pics and Circuit... I am running it at 5v.. As the LCD needs 5v
    ...
  5. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Hi George

    I agree with gain... Reading the datasheet seems to be way to go ... If it over saturates you get the -4096 figure.

    I also am assuming that X is north... Certainly shows like that at...
  6. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Hi George

    I think the reversal on the last bit of the code is to do with headings and angles etc.. So not all that worried.
    Is the 5983 the same layout as mine... If so will the code not crow...
  7. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Hi

    Have tided code.... And it does seem to work better now. But Degrees are reversed (360 to 0) Clockwise. Or am I reading the sensor upside down?

    Azimuth is renamed Radians... the resulting...
  8. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Hi Richard...

    Will tidy code and play more later ...today !!

    Thanks for help

    I non too good with S/W
  9. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Hi

    Z just got commented out by accident... My Bad.. It back now and was anyway !

    Sorry again my misunderstanding if the ATN result is radians 0 to 255 the equation as I remember is:-
    ...
  10. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    I am now more confused than I was before....

    Aximuth is the angle between ground and the Z-Plane

    Degree is the heading (ie Compass Bearing)

    I am most interested in getting the display to...
  11. Replies
    57
    Views
    84,451

    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 ....
  12. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Hi..

    Some success.... with code as below:-

    Am I correct in assuming the compass is in the X-Y Axis ..., Z is purely for Azimuth?

    I think something is wrong with Azimuth and Degree calcs as...
  13. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Thank You....

    Will try ASAP...

    Have a great New Year.... Or .... Has it happened already !

    BR
    Andy
  14. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Hi Richard

    Thank you for reply... Here is code to date.... With most recent error.


    '****************************************************************
    '* Name : COMPASS_818.BAS ...
  15. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Thank you for reading

    Hi Have tried suggestions...

    But now the I2CRead command is failing on on the HIGHBYE and LOWBYTE locations, I think it due to the X declare beng a Byte now not a Word.
    ...
  16. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Hi Richard

    In short am I right in thinking if I declare :-

    x var byte
    readingx var word

    Then Substitute :-

    x = x + SCALEOFFSET
  17. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Hi
    I wish I had got it working.... I am working on what the others posted. But at the moment not working.

    It is certainly to do with the ATN function.

    BR
    Andy
  18. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Hi

    I am experriment with this code... more or less same setup as Visnga30 difference being I am using a 16F818..

    I can understand the raw numbers OK X.Y and Z... But I feel something is wrong...
  19. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Any chance of sharing code.... We can see what might be happening ??

    BR
    Andy
  20. Replies
    57
    Views
    84,451

    Re: HMC5883L Magnetometer chip Possibilities.

    Thank you for help both...

    I think will just buy a couple and have a play

    Buying 2.... As first one will go pop :)

    BR Andy
  21. Replies
    57
    Views
    84,451

    HMC5883L Magnetometer chip Possibilities.

    Hi all

    Am looking at the possibly of using a HMC5883L Magnetometer in a compass application with a PIC.

    Has anybody had any experience in these chips and interfacing to a PIC using PicBasic...
Results 1 to 21 of 21