Gimbal Motors


Since firmware v0.8.4 and studio v0.3.4, Tinymovr can drive gimbal-style brushless motors.

What is a gimbal motor anyway?

A gimbal motor is a 3-phase brushless motor whose stator is wound with many turns, and as such exhibits much larger resistance and inductance compared to the high-current brushless motors used to provide lift to drones, rc planes etc. Gimbal motors are used in… well… camera gimbals mainly, because they offer smooth motion and require small currents to produce torque compared to the ‘regular’ brushless motors. This in turn can help minimize the size of the motor driver and associated wires etc. Note that we refer to reduction of current through the stator windings and not the power converted to heat as a result of Joule heating of stator windings, which is still the same for the same amount of torque.

To achieve closed-loop current control, motor controllers such as Tinymovr use current measurement resistors in each phase (usually in series with the low-side mosfet) to estimate the current in the motor windings. These resistors have low resistance (in the range of a few milliOhms at most), to limit power dissipation in the resistor and allow operation in wide current ranges (up to several tens of Amps, even hundreds). The drawback is that current measurements exhibit noise of 100s of mA, and as such do not offer accurate measurements of small currents.

The gimbal mode of Tinymovr disables closed-loop current control. The commanded currents are converted to voltages using basic resistance and inductance formulas.

Enabling Gimbal Mode


  • Although tested, gimbal mode is still experimental. Please ensure all safety precautions, and use at your own risk!

  • DO NOT perform calibration on a gimbal motor without setting gimbal mode first! There is a risk of damaging the motor and board.

  • Using arbitrary resistance and inductance settings can damage your motor, as can using gimbal mode with a high-current motor.

To enable gimbal mode, set the motor config as follows:

>>>tm1.set_motor_config(1, motor_resistance, motor_inductance)

Please note that by default the motor_resistance field is in Milliohms and the motor_inductance field is in Microhenries.


>>>tmx.set_motor_config(1, 5000, 2000)

or, using the units interface:

>>>tmx.set_motor_config(1, 0.005 * Ohm, 0.002 * Henry)

Control that the settings are correct:

{"flags": 2, "R": 200, "pole_pairs": 11, "L": 100}

You can now calibrate the motor. Calibration will bypass resistance and inductance measurement, and will only calculate pole pairs, offset and direction. After calibration you should see a ‘3’ in the ‘flags’ field of motor_config:

{"flags": 3, "R": 200, "pole_pairs": 11, "L": 100}

Controlling the Motor

Gimbal mode has identical functionality as the regular mode. Position, velocity and current control modes are supported. Note that you may have to tune the control gains to achieve optimal performance.