Build The Smallest ESP32 Drone You Can Fly with Your Phone! (ESP-FLY)

Imagine, if you will, the sheer delight of commanding a drone that fits neatly into your shirt pocket, yet boasts impressive flight capabilities and FPV prowess. Many drone enthusiasts have dreamed of such a device – ultra-portable, cost-effective, and fully customizable. This dream has been brought to life through the ingenuity of a project known as the ESP-FLY, a remarkable micro drone powered by the versatile ESP32 microcontroller. The video above masterfully demonstrates the complete journey of crafting this tiny beast, from initial design concepts to its inaugural flight. This companion article aims to delve deeper into the intricate design choices, engineering principles, and practical considerations that make building your very own ESP32 drone a truly rewarding experience.

The Anatomy of a Micro ESP32 Drone: Key Components Unveiled

Constructing a high-performance micro drone necessitates a meticulous selection of components that balance power, weight, and functionality. For the ESP-FLY, the total cost of parts, excluding shipping, was estimated at approximately $37 USD as of March 2025, underscoring its accessibility. A comprehensive list of essential elements is provided, facilitating the replication of this innovative DIY drone. These components collectively form the brain, brawn, and body of the ESP-FLY:

  • Surface Mounted Components & PCB: The heart of the drone’s electronics resides on a custom-designed Printed Circuit Board (PCB). This board integrates the motion sensor and motor driver module, crucial for stable flight and responsive control. The utilization of Surface Mount Devices (SMD) is pivotal for achieving the compact size required for a micro drone.
  • Microcontroller: The Seeed Studio XIAO ESP32S3 is chosen as the central processing unit, acting as the ‘brain’ of this particular ESP32 drone. Its diminutive 21×17 millimeter footprint, combined with dual-core processing power and integrated low-latency Wi-Fi, makes it an ideal choice for managing flight firmware and real-time control via a smartphone. Furthermore, its built-in battery management system and low 100 milliamp power draw contribute significantly to extended flight times.
  • Battery: A 1-cell battery provides the necessary power, rechargeable conveniently via USB-C, thanks to the XIAO ESP32S3’s capabilities.
  • Wires & Connectors: Minimal yet robust wiring ensures power and data flow efficiently, with JST connectors facilitating secure battery connections.
  • Antenna: A modified flex PCB antenna, stripped and re-routed, ensures reliable communication between the drone and the controlling device.
  • Coreless Motors & Propellers: Four 6×15 millimeter coreless motors with 0.8-millimeter shaft diameters provide the thrust, each paired with lightweight propellers. The careful selection of clockwise and counter-clockwise motors is essential for proper quadcopter operation.
  • Frame Parts: The physical structure is a crucial element, with options for both 3D-printed and PVC frames offering flexibility in construction methods.

Crafting the ESP-FLY Frame: Precision 3D Printing vs. Cost-Effective PVC

The structural integrity and aerodynamic performance of a micro drone heavily rely on its frame. The ESP-FLY project offers two distinct methods for frame fabrication, each with its own advantages, enabling builders to choose based on available resources and technical comfort.

Designing and 3D Printing the Frame

The primary method detailed involves sophisticated CAD design and 3D printing. The designer commenced by precisely measuring each component slated for integration into the drone. This meticulous planning is fundamental for optimal component fit and weight distribution within the final assembly. Autodesk Fusion, a widely respected CAD software, was employed to engineer the 50 mm drone frame. The design features a closed-body aesthetic with two-prong style arms, specifically designed to support the motors while also considering fundamental aerodynamic principles to enhance flight stability.

For those eager to replicate this design, the STL files for the ESP-FLY drone 3D model are made available on Cults3D. This platform provides not only the necessary design files but also valuable supplementary information regarding 3D printing settings, ensuring a successful print. The demonstrated 3D printer, an Elegoo Neptune 4 Plus, showcased impressive efficiency, completing the drone’s parts in merely 30 minutes—a significant improvement over older models that might take over an hour. This speed, coupled with high print quality (absence of stringing, warping, or layer shifting), highlights the advancements in consumer-grade 3D printing technology. The flexible magnetic build plate further streamlines the process by allowing for easy part removal.

The Accessible PVC Frame Alternative

Acknowledging that 3D printing capabilities might not be universally available, an ingenious alternative using PVC pipe is also presented. This method significantly lowers the barrier to entry for aspiring drone builders, focusing on readily available hardware store materials. A 2-inch PVC pipe, with a thickness of 1 to 2 millimeters and a length of at least 200 millimeters, serves as the raw material. The process involves cutting the pipe open, heating it, and then flattening it to create a workable PVC sheet. A blueprint sheet, derived from the 3D model’s 2D outlines, is provided for free download. This blueprint guides the cutting and bending of individual parts.

Once the parts are cut, often using methods like a hobby knife or a rotary tool (with a filtered mask recommended for safety due to PVC dust), they are sanded to a thickness of less than a millimeter for critical weight management. This refinement reduces the frame’s weight from an initial 11 grams (flat PVC) down to a lean 6 grams (assembled). While the PVC frame is approximately 2 grams heavier than its 4-gram 3D-printed counterpart, it remains light enough for the ESP-FLY to achieve stable flight. This method exemplifies resourcefulness and offers a practical path for those with budget constraints or a preference for traditional crafting techniques.

Advanced Electronics for Your ESP32 Drone: PCB Design and Assembly

The compact and lightweight nature of the ESP-FLY is largely attributed to its custom-designed electronics, specifically the Printed Circuit Board (PCB). The video provides insights into both the design and assembly processes, highlighting modern tools and techniques.

Designing the Custom PCB

The creation of the circuit board began with PCB design software, specifically Flux. This sophisticated tool allowed for the arrangement of all surface-mounted components. A particularly noteworthy feature is its AI assistance, which streamlines component placement onto the canvas, thereby significantly accelerating the design workflow. This AI-driven approach minimizes manual searching and ensures optimal layout efficiency.

The schematic development involved wiring the motion sensor to the ESP32 microcontroller. Critically, a four-channel motor driver circuit, potentially adapted from a previous project, was integrated along with provisions for drone head and tail lights. Completing the schematic then leads to the physical layout of the PCB. A thoughtful multi-layer design was employed: the top layer is dedicated to motion tracking, integrating components such as the MPU6050, an Inertial Measurement Unit (IMU). The bottom layer, conversely, is engineered to manage motor control and power distribution. During the copper fill phase, the AI copilot proved invaluable by quickly guiding the designer through a small issue, ensuring a robust and functional design. Tips from the copilot on minimizing electromagnetic interference were also crucial, especially around sensitive components, to guarantee stable performance.

Professional PCB Manufacturing with JLCPCB

Upon final review, the design was exported as a Gerber file, a standard format for PCB fabrication. For those interested in creating their own custom circuits, Flux offers access to try out their software. The Gerber files for the ESP-FLY’s PCB are made available for download, allowing others to produce the exact board. These files are then uploaded to JLCPCB, a well-known PCB manufacturer recognized for its affordability and reliability.

Ordering involves setting specific board specifications: four layers for the ESP-FLY, a desired quantity, a thickness of 1.2 millimeters, and a choice of board color (green is often the fastest and most cost-effective option). The option to ‘remove mark’ is also selected for a clean finish. JLCPCB offers competitive pricing, with 1-to-8 layer PCBs available for as low as $2, alongside a generous $60 in coupons for new sign-ups. The process is as straightforward as online shopping, with real-time order tracking from 24-hour lightning-fast production to shipping. The arrival of the high-quality, picture-perfect PCBs underscores the efficiency and precision of professional manufacturing services.

Precision Assembly: SMD Soldering Techniques

Assembling the custom PCB for an ESP32 drone like the ESP-FLY requires precision, particularly when dealing with surface-mounted components (SMDs). The video highlights two key methods: reflow soldering and hand soldering.

The use of an SMD stencil is highly recommended as it simplifies the application of solder paste. By taping down the main PCB and surrounding it with four additional PCBs (or spacers) to prevent movement, the stencil is then carefully aligned over the pads. A generous blob of solder paste is spread across the stencil, and then scraped off, leaving behind neatly coated pads on the PCB. The surface mount components, sourced from reels, are then precisely picked and placed onto these pads. This includes indicating LEDs, resistors, capacitors, and crucially, the MPU6050 motion tracking IC, which requires careful alignment of its orientation dot.

For the ‘sensor side’ (top layer), the board is gently placed on an SMD hot plate, allowing the solder paste to reflow and secure the components. This method ensures consistent and strong solder joints. However, for the ‘motor driver side’ (bottom layer), reflow soldering is impractical due to components already mounted on the top side. Consequently, these components must be soldered by hand using a soldering iron and tweezers. This meticulous process ensures all connections, including the JST battery connector for power input, are robust. The completed IMU/Motor Driver module weighs a mere 1 gram, demonstrating how PCB technology is essential for ultra-compact and lightweight designs. For those without specialized soldering tools, JLCPCB also offers a PCB assembly service, where they deliver ready-to-use boards with all components pre-soldered, requiring only the submission of bill of materials and pick-and-place files.

Bringing the ESP-FLY to Life: Assembly and FPV Integration

With the frame constructed and the PCB modules ready, the final stages of assembly involve integrating the microcontroller, motors, and optional FPV camera to create a fully functional custom drone build.

Microcontroller Integration and Wiring

The chosen microcontroller, the XIAO ESP32S3, serves as the brain, processing flight commands and sensor data. Its compact size (21×17 mm) is perfectly suited for a micro drone. The ESP32S3 is mounted using pin headers, with careful attention to orientation, and short wires are used to bridge battery power. This board’s built-in low-latency Wi-Fi is a significant advantage, enabling real-time control via a smartphone without the need for additional modules, a notable improvement over some previous projects. Its dual cores provide ample processing power for the drone’s firmware, ensuring smooth and responsive flight.

Prior to full installation, a touch of personalization is added by coloring in the debossed areas of the drone’s name on the frame parts, enhancing its visual appeal and branding. The battery is then secured with a small zip tie strap. The 6×15 millimeter coreless motors are installed into the frame arms, with their wires carefully pushed through designated holes and tucked neatly into the arms for a tidy appearance. It is crucial to ensure that two clockwise and two counter-clockwise motors are used and connected to their specific motor pads on the PCB’s motor driver side, as determined by initial motor tests. Super glue is strategically dabbed on the corners to prevent internal movement and secure the motors, ensuring a robust assembly.

Creating the Landing Gear

The landing gear, while seemingly a minor detail, plays a vital role in protecting the drone’s components during takeoff and landing. This feature is creatively fashioned from 1-millimeter solid core jumper wire, a common component found in breadboard circuits. Four 25-millimeter sections of this wire are cut and bent into a V-shape. These are then inserted into specially designed holes in the motor holder regions of the frame, secured firmly with super glue. This simple yet effective design provides stable support for the ESP-FLY.

Antenna Modification and FPV Camera Setup

For optimal signal reception and to maintain the drone’s compact profile, the antenna included with the XIAO ESP32S3 is modified. This involves desoldering the flex PCB portion, stripping the wire to expose an enamelled section, and then connecting it to the XIAO. The wire is carefully bent to fit neatly along the right side of the drone, ensuring it remains unobstructed by the top cover.

A significant enhancement for this micro drone, particularly for “FPV fanatics,” is the integration of a First-Person View (FPV) camera. A second top cover, specifically designed to accommodate a WT07 3-gram micro FPV camera, is utilized. This camera provides a live video feed, transmitted via a 5.8-gigahertz FPV headset like the I-Flight model demonstrated. To prepare the camera, the green and yellow on-screen display (OSD) wires are cut short and twisted together to enable the video feed. The camera’s power input wires are connected to the battery connector on the bottom of the board, and the camera itself is affixed to its mount using double-sided tape. Once the camera wires are neatly tucked into the frame and the top cover is replaced, the ESP32 drone is ready for FPV operation.

From past tests, the FPV camera delivers a video transmission range exceeding 100 meters. While the addition of the camera makes the quadcopter slightly heavier, potentially reducing flight time by approximately one minute, the immersive First-Person View experience it offers is considered well worth the minor trade-off in flight duration. This integrated FPV capability transforms the ESP-FLY into a highly engaging and versatile micro-quadcopter, perfect for navigating tight indoor spaces or exploring the immediate surroundings with a unique perspective.

Your ESP-FLY Questions: Taking Flight!

What is the ESP-FLY drone?

The ESP-FLY is a very small, customizable drone powered by an ESP32 microcontroller. It’s designed as a DIY project that can be flown using your smartphone.

How much does it cost to build the ESP-FLY drone?

Building the ESP-FLY drone is quite affordable. The estimated cost for all the necessary parts is about $37 USD, not including shipping.

What are the main components needed to build this drone?

You’ll need a custom circuit board (PCB), a small microcontroller like the Seeed Studio XIAO ESP32S3, a battery, coreless motors with propellers, and a frame.

What options are available for creating the drone’s frame?

You can either 3D print the frame using provided design files, or you can craft a frame from a readily available PVC pipe if you don’t have a 3D printer.

How is the ESP-FLY drone controlled?

The ESP-FLY drone is controlled in real-time using your smartphone. It uses the ESP32S3 microcontroller’s built-in Wi-Fi for communication.

Leave a Reply

Your email address will not be published. Required fields are marked *