Skip to content

Formation Flight

Now that you have learned how to make the drone track a red ball, let’s try something more advanced! In this project you will learn how to use two drones to form a team and fly together, experiencing the fun of multi-drone formation and becoming a true drone commander.

  • The basics of multi-drone communication
  • Control strategies for formation flight
  • Leader–follower mode
  • Cooperative flight of multiple drones
ItemQuantityNotes
Assembled drone2The drones built in Project 05 (Drone A and Drone B)
USB cable1For firmware flashing
Computer1For downloading and flashing firmware
  1. Go to the resource download page and download leader.bin (leader firmware) and follower.bin (follower firmware) to your desktop
  1. Pick one drone as Drone A (the leader)
  2. Hold down the “BOOT” button on Drone A’s ESP32 board while plugging the USB cable into the computer
  3. Open flash_tool.exe and select the leader.bin file
  4. Click “Flash” and wait for the process to complete (about 10 seconds)
  5. After the tool shows “Flash successful”, unplug the USB cable
  1. Pick the other drone as Drone B (the follower)
  2. Hold down the “BOOT” button on Drone B’s ESP32 board while plugging the USB cable into the computer
  3. Open flash_tool.exe and select the follower.bin file
  4. Click “Flash” and wait for the process to complete (about 10 seconds)
  5. After the tool shows “Flash successful”, unplug the USB cable
  1. Make sure both drones have fully charged batteries
  2. Pick a spacious flight area, away from people and obstacles
  1. Turn on Drone A (leader) and Drone B (follower) at the same time
  2. Drone B will automatically connect to Drone A’s Wi-Fi
  3. Connect your phone to Drone A’s Wi-Fi (SSID: ESP-Drone-Leader, password: 12345678)
  4. Open the Drone Control app
  1. Tap the “Formation flight” button in the app
  2. Drone A will lead Drone B in flight!
  3. Try controlling the leader and observe whether the follower keeps up
  4. Enjoy the feeling of being a drone commander!
  1. Try to make both drones fly a figure-8 together
  2. See whether the formation stays tidy
  3. Practice controlling the speed to keep a good formation
  1. Design a simple cooperative task, for example:
    • Both drones pass through an archway one after another
    • The two drones fly at different altitudes
    • The two drones take turns performing different moves
  2. Test the cooperative effect
  • Make sure both drones are in the same area
  • Check that the leader has started up correctly
  • Try restarting both drones
  • Make sure the flight environment is windless
  • Check that the battery is sufficiently charged
  • Adjust the flight speed and avoid flying too fast

Congratulations! You are now a drone commander! By learning about multi-drone communication and formation flight, you have mastered the ability to control multiple drones working together. This is a very cool skill and shows your deep understanding of drone technology.

Congratulations on completing every beginner tutorial project! You have grown from a drone newcomer into a capable young pilot.

In the beginner tutorials you learned how to:

  • Assemble and fly your first drone
  • Personalize sound and light effects
  • Make the drone draw various patterns automatically
  • Experience first-person view via a camera
  • Make the drone track a red ball
  • Control multiple drones in formation

These skills give you a solid foundation. You can keep exploring the intermediate and advanced tutorials to learn more advanced features and techniques.