Formation Flight
Overview
Section titled “Overview”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.
What You’ll Learn
Section titled “What You’ll Learn”- The basics of multi-drone communication
- Control strategies for formation flight
- Leader–follower mode
- Cooperative flight of multiple drones
Materials Needed
Section titled “Materials Needed”| Item | Quantity | Notes |
|---|---|---|
| Assembled drone | 2 | The drones built in Project 05 (Drone A and Drone B) |
| USB cable | 1 | For firmware flashing |
| Computer | 1 | For downloading and flashing firmware |
Step 1: Flash the Formation Firmware
Section titled “Step 1: Flash the Formation Firmware”1.1 Download the formation firmware
Section titled “1.1 Download the formation firmware”- Go to the resource download page and download
leader.bin(leader firmware) andfollower.bin(follower firmware) to your desktop
1.2 Flash the leader firmware
Section titled “1.2 Flash the leader firmware”- Pick one drone as Drone A (the leader)
- Hold down the “BOOT” button on Drone A’s ESP32 board while plugging the USB cable into the computer
- Open
flash_tool.exeand select theleader.binfile - Click “Flash” and wait for the process to complete (about 10 seconds)
- After the tool shows “Flash successful”, unplug the USB cable
1.3 Flash the follower firmware
Section titled “1.3 Flash the follower firmware”- Pick the other drone as Drone B (the follower)
- Hold down the “BOOT” button on Drone B’s ESP32 board while plugging the USB cable into the computer
- Open
flash_tool.exeand select thefollower.binfile - Click “Flash” and wait for the process to complete (about 10 seconds)
- After the tool shows “Flash successful”, unplug the USB cable
Step 2: Test the Formation Flight
Section titled “Step 2: Test the Formation Flight”2.1 Preparation
Section titled “2.1 Preparation”- Make sure both drones have fully charged batteries
- Pick a spacious flight area, away from people and obstacles
2.2 Start the formation
Section titled “2.2 Start the formation”- Turn on Drone A (leader) and Drone B (follower) at the same time
- Drone B will automatically connect to Drone A’s Wi-Fi
- Connect your phone to Drone A’s Wi-Fi (SSID:
ESP-Drone-Leader, password:12345678) - Open the
Drone Controlapp
2.3 Formation flight test
Section titled “2.3 Formation flight test”- Tap the “Formation flight” button in the app
- Drone A will lead Drone B in flight!
- Try controlling the leader and observe whether the follower keeps up
- Enjoy the feeling of being a drone commander!
Step 3: Challenge Tasks
Section titled “Step 3: Challenge Tasks”3.1 Figure-8 formation challenge
Section titled “3.1 Figure-8 formation challenge”- Try to make both drones fly a figure-8 together
- See whether the formation stays tidy
- Practice controlling the speed to keep a good formation
3.2 Cooperative task challenge
Section titled “3.2 Cooperative task challenge”- 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
- Test the cooperative effect
Troubleshooting
Section titled “Troubleshooting”Follower cannot connect
Section titled “Follower cannot connect”- Make sure both drones are in the same area
- Check that the leader has started up correctly
- Try restarting both drones
Formation is unstable
Section titled “Formation is unstable”- Make sure the flight environment is windless
- Check that the battery is sufficiently charged
- Adjust the flight speed and avoid flying too fast
Achievement
Section titled “Achievement”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.
Next Steps
Section titled “Next Steps”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.