360 CW + CNTL1 shows:
BYTES = 3x Outputs after twos compliment calc inside [ ], then the CNTL1 BYTE=18 shows the compass is in CONTINUOUS MODE and 16BIT.
Hi J and M,
Success!!
Here's a Magviewer view, showing a circle.
Next figure out how to change the BIAS setting to centralise it.
Thanks to all, for your time and patience.
C.
Are these the raw values?
Did you input them manually?
From the d/s and from the previous msg #82, values of Z should be always negative ( if raw values )
I guess that the coefficients, which Magmaster calculates, M11, M22, M33 should be near 1 and the others near 0.
Are these the raw values?
Did you input them manually?
From the d/s and from the previous msg #82, values of Z should be always negative ( if raw values )
I guess that the coefficients, which Magmaster calculates, M11, M22, M33 should be near 1 and the others near 0.
Hi J,
I'm using Magmaster and the instructions (See #50 link)
I tried again and the results are similar.
My set-up doesn't allow the box type arrangement as instructed, so I'm orientating the PCB/Battery/compass by hand.
Post #82 shows a 360 Deg horizontal revolution.
C.
Are the values in the Magmaster window the raw values from the sensor, after converting from 2's complement ?
Are you sure that the 12 orientations which Magmaster needs, are correct?
Are the values in the Magmaster window the raw values from the sensor, after converting from 2's complement ?
Are you sure that the 12 orientations which Magmaster needs, are correct?
Hi J,
Here is an output TXT, as sent to Magmaster from a Terminal instead, while moving in all orientations.
I think the orientations are correct in #84, but more practice and checking should confirm this.
C.
Hi J,
Here is an output TXT, as sent to Magmaster from a Terminal instead, while moving in all orientations.
I think the orientations are correct in #84, but more practice and checking should confirm this.
C.
Where did you get the output txt in Magmaster window
msg # 84?
The first row, X+ point 0° has value - 299
The second, X+ point 180° has value - 317
In msg #82 ( rotated horisontally) the lowest value of X is - 183. There is 73% difference??
Why you then used different format in Magmaster msg #84?
The first X+ is - 299. Did you calculate it manually and how?
The compass program gives xxx. 00 and much smaller absolute values.
Where did you get the output txt in Magmaster window
msg # 84?
The first row, X+ point 0° has value - 299
The second, X+ point 180° has value - 317
In msg #82 ( rotated horizontally) the lowest value of X is - 183. There is 73% difference??
I have asked four times how these values are generated, because they are different from sensors floating point values
You say they are readouts from terminal.
- how terminal got them?
- are they somehow made from sensor data?
I have asked four times how these values are generated, because they are different from sensors floating point values
You say they are readouts from terminal.
- how terminal got them?
- are they somehow made from sensor data?
You will recall, that we've just changed the program, (Big/little endian....getting the READings in the correct order etc)
I'm sure you know, that the PIC READs the compass module, then outputs DATA with a HSEROUT, that SENDS DATA via a USB/serial board and an HC-12 radio module.
The computer also has an HC-12/Serial/USB, as connection input. The input DATA can be READ using either a Terminal (Termite)(TXT) or the Magviewer or the Magmaster, all using LIVE DATA from the PIC output.
Using the attached 'Magmaster matrix': Hold the Compass module in the ORIENTATION as each of the 12x positions. At each position, press the Magmaster 12x POINTX BUTTON. This enters the DATA into the program, as the results in #93 (Latest with this program)
Latest program here: