# ZED2i Accelerometer and Gyroscope Calibration

**URL:** <https://community.stereolabs.com/t/zed2i-accelerometer-and-gyroscope-calibration/2323>\
**Category:** ZED2\
**Tags:** windows\
**Created:** [March 25, 2023, 2:48pm UTC](https://community.stereolabs.com/t/zed2i-accelerometer-and-gyroscope-calibration/2323 "2023-03-25T14:48:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![makennar](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/a183cd/32.png) [@makennar](https://community.stereolabs.com/u/makennar)\
**Post date:** [March 25, 2023, 2:48pm UTC](https://community.stereolabs.com/t/zed2i-accelerometer-and-gyroscope-calibration/2323/1 "2023-03-25T14:48:14Z")

</div>

Hello,

I am new to ZED and photogrammetry altogether, and I recently have been playing with the ZED Spatial Mapping Sample. I found that around every 5 seconds it looses its position information, then regains it but is in an incorrect orientation. In the sensor viewer I found that the ZED appears to be rotating on the Y and Z axes even when the camera is completely still on a level surface. Since this is my first post, I cannot attach a recording of this data, but the camera appears to be rotating at a consistent rate on the Y and Z axes, and is relatively stable on the X axis. I have used the ZED Calibration tool without any luck, and the meshes are coming out distorted when I attempt spatial mapping. Does anyone have any suggestions on what to try?

Thank you,  
Makenna

---

<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:** [March 27, 2023, 7:17am UTC](https://community.stereolabs.com/t/zed2i-accelerometer-and-gyroscope-calibration/2323/2 "2023-03-27T07:17:42Z")

</div>

Hi @makennar  
Welcome to the Stereolabs community.

Can you please run the ZED Sensor Viewer tool and check if there is a bias around the vertical axis when the camera is steady?

Please post a screenshot of the orientation after 30 seconds.

---

<div class="post-metadata">

**Author:** ![makennar](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/a183cd/32.png) [@makennar](https://community.stereolabs.com/u/makennar)\
**Post date:** [March 27, 2023, 11:33pm UTC](https://community.stereolabs.com/t/zed2i-accelerometer-and-gyroscope-calibration/2323/3 "2023-03-27T23:33:31Z")

</div>

Hello! Thank you for the quick response. Attached is the screenshot. I also wanted to inform you that I already completed the calibration in [this post](https://community.stereolabs.com/t/somethings-wrong-with-my-zed-mini-imu/206/2) , and it slowed but did not stop the rate of rotation when steady.

 ![spinZED](https://community.stereolabs.com/uploads/default/original/2X/0/0f5d3bfb53241865a17275dec31d2735e46e23e3.png)

---

<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:** [March 28, 2023, 8:56am UTC](https://community.stereolabs.com/t/zed2i-accelerometer-and-gyroscope-calibration/2323/4 "2023-03-28T08:56:57Z")

</div>

Hi @makennar  
this is the screenshot of the accelerations. I need the Orientation tab, you can select it on the left.

---

<div class="post-metadata">

**Author:** ![makennar](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/a183cd/32.png) [@makennar](https://community.stereolabs.com/u/makennar)\
**Post date:** [March 28, 2023, 11:52am UTC](https://community.stereolabs.com/t/zed2i-accelerometer-and-gyroscope-calibration/2323/5 "2023-03-28T11:52:45Z")

</div>

Sorry for the misunderstanding! Here is the correct screenshot.

 ![zedOrientation](https://community.stereolabs.com/uploads/default/original/2X/6/61175719ad529691e2880ca38e7fcf2d7c11608f.png)

---

<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:** [March 28, 2023, 1:50pm UTC](https://community.stereolabs.com/t/zed2i-accelerometer-and-gyroscope-calibration/2323/6 "2023-03-28T13:50:20Z")

</div>

Thank you for the screenshot.  
It shows clearly that the gyroscope calibration has not been performed correctly.  
I suggest you place the camera on a stable surface (e.g. the floor) before calibrating it. Normally if you calibrate the camera on the desk the calibration is affected by the vibrations introduced by the fans of your PC 🙂

---

<div class="post-metadata">

**Author:** ![makennar](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/a183cd/32.png) [@makennar](https://community.stereolabs.com/u/makennar)\
**Post date:** [March 28, 2023, 10:18pm UTC](https://community.stereolabs.com/t/zed2i-accelerometer-and-gyroscope-calibration/2323/7 "2023-03-28T22:18:38Z")

</div>

I tried the calibration again with the ZED flat on the floor, and got the same result. I typed this command into the command prompt with it run as administrator: start “” “C:\Program Files (x86)\ZED SDK\tools\ZED Calibration.exe” --calib\_imu . It showed the screen saying that it was resetting bias for the ZED 2i when I hit enter, then I went to the sensor viewer and nothing changed from the screenshot I sent earlier. Should I have restarted the computer or camera after this attempted calibration, or is there another issue?

---

<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:** [March 29, 2023, 9:40am UTC](https://community.stereolabs.com/t/zed2i-accelerometer-and-gyroscope-calibration/2323/8 "2023-03-29T09:40:55Z")

</div>

When you open the camera after the calibration, try to leave it on the floor for a few minutes to recalibrate and compensate for temperature modifications.  
If the problem persists please write an email to [support@stereolabs.com](mailto:support@stereolabs.com)

---

<div class="post-metadata">

**Author:** ![lakke](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/l/d07c76/32.png) [@lakke](https://community.stereolabs.com/u/lakke)\
**Post date:** [November 25, 2023, 4:45pm UTC](https://community.stereolabs.com/t/zed2i-accelerometer-and-gyroscope-calibration/2323/9 "2023-11-25T16:45:08Z")

</div>

Hi there, we experience the same problem with ZED 2i. After the suggested recalibration the problem persists, the Y drift slows down but is still drifting. The sensor is on a concrete floor completely still. Anything else that we can do to solve this problem? Another strange thing is it showing a 9 m/s2 acceleration on the Y axis while on the floor still… Thanks

---

<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:** [November 27, 2023, 9:25am UTC](https://community.stereolabs.com/t/zed2i-accelerometer-and-gyroscope-calibration/2323/10 "2023-11-27T09:25:03Z")

</div>

> [@Myzhar](#):
>
> If the problem persists please write an email to [support@stereolabs.com](mailto:support@stereolabs.com)

@lakke please write to support.
