Hi J,It might be the overflow in the readings.
Maybe you can just skip the values where x and y both
are 00 00 = 0 or 255 255 = - 1 after converting from twos complement?
Hi J,With 16bit the 7'h number ST2 should be 16 decimal when no overflow, 20 when overflow.
It should never be 255 or 0.
Maybe you are reading from wrong addresses or there is some hw problem?
Hi J,I might got this wrong.
+-32767 corresponds to 4192uT field strength, but Earth's field strength is only about 30-60uT.
Why is then 16bits used for the results?
Hi J,AK8963C needs 0.1uF between both power supply pins and ground.
PIC at both Vdd Vss pairs.
Is the copper on bottom side connected to gnd?Hi J,
Hi,
I added 3x capacitors to see if they will help. First test, it seems steadier, but trips if I put my hand near it.
Note: The bottom side of the PCB, is copper.
Regarding the large uT READing! This type of module can also be used for other purposes, which may use stronger magnets.
C
Hi J,Is the copper on bottom side connected to gnd?
Morning E,hi C,
So are you now ready for field trials.?
E
I think you are now reading the compass values in wrong order.Hi,
I've just updated the program in #270.
The Compass and altimeter is working and the GPS now compiles.
C.
Hi E,hi C,
Post just the code clip that parses the two different message strings, will look it over.
E
hi C,The program only 'sees' $GPRMC sentences, but is set for $GPGGA. See below
Hi E,hi C,
You appear to be using the same get_val subr for both messages,by finding the csv value.
The two message strings are different in their construction.
Two different get_val subr and csv subr are required,
E