

ESPDrone
Purpose: This repository documents a summer project dedicated to designing and building a custom quadcopter from scratch.
- Size
- 60 × 90 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 16
- Nets
- 34
- Pads
- 59
- Tracks, vias
- 38, 0
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 14 Sep 2026
- Updated
- 28 Sep 2026
Overview
ESPDrone is an open-source printed circuit board by RafaCoyazo, from the RafaCoyazo/ESP-32_Quadcopter repository on GitHub, published under the MIT licence. It is a 4-layer board of 60 × 90 mm with 16 parts on 34 nets, routed with 38 tracks and 0 vias.
It belongs with the ESP32 boards of this library.
README
README.mdESP-32_Quadcopter
Purpose: This repository documents a summer project dedicated to designing and building a custom quadcopter from scratch. At the core of the drone is a custom-designed PCB featuring an ESP32 microcontroller and an onboard accelerometer. While the final build has not yet achieved stable flight, the project served as an intensive, hands-on exploration of embedded C++, custom PCB routing, and writing raw PID control loops for hardware stabilization.
Current Status & Known Issues
The physical build and custom PCB are complete, and the ESP32 successfully interfaces with the MPU6050 IMU and all four ESCs. However, the drone currently experiences a thrust imbalance where the rear motors do not reach the same RPM as the front motors, preventing a stable takeoff.
Troubleshooting to date:
- Swapped the rear ESCs to rule out faulty hardware; the RPM deficit persisted.
- The isolated problem likely lies within the firmware's motor mixing logic, a bug in the PWM signal generation routed to the rear pins, or an uncompensated center of gravity on the 3D-printed frame.
Hardware & Design
Hardware Specifications
| Component | Description |
|---|---|
| Microcontroller Evolution | V1 & V2: Arduino (View Version 1 Details and Version 2 Details) |
| Version 3 | V3 Details of the Hardware: Version 3 Details |
- Flight Controller:
- Version 1: Initial proof-of-concept testing was done using an Arduino and jumper wires.
- Version 2: Upgraded to a custom double-layer PCB (View the KiCad Project Files) to show proof of concept with Arduino Nano
- Version 3: Redigned custom double-layer PCB (View the KiCad Project Files) to integrate the ESP32 and peripherals, wiring and reduce electrical noise.
- Schematic Design for V3
(Below: The wiring schematic integrating the ESP32 microcontroller, MPU6050 IMU, and peripheral modules.)
Frame Design & Manufacturing (Below: The original CAD model showcasing the structural assembly, followed by the final 3D-printed physical frame.)
Software
- Language & Codebase Evolution:
- V1 & V2: Arduino / C++ (View Version 1 Code and Version 2 Code).
- V3: Embedded C++ (View Version 3 Code).
- Flight Logic: Custom-written PID control loops to process IMU data and calculate real-time motor compensation.
- Communication: I2C protocol for reading sensor telemetry and PWM signal generation for the ESCs.
Project Media
(Note to self: Upload a photo of the completed drone and video)
Takeoff Dynamics & Motor Imbalance Diagnostics
During takeoff testing, the aircraft experienced a severe pitch imbalance where the rear motors visibly and physically generated significantly lower RPM and thrust compared to the front motors, preventing vertical liftoff.
Diagnosed Causes & Experimental Troubleshooting:
-
Power Supply & Input Voltage Verification:
- Action: Measured the primary voltage supply lines under load to check for power starvation or voltage drops to the rear power distribution traces.
- Result: Confirmed that the power supply unit consistently delivers 12V across all board rails and ESC power feeds. Power delivery was ruled out as the root cause.
-
ESC Timing, Calibration & Hardware Swaps:
- Hypothesis: Because four individual ESCs are used rather than an integrated 4-in-1 board, timing drift or throttle calibration offsets could cause rotational speed discrepancies between channels.
- Action: Replaced the rear Electronic Speed Controllers with brand-new units to test for hardware degradation and calibration drift.
- Result: Installing new ESCs slightly increased the RPM of one rear motor, but the total thrust was still insufficient to equalize the outputs. This confirms that while minor ESC variances exist, the main bottleneck is not faulty ESC hardware.
-
Firmware Pitch Control Loops & Sensor Isolation:
- Action: To test if the MPU6050 IMU feedback loop was falsely commanding lower duty cycles to the rear channels, firmware was modified to temporarily isolate and disable active pitch compensation.
- Result: Testing is currently ongoing to evaluate raw PWM output signal scaling, timer channel allocations on the ESP32 pins, and pitch PID loop behavior.
Parts
16| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | TestPoint | TestPoint:TestPoint_THTPad_2.0x2.0mm_Drill1.0mm | GND1, GND2, GND3, GND4, M2, M3, M4 |
| 1 | DEVKIT_V1_ESP32-WROOM-32 | DEVKIT_V1_ESP32-WROOM-32:MODULE_DEVKIT_V1_ESP32-WROOM-32 | U1 |
| 1 | LOGO | LOGO | G*** |
| 1 | M1 | TestPoint:TestPoint_THTPad_2.0x2.0mm_Drill1.0mm | M1 |
| 1 | module_bmp180 | usini_sensors:module_bmp180 | U3 |
| 1 | module_mpu6050 | usini_sensors:module_mpu6050 | U2 |
The 12 most common of 16 parts.
Similar boards
- 4 layers24.5 × 14 mm

- 4 layers73 × 21.3 mm

- 4 layers26 × 54.4 mm

- 4 layers

- 4 layers18.6 × 76 mm

- 4 layers39 × 20 mm

MelonHD
mackieks/melonHD
Lontium LT6711A HDMI to USB-C DP Alt Mode Converter Module for portablizers
16 parts43 - 4 layers36.2 × 17.9 mm

- 4 layers

Questions
How big is the ESPDrone PCB?
It measures 60 × 90 mm and has 4 copper layers, 1.6 mm thick.
What parts does the ESPDrone use?
16 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the ESPDrone KiCad files?
From the RafaCoyazo/ESP-32_Quadcopter repository on GitHub, at the commit this page was made from: the board is Version_3/KiCadV3/ESPDrone.kicad_pcb and its schematic Version_3/KiCadV3/ESPDrone.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the ESPDrone design in my own project?
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).