User Tools

Site Tools


calibration

This is an old revision of the document!


There are 3 steps to calibration

1) Accelerometer bias.

Typically tinypilot computers are shipped with the accelerometers already calibrated, but if using a new disk image, or for all other systems it is required. If you have already calibrated the accelerometers, see upgrade software before writing a new disk image to possibly avoid this step. It does not hurt to perform this step at any time to recalibrate the accelerometer biases.

Most IMU require accelerometer bias calibration. Without it, there will be significant pitch and roll errors. The mpu9250 and mpu9255 usually are factory calibrated meaning you could skip this step. However, some of these do not have this calibration, these usually have an orange rather than yellow capacitor. The IMU on the moitessier board should be ok. In any case, it is recommended to calibrate the accelerometer bias, even if factory calibrated as it will improve the factory calibration slightly.

To calibrate the accelerometer bias, you must be on a “mostly” stable platform. It may be impossible to do at anchor if the boat is moving too much, so either in flat water, or land for this step.

It is best to view the accelerometer calibration age (not compass calibration age) to determine that a new calibration has been applied.

  1. In the pypilot plugin in opencpn, you can see this value from the calibration dialog
  2. If using openplotter, you can see this along with the 3d plot in the pypilot_calibration program

Make sure the accelerometer calibration is not locked.

The sensors (or box they are mounted in) must be un-mounted so they are not attached to anything. Carefully place the sensors on each of the 6 sides of a box (+- 10 degrees will do) the actual orientation is not critical, so long as enough measurements can be taken to fit a sphere. Leave the sensors in each position for a few seconds.

Once a calibration is applied the accelerometer calibration ange should reset. If it does not, repeat the process putting the sensors in different orientations until a calibration fix is found.

If you use the cheapest sensors, sometimes they have bad accelerometers. Either one axis will always read zero, or they will saturate because the bias is greater than 1g. This is easy to determine from the accelerometer calibration plot in the pypilot_calibration program.

2) Alignment

Once the accelerometers are calibrated, the sensors should be fixed securely to the boat. This is required for correct operation, and if they are moved or remounted, both alignment, and compass calibration must be performed again (but not accelerometer calibration) This typically also includes opening the box and replacing the microsd card.

To perform alignment, ensure the boat is level (not heeling or pitching) and in relatively calm water (but small waves motion of a few degrees is ok) and click or select the “boat is level” or level option in any of the control interfaces under calibration.

Correct alignment must be performed before the compass calibration can begin.

3) Compass

Be sure to locate the sensors away from:

  1. magnets - speakers and especially moving magnets like a floating compasses
  2. current carrying wires - very simple rule is 2 cm (1 inch) for every amp
  3. iron and steel - less critical, so if you are in a steel boat, just don't fix the sensors to a steel wall, but try to locate them several inches at least offset from it.

The compass calibration is mostly automatic. If the accelerometer and alignment are calibrated, you just need to sail turning more than 180 degrees to calibrate the compass.

Make sure the calibration is not locked or updates will not occur.

There are both 2D and 3D compass calibration fixes. A 2D fix will occur from turning without pitching or heeling. When heeling there may be some error without a 3D fix. To obtain a 3D fix, you should make a circle with sufficient heeling, such as tacking against the wind, or rolling in waves.

Subsequent 2D fixes will use the previous undetermined value for 3D fix, combining the new 2D fix with the past information from a 3D fix. Performing accelerometer calibration will give a rough 3D fix in most cases making a subsequent 2D fix sufficient for most use.

Compass calibration is continuous and always updates unless locked. You may wish to lock it to prevent future calibration updates.

If the sensors are remounted, they must be re-aligned and the compass recalibrated.

If metal objects are moved around the sensors, the compass must recalibrate.

calibration.1538068428.txt.gz · Last modified: 2018/09/27 17:13 by 73.128.99.196