Pixhawk arms, but the motors don't spin
Pixhawk arms but the motors don't spin? Use the motor output value to tell apart the first 2 seconds, the MOT_SPIN_ARM value and the 10-second DISARM timer, one by one.
You armed from the transmitter. Mission Planner's HUD says ARMED, and the Messages tab shows the Arming motors line. The propellers, however, don't move, and a little later the drone disarms on its own.
Three different causes produce the same picture: the autopilot isn't sending the motors an idle spin command, the command goes out but the ESC doesn't read it as a spin command, or the wait timer has run out. By looking at the motor output value, you can tell which one it is in a minute.
Why the motors don't spin right after you arm
For the first 2 seconds after arming, ArduCopter deliberately sends the motors the lowest value. This delay isn't in the parameter list; it's a safety wait built into the firmware. When the wait ends, the motors ramp up to idle speed in less than half a second.
MOT_SPIN_ARM sets the idle speed. In ArduCopter 4.7.2 its default is 0.10. With MOT_PWM_MIN at 1000 and MOT_PWM_MAX at 2000, that means a 1100 µs signal to the ESC. If MOT_SPIN_ARM is 0, the output stays at 1000 and the motor doesn't spin at all while armed.
The graph shows two settings side by side: look at the point where the blue line rises to 1100 right after the 2nd second, and at how the red dashed line stays at 1000 from start to finish.
Motor output second by second after arming
The DISARM that comes ten seconds later
If the throttle stick stays at the bottom while the drone is on the ground, the autopilot starts a timer. When the timer reaches DISARM_DELAY seconds, the motors disarm. The default value is 10. The drop at second 10 in the graph is this timer, not a fault.
Raising the throttle stick or taking off resets the timer. If you set DISARM_DELAY to 0, automatic disarm is turned off completely, and if an armed drone is forgotten on the ground, nothing is left to shut it down. So don't set the value to zero.
An example from the field
On the competition field, the pilot arms the drone early while waiting for the judge's takeoff clearance. The propellers start spinning slowly after 2 seconds, the throttle stays at the bottom, and at the tenth second the drone disarms.
If the pilot takes this for a fault and starts changing parameters, they waste their turn. When clearance comes, arming again is enough; the motors again wait 2 seconds and start spinning.
The most common mistake: looking for the post-arm problem in the ESC because the motors spin in the Motor Test tab. Motor Test writes its own throttle percentage straight to the output, while idle spin after arming is set by MOT_SPIN_ARM. A motor that spins in Motor Test still stays still when armed if MOT_SPIN_ARM is 0.
Watch the output value from Python
The ch1out value on Mission Planner's Status tab is enough. You can also read the same information with Python code on a connected computer: the code catches the autopilot's Arming motors message and prints the output of all four motors every half second.
Put the port the Pixhawk is connected to on the BAGLANTI line. After running the code, arm from the transmitter.
from pymavlink import mavutil
import time
BAGLANTI = "COM5" # Linux: "/dev/ttyACM0"
m = mavutil.mavlink_connection(BAGLANTI, baud=115200)
m.wait_heartbeat()
m.mav.request_data_stream_send(m.target_system, m.target_component,
mavutil.mavlink.MAV_DATA_STREAM_ALL, 2, 1)
armed = False
t_arm = 0.0
while True:
msg = m.recv_match(type=["SERVO_OUTPUT_RAW", "STATUSTEXT"], blocking=True)
simdi = time.time()
if msg.get_type() == "STATUSTEXT":
if msg.text == "Arming motors":
armed, t_arm = True, simdi
elif msg.text == "Disarming motors":
armed = False
print(f"{simdi - t_arm:4.1f} sn MESAJ: {msg.text}")
elif armed:
print(f"{simdi - t_arm:4.1f} sn M1={msg.servo1_raw} M2={msg.servo2_raw} "
f"M3={msg.servo3_raw} M4={msg.servo4_raw}")If you arm with the default settings, you'll see this in the terminal:
0.0 sn MESAJ: Arming motors
0.5 sn M1=1000 M2=1000 M3=1000 M4=1000
1.5 sn M1=1000 M2=1000 M3=1000 M4=1000
2.0 sn M1=1000 M2=1000 M3=1000 M4=1000
2.5 sn M1=1100 M2=1100 M3=1100 M4=1100
3.0 sn M1=1100 M2=1100 M3=1100 M4=1100
...
9.5 sn M1=1100 M2=1100 M3=1100 M4=1100
9.9 sn MESAJ: Disarming motorsIf you set MOT_SPIN_ARM to 0 (default 0.10), the lines stay at M1=1000 from start to finish, and around the 10th second Disarming motors appears again.
What to do
- If the output stays at 1000: in Full Parameter List, enter MOT_SPIN_ARM = 0.10 and press Write Params. You'll see: 2 seconds after arming, ch1out becomes 1100 and the propellers spin slowly. If not: find the value for your own motors with the Setting Motor Range method: in Motor Test, take the percentage at which the motor starts spinning, add 2 and divide by 100.
- If the output is 1100 but the motor is silent: if you use a PWM ESC, do the ESC calibration. You'll see: after arming, the motors spin at idle. If not: move on to the ESC protocol.
- If you plugged a DShot ESC into the Pixhawk's MAIN OUT and BRD_IO_DSHOT isn't in your parameter list: move the ESCs to AUX OUT and assign the motors to those outputs. Details on the DShot ESC page. You'll see: in Motor Test, each motor spins in turn. If not: check the ESC's battery cable and measure its voltage.
- If the motors spin but disarm after 10 seconds: arm when you're ready, or raise the throttle off the bottom. You'll see: the timer resets the moment the throttle comes up. If not: read the line right before DISARM in Messages. If there's a failsafe message, the cause is something else.
Error Messages and Their Meanings
Arming motors
The ARM command was accepted. This line doesn't say the motors are spinning; it only says the autopilot has entered the armed state.
Disarming motors
The autopilot disarmed. If it comes about 10 seconds after arming, with the throttle at the bottom and the drone on the ground, the cause is the DISARM_DELAY timer.
PreArm: Motors: MOT_SPIN_ARM > MOT_SPIN_MIN
If you raised MOT_SPIN_ARM without touching MOT_SPIN_MIN, this appears and arming isn't allowed. Set MOT_SPIN_MIN at least 0.03 above MOT_SPIN_ARM.
PreArm: Motors: no SERVOx_FUNCTION set to Motor1
No output is assigned to motor 1. Set the SERVOn_FUNCTION parameter of the output the motor is plugged into to Motor1.
PreArm: Hardware safety switch
The board's safety switch is still in the safe position. Hold the button down until its light stays solid.
More in the course
Motor outputs, ESC calibration and pre-arm checks are covered in order in the Drone Basics: From Sensors to Flight course. The new lesson in the Troubleshooting section traces the path from ARM to DISARM step by step in the source code, and also shows its signature in the flight log and the differences between boards.
Was this article helpful?
Learn this topic from start to finish
Season plan: all six courses for 9 months, ₺790 a month. ₺390 a month for high school and university students, ₺351 the first month with your member code. You can stop in any month you like. Start the Season plan · I'm a student