Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Extra information about calibration
  • Loading branch information
MichaKersloot committed Aug 20, 2024
1 parent 7f81c80 commit cddfac2
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ There is a part on the board for prototyping. You can use this to add the CMPS14
After trying the MPU9250 first, Iwasn't happy with the noise level. The CMPS14 seems more stable and makes the code way easier.

## Status

### What's working
- Recognised as B&G Precision-9.
- Heading send out as Vessel Heading PGN 127250 as Magnetic at 10Hz.
Expand All @@ -21,15 +22,34 @@ After trying the MPU9250 first, Iwasn't happy with the noise level. The CMPS14 s
- Rate of turn is send out as PGN 127251 at 10Hz.
- MFD configuration of heading, trim and heel offset.
- Offsets are stored in EEPROM when set.

### What's half working
- Deviation calibration routine. The stop/finsihed signal works, but processing the outcome is still missing. This routine process should build a boat specific deviation table.
- Auto calibration mode is recognised,
- Off, means.... Off, no autocalibration
- On, means Autocalibration on for Gyro, Accelerometer and Magnetometer
- On, means Autocalibration on for Gyro, Accelerometer and Magnetometer. Deletes stored calibration profile
- Locked, means Off, no autocalibration. Save calibration profile
- Auto, means Autocalibration off for Gyro and Accelerometer. On for Magnetometer

### calibration

Normaly the CMPS14 is calibrated in the factory. But it can be usefull to calibrate the device on (or near) the spot you want to use it.
The procedure is:

- Connect your device to your computer and watch the serial port
- Set Autocalibration mode on 'On' with the 'c' key
- Type 'o' to enable output
- Watch: [Calibration] 11001111 . In the ideal situation it wil look like written. But before calibration there could be more 0 and less 1'Save
- Put your device on different sides, each for about 1 second. Keep your device steady for that second.
- Set the device on minimal 4 sides.
- Watch the Calibration and continue untill the fifth and sixth position shows a 1 (Accelerometer)
- Then slowly rotate the device in all three axis. 180 degrees and back in about 2 to 3 seconds.
- Watch the Calibration and continue untill the seventh and eigth position shows a 1 (Magnetometer)
- When done calibrating, press 'o' to stop the output
- Then press 'c' to change calibration to 'Locked' to save the calibration profile.
- Then press 'c' again to change calibration to 'auto'
- You can now place your device on it's final spot.

### What's half working
- Deviation calibration routine. The stop/finsihed signal works, but processing the outcome is still missing. This routine process should build a boat specific deviation table.

### What's not working
- Actual creation of the deviation table, which from what I understand can be done using Fourier transformation on the data from the 390 deg circle.
- Heave isn't measured yet and thus not sent. Also here I think Fourier transformation on Z accellaration data can be used to calculate amplitude.

0 comments on commit cddfac2

Please sign in to comment.