DJI Mavic Gimbal Calibration
HTML-код
- Опубликовано: 9 фев 2025
- DIY manual how to fix gimbal calibration error after replacement gimbal camera or motherboard on the mavic pro or dji mini drone.
** Additional Information **
If your PC does not detect your drone and the drone is listed as "bulk interface" or unknown device in device manager, most likely your PC did not find drivers for your drone. In this case, download and install DJI Assistant for your drone model.
DJI Assistant: www.dji.com/do...
Don't bother installing Python from external sources if you are not familiar with all of this, instead use Microsoft Store, and install Python. For pyserial, use pip command 'pip install pyserial'.
** Download links **
Python: www.python.org/
PySerial: pypi.org/proje...
Github: github.com/o-g...
7-zip: 7-zip.org/
** PRODUCT CODE **
A2 - Released 2013-09-04 A2 Flight Controller
P330 - Released 2013-01-07 Phantom 1
P330V - Released 2013-10-28 Phantom 2 Vision
P330Z - Released 2013-12-15 Phantom 2 w/ Zenmuse H3-2D
P330VP - Released 2014-04-07 Phantom 2 Vision+
WM610 - Released 2014-11-13 Inspire 1
P3X - Released2015-03-09 Phantom 3 Professional
P3S - Released 2015-03-09 Phantom 3 Advanced
MAT100 - Released 2015-06-08 Matrice 100
P3C - Released 2015-08-04 Phantom 3 Standard
MG1 - Released 2015-11-27 Agras MG-1
WM325 - Released 2016-01-05 Phantom 3 4K
WM330 - Released 2016-03-02 Phantom 4 (Phantom 4 Standard)
MAT600 - Released 2016-04-17 Matrice 600
WM220 - Released 2016-2017 Mavic Pro (Platinum)
WM620 - Released 2016-11-16 Inspire 2
WM331 - Released 2016-11-16 Phantom 4 Pro
MAT200 - Released 2017-02-26 Matrice 200
MG1S - Released 2017-03-28 Agras MG-1S
WM332 - Released 2017-04-13 Phantom 4 Advanced
WM100 - Released 2017-05-24 Spark
WM230 - Released 2018-01-23 Mavic Air
WM335 - Released 2018-05-08 Phantom 4 Pro V2
WM240 - Released 2018-08-23 Mavic 2 Pro/Zoom
WM245 - Released 2018-10-29 Mavic 2 Enterprise
WM246 - Released 2018-12-20 Mavic 2 Enterprise Dual
WM160 - Released 2019-10-30 Mavic Mini
WM231 - Released 2020-04-28 Mavic Air 2
WM232 - Released 2021-04-15 Mavic Air 2S
WM260 - Released 2021-11-05 Mavic 3
*For DJI Mini 2 and Mini SE drone use product code from Mavic Mini.
**If your drone model is not supported in the list, check the software update on GitHub, most likely, the list of supported drones will be expanded with the next update.
** Script **
Step 1:
py comm_og_service_tool.py --port com pcode GimbalCalib JointCoarse
Step 2:
py comm_og_service_tool.py --port com pcode GimbalCalib LinearHall
FOLLOW ME:
Instagram: / howfixit
Facebook: / howfixit
Twitter: / howfixit
More DIY repair guides on www.how-fixit.com
#howfixit #dji #dronerepair
*For more info check out the links in the description*
Thanks! Your video really helped out with my Mavic Air 2.
thanks for your support!
Cap
Following your instructions I was able to get the mini 2 drone working which had the horizon tilting problem. The procedure is not that simple, but it works. Thank you for the wonderful presentation and explanations. I am very happy that my mini 2 is operational again.. best wishes from Belgrade Alexander
Hi Aleksander, was the product code you used the same as the Mini? I can only see a code for the mini in the github files.
@@MalleeMate 3Q4CH9N3B31UW1 mini 2
@@aleksandarantic3829 Great, thanks mate!
@@MalleeMate You are welcome. Thanks for help.
@@aleksandarantic3829 why other Pcodes are so small and mini 2 so big?
I love you. I struggled with the cmd part it kept giving some errors. But then I saw Pip Install command. Also took some help from chatgpt and fixed my messed up drone. Thanks a LOOTTTTT
im also struggling with that part, what is pip install command? what help did you get, i am getting mixed error codes currently.
@@jasonbutler3949 dude it was 4 months ago. I forgot how I did it. Ask chatgpt
Thanks a lot for the video and the good description! With your help i could make my Mini 2 with a replaced gimbal work again properly.
I stumbled across two problems during the process:
First one, the mini 2 didn't connect at first. Couldn't see it in the device manager. You have to plug it in immediately after you turn it on, it appears to be quite picky about the timing.
Secondly, i got an error when i tried to execute the calibration prompts. I had to change "py" at the beginning to "python", then it worked fine.
Maybe that will help someone else. 🙂
Did you Also have to enter the command quickly? It shows on my Com5 for a few seconds but then disappears.
No, i first used DJI Assistant to make sure that the drone was connected properly. Afterwards i had all the time i needed to enter the commands, the connection remained stable. Have you tried the Assistant app? @@Kayzu87
mini 2 code is ?
Please can I know the code for mini 2 .
Same as the Mavic Mini, so WM160 was the code that worked for me. Tried it successfully with two Mini 2 drones. @@hcn_prod
Thank you so much!!! Worked perfectly when nothing else did. Is there a way to get rid of the error message?
Thanks!
Thanks for your support!
Thank you for the Great presentation and explanations.
Hello, I tried to follow these steps, but this message appears in the CMD "Python not found; run without arguments to install from the Microsoft Store or disable this shortcut from Settings > Manage Application Execution Aliases".
Would there be another alternative to resolve?
In the windows search bar, search for "Manage App Execution aliases" scroll down to the two items for python and turn them off. This should fix your issue!
Same
I also get the same message, did you find a solution?
try replacing `py` with `python` or `python3`
@@avrumy yes correct
This worked perfect on my air 2. old drone yes, but i do like it still. only problem I ran into was connecting the drone to a 15 yr old pc, win 7. I have mac and didnt work on that, so I cranked up the caveman. No port info as the serial over usb did not show. Found a nice software called windows serial installer and it forced that connection. entered port 3, wm231 and blammo! calibrated
Hi, When will the support for DJI Mini 3 Pro Gimbal calibration (wm162) be added to it?
Hello, thanks a lot for this video it helped me a lot with one of my drones. Unfortunately, my Mavic Air 2 doesn't do anything when I input the LinearHall command. It shows as it has done it, but the gimbal doesn't move. The other command works great.
Why doesn't it work?
Any help will be highly appreciated
same here step 1 works step 2 does noting Maivc Air 2 as well.
My solution was: instead of writting " py ....... " i had to type "python ...... " for each command.
@@haridhanani9326 Thanks You! It is works for me
Update?
hello friend!
what code should i use to calibrate the mini 3 pro gimbal?
am waiting too for the mini 3 pro its not yet release on the site...... :/ if you were able to do it please help
@@Alvyn27 I sent it to technical assistance here in Brazil, the entire gimbal will be replaced.
is likely to need to be calibrated.
Thanks for replying yes i think if they dont release the calibration code fast i will have to send it back too
Mini3pro Can be appeared on Com port .I need calibrate gimbal .Would you suggest me
I also need this code 🥺
How can we do this for DJI mini 3 pro.
I couldn't find the mini 3 pro in the product list. Where can we get source for this DJI model
Same here :(
Same question plz how have the answer
@@sakhraouimohamedsedik5955Me too, please help us out
Same here, please...
The code for mini 3 pro is WM162
Do you have a tutorial for the DJI air 3, I watched your video on how to change the gimbal and flex but it gives me an error about loading the stabilizer, and I followed this tutorial step by step but it won't let me install, the package does not find the distutils module I don't know much about programming and I'm a newbie but you have great videos.
same issue
same currently trying to figure that out as well
It was deprecated in Python 3.10 by PEP 632 “Deprecate distutils module”. For projects still using distutils and cannot be updated to something else, the setuptools project can be installed: it still provides distutils.
Type pip install distutils in cmd.
@@duzgunisa
thanks for this hint. I think you meant type : pip install setuptools
Merhaba 03:39 benim dronum Air 3 ve Listede adını göremedim, dji-firmware-tools nasıl ulaşabilirim?
Just wondering if this can be done when adding a used gimble from another drone that is bonded to another account. Have bought a used gimble for a MA1 from a trader and need to add it to a drone with a broken gimble.
Hi how do you get around "Of note, the distutils package has been removed from the standard library."
Download 3.9.0 all that stuff was removed after 3.12
Please, make a video for the calibration of the Mini 3 Pro, we need it after gimbal replacement!
Hello 03:39 My drone is Air 3 and I couldn't see its name in the list, how can I access dji-firmware-tools?
Entonces esto soluciona que el cardan quede de lado despues de remplazar la pieza
Olá! Obrigado por esse tutorial! É muito esclarecedor, poderia me ajudar?
Fiz todo o processo e o Gimbal que estava torto realmente calibrou... No entanto, escuto vibração no mesmo. Um dos motores do Gimbal aquece muito. Chego a ouvir um zunido da vibração do Gimbal. As calibrações dentro do aplicativo falham... O drone é um Mavic Air 2. G
Há uma solução para isso?
O Gimbal, nesse eixo, superaquece tanto que desativa todos os motores.
Note that this does NOT work for a Mavic 3 Cine. The DEVICE BULK interface doesnt work with PySerial and only seems to respond to libusb unfortunately. As such you have no defined serial port with which to push the commands through because it runs it as 7 libusb-win32 devices instead of just 1 port.
dude you fixed mine i have been scraching heads trying rebooting there are problems i encountered with runnniing cmd . for some reason i run it it throws errors regarding the directory but but then ran on virtual environment on cmd and all the above comands worked
Another great tutorial!
Very useful info , thank you
My pc wont detect the dji mavic 3 pro on com port. So i dont know which port. When connecting mavic 3 pro to pc, it pop up folder to allow to view videos. But wont show up on com port. So i have no way to know what com port to type in. Is there a different way to calibrate camera? I also tried dji fly app auto calibrate. It always stuck on 40% and then says fail. Tried over 10 times always fail. Need help cause camera is tilted.
same happened to me, it seems that the python method only works with previus drones, did you managed to fix it?
@zoomproducciones234 nope. I give up after trying for like 3 hours.
What is the product code for the Mini 4 Pro?
Would you like to calibrate the mini 3 pro
The code for mini 3 pro is WM162
I got everything downloaded, not good with computer.
Can I pay you to log in to my computer remotely to calibrate my mavic 2 pro?
Hi is it possible to replace the DJI Mavic 3 vision sensor frame and sensor? Do I have to do any calibration? If yes, how can I do that?
Hi, I´ve had several problems to get the script running.
My solution was: instead of writting " py ....... " i had to type "python ...... " for each command.
Then everything worked just fine!
System : Win10
Obrigado pela dica!
OMG thank you so much!!!
Thank you for this awesome video :-)
Thanks for the video. Anyone know which product code to use for the Mavic Mini 3 Pro ? Thanks !
Still becomes a big wonder in my mind, for Mini3Pro. 😔🙈
If anyone here has the crack link eventhou with some amount of donation, please share privately. 🙏🏻😇
hi, did you find the mini3pro code? thnx
hey someone find the code for dji mavic mini 3 pro?
@@OWD_official Try the Mini2 code but I don't think I was able to get the computer to see the Mini 3. I forget. I just sent it in to DJI and they fixed it for free.
Hey, muchas gracias! I fix my problem! Well you help me!
Interesting video that helps a lot, do you know the DJI AIR3 code?
I will reuse old camera from my Mavic 3 broken gimbal. Do I still need to make this calibration process?
Did you find a solution? how did you calibrate after changing the camera?
I'm going to replace the gimbal on my dji mini 3 Pro. Would I need to do this process with it? If so what product code do I need to use? Thanks in advance
hi, did you do it? I've just replaced my Mini 3 pro gimbal and I'm having issues with calibration.
I don't see anyone mention anything about doing this with Mac. Stuck at Step 1 because mac doesn't use port numbers like PC does. Anyone can help?
I do have a MacBook Pro but with Parallels which simulates a Window 10 and it should be able to work! I will try to calibrate my mini 3 pro, but I see already at the comments it doesn’t have my Dji model! I let you know!
Do we have to install the software even after unplugging and plugging in the flex cable? I just changed a plastic part. But now the gimbal doesn't turn left or right. My device Mavic 3 Classic
Does anyone know how to deal with the Error: "No response on calibration command JointCoarse request." in the first step?!?
did you find a solution?
The camera on my DJI Mavic 3 is making tiny lance focus noises and there's a black screen on that I can't see any live camera feed. the errors are obstacle sensor errors and such. HELP..!
What is the command to configure the change of the sensor? don't change the whole gimball, just the camera sensor
I have a mavic 3 pro. It hit something but continued to fly and landed safely. But the camera is now locked pointing at the drone. Are their any routines in this python code that will unlock it? Thanks!
I can calibrate the pan tilt, any type of drone is fine. If you need it, please ask me
any idea how to do this if some does not have windows computer? We only have Mac
Use Parallels to simulate Windows
I got as far as downloading 7 zip. I went to open it and my Mac says it won’t run windows based programs. Do you have instructions for Mac OS?
How about DJI MINI 4 PRO?
What is Product Code?
if I make mavic 3 cine in python for the com, it can't be detected, can it be made for mavic 3 cine
Got it to work using the pyserial 3.4 not the pyserial 3.5 (latest)
can you make a video for calibrating mini 3 pro? cause I've searched for it and I don't get it
please help me to solve calibrating on my dji mavic mini 3 pro... Thank you
Good day, were you able to figure this out?
The code for mini 3 pro is WM162
@@xpepeimxdid it work?
How about code for dji mini 4 pro?
What does extract mean? you just blew through that with no explanation. Its all different on a Mac
This method wont work on mavic 3 as there is no capability of Com Port connection, instead it is via libusb 32.
Did you find a solution?
What python command did you use to get it to calibrate with libusb?
How much do we need to donate for you to do a calibration video for new camera and gimble on mini 3 pro?
DJI Mini 3 Pro is not supported with this software!!!
I tried following this and several other on youtube and I sure the file name and location has been changed from the DJI firmware. I get a line 17 'setuptools' and line 19 'distutils' error where the script couldn't find the module file name.
i have same problem u find solution?
i got same problem but i figure it out you must uninstall python in you're computer and reinstall it again with python old version 3.10.5 that used in the video and recopy paste all files again
@@cartfredo4782 Exactly. I did that. Then I got error 40011. Do you have that too?
I solved it. 40011 has gone 😋
Great video, very detailed. I have a question. I followed your video to the letter and got the drone back together. I turned on the drone and everything went through the start-up process, with the camera going through the motions. I then went to the camera calibration video and followed that, I had some issues getting the connection to the computer right, but with a little persistence I got there.
I loaded everything up using the links you provide and all seemed well, except, when loading the "JointCoarse" the camera only went through limited movement, approximately 50% of the "start-up process". I tried this about three or four times with the same result. I then tried the "LinearHall" and the camera did not move at all.
Any advise would be greatly appreciated.
I am having the same problem. Please tell me if you fix it.
@@countryboy1776 I received this message today from Infinity Drones... "@Michael Bockisch Sadly the Mini 2, Air 2, mavic 3 series require special calibration firmware if this method does not work for you." Seems DJI are keeping their firmware secret to keep their little portion of the market
@@michaelbockisch8107 Yikes, well IDK then.
@@michaelbockisch8107 Thx for posting, my son crashed our Mini 2 into a tree and broke the gimbal, I'm on fencepost of trying to fix it and see your post. So, in the end yours is not usable due to not getting the special calibration firmware?? ugh
@@mtbdudexFor the Mini 2 it’s possible!
There is no dji mini 3 pro inside the "comm_og_service_tool" file. So how do you calibrate the gimbal then?
Just wait for an update. in any case, there is support for mavic 3, will support mini 3 pro soon
any luck for the mini 3 pro? i heard using the original mini works
Hi! I can to help with calibrating a gimbal )
The code for mini 3 pro is WM162
Hello. i have a dji mavic air 2s and i want it to unlock altitude. How to do?
Hello, good video, I have a Mavic 3 to which I replaced the visual sensors, but now I get an error that says "Vision sensors calibration error" and it does not allow me to take off, how can I solve that?
Step 1 worked for me, step 2 i have Unrecognized response to calibration command Linearhall request
did someone found a fix?
Update?
Hi,
How to do that for mini 3 code is not in the list
I follow the instruction. What did not work my drone air 2s. Can you help me??
the error code at the end. is that the cameral serial number not matching or is that the gimbal serial not matching? camera is still good and can easily swap if that would get rid of the error.
Hi! Can I know from where you get the info? I mean, I just want to get deeper on python-dji
for me it doesnt work! the gimpal is calibrating as i start the drone then it trembles around non stop, as soon as i start another calibration is works fine but when it finishe it starts trembling again!! any ideas ?
hello a question does it work for the mavic 3 pro?
I’m trying to do the same with my Mavic 3 but when I run the first line of code I get access is denied to the ports any insight be appreciated
hi ...Any update for mini 3 pro .....?
please help us with the DJI MINI3 Pro update...
Hello! I can to help with calibrating a gimbal. My telegram id is @dji_965
To calibrate the gimbal on a DJI Mini 3 Pro, you will need to follow these steps:
Power on the drone and connect it to your phone or tablet using the DJI Fly app.
In the app, go to the "Gimbal" tab and select "Calibrate."
Follow the on-screen instructions to complete the calibration process. This may involve moving the gimbal to various positions and holding it steady for a few seconds.
Once the calibration is complete, the app will let you know if it was successful or if any further action is required.
It's important to calibrate the gimbal regularly to ensure that it is functioning properly and providing stable footage. If you notice that your footage is shaking or unstable, it may be a good idea to recalibrate the gimbal.
I copy from forum.. havent tried it yet
Thank you a lot !
I have now struggled with this and identified a couple of steps which allow the actual process to work. However, nothing has changed. Same error message, drone will not callibrate the IMU data and will not fly.
You promise in your video you will answer any questions. Guess what you didn't answer any. Why???
Bonjour,
Superbe vidéo merci, j’ai essayé mais quand je lance la calibration sa ne fonctionne pas, l’invite de commande me signale erreur python introuvable…
Merci pour votre aide
the same problem
when connected to win 10, it shows on libusb-win32 and not COM port. how we can fix this? thank you
bonjour impossible pour moi car le ficher pysersial pause soucis des fiches qui il y a trop longtemp donc le cmd ne peut pas installer.
creo que tengo el mismo problema
plz Make DJI AIR 3 Gimbal Calibration Video.
When doing step 1 I get this: Python was not found; run without arguments to install from the Microsoft store,or disable this shortcut from Settings > Manage App Execution Aliases
I get the same message. I do not understand what to do now.
Yes, and i followed the steps as i should, i did it twice just to make sure but still the same issue
@@chrismclaughlin6641use python instead of py
@@estefaniazurbrigk3946 same result
I have the same problem when I use my windows 11 laptop but on my windows, 10 pc worked perfectly.
I really hope someone can help - my Mavic 3 isn't appearing in any comports. For info, I'm running windows 11, and I wouldn't be surprised if 'thats' causing the issue...
Will not work for Mavic 3... Just refuses to connect to drone and calibrate.
My solution was: instead of writting " py ....... " i had to type "python ...... " for each command.
Does this work with the Air3?
Did you find the any answer?
Hi there, can i do this to my dji mini 2 ?
hi! thank you! when i write the command (JointCoarse) it is do nothing, only write me "Python". Are you have idea what I did wrong?
My solution was: instead of writting " py ....... " i had to type "python ...... " for each command.
good morning my friend . Does this method work with Drone Mini 2?
does it work ?
Mine executes JointCoarse script but it doesn't want to execute LinearHall script and I am still getting error of gimbal stuck, I had a small crash everything is working, no obsctruction on the gimbal but the error is not clearing and the code stays there it did changed once to gimbal cal error but now is back to gimbal stuck and I am clueless any ideas??
same here. My wire harness had one broke wire (looked like a hair coming off the harness).
Update?
Hi, in my case when I plug the drone with the USB cable, the USB serial device (COM3) turns on for only a few seconds, and then get disonnected, do you have any idea why ? Thanks in advance for your help !
I finally find the way to solve the probem : need to first connect the drone to the PC with DJI Assistant 2 app, then close the app, and the virtual port com connection is stable
Hello, do you know how to remove the 40011 and 40021 errors? THANKS!
Hello there, I'm able to assist you with that :)
@@tauriqmustapha3505i will need help with it too for some days, waiting for parts, if u can u can help me too.
@@tauriqmustapha3505 how to remove 40011 gimbal calibration error
Hi, i can't install python. My cmd do not work! what should I do?
The second command won't make the gimbal move. What should I do?
Did you find a solution?
can you do a tutorial on how to do that for MacBook air
I'm looking for it. Did you find it?
i do all the setup as you did but i got this /
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
please help me find the problem
My solution was: instead of writting " py ....... " i had to type "python ...... " for each command.
I am following step by step what you have explained here, but it does not work for me.
I'm working on BOOTCAMP, on Mac, could that be the problem?
this tutorial is for windows
it is works with mini 3 pro?
Did you find an answer?
The code for mini 3 pro is WM162
@@xpepeimx how do this? there is not in the service tool
do you know why my drone would not become visible on my ports under device management no com is showing? only a usb mass storage under universal serial bus controllers. In advance thanks.
** Additional Information ** above
Hi this all worked however when I turned the drone off and back on again, it had reverted back to before calibration. So it only works if i calibrate and don't switch the drone off. Can anyone help?
Error: No response on calibration command JointCoarse request. gives thgis error and shows gimbal stuck
How can you get the wire through the small opening if you just buy the gimbal housing?
u have to use the end of the wire that connects to the camera, take off the back of the camera housing if needed
Hola, he seguido el tutorial paso a paso, pero el comando py no surge por ningun lado, a que se debe esto ? tendras alguna solucion.+
debes reemplazar el primer py por python
I must be doing something wrong as once I have the drone connected to the computer it doesnt show a Com port in device manager. I have the DJI Assistant 2 installed, Drone is a DJI Mini 3 Pro. Should I have a SD card in it?
i am experiencing the same issue as yourself. Please help us.
Any luck, coz having same issue
In device manager, click "View" and scroll down to "Show hidden devices" and click that. Ports showed up for me after doing so
does it work on the mini 3 pro?
Hello! I can to help with calibrating a gimbal. My telegram id is @dji_965
The code for mini 3 pro is WM162
hi. Did any one did calibration on mini 3 pro? my computer didn't see my drone. It's showing only as a disk.
I have the same issue with my mini 2. I see it for a few seconds and then it disappears.