Skip to the content
6 layers39.5 × 39.5 mmP4eregrine, the printed circuit board in 3D

All-in-one ESP32 P4-based drone ESC, flight controller, and video processor

Size
39.5 × 39.5 mm
Copper layers
6
Thickness
1.17 mm
Parts
359
Nets
397
Pads
1,737
Tracks, vias
2,494, 813
Pours
34
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
23 Aug 2026
Updated
14 Oct 2026

Overview

P4eregrine is an open-source printed circuit board by anticitizn, from the anticitizn/p4eregrine repository on GitHub. It is a 6-layer board of 39.5 × 39.5 mm with 359 parts on 397 nets, routed with 2,494 tracks and 813 vias.

It is built around the STM32G071K8U6, ESP32-C5HF4-V1.2 and ESP32-P4NRW32X, with the DRV8328BRUYR, LIS2MDL and LPS22HB among its other parts. Its parts include 131 resistors, 122 capacitors, 24 transistors, 23 ICs and 6 diodes. It belongs with the robots and motor control boards and the ESP32, STM32 and RISC-V boards of this library.

Main components

12

README

README.md

P4eregrine

An all-in-one drone ESC, flight controller and video processor, powered by an ESP32 P4 in a 40x40 mm footprint.

Front and back PCB render

Specifications

  • 2S-3S (7-13 V) battery input
  • 40x40 mm board size, 30.5x30.5 mm mounting holes
  • ESP32 P4 flight computer and video processor
  • ESP32 C5 for 2.4 GHz and 5 GHz Wi-Fi connectivity
  • Raspberry Pi camera-compatible connector (MIPI-CSI)
  • LSM6DSR IMU
  • LIS2MDL magnetometer
  • LPS22HB barometer
  • VL53L1X time of flight sensor
  • PMW3901MB optical flow sensor
  • STM32G071GBU6 + DRV8328 for each ESC running AM32, hopefully capable of handling 15 A current per motor
  • JMSL0302AU MOSFETs (the cheapest semi-reputable 3x3 package I could find with a lower than 3 mOhm RDS(on) when hot)
  • TPS62933 buck converter for 3.3V power, capable of continuously supplying ~2.3 A
  • Single high-side current measurement shunt for the entire board

Stackup

6 layers, 1oz outer copper, 0.5 oz inner copper, 1.2 mm thick (JLC06121H-3313)

  • L1: Mixed
  • L2: GND
  • L3: 3V3 plane + some signals
  • L4: BAT plane + some signals
  • L5: GND
  • L6: Mixed

Filled and capped vias are a must, as the board makes extensive use of via-in-pad. All vias are 0.45/0.25 mm or bigger to avoid incurring extra fees from JLCPCB.

Schematics, layer images and BOM are available in docs/, Gerber files in export/.

Software?

AM32 for the ESCs, custom firmware for the rest. I have most parts working on the previous prototype (ESP32 S3 with 8520 brushed motors)

Parts

359
QtyValueFootprintReferences
5610kResistor_SMD:R_0201_0603MetricR1, R12, R13, R100, R102, R103, R105, R108, R110, R113, R116, R125, R127, R128, R130, R133 +40
30100nCapacitor_SMD:C_0201_0603MetricC2, C3, C10, C14, C15, C16, C17, C20, C21, C22, C23, C26, C178, C187, C212, C215 +14
2910Resistor_SMD:R_0201_0603MetricR69, R70, R106, R107, R119, R120, R123, R124, R131, R132, R144, R145, R148, R149, R156, R157 +13
251uCapacitor_SMD:C_0402_1005MetricC18, C109, C110, C111, C133, C134, C135, C157, C158, C159, C180, C181, C182, C183, C210, C213 +9
24NMOSeasyeda2kicad:PDFN3333-8_L3.1-W3.2-P0.65-LS3.4-BLQ10, Q11, Q12, Q13, Q14, Q15, Q16, Q17, Q18, Q19, Q20, Q21, Q22, Q23, Q24, Q25 +8
23TestPointeasyeda2kicad:TestPoint_Pad_D1.0mm_No_CourtyardTP17, TP18, TP19, TP23, TP24, TP25, TP26, TP27, TP28, TP29, TP30, TP31, TP35, TP36, TP37, TP39 +7
181kResistor_SMD:R_0201_0603MetricR30, R43, R76, R101, R104, R109, R126, R129, R134, R139, R142, R143, R146, R151, R154, R159 +2
1710uCapacitor_SMD:C_0603_1608MetricC8, C25, C27, C39, C50, C58, C67, C75, C77, C78, C81, C82, C86, C87, C88, C89 +1
174.7kResistor_SMD:R_0201_0603MetricR2, R4, R10, R11, R35, R41, R44, R49, R51, R62, R112, R136, R137, R165, R166, R167 +1
1610uCapacitor_SMD:C_1210_3225MetricC113, C114, C121, C137, C138, C145, C161, C162, C169, C185, C186, C193, C198, C199, C200, C201
710uCapacitor_SMD:C_0805_2012MetricC1, C79, C80, C105, C129, C153, C177
6LEDLED_SMD:LED_0201_0603MetricD1, D2, D14, D15, D16, D17
6TBDCapacitor_SMD:C_0201_0603MetricC52, C53, C54, C55, C56, C57
4100nCapacitor_SMD:C_0402_1005MetricC103, C127, C151, C175
4220kResistor_SMD:R_0201_0603MetricR65, R90, R115, R140
4470nFCapacitor_SMD:C_0402_1005MetricC107, C131, C155, C179
4DRV8328BRUYReasyeda2kicad:QFN-28_L4.0-W4.0-P0.40-BL-EP2.6U16, U19, U22, U25
4MOT_Aeasyeda2kicad:MotorPad_1x3mmTP20, TP32, TP44, TP56
4MOT_Beasyeda2kicad:MotorPad_1x3mmTP21, TP33, TP45, TP57
4MOT_Ceasyeda2kicad:MotorPad_1x3mmTP22, TP34, TP46, TP58
4STM32G071K8U6easyeda2kicad:UFQFPN-28_L4.0-W4.0-P0.50-BLU20, U23, U26, U30
4SolderJumper_2_Openeasyeda2kicad:SolderJumper-2-0.6x0.5mmJP1, JP3, JP4, JP5
30Resistor_SMD:R_0201_0603MetricR26, R27, R28
310nCapacitor_SMD:C_0201_0603MetricC13, C19, C49
212pFCapacitor_SMD:C_0402_1005MetricC35, C36
212pfCapacitor_SMD:C_0402_1005MetricC11, C12
22.2uHInductor_SMD:L_1008_2520MetricL3, L5
2499kResistor_SMD:R_0201_0603MetricR31, R32
2SolderJumper_3_Openeasyeda2kicad:SolderJumper-3-0.6x0.5mm_1JP2, JP6
2TestPointeasyeda2kicad:TestPoint_Pad_L1.0mmTP38, TP48
1+BATTeasyeda2kicad:BatteryPad_4x3mmTP1
1-BATTeasyeda2kicad:BatteryPad_4x3mmTP2
10.3pCapacitor_SMD:C_0201_0603MetricC42
10.8pCapacitor_SMD:C_0201_0603MetricC40
12.6pCapacitor_SMD:C_0201_0603MetricC46
1220nCapacitor_SMD:C_0201_0603MetricC85
122pCapacitor_SMD:C_0201_0603MetricC66
124nHInductor_SMD:L_0201_0603MetricL1
12nHInductor_SMD:L_0402_1005MetricL2
13pCapacitor_SMD:C_0201_0603MetricC47
14.02kResistor_SMD:R_0201_0603MetricR5
1BVN-Z-R0005-1.0easyeda2kicad:RES-SMD_4P-L4.1-W3.1-BL_BVN-1216R3
1Conn_CoaxialConnector_Coaxial:U.FL_Hirose_U.FL-R-SMT-1_VerticalJ5
1Crystal_GND24Crystal:Crystal_SMD_2016-4Pin_2.0x1.6mmY1
1Crystal_GND24Crystal:Crystal_SMD_2520-4Pin_2.5x2.0mmY2
1ESP32-C5HF4Package_DFN_QFN:QFN-48-1EP_6x6mm_P0.4mm_EP4.6x4.6mmU4
1ESP32-P4NRW32XPCM_Espressif:ESP32-P4U1
1FPC-1.0FX-15PWCR-H20easyeda2kicad:FPC-SMD_15P-P1.00_XUNPU_FPC-1.0FX-15PWCR-H20U10
1GT-USB-7039Aeasyeda2kicad:USB-C-SMD_GT-USB-7039AUSB1
1INA190A2IDCKReasyeda2kicad:SC-70-6_L2.0-W1.3-P0.65-LS2.1-BRU8
1LFD182G45DCHD277easyeda2kicad:FILTER-SMD_8P-L1.6-W0.8-LFD182G45DCHD277U5
1LIS2MDLPackage_LGA:LGA-12_2x2mm_P0.5mmU12
1LPS22HBPackage_LGA:ST_HLGA-10_2x2mm_P0.5mm_LayoutBorder3x2yU2
1LSM6DS3Package_LGA:LGA-14_3x2.5mm_P0.5mm_LayoutBorder3x4yU13
1PMW3901MB-TXQT_C43496881lcsc_footprints:C43496881_COB-28_L6_0-W6_0-P0_65-TL-EPU14
1TLV62569DBVPackage_TO_SOT_SMD:SOT-23-5U6
1TPD2EUSB30APackage_TO_SOT_SMD:Texas_DRT-3U15
1TPS2121RUXReasyeda2kicad:VQFN-HR-12_L2.5-W2.0-P0.50-BLU9
1TPS62933Package_TO_SOT_SMD:SOT-583-8U17
1VL53L1CXV0FY1Sensor_Distance:ST_VL53L1xU11
1W25Q128JVPPackage_SON:WSON-8-1EP_6x5mm_P1.27mm_EP3.4x4.3mmU3

Similar boards

  • 2 layers32 × 32 mmTuxmini v03, the printed circuit board in 3D

    Tuxmini v03

    tux-friend/tux-cube

    Physics Sensor Cube Tux³

    83 parts18GPL-3.0
  • 6 layers43.2 × 74.4 mmMonolith, the printed circuit board in 3D

    Monolith

    MidwestMotorBoy/Battery-Bank

    Monolith: an ultralight IP67 power bank for backpacking. 4S BAK 65E 21700 (91 Wh, under the 100 Wh airline limit), two bidirectional 100 W USB-C PD ports, Bluetooth LE (TI CC2340) with an iPhone app.

    289 parts
  • 6 layers30.5 × 31.9 mmMerlynESC, the printed circuit board in 3D

    MerlynESC

    YeetTheAnson/Merlyn435-Flight-Stack

    Successor to the Merlyn411 25mm flight controller. The flight stack includes a 3in1 20mm flight controller and a 20mm ESC.

    163 parts6
  • 4 layers25 × 74 mmPTR mini pcb, the printed circuit board in 3D

    PTR mini pcb

    PTR-projects/PTR_mini_hardware

    Welcome to the KPPTR-hardware repository! This repository contains the design files for the hardware components used in the KPPTR project.

    140 parts1MIT
  • 4 layers16.2 × 23.2 mmAART11, the printed circuit board in 3D

    AART11

    ImbaNagibator/slot-car-ecom

    This repo contains a KiCad design, documentation and ancillary artifacts for a slot car brushless motor electronic commutator or "eCom", also known as an Electronic Speed Controller (ESC).

    82 partsCC0-1.0
  • 2 layers48 × 60 mmCustom wireless mouse, the printed circuit board in 3D

    Custom wireless mouse

    limmjacc/custom-wireless-mouse

    Project to track the hardware and firmware for a custom made computer mouse.

    33 parts
  • 4 layers26 × 56 mmPTR micro pcb, the printed circuit board in 3D

    PTR micro pcb

    PTR-projects/PTR_micro_hardware

    Welcome to the KPPTR-hardware repository! This repository contains the design files for the hardware components used in the KPPTR project.

    115 partsMIT
  • 2 layers69 × 44 mmPanel proto lna board, the printed circuit board in 3D

    Panel proto lna board

    PantsForBirds/adsbee

    Open Source Embedded ADS-B Receiver

    144 parts344GPL-3.0

Questions

How big is the P4eregrine PCB?

It measures 39.5 × 39.5 mm and has 6 copper layers, 1.17 mm thick.

What parts does the P4eregrine use?

359 parts, built around the STM32G071K8U6, ESP32-C5HF4-V1.2, ESP32-P4NRW32X and DRV8328BRUYR. 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 P4eregrine KiCad files?

From the anticitizn/p4eregrine repository on GitHub, at the commit this page was made from: the board is p4eregrine.kicad_pcb and its schematic bldc_motors.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the P4eregrine design in my own project?

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