# ZED Mini IMU calibration lost - Reason?

**URL:** <https://community.stereolabs.com/t/zed-mini-imu-calibration-lost-reason/7674>\
**Category:** ZED Mini\
**Tags:** imu, unity\
**Created:** [December 11, 2024, 8:19am UTC](https://community.stereolabs.com/t/zed-mini-imu-calibration-lost-reason/7674 "2024-12-11T08:19:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![marti](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@marti](https://community.stereolabs.com/u/marti)\
**Post date:** [December 11, 2024, 8:19am UTC](https://community.stereolabs.com/t/zed-mini-imu-calibration-lost-reason/7674/1 "2024-12-11T08:19:43Z")

</div>

We are using ZED Mini cameras for a custom built AR headset. For getting the orientation of our headset we use the camera’s IMU information.  
From time to time it happens that the IMU calibration information gets lost and the camera is “spinning” in the “ZED Sensor Viewer” tool as described in the forum entry [Something’s wrong with my Zed Mini IMU](https://community.stereolabs.com/t/somethings-wrong-with-my-zed-mini-imu/206).  
Re-calibrating works to recover from that state.

Is there any way how we can detect the “error” state from within our application so that we can inform our users that a calibration is necessary?  
Do you have any idea what may cause the IMU loosing its calibration information?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [December 11, 2024, 9:46am UTC](https://community.stereolabs.com/t/zed-mini-imu-calibration-lost-reason/7674/2 "2024-12-11T09:46:08Z")

</div>

Hi @marti  
Welcome to the [Stereolabs](https://www.stereolabs.com/) community.

When the ZED SDK opens the camera it performs a quick recalibration of the IMU to remove gyro biases that can be caused by temperature variations.  
If your camera moves while the calibration is performed, it’s possible that wrong values are stored and a reset is required.

The same problem can happen if the calibration is performed with the camera placed on the same surface where a PC fan is generating little vibrations.

---

<div class="post-metadata">

**Author:** ![marti](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@marti](https://community.stereolabs.com/u/marti)\
**Post date:** [December 11, 2024, 10:21am UTC](https://community.stereolabs.com/t/zed-mini-imu-calibration-lost-reason/7674/3 "2024-12-11T10:21:03Z")

</div>

Thanks for you quick response.

How long does this quick recalibration take and when in the initialization phase is it done?  
Is there any way how we can detect these wrong values and react on it with the help of the SDK?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [December 11, 2024, 10:30am UTC](https://community.stereolabs.com/t/zed-mini-imu-calibration-lost-reason/7674/4 "2024-12-11T10:30:52Z")

</div>

> [@marti](#):
>
> How long does this quick recalibration take and when in the initialization phase is it done?

It’s quick, it takes a few milliseconds.

> [@marti](#):
>
> Is there any way how we can detect these wrong values and react on it with the help of the SDK?

It’s not currently possible.

---

<div class="post-metadata">

**Author:** ![marti](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@marti](https://community.stereolabs.com/u/marti)\
**Post date:** [October 8, 2026, 6:59am UTC](https://community.stereolabs.com/t/zed-mini-imu-calibration-lost-reason/7674/5 "2026-10-08T06:59:28Z")

</div>

Hi @Myzhar

It has been a while since last time, but as we are still facing the problems mentioned above I am contacting you again regarding this issue.

I just read in the release notes of the new SDK version 5.5 that there has been some work done that may help us to solve the issue:

- Fixed the IMU orientation returned by `getSensorsData()` rotating continuously on a perfectly static camera, with `camera_moving_state` stuck on `MOVING`, when an invalid gyroscope bias had previously been stored on the device. Such a stored value is now detected and ignored, the bias is re-estimated automatically, and the invalid value can no longer be written back to the camera. Affected cameras recover on their own; running ZED Calibration is no longer needed.

If that works for the ZED Mini then at least the spinning camera issue would be solved I guess.

But we also have the issue that the IMU reports wrong directions from one system start to another. May this have something to do with the temperature compensation or do you think that it is purely a problem of vibrations?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [October 8, 2026, 9:35am UTC](https://community.stereolabs.com/t/zed-mini-imu-calibration-lost-reason/7674/6 "2026-10-08T09:35:31Z")

</div>

> [@marti](#):
>
> May this have something to do with the temperature compensation or do you think that it is purely a problem of vibrations?

Yes, this is possible.

Any feedback concerning the procedure that I suggested in my previous message?

---

<div class="post-metadata">

**Author:** ![marti](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@marti](https://community.stereolabs.com/u/marti)\
**Post date:** [October 8, 2026, 1:36pm UTC](https://community.stereolabs.com/t/zed-mini-imu-calibration-lost-reason/7674/7 "2026-10-08T13:36:13Z")

</div>

Thanks for your quick reply.

> [@Myzhar](#):
>
> Any feedback concerning the procedure that I suggested in my previous message?

Not sure which procedure you mean…

The problem with the IMU recalibration is that the systems do not have a monitor / mouse / keyboard attached. They are remotely controlled via a web interface.

Another point is that in my experience the faulty behaviour is very rare, but from the field we are getting the feedback that it happens more often or even regularly.

Up to now I could not find a way how I could force the IMU into the failure state, so reproducing the issue and looking for a solution is quite hard.

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [October 8, 2026, 1:43pm UTC](https://community.stereolabs.com/t/zed-mini-imu-calibration-lost-reason/7674/8 "2026-10-08T13:43:30Z")

</div>

> [@marti](#):
>
> Not sure which procedure you mean…

The one linked in my first reply:

> [@Something's wrong with my Zed Mini IMU](https://community.stereolabs.com/t/somethings-wrong-with-my-zed-mini-imu/206/3):
>
> When you see the camera “spinning” in the “ZED Sensor Viewer” tool, that means that for some reason it lost the IMU calibration parameters. You can easily restore the IMU calibration running the “ZED Calibration” tool from the command line, adding the flag --cimu or --calib\_imu. Before running the calibration process please be sure that the camera is completely steady and placed on a horizontal surface. The re-calibration process is fast and fully automated, you can test if it worked correctl…

> [@marti](#):
>
> The problem with the IMU recalibration is that the systems do not have a monitor / mouse / keyboard attached. They are remotely controlled via a web interface.

You need at least an ssh session to run it.

Have you tested a recent version of the ZED SDK? Is the problem still present with v5.5?

---

<div class="post-metadata">

**Author:** ![marti](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@marti](https://community.stereolabs.com/u/marti)\
**Post date:** [October 8, 2026, 2:03pm UTC](https://community.stereolabs.com/t/zed-mini-imu-calibration-lost-reason/7674/9 "2026-10-08T14:03:52Z")

</div>

Recalibration works of course and solves the issue. We are currently looking for ways how we can implement it in our system so that it works for our users.

Our next release is on 5.2.3 and we did not test 5.5 yet. But as said, it is very hard, if not impossible, for me to reproduce the behaviour or to bring a test system into the failure state, so that I can further investigate it.
