TIM-UP-19k-S3-ETH Offset Calibration

Aus BECOM Systems Support
Version vom 22. August 2023, 20:35 Uhr von en>Peter (1 Version importiert)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

TIM-UP-19k-S3-ETH Offset Calibration

The TIM-UP-19k-S3-ETH currently supports nine different modulation frequencies which calibration data can be stored for. Among others the camera can calibrate its distance offset. These compensation values are stored in the register map from address 0x00C1 on. In order to activate compensation, set Bit 13 in Register ImgProcConfig (0x01E0). Offset compensation values can be set manually. Every modulation frequency must be treated seperately.

Preparation for offset calibration

  1. Place your TIM-UP-19k-S3-ETH coplanar in front of a uniform white target
  2. Info: the measuring is done on a 4x4 pixel window in the center of the field of view
  3. Avoid extreme environmental light conditions or avoid light completely
  4. Plug in the TIM-UP-19k-S3-ETH's power cable and control interface connection
  5. Adjust the integration time in register 0x0005 in order to have an amplitude in the center of the image of approximately 1000-3000
  6. Measure the distance between the sensor surface and the uniform white target and write it in [mm] into register RealWorldXcoordinate (0x0020)
  7. Set the desired modulation frequency at which the TIM-UP-19k-S3-ETH should be calibrated; possible values to write into register ModulationFrequency (0x0009):
    • 0 or 5 ... 5MHz
    • 1 or 5,63 ... 5.63MHz
    • 2 or 6,43 ... 6,43MHz
    • 3 or 7,5 ... 7.5MHz
    • 4 or 9 ... 9MHz
    • 5 or 11,25 ... 11.25MHz
    • 6 or 15 ... 15MHz
    • 7 or 22,5 ... 22.5MHz
    • 8 or 45 ... 45MHz
  8. Wait for all the above changes to take effect: two frame times (1 / frame rate)
  9. Wait for temperature to level off if the modulation frequency was changed

For automated calibration offset calculation proceed with:

  1. Place the calibration command in register: write 0x0013 into register 0x000F
  2. Poll register CalibrationExtended (0x0021)
  3. When finished, the CalibrationExtended register should read 0x00A1
  4. For any other status/error code in CalibrationExtended, please refer to the software user manual
  5. In order to repeat offset calibration for a different modulation frequency, restart at step 7

For manual offset adjustment proceed with

  1. Check the measured distance in the center of the image. We suggest to average the distance over some frames.
  2. Compare the measured distance with the real one and calculate the difference (offset = real distance - measured distance).
  3. Write the offset as signed integer into one of these registers, depending on the modulation frequency it is meant to be for:
    • 5MHz ... 0x00C1
    • 5.63MHz ... 0x00C2
    • 6.43MHz ... 0x00C3
    • 7.5MHz ... 0x00C4
    • 9MHz ... 0x00C5
    • 11.25MHz ... 0x00C6
    • 15MHz ... 0x00C7
    • 22.5MHz ... 0x00C8
    • 45MHz ... 0x00C9
  4. Check how the distance in the data interface changes
  5. In order to repeat offset calibration for a different modulation frequency, restart at step 7

In order to preserve the offset calibration beyond a device reset, the whole register map must be saved to flash:

  1. Write 0x4877 into register 0x0022
  2. Wait for at least two frame times (1 / frame rate)
  3. Write 0xdd9e into register 0x0033
  4. After a short time the operation is finished and the result is stored in register 0x0034; in case of a success it reads 0x0001 (otherwise, please refer to the software user manual)