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 !
Type: Posts; User: andybarrett1; Keyword(s):
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 !
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
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...
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
...
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...
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...
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...
Hi Richard...
Will tidy code and play more later ...today !!
Thanks for help
I non too good with S/W
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:-
...
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...
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 ....
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...
Thank You....
Will try ASAP...
Have a great New Year.... Or .... Has it happened already !
BR
Andy
Hi Richard
Thank you for reply... Here is code to date.... With most recent error.
'****************************************************************
'* Name : COMPASS_818.BAS ...
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.
...
Hi Richard
In short am I right in thinking if I declare :-
x var byte
readingx var word
Then Substitute :-
x = x + SCALEOFFSET
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
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...
Any chance of sharing code.... We can see what might be happening ??
BR
Andy
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
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...