

P4eregrine
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
12STM32G071K8U6
UFQFPN-32(5x5)1.71V~3.6V 12bit 12bit 30 64KB 64MHz ARM Cortex-M0 FLASH UFQFPN-32(5x5) Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)ESP32-C5HF4-V1.2
QFN-48(6x6)QFN-48(6x6) Microcontrollers (MCU/MPU/SOC) ROHSEspressif SystemsMicrocontrollers (MCU/MPU/SOC)ESP32-P4NRW32X
QFN-104_10x10mmQFN-104(10x10) Microcontrollers (MCU/MPU/SOC) ROHSEspressif SystemsMicrocontrollers (MCU/MPU/SOC)DRV8328BRUYR
WQFN-28(4x4)-40℃~+125℃ 100ns 100ns 1A 1uA 2A 4.5V~60V 6 Half-Bridge、Three Phase MOSFET Under Voltage Protection、Over Current Protection、Overtemperature protection (OTP) WQFN-28(4x4) Gate Drivers ROHSTexas InstrumentsGate DriversLIS2MDL
LGA-12(2x2)-40℃~+85℃ 1.71V~3.6V 16bit 200uA I2C、SPI ±5mT ±5mT LGA-12(2x2) 3D Magnetic Sensors ROHSSTMicroelectronics3D Magnetic SensorsLPS22HB
HLGA-10(2x2)-40℃~+85℃ 0.1hpa 0.1hpa 1.7V~3.6V 1uA 26Kpa~1.26bar I2C、SPI On-chip temperature compensation、Integrated ADC and digital interface、On-chip calibration and non-volatile storage、Integrated signal amplifier、On-chip temperature output HLGA-10(2x2) Pressure Sensors ROHSSTMicroelectronicsPressure SensorsPMW3901MB-TXQT
COB-280℃~+40℃ 1.8V~2.1V 2.28mm 6mm 6mm SPI COB-28 Ambient Light Sensors ROHSPixArtAmbient Light SensorsTLV62569DBVR-TP
SOT-23-51 1.5MHz 2.7V~5.5V 2A 40uA Adjustable Buck Built-in No SOT-23-5 DC-DC Converters ROHSTECH PUBLICDC-DC ConvertersTPS62933DRL
SOT-583-40℃~+150℃@(TJ) 1 12uA 2.2MHz 3.8V~30V 3A 800mV~22V Adjustable Buck Buck Built-in Yes SOT-583 DC-DC Converters ROHSTexas InstrumentsDC-DC ConvertersVL53L1CXV0FY/1
LGA-12(2.5x4.9)-20℃~+85℃ 1.56mm 16mA 2.5mm 2.6V~3.5V 4.9mm 4m I2C Programmable transmission Yes LGA-12(2.5x4.9) Position Sensors ROHSSTMicroelectronicsPosition SensorsW25Q128JVPIM
WSON-8-EP(5x6)-40℃~+85℃ 100,000 cycles 10uA 128Mbit 133MHz 2.7V~3.6V 20 Years 3ms Power-on reset、Hardware write protection、Software write protection、Write enable latch、Absolute write protection SPI WSON-8-EP(5x6) NOR FLASH ROHSWinbond ElecNOR FLASHFPC-1.0FX-15PWCR-H20
SMD,P=1mm,卧贴-25℃~+85℃ 0.3mm 15P 1mm 2mm 500mA 50V Bottom Contact Copper alloy Hinged Lid Surface Mount, Right Angle Tin SMD,P=1mm,卧贴 FFC, FPC (Flat Flexible) Connector Assemblies ROHSXUNPUFFC, FPC (Flat Flexible) Connector Assemblies
README
README.mdP4eregrine
An all-in-one drone ESC, flight controller and video processor, powered by an ESP32 P4 in a 40x40 mm footprint.

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| Qty | Value | Footprint | References |
|---|---|---|---|
| 56 | 10k | Resistor_SMD:R_0201_0603Metric | R1, R12, R13, R100, R102, R103, R105, R108, R110, R113, R116, R125, R127, R128, R130, R133 +40 |
| 30 | 100n | Capacitor_SMD:C_0201_0603Metric | C2, C3, C10, C14, C15, C16, C17, C20, C21, C22, C23, C26, C178, C187, C212, C215 +14 |
| 29 | 10 | Resistor_SMD:R_0201_0603Metric | R69, R70, R106, R107, R119, R120, R123, R124, R131, R132, R144, R145, R148, R149, R156, R157 +13 |
| 25 | 1u | Capacitor_SMD:C_0402_1005Metric | C18, C109, C110, C111, C133, C134, C135, C157, C158, C159, C180, C181, C182, C183, C210, C213 +9 |
| 24 | NMOS | easyeda2kicad:PDFN3333-8_L3.1-W3.2-P0.65-LS3.4-BL | Q10, Q11, Q12, Q13, Q14, Q15, Q16, Q17, Q18, Q19, Q20, Q21, Q22, Q23, Q24, Q25 +8 |
| 23 | TestPoint | easyeda2kicad:TestPoint_Pad_D1.0mm_No_Courtyard | TP17, TP18, TP19, TP23, TP24, TP25, TP26, TP27, TP28, TP29, TP30, TP31, TP35, TP36, TP37, TP39 +7 |
| 18 | 1k | Resistor_SMD:R_0201_0603Metric | R30, R43, R76, R101, R104, R109, R126, R129, R134, R139, R142, R143, R146, R151, R154, R159 +2 |
| 17 | 10u | Capacitor_SMD:C_0603_1608Metric | C8, C25, C27, C39, C50, C58, C67, C75, C77, C78, C81, C82, C86, C87, C88, C89 +1 |
| 17 | 4.7k | Resistor_SMD:R_0201_0603Metric | R2, R4, R10, R11, R35, R41, R44, R49, R51, R62, R112, R136, R137, R165, R166, R167 +1 |
| 16 | 10u | Capacitor_SMD:C_1210_3225Metric | C113, C114, C121, C137, C138, C145, C161, C162, C169, C185, C186, C193, C198, C199, C200, C201 |
| 7 | 10u | Capacitor_SMD:C_0805_2012Metric | C1, C79, C80, C105, C129, C153, C177 |
| 6 | LED | LED_SMD:LED_0201_0603Metric | D1, D2, D14, D15, D16, D17 |
| 6 | TBD | Capacitor_SMD:C_0201_0603Metric | C52, C53, C54, C55, C56, C57 |
| 4 | 100n | Capacitor_SMD:C_0402_1005Metric | C103, C127, C151, C175 |
| 4 | 220k | Resistor_SMD:R_0201_0603Metric | R65, R90, R115, R140 |
| 4 | 470nF | Capacitor_SMD:C_0402_1005Metric | C107, C131, C155, C179 |
| 4 | DRV8328BRUYR | easyeda2kicad:QFN-28_L4.0-W4.0-P0.40-BL-EP2.6 | U16, U19, U22, U25 |
| 4 | MOT_A | easyeda2kicad:MotorPad_1x3mm | TP20, TP32, TP44, TP56 |
| 4 | MOT_B | easyeda2kicad:MotorPad_1x3mm | TP21, TP33, TP45, TP57 |
| 4 | MOT_C | easyeda2kicad:MotorPad_1x3mm | TP22, TP34, TP46, TP58 |
| 4 | STM32G071K8U6 | easyeda2kicad:UFQFPN-28_L4.0-W4.0-P0.50-BL | U20, U23, U26, U30 |
| 4 | SolderJumper_2_Open | easyeda2kicad:SolderJumper-2-0.6x0.5mm | JP1, JP3, JP4, JP5 |
| 3 | 0 | Resistor_SMD:R_0201_0603Metric | R26, R27, R28 |
| 3 | 10n | Capacitor_SMD:C_0201_0603Metric | C13, C19, C49 |
| 2 | 12pF | Capacitor_SMD:C_0402_1005Metric | C35, C36 |
| 2 | 12pf | Capacitor_SMD:C_0402_1005Metric | C11, C12 |
| 2 | 2.2uH | Inductor_SMD:L_1008_2520Metric | L3, L5 |
| 2 | 499k | Resistor_SMD:R_0201_0603Metric | R31, R32 |
| 2 | SolderJumper_3_Open | easyeda2kicad:SolderJumper-3-0.6x0.5mm_1 | JP2, JP6 |
| 2 | TestPoint | easyeda2kicad:TestPoint_Pad_L1.0mm | TP38, TP48 |
| 1 | +BATT | easyeda2kicad:BatteryPad_4x3mm | TP1 |
| 1 | -BATT | easyeda2kicad:BatteryPad_4x3mm | TP2 |
| 1 | 0.3p | Capacitor_SMD:C_0201_0603Metric | C42 |
| 1 | 0.8p | Capacitor_SMD:C_0201_0603Metric | C40 |
| 1 | 2.6p | Capacitor_SMD:C_0201_0603Metric | C46 |
| 1 | 220n | Capacitor_SMD:C_0201_0603Metric | C85 |
| 1 | 22p | Capacitor_SMD:C_0201_0603Metric | C66 |
| 1 | 24nH | Inductor_SMD:L_0201_0603Metric | L1 |
| 1 | 2nH | Inductor_SMD:L_0402_1005Metric | L2 |
| 1 | 3p | Capacitor_SMD:C_0201_0603Metric | C47 |
| 1 | 4.02k | Resistor_SMD:R_0201_0603Metric | R5 |
| 1 | BVN-Z-R0005-1.0 | easyeda2kicad:RES-SMD_4P-L4.1-W3.1-BL_BVN-1216 | R3 |
| 1 | Conn_Coaxial | Connector_Coaxial:U.FL_Hirose_U.FL-R-SMT-1_Vertical | J5 |
| 1 | Crystal_GND24 | Crystal:Crystal_SMD_2016-4Pin_2.0x1.6mm | Y1 |
| 1 | Crystal_GND24 | Crystal:Crystal_SMD_2520-4Pin_2.5x2.0mm | Y2 |
| 1 | ESP32-C5HF4 | Package_DFN_QFN:QFN-48-1EP_6x6mm_P0.4mm_EP4.6x4.6mm | U4 |
| 1 | ESP32-P4NRW32X | PCM_Espressif:ESP32-P4 | U1 |
| 1 | FPC-1.0FX-15PWCR-H20 | easyeda2kicad:FPC-SMD_15P-P1.00_XUNPU_FPC-1.0FX-15PWCR-H20 | U10 |
| 1 | GT-USB-7039A | easyeda2kicad:USB-C-SMD_GT-USB-7039A | USB1 |
| 1 | INA190A2IDCKR | easyeda2kicad:SC-70-6_L2.0-W1.3-P0.65-LS2.1-BR | U8 |
| 1 | LFD182G45DCHD277 | easyeda2kicad:FILTER-SMD_8P-L1.6-W0.8-LFD182G45DCHD277 | U5 |
| 1 | LIS2MDL | Package_LGA:LGA-12_2x2mm_P0.5mm | U12 |
| 1 | LPS22HB | Package_LGA:ST_HLGA-10_2x2mm_P0.5mm_LayoutBorder3x2y | U2 |
| 1 | LSM6DS3 | Package_LGA:LGA-14_3x2.5mm_P0.5mm_LayoutBorder3x4y | U13 |
| 1 | PMW3901MB-TXQT_C43496881 | lcsc_footprints:C43496881_COB-28_L6_0-W6_0-P0_65-TL-EP | U14 |
| 1 | TLV62569DBV | Package_TO_SOT_SMD:SOT-23-5 | U6 |
| 1 | TPD2EUSB30A | Package_TO_SOT_SMD:Texas_DRT-3 | U15 |
| 1 | TPS2121RUXR | easyeda2kicad:VQFN-HR-12_L2.5-W2.0-P0.50-BL | U9 |
| 1 | TPS62933 | Package_TO_SOT_SMD:SOT-583-8 | U17 |
| 1 | VL53L1CXV0FY1 | Sensor_Distance:ST_VL53L1x | U11 |
| 1 | W25Q128JVP | Package_SON:WSON-8-1EP_6x5mm_P1.27mm_EP3.4x4.3mm | U3 |
Similar boards
- 2 layers32 × 32 mm

- 6 layers43.2 × 74.4 mm

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 mm

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 mm

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 mm

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 mm

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 mm

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 mm

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.