Lesson 10 · Part 3 · Real drones
Sim to real
Mission: Name what the simulator leaves out, see how one of those things (motor lag) changes a flight, and plan safe first steps with a real drone.
The interactive version of this lesson needs JavaScript. Below are its steps as text.
Steps
1. What the simulator leaves out
Press the button. The readout lists what this simulator does not model.
Why it matters: A simulator is a model, so it is only as good as what it includes. Knowing what is missing tells you which results to trust less.
2. Predict the lag effect
Predict first. Then press Run at a motor lag of 150 ms (much slower than the 30 ms assumed).
Why it matters: The rate loop expects the motors to respond quickly. A slower motor makes its command arrive late, and a late command makes the loop swing.
3. Motor lag, live
Drag the motor lag slider (milliseconds), then press Run. Find where the step stops settling.
Why it matters: The lag sets a limit on how fast the loop can be tuned. Real drones are tuned so that the lag they actually have still leaves the loop stable.
4. Safety before the first flight
Read the checklist in the Notebook. It covers props off during bench tests, a stop switch within reach, and LiPo battery handling.
Why it matters: Propellers and LiPo batteries cause most real injuries and fires. Bench-test motors with the props off and the drone clamped, and charge LiPos on a non-flammable surface and never unattended.
5. Choosing a cheap micro-drone
Press the button. The readout notes that a cheap ESP32 micro-drone is commonly priced around ₹2,500 to ₹5,000. That price is an estimate from the course brief and has not been checked.
Why it matters: Price is only one factor. Check the flight controller, the motors, the battery, the size and whether the firmware can be changed.
6. Your reading: a hardware checklist
Open the Notebook tab. Count the checklist items you have done for your own hardware, and write what is still open.
Why it matters: A checklist written before the first flight is the cheapest safety tool you have. Keep it next to the drone.
Go deeper
What changes on real hardware
- Motor and driver delays are larger and more variable than one time constant.
- Battery voltage falls under load, so the same throttle gives less thrust later in the flight.
- Sensors have noise, bias and delay; the estimator has to deal with them (Lessons 5 and 8).
- Wind, propeller wash and ground effect change the forces the model assumes.
Where to start with real hardware
- Crazyflie 2.1 and the Crazyradio dongle, with the official cfclient (Bitcraze documentation: https://www.bitcraze.io/documentation/repository/crazyflie-firmware/master/).
- Props off and the drone clamped for the first motor tests.
- Any micro-drone you buy: check its firmware, battery and motor specs first (price estimate from the brief, not checked).
Model limits
- The lag in this lesson is a single time constant; real lag has several parts.
- The price range is an unchecked estimate from the course brief.