srinivas.siteLearn to FlyBy Srinivas Valekar

Learn to Fly

A beginner course on how a quadcopter stays in the air, built around a Crazyflie 2.1 simulator. Self-study. Everything on the stage is a simulation.

Lessons

  1. 01What is a quadcopter

    The parts, why two propellers turn one way and two the other, and what hover thrust means.

  2. 02Thrust, weight and hover

    Find the hover throttle and the thrust-to-weight ratio.

  3. 03Roll, pitch and yaw

    The mixer: speed up one pair of motors to roll, pitch or turn.

  4. 04Motors and batteries

    Watts, milliamp-hours, battery sag, and why flight time is about 7 minutes.

  5. 05IMU and tilt

    Gyro drift, accelerometer noise and a complementary filter.

  6. 06PID: tune the wobble

    The centrepiece: tune angle and rate loops with sliders and feel the wobble go away.

  7. 07Altitude hold

    Hold a height with a height loop and a climb-rate loop.

  8. 08Position hold indoors

    Why GPS fails indoors, and how optical flow and a height sensor help.

  9. 09Flying a path

    Waypoints, setpoints and overshoot in a path game.

  10. 10Sim to real

    A real Crazyflie and a cheap ESP32 micro-drone: what changes on hardware, and safety.

The simulator is not a flight; the real-drone steps are in Lesson 10.