Bird
Raised Fist0
Drone Programmingprogramming~10 mins

Motor and propeller physics basics in Drone Programming - Step-by-Step Execution

Choose your learning style10 modes available
Concept Flow - Motor and propeller physics basics
Power supplied to motor
↓
Motor converts electrical energy to mechanical torque
↓
Torque applied to propeller shaft
↓
Propeller spins, pushing air downwards
↓
Thrust generated lifting the drone
↓
Drone lifts or moves based on thrust
This flow shows how electrical power turns into thrust via motor torque and propeller spinning.
Execution Sample
Drone Programming
power = 100  # watts
motor_efficiency = 0.85
rpm = 5000  # Assumed motor speed
propeller_constant = 0.5  # Given constant for propeller
torque = power * motor_efficiency / rpm
thrust = torque * propeller_constant
print(f"Thrust: {thrust} N")
Calculates thrust from power, motor efficiency, rpm, and propeller constant.
Execution Table
StepVariableValueCalculation/ActionResult
1power100 WGiven electrical power input100
2motor_efficiency0.85Given motor efficiency0.85
3rpm5000Assumed motor speed5000
4torque?Calculate torque = power * efficiency / rpm0.017 Nm
5propeller_constant0.5Given constant for propeller0.5
6thrust?Calculate thrust = torque * propeller_constant0.0085 N
7printOutput thrust valueThrust: 0.0085 N
8ENDCalculation completeExecution stops
💡 All calculations done, thrust output printed, program ends.
Variable Tracker
VariableStartAfter Step 4After Step 6Final
power100100100100
motor_efficiency0.850.850.850.85
rpm5000500050005000
torqueundefined0.0170.0170.017
propeller_constant0.50.50.50.5
thrustundefinedundefined0.00850.0085
Key Moments - 2 Insights
Why does torque decrease when rpm increases even if power stays the same?
Because torque = power * efficiency / rpm, increasing rpm divides the same power over more rotations, reducing torque (see step 4 in execution_table).
Why is thrust so small compared to power input?
Thrust depends on torque and propeller constant, which are small values here; this shows how mechanical factors limit thrust output (see step 6).
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table at step 4, what is the torque value calculated?
A5000 Nm
B0.85 Nm
C0.017 Nm
D100 Nm
💡 Hint
Check the 'Result' column at step 4 in execution_table.
At which step is the thrust value first calculated?
AStep 4
BStep 6
CStep 2
DStep 7
💡 Hint
Look for the calculation of thrust in execution_table rows.
If motor_efficiency increased to 0.9, how would torque at step 4 change?
ATorque would increase
BTorque would decrease
CTorque would stay the same
DTorque would become zero
💡 Hint
Torque depends directly on motor_efficiency as shown in step 4 calculation.
Concept Snapshot
Motor and propeller physics basics:
- Power input (watts) drives motor
- Motor converts power to torque: torque = power * efficiency / rpm
- Torque spins propeller
- Propeller constant relates torque to thrust
- Thrust lifts drone
- Efficiency and rpm affect torque and thrust output
Full Transcript
This lesson shows how electrical power supplied to a drone motor converts into mechanical torque, which spins the propeller. The spinning propeller pushes air downwards, creating thrust that lifts the drone. We calculate torque by dividing power times motor efficiency by rpm. Then thrust is torque times a propeller constant. The execution table traces each step: starting with power and efficiency, calculating torque, then thrust, and finally printing the thrust value. Variables like torque and thrust update as calculations proceed. Key points include understanding why torque decreases when rpm increases and why thrust is smaller than power input. The visual quiz tests understanding of torque calculation, thrust calculation step, and effect of efficiency on torque. This quick reference summarizes the physics and formulas involved in motor and propeller basics for drones.

Practice

(1/5)
1. Which factor directly increases the thrust generated by a drone's propeller?
easy
A. Lowering the drone's weight
B. Increasing the motor speed (rpm)
C. Reducing the battery voltage
D. Decreasing the propeller size

Solution

  1. Step 1: Understand thrust formula basics

    Thrust depends on the square of the motor speed (rpm) and the propeller area.
  2. Step 2: Identify which factor increases thrust

    Increasing rpm increases thrust because thrust ∝ rpm² x propeller area.
  3. Final Answer:

    Increasing the motor speed (rpm) -> Option B
  4. Quick Check:

    Thrust ∝ rpm² [OK]
Hint: Thrust grows with rpm squared, so speed up motor [OK]
Common Mistakes:
  • Thinking smaller propellers increase thrust
  • Confusing power with thrust
  • Ignoring rpm's squared effect
2. Which of the following is the correct Python syntax to calculate power given rpm and propeller_area variables?
easy
A. power = rpm ** 2 + propeller_area
B. power = rpm * 3 * propeller_area
C. power = rpm ^ 3 * propeller_area
D. power = rpm ** 3 * propeller_area

Solution

  1. Step 1: Recall Python exponent syntax

    Python uses ** for exponentiation, so rpm cubed is rpm ** 3.
  2. Step 2: Match formula for power

    Power depends on rpm cubed times propeller area, so multiply rpm ** 3 by propeller_area.
  3. Final Answer:

    power = rpm ** 3 * propeller_area -> Option D
  4. Quick Check:

    Use ** for power, not ^ or *3 [OK]
Hint: Use ** for powers in Python, not ^ or * number [OK]
Common Mistakes:
  • Using ^ instead of ** for exponent
  • Multiplying rpm by 3 instead of cubing
  • Adding instead of multiplying
3. What is the output of this Python code snippet?
rpm = 1000
propeller_area = 0.05
thrust = rpm ** 2 * propeller_area
print(round(thrust, 1))
medium
A. 50000.0
B. 50000
C. 50000.00
D. 50.0

Solution

  1. Step 1: Calculate rpm squared

    rpm ** 2 = 1000 * 1000 = 1,000,000.
  2. Step 2: Multiply by propeller_area

    1,000,000 * 0.05 = 50,000.0.
  3. Step 3: Check print rounding

    round(50000.0, 1) = 50000.0 and print outputs 50000.0.
  4. Final Answer:

    50000.0 -> Option A
  5. Quick Check:

    Thrust = 1000² x 0.05 = 50000.0 [OK]
Hint: Square rpm, multiply by area, then round [OK]
Common Mistakes:
  • Misreading rounding precision
  • Calculating rpm squared incorrectly
  • Confusing thrust with power
4. Identify the error in this Python code that calculates power:
rpm = 1200
propeller_area = 0.04
power = rpm ^ 3 * propeller_area
print(power)
medium
A. Multiplying instead of adding propeller_area
B. Missing parentheses around rpm and 3
C. Using ^ instead of ** for exponentiation
D. Incorrect variable names

Solution

  1. Step 1: Check exponentiation operator

    In Python, ^ is bitwise XOR, not exponentiation. Use ** for powers.
  2. Step 2: Understand impact on calculation

    Using ^ causes wrong calculation or unexpected result, not power of rpm.
  3. Final Answer:

    Using ^ instead of ** for exponentiation -> Option C
  4. Quick Check:

    Use ** for powers, not ^ [OK]
Hint: Remember ** means power, ^ is bitwise XOR [OK]
Common Mistakes:
  • Confusing ^ with **
  • Assuming parentheses fix ^ operator
  • Ignoring operator precedence
5. You want to program a drone to maintain constant thrust while reducing motor speed to save battery. If you reduce rpm by 20%, how should you adjust the propeller area to keep thrust constant? (Thrust ∝ rpm² x propeller_area)
hard
A. Increase propeller area by 56.25%
B. Increase propeller area by 25%
C. Decrease propeller area by 20%
D. Keep propeller area the same

Solution

  1. Step 1: Calculate new rpm ratio squared

    Reducing rpm by 20% means new rpm = 0.8 x original rpm. Squared: 0.8² = 0.64.
  2. Step 2: Find required propeller area increase

    To keep thrust constant, propeller_area x 0.64 = original propeller_area. So, new propeller_area = 1 / 0.64 ≈ 1.5625 times original, or 56.25% increase.
  3. Final Answer:

    Increase propeller area by 56.25% -> Option A
  4. Quick Check:

    Thrust constant -> area ∝ 1 / (rpm²) = 1/0.64 = 1.5625 [OK]
Hint: Square rpm ratio, invert it for area change [OK]
Common Mistakes:
  • Forgetting to square rpm ratio
  • Adding instead of multiplying percentages
  • Assuming area stays same
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard