UAT 205 Sensors and Instrumentation Systems

Worksheet 2 IMU and compass calibration

Lab 6 hAssesses CLO2, CLO1

Objective

Calibrate the accelerometer in six positions, analyse the gyro with Allan deviation and correct compass hard iron

Equipment and materials

  • Flight controller or IMU board and compass board
  • Mission Planner or QGroundControl
  • Python, AllanTools and module 2 example code
  • Steel screwdriver

Safety

  • Remove propellers whenever a battery is connected to a drone in the lab
  • Bench work only; no flying

Steps

  1. Run six-position calibration in the software and read offsets and scales
  2. Record raw six-position readings, compute with Example 1 and compare
  3. Leave the IMU still for at least an hour and record the gyro
  4. Compute Allan deviation to find ARW and bias instability
  5. Rotate the compass board, record mx and my, find hard iron with Example 2
  6. Place a steel screwdriver near the compass, observe the circle change and record it in the lab notebook

Record of results

Table 1 Six-position accelerometer calibration
AxisReading axis up (m/s²)Reading axis down (m/s²)Computed bias (m/s²)Computed scale factorSoftware offset and scale
Table 2 Gyro Allan deviation results
AxisRecord length and sample rateARW (slope -1/2 line at τ = 1 s)Bias instability (minimum)Reading method (AN5087 or IEEE)
Table 3 Compass data and hard-iron correction
Conditionmx min and max (µT)my min and max (µT)Estimated offset (µT)Data shape (circle, shifted or ellipse)

Questions

  1. Without calibration, how many degrees of tilt would the bias your group measured make the flight controller see while the drone sits level, and how would the drone fly?

  2. How far do your own bias and scale-factor results differ from the software's values, and what could cause the difference?

  3. Which method did your group use to read bias instability, how would the value change with the other method, and why must the report state the method?

  4. With the steel screwdriver near the compass, did the data circle shift its centre, stretch into an ellipse, or both? Explain with hard iron and soft iron, and say what this means for mounting a compass on a drone.

Check before you hand in

What to hand in

  • Bias and scale-factor comparison table
  • Allan deviation plot with ARW and bias instability
  • mx/my plots before and after hard-iron correction
  • Screwdriver test notes

CLO2 Calibrate sensors and evaluate measurement uncertainty. CLO1 Explain the operating principles of UAS sensors. (CLOs are a web-team draft; the course owner sets the final ones.)

Instructors: answers and teaching notes for this worksheet are in the teaching pack