Skip to the content
2 layers53.5 × 58.5 mmDrone fc v1.0, the printed circuit board in 3D

Drone fc v1.0

ehuang2021/drone-fc

A drone flight controller, with multithreaded firmware, and a custom PCB

Size
53.5 × 58.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
26
Nets
49
Pads
106
Tracks, vias
136, 23
Pours
4
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
4 Jun 2026
Updated
21 Sep 2026

Overview

Drone fc v1.0 is an open-source printed circuit board by ehuang2021, from the ehuang2021/drone-fc repository on GitHub. It is a 2-layer board of 53.5 × 58.5 mm with 26 parts on 49 nets, routed with 136 tracks and 23 vias.

It is built around the E73-2G4M04S1B, TLV1117LV33DCYR and CL05B104KB54PNC, with the C2012X5R1A226MT0J0E, 0402CG101J500NT and RC-02K1803FT among its other parts. Its parts include 8 capacitors, 6 resistors, 4 connectors, 2 ICs and 1 diode. It belongs with the robots and motor control boards of this library.

Main components

12

README

README.md

Custom nRF52832 Drone Flight Controller

The controller performs 500 Hz interrupt-driven IMU reads and atittude estimation, a 250 Hz PID control pipeline, drives ESC through hardware PWM, monitors a 2S LiPo battery through the ADC, and exposes system telementry and PID configurations over BLE, allowing for real-time PID tuning. It's currently only for 1 axis, but will be scaled up for 3d space.

Key Structure/Features

Firmware

  • Zephyr RTOS with dedicated IMU, attitude-estimation, PID, PWM, safety, system-monitoring, and BLE threads
  • GPIO interrupt and semaphore-driven MPU6050 acquisition at 500 Hz
  • Non-blocking message queues between processing stages

Attitude Estimation + Control

  • Madgwick IMU filter using accelerometer and gyroscope data
  • Quaternion-to-Euler conversion for roll, pitch, and yaw
  • 250 Hz single-axis PID control loop
  • ESC command generation through the nRF52 hardware PWM peripheral

BLE Telemetry

  • Custom BLE GATT service
  • 20 Hz telemetry broadcasts with attitude, throttle, battery voltage, and uptime
  • Writable BLE characteristic for runtime PID gain configuration

System Monitoring

  • ADC-based monitoring of a 2S LiPo battery through a voltage divider
  • Moving-average voltage filtering
  • Approximate battery SOC tracking
  • Safety thread with heartbeat monitoring, roll-limit fault detection, and hardware watchdog support

Architecture Overview

mermaid
flowchart LR
    MPU["MPU6050<br/>500 Hz DRDY"] -->|GPIO interrupt| SEM["Semaphore"]
    SEM --> IMU["IMU Thread<br/>500 Hz<br/>I²C acquisition"]
    IMU -->|k_msgq| ATT["Attitude Thread<br/>500 Hz<br/>Madgwick Filter"]
    ATT -->|Downsample 2:1<br/>k_msgq| PID["PID Thread<br/>250 Hz"]
    PID -->|k_msgq| PWM["PWM Thread<br/>ESC command"]
    PWM --> ESC["ESC / Motor<br/>50 Hz PWM"]

    IMU -. heartbeat .-> SAFETY["Safety Thread<br/>watchdog / fault monitoring"]
    ATT -. heartbeat / roll .-> SAFETY
    PID -. heartbeat .-> SAFETY
    SAFETY -. flight state .-> PWM

    ATT -. attitude .-> BLE["BLE Telemetry Thread<br/>20 Hz notifications"]
    PID -. PID output .-> BLE
    PWM -. throttle .-> BLE

    ADC["2S LiPo<br/>ADC Monitor<br/>5 Hz"] -. voltage .-> BLE

    PHONE["nRF Connect / BLE Client"] -->|Write Kp, Ki, Kd| BLE
    BLE -->|PID command queue| PID

Schematic

The custom PCB integrates the nRF52832 flight controller, MPU6050 interface, 2S LiPo voltage monitoring, ESC interface, 5 V-to-3.3 V regulation, and SWD programming/debug access.

Flight controller schematic

View full schematic PDF

PCB

Flight Controller PCB

Future Additions:

  • Three axis flight (which would probably mean a kalman filter over the current madgwick, with a compass+gps module AND a nested PID loop)

Parts

26
QtyValueFootprintReferences
4MountingHoleMountingHole:MountingHole_2.2mm_M2H1, H2, H3, H4
2100nCapacitor_SMD:C_0402_1005MetricC1, C6
222uCapacitor_SMD:C_0805_2012MetricC9, C10
1100KResistor_SMD:R_0402_1005MetricR3
1100nFCapacitor_SMD:C_0402_1005MetricC3
1100pCapacitor_SMD:C_0402_1005MetricC4
110KResistor_SMD:R_0402_1005MetricR4
110uCapacitor_SMD:C_0603_1608MetricC2
1180KResistor_SMD:R_0402_1005MetricR2
11KResistor_SMD:R_0402_1005MetricR1
11uCapacitor_SMD:C_0402_1005MetricC7
11x3 2.54mm male vertical THT headerConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ3
11x5 2.54mm male vertical THT headerConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ1
11x8 2.54mm female vertical THT socketConnector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalJ2
147kResistor_SMD:R_0402_1005MetricR6
14K7Resistor_SMD:R_0402_1005MetricR5
1E73-2G4M04S1Beasyeda2kicad:WIRELM-SMD_E73-2G4M04S1BU1
1GREENLED_SMD:LED_0603_1608MetricD1
1PH2.0 2-pin right-angle SMD connectoreasyeda2kicad:CONN-SMD_PH2.0-1X2PWCN1
1TLV1117LV33DCYRPackage_TO_SOT_SMD:SOT-223-3_TabPin2U2
1TS-1187A-B-A-Beasyeda2kicad:SW-SMD_4P-L5.1-W5.1-P3.70-LS6.5-TL_H1.5SW1

Similar boards

  • 4 layers110 × 80 mmSpin rig controller, the printed circuit board in 3D

    Spin rig controller

    Tinkerbug-Robotics/TinkerRocket

    Model rocket flight computer, ground station, iOS app, and simulation

    170 parts1GPL-3.0
  • 2 layers87.5 × 77.5 mmPanel, the printed circuit board in 3D

    Panel

    jpconstantineau/NRF52-Board

    This Repository is a collection of NRF5x boards.

    143 parts100BSD-3-Clause
  • 2 layers26.7 × 43.2 mmAccelerando barangaroo, the printed circuit board in 3D

    Accelerando barangaroo

    accelerando-consulting/accelerando_barangaroo

    This is a simple breakout board for the eByte E73 module with nrf52832 microcontroller. This board requires minimal parts, in fact it can work with only the module and no other parts.

    18 partsMIT
  • 4 layers100 × 77.4 mmWasca, the printed circuit board in 3D

    Wasca

    hitomi2500/wasca

    Sega Saturn multipurporse cartridge

    145 parts80MIT
  • 2 layers58.1 × 91.3 mmMeshcore solar, the printed circuit board in 3D

    Meshcore solar

    haydenkz/rak4630-solar-pcb

    Solar-powered MeshCore node PCB built around the RAK4630-8-SM-I (nRF52840 + SX1262 LoRa) module.

    55 parts1
  • 2 layers90.4 × 89.6 mmPolicyBadge25, the printed circuit board in 3D

    PolicyBadge25

    mosfet0/policyatdc33

    Policy@DEF CON 33 Badge collaboration

    68 partsGPL-3.0
  • 4 layersMatterbtn, the printed circuit board in 3D

    Matterbtn

    Tee6/ESP32-H2-Matter-Button

    Matter Smart Home Button with ESP32-H2

    55 parts
  • 2 layers36.5 × 49.5 mmV485 controller, the printed circuit board in 3D

    V485 controller

    gabrielyoung92/gabs_microSMT_PickAndPlace

    Independent reorganisation of MicroSMT feeder and PNPv3 files, previews and documentation, with upstream attribution and ChatGPT assistance.

    33 parts1

Questions

How big is the Drone fc v1.0 PCB?

It measures 53.5 × 58.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Drone fc v1.0 use?

26 parts, built around the E73-2G4M04S1B, TLV1117LV33DCYR, CL05B104KB54PNC and C2012X5R1A226MT0J0E. 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 Drone fc v1.0 KiCad files?

From the ehuang2021/drone-fc repository on GitHub, at the commit this page was made from: the board is hardware/drone_fc/drone_fc_v1.0.kicad_pcb and its schematic hardware/drone_fc/drone_fc_v1.0.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Drone fc v1.0 design in my own project?

Its repository states no licence, so its author keeps all rights: ask ehuang2021 before reusing the design.