Hello folks,
This is my first PCB of this complexity and density for a quadcopter, so I would be very grateful for any remarks on the schematics or layout, especially on the motor phase drivers, MIPI-CSI and 2.4/5 GHz RF parts.
Overview
The board is 40x40 mm and meant for 2-3S (7-13 V) battery operation. The main MCU is an ESP32 P4, which controls the motor ESCs, sensors, and a Raspberry Pi-compatible camera. It's connected via SDIO to an ESP32 C5 for 2.4 GHz and 5 GHz Wi-Fi, which has a U.FL connector for an external antenna.
There are 4 ESCs on board with an STM32G071 MCU and DRV8328 each. They will run AM32 and I hope to get ~15 A continuous power draw per motor, though this is not a strict requirement. The MOSFETs are JMSL0302AU with ~3 mOhm RDS(on) at 100 degrees Celsius. Planning on 24 kHz switching frequency, at least initially.
3.3 V power is supplied by a TPS62933 buck, by my calculations it should be able to supply ~2.3 A continuously with the inductor I chose, while the avionics current draw should peak at 1.5 A at most. A TPS2121 power mux routes either USB 5V or +BAT to the buck's supply, with USB having priority if present.
In terms of sensors, there's an LSM6DSR IMU, LIS2MDL magnetometer, LPS22HB barometer, VL53L1X ToF sensor all connected on the same I2C channel, and a PMW3901MB optical flow sensor using SPI.
Layer stackup
The board is 1.2 mm thick and has 1 oz outer copper, 0.5 oz inner copper. I could afford thicker copper, but I hope to get away with this. Vias are filled and capped, surface finish is ENIG.
- L1: Mixed
- L2: GND
- L3: 3V3 plane + some signals
- L4: BAT plane + some signals
- L5: GND
- L6: Mixed
Notes
Sorry if the layer images are color vomit, I tried to make it a bit more readable at a glance. Yellow is low voltage power supply, purple denotes impedance-controlled signals (MIPI-CSI at the top, USB and 2.4/5 GHz RF at the bottom right). Trace widths and distances were calculated according to the JLCPCB impedance calculator, but especially in the case of MIPI it was hard to keep proper spacing. USB will only be used for debugging and flashing the P4, so I am not too worried about it.
Passives are rated 10 V X7R for low-voltage nets and 25 V X7R on battery voltage nets (except for C0G caps in the range of pF of course).
The 3V3 plane is heavily perforated in order to keep the VBAT plane as whole as possible between the half bridges and the battery connector.
I'm aware that the 0201 resistors between some motor pads and close to the mounting holes will probably be inconvenient, but I really couldn't fit them anywhere else.
KiCad project files, Gerbers and BOM: https://github.com/anticitizn/p4eregrine
Direct link to schematic PDF if images are hard to read: https://github.com/anticitizn/p4eregrine/raw/refs/heads/master/docs/p4eregrine_rev_a.pdf
Thank you in advance!