Introduction

In this video tutorial, I will show you how to calibrate a gimbal camera on a DJI Mavic Mini. This process is necessary after replacing the camera stabilizer, gimbal assembly, or changing the drone motherboard.

Download Programs for Calibration Gimbal :

First script to run calibration

  • py comm_og_service_tool.py --port com pcode GimbalCalib JointCoarse

Second gimbal calibration script

  • py comm_og_service_tool.py --port com pcode GimbalCalib LinearHall
Conclusion

To reassemble your device, follow these instructions.

Arty

Member since: 27/10/19

27826 Reputation

8 comments

Does this work for the dji mini se? As I do not see a pcode in the list.

Joshua Dockery -

Thank you for your video, for me it gets stuck in the "Info: The Gimbal will slowly move through all positions in all axes," and not responding.. any ideas? Thank you.

Βασίλης Τριανταφύλλου -

py comm_og_service_tool.py --port com pcode GimbalCalib LinearHall

Gimbal still is facing to the left

Luis Royo -

When I put in the py setup.py install command, I get an error message. File

not found or something similar. I’ve tried redownloading and tried different versions of py and pyserial 3.5. Any advice?

Dji mini -

Hi, this post from other forum helped me with this problem

Here are the steps to fix these issues:
Install setuptools: If setuptools is not installed, you can install it via pip, the Python package installer. Open your Command Prompt and run the following command: Copy this code

python -m pip install setuptools

Make sure that you have pip installed and that it is added to your system's PATH.
Check Python installation: The distutils module should be included with your Python installation. If it's missing, it suggests that there may be an issue with your Python installation. You might need to reinstall Python. Ensure that you download Python from the official Python website and install it, including the "Add Python to PATH" option during installation.

Paulius Zemaitis -

After I download and unzip/install everything, go to the CMD screen as administrator and type cd/ cd dji, everything works until I enter py setup.py install. Then I get this error.

ModuleNotFoundError: No module named ‘setup tools’

ModuleNotFoundError: No module named ‘distutils’

What am I doing wrong?

Dji mini -

I get the same eror

C:\DJI>py setup.py install

Traceback (most recent call last):

File "C:\DJI\setup.py", line 17, in <module>

from setuptools import setup

ModuleNotFoundError: No module named 'setuptools'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\DJI\setup.py", line 19, in <module>

from distutils.core import setup

ModuleNotFoundError: No module named 'distutils'

Justin J -

After following the procedure I get a message "No response on calibration command JointCoarse request." Can you help?

PJ Shortt -