> ## Documentation Index
> Fetch the complete documentation index at: https://stem-docs.intellectualpoint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How drones fly

> Master the physics of flight - the four forces, how propellers make lift, and how four motors create every movement.

## The physics of staying up

A drone flying looks like magic, but it's pure physics. Everything a drone does comes down to balancing **four forces** and controlling **four spinning motors**. Understand these and you understand every flight command you'll ever give - by hand or by code.

## The four forces of flight

Every flying thing - a bird, a jet, your drone - is pushed and pulled by the same four forces.

<Frame caption="Flight is a constant balancing act between four forces">
  <img src="https://mintcdn.com/intellectualpoint/WG-N0km0lS3L3ZkH/images/drones/forces-of-flight.png?fit=max&auto=format&n=WG-N0km0lS3L3ZkH&q=85&s=3a58df33d81dde86fe26a81f69dadc37" alt="Diagram of lift, weight, thrust, and drag acting on a drone" width="1536" height="1024" data-path="images/drones/forces-of-flight.png" />
</Frame>

| Force      | Direction | What it does                                           |
| ---------- | --------- | ------------------------------------------------------ |
| **Lift**   | Up        | Created by the spinning propellers; holds the drone up |
| **Weight** | Down      | Gravity pulling the drone toward the ground            |
| **Thrust** | Forward   | Pushes the drone in the direction it leans             |
| **Drag**   | Backward  | Air resistance that slows the drone down               |

To **hover**, lift exactly equals weight. To **climb**, lift beats weight. To **move**, the drone tilts so some thrust points sideways.

## Hover, climb, or descend

The whole game of altitude is a tug-of-war between **lift** (up) and **weight** (down). Change how hard the motors push and you change which force wins.

<Frame caption="Whoever wins the lift-vs-weight tug-of-war decides if the drone rises, holds, or drops">
  <img src="https://mintcdn.com/intellectualpoint/PocgpVBYuYokR5M6/images/drones/throttle-hover-climb.png?fit=max&auto=format&n=PocgpVBYuYokR5M6&q=85&s=785bf552cd9d88a013cae78b5957eed7" alt="Three drones showing descend (weight wins), hover (balanced), and climb (lift wins)" width="1536" height="1024" data-path="images/drones/throttle-hover-climb.png" />
</Frame>

<CardGroup cols={3}>
  <Card title="Weight > Lift" icon="arrow-down">
    Motors ease off, gravity wins, the drone **descends**.
  </Card>

  <Card title="Lift = Weight" icon="equal">
    Perfectly balanced - the drone **hovers** in place.
  </Card>

  <Card title="Lift > Weight" icon="arrow-up">
    Motors speed up, lift wins, the drone **climbs**.
  </Card>
</CardGroup>

## How a propeller makes lift

A propeller is really a spinning wing. Each blade is shaped as an **airfoil**, and as it slices through the air it throws air **downward**. By Newton's third law - every action has an equal and opposite reaction - throwing air down pushes the drone **up**.

<Frame caption="A spinning propeller pushes air down, and the air pushes the drone up">
  <img src="https://mintcdn.com/intellectualpoint/0OezIcfdUd2uC_Gv/images/drones/how-lift-works.png?fit=max&auto=format&n=0OezIcfdUd2uC_Gv&q=85&s=af1b6794b04842148be15c4bfeebaca0" alt="Airfoil cross-section showing air pressure difference creating lift, with Newton's third law inset" width="1536" height="1024" data-path="images/drones/how-lift-works.png" />
</Frame>

<Info>
  Spin the propellers faster and they throw more air down, creating more lift. This is the drone's throttle: more motor speed means more lift means the drone rises.
</Info>

## Four motors, total control

Here's the clever part. A quadcopter has no flaps or rudders - it steers purely by changing the speed of its four motors. Two spin clockwise and two counterclockwise, in an alternating pattern.

<Frame caption="Opposite motors spin the same way; this cancels out spin and keeps the drone stable">
  <img src="https://mintcdn.com/intellectualpoint/0OezIcfdUd2uC_Gv/images/drones/motor-spin-directions.png?fit=max&auto=format&n=0OezIcfdUd2uC_Gv&q=85&s=4cdcb829f289adac2e3621b794bc865c" alt="Top-down view of a quadcopter showing two clockwise and two counterclockwise motors" width="1536" height="1024" data-path="images/drones/motor-spin-directions.png" />
</Frame>

<Warning>
  If all four motors spun the same direction, the whole drone body would spin the opposite way (like a helicopter with no tail rotor). Alternating the directions cancels this out - which is why propeller placement matters.
</Warning>

## From motor speed to movement

So how does changing four motor speeds turn into "go forward" or "spin left"? By speeding up some motors and slowing others, the drone **tilts** in the direction you want to go, or **twists** to face a new way.

<Frame caption="Speed some motors up, slow others down - that's how every move happens">
  <img src="https://mintcdn.com/intellectualpoint/eW7U9shBQKKM3XX9/images/drones/movement-motor-map.png?fit=max&auto=format&n=eW7U9shBQKKM3XX9&q=85&s=549d7198bb5ef14cb6e4ae98301d1b25" alt="Top-down grid showing which motors speed up for forward, backward, turning, and climbing" width="1536" height="1024" data-path="images/drones/movement-motor-map.png" />
</Frame>

## The three ways a drone moves

Pilots describe drone motion as **roll, pitch, and yaw** - three ways to rotate around three axes.

<Frame caption="Every drone movement is a mix of roll, pitch, and yaw">
  <img src="https://mintcdn.com/intellectualpoint/0OezIcfdUd2uC_Gv/images/drones/roll-pitch-yaw.png?fit=max&auto=format&n=0OezIcfdUd2uC_Gv&q=85&s=da881390ee13634d595c4af3e7985c23" alt="Diagram of roll, pitch, and yaw rotation axes on a drone" width="1536" height="1024" data-path="images/drones/roll-pitch-yaw.png" />
</Frame>

<CardGroup cols={3}>
  <Card title="Roll" icon="move-horizontal">
    Tilts left or right, so the drone slides sideways.
  </Card>

  <Card title="Pitch" icon="move-vertical">
    Tilts forward or backward, so the drone flies forward or back.
  </Card>

  <Card title="Yaw" icon="rotate-3d">
    Spins the drone left or right to face a new direction, without moving.
  </Card>
</CardGroup>

Add a fourth control - **throttle** (all motors faster or slower for up and down) - and you have the four inputs behind every flight, whether you push a joystick or send a command from your code.

## The four inputs behind every flight

| Input        | What it changes    | On the controller      | In your code                     |
| ------------ | ------------------ | ---------------------- | -------------------------------- |
| **Throttle** | Up / down          | Left stick up/down     | `take off`, `vertical move up`   |
| **Yaw**      | Turn left / right  | Left stick left/right  | `turn`, `rotate`                 |
| **Pitch**    | Forward / back     | Right stick up/down    | `fly forward`, `horizontal move` |
| **Roll**     | Slide left / right | Right stick left/right | `fly left` / `right`             |

<Tip>
  Every command you write on Day 3 sets one of just four values: **roll, pitch, yaw, and throttle**. Learn them now and the code will make instant sense later.
</Tip>

## Try this thought experiment

<CardGroup cols={2}>
  <Card title="Why does it drift?" icon="wind">
    If the drone drifts sideways while hovering, which force is slightly unbalanced - and how could the flight controller fix it?
  </Card>

  <Card title="Heavier drone" icon="weight-hanging">
    If you taped a coin to your drone, what would the motors have to do to still hover? What happens to flight time?
  </Card>
</CardGroup>

<Check>
  You can name the four forces of flight, explain how a propeller makes lift, describe roll, pitch, and yaw, and connect each to throttle and the two sticks.
</Check>
