DIY: Calibrate Gimbal after replacing Assembly
HTML-код
- Опубликовано: 6 янв 2022
- After replacing your gimbal it may need to be calibrated using python.
Here I walk you through the full process.
COPY/PASTE STRINGS:
py setup.py install
py comm_og_service_tool.py --port COMPORT MODEL GimbalCalib JointCoarse
py comm_og_service_tool.py --port COMPORT MODEL GimbalCalib LinearHall
Websites/URLs:
Python: www.python.org/downloads/
PYSerial: pypi.org/project/pyserial/#files
DJI Tools: github.com/o-gs/dji-firmware-...
7-Zip: 7-zip.org/
DJI MODEL CODES:
A2 = 0 # Released 2013-09-04 A2 Flight Controller
P330 = 1 # Released 2013-01-07 Phantom 1
P330V = 2 # Released 2013-10-28 Phantom 2 Vision
P330Z = 3 # Released 2013-12-15 Phantom 2 w/ Zenmuse H3-2D
P330VP = 4 # Released 2014-04-07 Phantom 2 Vision+
WM610 = 5 # Released 2014-11-13 Inspire 1
P3X = 6 # Released 2015-03-09 Phantom 3 Professional
P3S = 7 # Released 2015-03-09 Phantom 3 Advanced
MAT100 = 8 # Released 2015-06-08 Matrice 100
P3C = 9 # Released 2015-08-04 Phantom 3 Standard
MG1 = 10 # Released 2015-11-27 Agras MG-1
WM325 = 11 # Released 2016-01-05 Phantom 3 4K
WM330 = 12 # Released 2016-03-02 Phantom 4 (now referenced as Phantom 4 Standard)
MAT600 = 13 # Released 2016-04-17 Matrice 600
WM220 = 14 # Released 2016-09-28 Mavic Pro (also includes Released 2017-08-24 Mavic Pro Platinum)
WM620 = 15 # Released 2016-11-16 Inspire 2
WM331 = 16 # Released 2016-11-16 Phantom 4 Pro
MAT200 = 17 # Released 2017-02-26 Matrice 200
MG1S = 18 # Released 2017-03-28 Agras MG-1S
WM332 = 19 # Released 2017-04-13 Phantom 4 Advanced
WM100 = 20 # Released 2017-05-24 Spark
WM230 = 21 # Released 2018-01-23 Mavic Air
WM335 = 22 # Released 2018-05-08 Phantom 4 Pro V2
WM240 = 23 # Released 2018-08-23 Mavic 2 Pro/Zoom
WM245 = 24 # Released 2018-10-29 Mavic 2 Enterprise
WM246 = 25 # Released 2018-12-20 Mavic 2 Enterprise Dual
WM160 = 26 # Released 2019-10-30 Mavic Mini
WM231 = 27 # Released 2020-04-28 Mavic Air 2
WM232 = 28 # Released 2021-04-15 (MAVIC) AIR 2S
WM260 = 29 # Released 2021-11-05 (MAVIC) 3
Mavic Air 2: amzn.to/3qG9FOv
Replacement Gimbal: amzn.to/3eJHqZP
Precision Repair Kit: amzn.to/3mPKaJu
Join this channel to get access to perks:
/ @joemartinmvc
Like the content? Please support the channel or show your appreciation with a coffee: ko-fi.com/joemartinmvc Хобби
Joe Martin, thank you so much for your tutorial, it helped me a lot with my DJI Mini 2.
As a contribution to your video:
The Mini 2 code is the same as the Mavic Mini (WM160).
In order for the COM port to remain open, it is necessary to install DJI Assistant 2, wait for the drone to be recognized by the software, and then close DJI Assistant 2. After that, the COM port will remain open.
Thank you for the information, that should help a lot of Mini and Mini2 owners.
Thanks man! Useful information!
Joe and Greg, your information working perfectly. Now I just have the alert codes 40011 and 40021, but I can fly and all works. Do you know how to clear the alert codes? Somewhere I read about a Dji special software, but I didn't find it... Again, thanks for help!
@@eliezersqr Unfortunately that special DJI software is one that authorized repair centers have and requires a connection to their servers to use. We haven't been able to get a copy of it that can be used by us yet.
@@JoeMartinMVC :( sad... Greetings from Brazil! Nice channel, thanks man!
I am working in the DRC Congo, and had to replace my gimbal, installed it, and it needed calibration, I thought I was going to have to take it back to the states and hire someone to calibrate it for me, but I watched your video, and was able to calibrate the gimbal, thank you so much for the time and effort to put this video up, it saved me a ton!
Thank you Joe Martin:) Your presentation was the best and easiest to follow after hours trying others!!! My Camera/ Gimbal is now centered and working great:)
I'm glad to hear so!
God bless you, it's 1 in the morning right now and I was about to give up my calibration efforts when I found this video. My gimble is now straighter than I am. Thanks a million!
Bro this is the 4th video I've run through, and it's the only one that worked. Thank you so much for your clarity and help!
Thank you so much!! I followed another set or instructions on YT and it didn't work. Your instructions were very easy to follow.
Joe Martin, thank you so much for your tutorial, it helped me a lot with my DJI Air 2S!
What is the code for air2s ? Same as air2 ?
did you got any error when running?
An amazing step by step … well explained … you killed it … I appreciate the tutorial. Great job
Thank you!
Amazing video, thanks for this, i broke my grandpa's drone and as it turns out it was thankfully only the gimbal assembly, the camera was working normally, and they charge a lot of money just replacing the parts, i could only afford the gimbal, not both, you saved me
Excelente amigo! lo probe hoy en mi DJI AIR 2S y de maravillas, muy bien explicado el video! recomendado 100%
Saludos desde Paraguay
what code for air 2s?
@@wilson24p WM232 = 28 # Released 2021-04-15 (MAVIC) AIR 2S
😃Thanks a lot Joe!!!!!! You saved my drone!!!! 🙏God bless you 😉
repaired mavic 2 pro camera
thank you for your great video
You're amazing.. I've been watching lots of videos how to get this to work. I nearly gave up until I found this your video. Now my mavic air 2 is fixed after following your steps. Thanks for this. I'm a subscriber
I'm glad I was able to help!
Bro! acabas de hacer a un hombre muy feliz! Muchas gracias por el tutorial, héroe sin capa!
Man I've watched all these other videos and they seem to go so fast to everything and leave out steps I think they do it perfectly just to screw you up in the process of fixing your camera on your drone I watch your video one time and I've already made it to the whole process I would like to give you a big shout out and thank you so much for making shit simple
Thank you!
It worked, finally a good video 🎉
You're a master!! Great Video. Thanks
Thank you!
Very nice tutorial... straight forward.
Thank you!
Thank you very much sir, this work perfectly...i knew it had to have a reason the gimble was spinning like crazy...lol
Glad I was able to help out!
thanks, this hack saved my life
This was perfect. After following your directions I got error 40011 I cleared it by recalibrateing on my smart controller 👍
Oh? That REALLY tempts me to pick one up to see how it clears the codes. Just a lot of money to do that.
I have also got this error 40011 after doing this and can't to clear it with calibrating with smart controller. How are you done that?
maybe he had the OG gimbal to his drone that he was fixing
Thank you for making this tutorial!! I have zero computer skills and yet I was still able to follow along. Worked like a charm!! Thanks again
I'm glad I was able to help out!
Thanks, works fine in a mac m1 with parallels, Thanks a lot!
hey i have a mac and in depserpate need of help with this, could you reply with your contact details so I can ask you a few questions? Thanks
Hey, thanks for the video. My story is that I crashed my DJI Air 2s after which I had to replace the Gimbal and left rear leg. The repair was successful but the infamous 40011 error remained. I flew the drone for new minutes but there were some funky movements by the drone and an IMU error showed up and I immediately landed the drone. I tried calibrating the IMU but it kept getting stuck at 6% and then it throws a calibration error. Right now the errors on the drone are Gimbal calibration error 40011, IMU not calibrated. Calibrate IMU 30055, IMU calibration incomplete. Recalibrate IMU 30056. I have replaced the IMU, GPS module and GPS flex cable but the issue remains. From your comment, I feel as if the error is software related. Can you give some guidance please?
Hello. Thanx for the video.
I’m wondering what code I should use for DJI air 2s (not mavic)?
/ André
excellent work bro thanks for the work
Thank you!
Thanks a lot!!!! my Mavic Mini is back to life!!!!! Using litchi I dont have any alert!
That's wonderful!
thank you , legend ! - mavic air 2
Hi there, my drone is mini 3 pro. ive just changed the gimbal. after closing the camera keep lookimg right. The mini 3 pro have calibration direct on control. is not the same? may i have to do your instruction or change the camera?
what to do if python doesnt move passed the first calibration step? the gimbal isnt moving and python wont update with a new imput line
thanxx for that great explanation ..... but im getting that error (Error: could not open port 'COM3': PermissionError(13, 'Access is denied.', None, 5) ) any idea how to solve it ??
Perfekt. I got a mini 1 im gonna repair well not mine. But i gotta change the gimbal. So that might be really usefull
By any chance...do you have the code for de mavic mini 3 pro?
Hi, thank you for your tutorial. I got a question and need your help. I do everything the same. But when I paste the second command, nothing happens with my mavic air 2.
Can anyone please confirm that they've calibrated a mini 2?
I've fitted a new gimbal and I can't get it to work at all. Have kept\transplanted the original camera
To avoid all of the error codes you can swap the camera sensor from the old gimbal to the new one (it's 2 small screws on the sides of the camera). You will still have a calibration error (the gimbal will auto calibrate with no issue) but the other errors will still show up as the motors are paired with the drone but you won't have the imu errors. If you figure out how to get rid of the calibration error that would be fantastic but this is better than having all of them. I don't think I have tried the python calibration after the sensor swap but that may clear it, but I know for sure that the imu codes won't show up with the original camera. Obviously if this isn't possible then the only current option is to send it to dji and have them clear the codes.
Hey Kevin I crashed my DJI Air 2s after which I had to replace the Gimbal and left rear leg. The repair was successful but the infamous 40011 error remained. I flew the drone for new minutes but there were some funky movements by the drone and IMU error showed up and I immediately landed the drone. I tried calibrating the IMU but it kept getting stuck at 6% and then it throws calibration error. Right now the errors on the drone are Gimbal calibration error 40011, IMU not calibrated. Calibrate IMU 30055, IMU calibration incomplete. Recalibrate IMU 30056. I have replaced the IMU, GPS module and GPS flex cable but the issue remains. From your comment, I feel as if the error is software related. Can you give some guidance please.
Do you have a video for this replacement?
Will that work on the mavic air 2???
@@wadrian706 Yes this will work on the air2 but not the 2S
@umairhafeez sorry for the delayed response on this but you can calibrate the gimbal with python and then should do an imu calibration and firmware refresh. The error codes will not go away unfortunately
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
Appreciate it! Helped a ton. Subscribed. Looking for to seeing how to fix the error (that you get after following this process). Thanks!
Thank you! I know how to fix it, but it requires a tool that only DJI has that requires server authentication to be able to use it, so I'm trying to see if there's any way or groups that have found a way to bypass that. Hopefully we get something soon.
@@JoeMartinMVC olá conseguiu resolver esse problema? agradeço muito a ajuda
@@FrizoDrone Sadly, still no luck on the tool becoming usable by us. However I have heard reports of the Smart Controller being able to clear the errors. I want to try it, but don't have the funds to buy one just to see if it works.
thanks for dedicated explaining! my air 2S get your first command gimbal moved and turning around, but got message:Unrecognized response to calibration command JointCoarse request. second command no response got same messages. please advise
The Unrecognized Response to Calibration Command error is fine, it's always given because we're not connected to the IMU since we don't have the tools to do that.
As for the second command not working, that one is a bit unusual.
Is the gimbal still off center? If it's centered now you can actually fly without the second command being run.
how do you know if your dji mini 2 needs this my gimbal says its stuck but moves fine
I have the dji mini 3 pro should i use the mavic mini code?
Mini 2 I have the first step working however the second step doesn’t initiate. Any thoughts?
Hi ! I have a probleme, the first command works perfectly, but the second do nothing... Auto calibration on the app is stucked a 0%, any idea ? Thanks a lot !
Having trouble with device manager and noting the port - in your video it shows COM 6. I am getting standard serial over bluetooth link COM 3 and a similar one below it standard serial over bluetooth link COM 4. Thoughts?
Install DJI Assistant 2 to manually install the Mavic drivers, then plug the drone back in and turn it on.
www.dji.com/mobile/downloads/softwares/assistant-dji-2
If the URL doesn’t work, do a google search for DJI Assistant 2 and it should be the first or second link that comes up.
Hi, I got a problem , during the calibration my gimbal turns 180 degree into the drone body and every start of the drone it keeps doing that (Mavic 2 pro)
your video very helpful. Thank you so much
Thank you.
boss, dji mini 2 remote controller not working, not open not charging, any solution?
@@akikulislam5261 Sounds like your main logic board is bad if nothing is working and it's not charging.
Thanks for the video. I have a Fimi X8 Mini, after a collision there is a need to change the gimbal and this procedure is also necessary, do you have the code for the X8 Mini?
I can't say I've been able to test this with a Fimi X8 Mini, but I would imagine it would not work if it's not running DJIs software, as the python script is based off of DJIs software and how they calibrate their gimbal.
Hi! Thank you for tutorial. May I ask you does it work with mini 3 pro? And what code for this drone should I use? Thank you
Very useful information, many thanks . I hit the like and subscribe already
Thank you!
Hi, is it works also with Mini 2? My gimbal stuck, and I don't know what to do :(
Hi, thanks so much for the video ! Sometimes, on the 2 series line of DJI drones, after a gimbal replacement, it shows "Gimbal Unable to Connect (Error 40012) and Gimbal IMU data error (Error 40021)". Do you know how to clear that error ?
I wish I did, but we don't have access to the tools to clear those codes, it requires a DJI tool that connects to their servers.
Would you need to do this tho if im using my original camera and back of the camera?
Followed all steps. Got to the point where COM3 would only appear for a few seconds and then the drone would disconnect. COM3 only stays when I open DJI assistant 2. Upon starting the calibration on command prompt, it will say access denied. However, I close Dji assistant 2, COM 3 stays, Unrecognized response to calibration… appears, but drone does nothing at all.
When you're opening your command prompt are you running it as administrator, or just opening it regularly? Normally it only gives "Access Denied" if it's a regular permission command prompt and not an Administrator Command Prompt.
Del dji mini 3 pro cual seria el codigo
Does work with Apple air Mac’s ?I can’t seem to be getting the same results and information as you do
Merci, ça marche ! au top
Thanks for this tutorial. Crashed my Air 2S a few weeks ago. I'm trying to diagnose what's wrong with my gimbal since I have a video feed but I cannot calibrate or move the gimbal with the remote. The first command works for me. But the gimbal is unresponsive to LinearHall. I suppose I need to do a teardown and find out what hardware is broken. At first glance the ribbons look OK. Any suggestions?
Hi, I'm experiencing the same issue on an Air 2S. Did you find a solution for this problem? Thanks.
@@triadretailconstruction558 I tried, but ended up sending mine back to DJI for repair. Money well spent. They fixed and sent it back.
Thank you so much
Hi i did everything but I couldn't find my mini 3 pro code neither in Google search so how do we get past this issue kindly reply as am stuck here with cross eye drone 😢 appetite the tutorial session it was much helpful
i love you!!!! thank you so much!!!!!!
Haha, you're welcome!
Thanks for the clear explanation,however my gimbal on phantom 4 just doesn't move at all after first JointCoarse command, any ideas.
It says it will take 15 seconds, like in yours.
Then it has a line saying, see the progress on a mobile device,exiting
Not sure where I'm going wrong
From what I'm able to discern with the Phantom 3 and 4 is that all monitoring goes exclusively through the mobile app. From what I'm able to read from the script:
Info: The Gimbal will average its readings without movement, then it will move Yaw arm through its boundary positions. "
"Then it will do limited pitch movement. End of calibration will be marked by two beeps from gimbal motors. It will take around 15 seconds."
At that point you should be able to see the process on the mobile app and confirm if it works through there.
Unfortunately I don't have a Phantom 3 or 4 to test with to see how that process looks at that point.
just Search ( bickflash tech) on RUclips, drop a comment for him, he'll assist you
@@JoeMartinMVC I am having a problem with my Phantom 4 Pro WM331 When I run the first command it says Error: no response on calibration command JointCoarse request.
Need you help please I’m missing a step got to the black screen. It’s not reading the com
It also works on the DJI Mini 3 PRO?
It work for a dji mini 3 pro?
I must be doing something wrong since the 5 different computer I tried wont show a Com port after following all the steps.
JoeMarinMVC!Like it! very amazing done, ))
Thank you!
What should I do, as I know it is on com 8 but it's not recognising it on com 8 when pasting the code. Say cant open port Should i use Zadig?
just Search ( bickflash tech) on RUclips, drop a comment for him, he'll assist you
Any Ideas on mavic mini 3 or mavic mini 4 codes / ability?
Does this work on the autel evo nano+ my gimbal got replaced and I'm hoping this will work as a fix
I would assume that it would not as the python script calls for data from the DJI drones, such as their model number, as well as sends information to the drone based on how DJI has programmed them.
Thank you for the helpful video. I’m having trouble and can’t find anywhere where this is addressed. I can run the first JointCoarse command just fine and the drone will run through its motions. But when I run the second LinearHall command the drone does not respond. I’ve tried a few things others have suggested like turning the drone off & on between commands but still am having this issue. Any ideas that might could help?
I can't say I have much to offer there if it's not responding to the command unfortunately. How far off is the gimbal still after the JointCoarse command?
Hi Alex, I got the same problem, did you find any solution?
@@chouchenwejden4499 Hey mate, same issue. Did you guys find a solution?
I've got the same issue on the Air 2S
I have the same problem on the mini 2
Hey!
Where do I find the codes for the Mavic 2 enterprise camera calibration..?
just Search ( bickflash tech) on RUclips, drop a comment for him, he'll assist you.
Thank youuu maaan !!
Hi.For me, the drone is detected in the USB port.
How should I write the code? I would be happy if you help me.
I got a error message saying "Error: could not open port 'com3': PermissionError(13, 'Access is denied.', None, 5)" Please Help!
Nice video download everything step bye step but when In comd prompt I get no such file.am I doing something wrong? Any help I’d appreciate it
Normally "No Such File" would mean that you're not in the directory where the file you're trying to run is. Are you in the C:/DJI folder in command prompt?
I can also help out via Discord if you have that: discord.gg/cJhnKg7h
The 1st command works, the 2nd command says it will take about 30 seconds ect but it doesn’t move or do anything. It says unrecognized response. My gimble is still tilted to the left a little after doing the first command. I’m going on vacation in 2 weeks and I need my drone fixed
Can you use this for callibrating DJI mini 3?
I dont have USB serial Device in my Device manager. What to do then?
I have Mavic Mini and I see my drone only as Mass Storage Device
The Mini 2 code is the same as the Mavic Mini (WM160).
In order for the COM port to remain open, it is necessary to install DJI Assistant 2, wait for the drone to be recognized by the software, and then close DJI Assistant 2. After that, the COM port will remain open.
Hi, I've tried everything 3 times. I keep getting the message below. Any suggestions would be greatly appreciated.
python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from settings
> Manage App Execution Aliases
same here :/
I'm stuck in translating the comm port section and command prompts in terminal. Making sure I translate this correctly for Mac.
say one has a crooked gimbal when flying sideways...this should fix it to keep horizon straight?
then... does Code:40011 still come up if its the same gimbal?
If the gimbal and ribbon cable are the same you shouldn’t get 40011 since it’s still paired to the original logic board.
@@JoeMartinMVC I eventually got it to work and it did...sort of. Not really still had crooked horizon.... AND I still got the 40011 error sadly. thanks for your help off to DJI repair it goes
i have the mini 2 but when i type in the joint coarse request it gives me this error No response on calibration command JointCoarse request. And the com port im not sure which one it is because its still there even when i unplug the drone. any helps?
Hello! Thanks for the video, I’ve been able to get through every step successfully for my mavic air 2 except the last command prompt. After the first one finishes and the second one is entered my drone does nothing. Gimble is still setting at an angle horizontally and most of the time the camera points downward. The camera moves on all three axis during start up. Thanks for your help!
Is there any error message that comes up when you try to run the second command? Besides the standard error that pops up for both commands.
@@JoeMartinMVC I have the same problem and no only the command not recognized error that happens on both commands
Hi did you ever solve the issue?
@@JoeMartinMVC I got the same problem, after completing the JoinCoarse command, the LinearHall doesn't
do any effect on the gimbal even so a message saying the gimbal would took 30s to calibrate. I didn't get any special error beside the standard one. PLEASE HELP.
@@JoeMartinMVCi have the same problem with my dji mini got anybody a solution?
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?
You can not
thank you for this but how to do this on mini2 pls
Hola sirve para sacar el error 40011 en un dji mini 3? Gracias
My pc can't find the com port for the drone.
How can i fix it?
Thank you sir❤❤❤❤❤
Always glad to help!
after typed in code to command line i don’t think wm231 is in file i downloaded think need download another dji file
hello. I just changed my gimble for the Mavic 3. so does this instruction work for the Mavic 3 gimble calibration too?
It should work for the Mavic 3 using the code WM260.
@@JoeMartinMVC can I have your email. so that I can get in touch with you?
just Search ( bickflash tech) on RUclips, drop a comment for him, he'll assist you.
Hi. How can I see the port number that I have to write in the Command Promt?
It should show up in Device Manager.
ruclips.net/video/ePCE-JgqSmE/видео.html
3:46-ish starts the explanation of finding the COM port
hey! i have the camera calibrate error and wont let me record footage from the drone either now only from the goggles in my dji fpv drone after i changed the gimble to another onei looked at that python way to calibrate the gimble but it doesnt say it supports my dji fpv drone:( does anyone have any ideo of what i can do to fix it please? its so annoying as i use it for capturing footage:(
So on my computer my drone is coming up as a USB G drive. how do i type that in the command prompt?
Dude! thanks!!!
im able to fixed na port issue and now stucked in this
Error: could not open port 'com3': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)
i have the same error. Can someone please help us.....?
Does this work for the mini 3 pro?
What are the chances I can get the walk through for a MAC?? I do not know a ton about code so when it comes to script writing, I'm not sure how to convert the steps from WIN to MAC.
I wish I could make one for you, however I don't have a Mac to try it out on and see what's needed to get it working.
I cant get all the way to the cmd lines and it says that there is not file folder for Python. can you assist
What is the code of a DJI spark?
Hi, thanks, for the tut, is the Air2S code same as Air2 as its not listed anywhere ?
Its ok, found it its WM232
My PC says Python not found ? any ideas why ? as it installed correctly