DJI Mavic, Air and Mini Drones
Friendly, Helpful & Knowledgeable Community
Join Us Now

I treed my Classic.

Army Vet

Well-Known Member
Joined
Jul 19, 2024
Messages
75
Reactions
118
Age
77
Location
Aiken, SC
I was flying at night on my home property. Trying to get some sun down shots. and some long distance city lights.

Anyway, long story short. Got it in a tree. In over 20 years of droning. Only my second time. Got it down, unfortunately the hard way and it hit the dirt from about 25 feet.

Turns on. Camera works. Get error message "Gimbal stuck" and does not do the "dance" Camera does swivel on its mount.

I wont try to fly it until I change the props. In the mean time. Any thoughts on what to look for on the gimbal. I am good with electronics and such. My dexterity does suck a bit at my age...UGHH

Thanks
Bill
 
Sorry to hear that; yeah it suck especially with DJI being on suspension now; hard to get it fixed.
 
  • Like
Reactions: Army Vet
Thanks for the reply.
Upon closer examination. One of the ;little clips that holds the Gimbal to the body is broken off. So that whole thing i wobbling.
Are there spare parts available anywhere?
 
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
yes! and after replacement of gimbal assembly it needs special calibration tools for re alignment of the gimbal level
 
You will need to calibrate the new gimbal using python and a few other "tools" just watch a video on it on youtube and you will see. its confusing at first BUT youll get it.
 
Try having ChatGPT write the Python code for you, it actually works pretty good.

I just asked it to write a calibration tool for replacing a gimbal, and here’s where it started:

(Example Only - Has not been tested)

  • USB-C Connection (Windows)
    • Auto-detects available serial ports.
    • Connects to the first detected port.
    • Sends pitch commands over serial if USB-C is used.
  • Wi-Fi Connection Fallback
    • Works with djitellopy if you prefer Wi-Fi.
  • Pitch & Roll Calibration
    • Pitch adjusts physical gimbal via USB-C or Wi-Fi.
    • Roll is visual only.
  • Motor Test
    • Sweeps pitch range to verify smooth movement.
  • Save Calibration
    • Stores zero_pitch and zero_roll in gimbal_calibration.json.


(see attached " gimbal_calibration_gui_usb .txt " file - it must be renamed to " gimbal_calibration_gui_usb.py " in order to be able to run as a Python file)

⚙️ Setup​


  1. Install required packages using command terminal mode: Type " pip install djitellopy opencv-python pillow " press Enter, then type " pip install pyserial opencv-python pillow " and press Enter.
  2. Connect to the drone using either USC-C port or Wi-fi
  3. Run the program: using terminal mode: python gimbal_calibration_gui_full.py

🧭 How to Use​


FunctionAction
Tilt Up / DownAdjust camera tilt to level the horizon
Roll Left / RightSimulate roll correction (for reference)
Save CalibrationStore both pitch & roll offsets in gimbal_calibration.json
Motor TestRuns full gimbal motion sweep to check motor smoothness & noise
Green Horizon LineVisual aid for leveling camera view


📁

Output Example​

1760640494401.png

⚠️ Notes​

  • DJI SDKs don’t provide direct roll control on most Mavic-class consumer drones; that part is simulated so you can visually level and record the offset for documentation.
  • The motor test uses pitch movement only (the safest axis exposed by SDK).
  • For final firmware-level calibration, you’ll still need to use DJI Assistant 2 — this Python tool is for mechanical alignment and verification after gimbal replacement.




 

Attachments

Last edited:
  • Like
Reactions: Cafguy
Thank you Sir, Appreciate the effort.
Have a lot of projects in my world. Not sure when I will get around to it.

But thanks again.
Bill
 
  • Like
Reactions: AMann

DJI Drone Deals

New Threads

Forum statistics

Threads
138,931
Messages
1,642,564
Members
167,269
Latest member
redekt
Want to Remove this Ad? Simply login or create a free account