Skip to the content
4 layers60 × 90 mmESPDrone, the printed circuit board in 3D

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.md

ESP-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

ComponentDescription
Microcontroller EvolutionV1 & V2: Arduino (View Version 1 Details and Version 2 Details)
Version 3V3 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.) image
image

Frame Design & Manufacturing (Below: The original CAD model showcasing the structural assembly, followed by the final 3D-printed physical frame.)

image rplace with image]

Software

  • Language & Codebase Evolution:
  • 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:

  1. 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.
  2. 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.
  3. 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
QtyValueFootprintReferences
7TestPointTestPoint:TestPoint_THTPad_2.0x2.0mm_Drill1.0mmGND1, GND2, GND3, GND4, M2, M3, M4
1DEVKIT_V1_ESP32-WROOM-32DEVKIT_V1_ESP32-WROOM-32:MODULE_DEVKIT_V1_ESP32-WROOM-32U1
1LOGOLOGOG***
1M1TestPoint:TestPoint_THTPad_2.0x2.0mm_Drill1.0mmM1
1module_bmp180usini_sensors:module_bmp180U3
1module_mpu6050usini_sensors:module_mpu6050U2

The 12 most common of 16 parts.

Similar boards

  • 4 layers24.5 × 14 mmMjuart, the printed circuit board in 3D

    Mjuart

    mjbots/moteus

    Brushless DC motor controller

    16 parts1.4kApache-2.0
  • 4 layers73 × 21.3 mmLa pod mmcx, the printed circuit board in 3D

    La pod mmcx

    azonenberg/starshipraider

    Open hardware test equipment

    16 parts193BSD-3-Clause
  • 4 layers26 × 54.4 mmSombrero MSX Goa'uld, the printed circuit board in 3D

    Sombrero MSX Goa'uld

    jabadiagm/MSXgoauld_tn20k

    MSX Goa'uld board with Tang Nano 20k

    16 parts101GPL-3.0
  • 4 layersCopy1, the printed circuit board in 3D

    Copy1

    embeddedalpha/PCB-Design

    Repository for PCB Design Projects

    16 parts77MIT
  • 4 layers39 × 20 mmMelonHD, the printed circuit board in 3D

    MelonHD

    mackieks/melonHD

    Lontium LT6711A HDMI to USB-C DP Alt Mode Converter Module for portablizers

    16 parts43
  • 4 layers36.2 × 17.9 mmI2c test board, the printed circuit board in 3D

    I2c test board

    mike42/65816-computer

    A 65C816-based homebrew computer (prototype)

    16 parts37
  • 4 layersCm5, the printed circuit board in 3D

    Cm5

    atopile/hil

    Hardware-In-the-Loop (HiL ⛰️) for high-quality validation 🧪 everywhere 🚀

    16 parts29MIT

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).