Black magic
GKevinLi·black-magic
About the Black magic PCB
Black magic is an open source STM32 PCB design by GKevinLi, published on GitHub. It is a 4-layer board measuring 50.9 × 43.8 mm, with 70 components from 34 distinct parts.
Its main chip is the STM32G431CBTX, from the STM32 family. Other key parts include the USBLC6-2P6, TLV76133DCY, DRV8323SRTAT and TPS82130. By type, the board carries 26 resistors, 24 capacitors, 6 transistors, 5 ICs, 4 connectors and 3 diodes.
It belongs with the robotics & motion designs in this gallery.
From the project
This is a custom 4S 20A Sensorless BLDC Motor Driver designed for drone motor operation. I haven't had time to make the drone itself because I spent all my time designing this custom PCB instead. Still worth it though.
This is a custom 4S 20A Sensorless BLDC Motor Driver designed for drone motor operation. I haven't had time to make the drone itself because I spent all my time designing this custom PCB instead. Still worth it though.
Features a DRV8323 motor driver chip along with a STM32 microcontroller. Supports full sensorless brushless DC motor operation through PWM input along with current sensing.
Main components on the Black magic
Black magic bill of materials (BOM)
70 components, 34 distinct parts — part numbers from the project's BOM.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | STM32G431CBTX STM32G431CBTx | LQFP-48_7x7mm_P0.5mm | U1 |
| 1 | USBLC6-2P6 | SOT-666 | U3 |
| 1 | TLV76133DCY | SOT-223-3_TabPin2 | U4 |
| 1 | DRV8323SRTAT | QFN50P600X600X80-41N415X415 | U8 |
| 1 | TPS82130 | Texas_SIL0008D_MicroSiP-8-1EP_2.8x3mm_P0.65mm_EP1.1x1.9mm_ThermalVias | U9 |
| 6 | CSD17577Q3A | VSON-8_3.3x3.3mm_P0.65mm_NexFET | Q1, Q2, Q3, Q4, Q5, Q6 |
| 1 | USB_C_RECEPTACLE_USB2.0_14P USB_C_Receptacle_USB2.0_14P | USB_C_Receptacle_HCTL_HC-TYPE-C-16P-01A | J1 |
| 1 | CONN_01X03 Conn_01x03 | PinSocket_1x03_P2.54mm_Vertical | J2 |
| 1 | CONN_01X02 Conn_01x02 | SolderWire-4sqmm_1x02_P12mm_D3mm_OD6mm | J3 |
| 1 | CONN_01X03 Conn_01x03 | SolderWire-4sqmm_1x03_P12mm_D3mm_OD6mm | J4 |
| 2 | SW_Push | SW_Push_SPST_NO_Alps_SKRK | SW1, SW3 |
| 2 | D_Schottky | D_SOD-323 | D2, D7 |
| 1 | LED | LED_0603_1608Metric | D6 |
| 2 | 100UF 100uf | CP_Elec_6.3x7.7 | C1, C10 |
| 2 | 22UF 22uf | C_0603_1608Metric | C2, C7 |
| 2 | 0.1UF 0.1uf | C_0402_1005Metric | C3, C6 |
| 1 | 1UF 1uf | C_0402_1005Metric | C4 |
| 1 | 47NF 47nf | C_0402_1005Metric | C5 |
| 3 | 10UF 10uf | C_0603_1608Metric | C11, C23, C26 |
| 1 | 3.3NF 3.3nf | C_0402_1005Metric | C12 |
Show 14 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 4 | 100NF 100nf | C_0402_1005Metric | C13, C19, C20, C21 |
| 5 | 22UF 22uf | C_1812_4532Metric | C14, C15, C16, C17, C18 |
| 1 | 2.2UF 2.2uf | C_0402_1005Metric | C22 |
| 2 | 0U1F 0u1f | C_0402_1005Metric | C24, C25 |
| 6 | 10 | R_0402_1005Metric | R1, R2, R7, R8, R9, R10 |
| 2 | 5K1 5k1 | R_0402_1005Metric | R5, R6 |
| 6 | 33K 33k | R_0402_1005Metric | R11, R15, R16, R20, R21, R22 |
| 1 | 68K 68k | R_0402_1005Metric | R12 |
| 1 | 22K 22k | R_0402_1005Metric | R13 |
| 1 | 100K 100k | R_0402_1005Metric | R14 |
| 4 | 10K 10k | R_0402_1005Metric | R17, R18, R19, R28 |
| 1 | 5.1K 5.1k | R_0402_1005Metric | R23 |
| 3 | 0.01 | R_2512_6332Metric | R24, R25, R26 |
| 1 | 4.7K 4.7k | R_0402_1005Metric | R27 |
Black magic design files
The KiCad project lives in the GKevinLi/black-magic repository on GitHub; these links point at the commit this page was built from.
- Layouttesting3.kicad_pcb
- Schematictesting3.kicad_sch
- BOMbom.csv
Black magic: common questions
What microcontroller does the Black magic use?
The Black magic is built around the STM32G431CBTX, from the STM32 family.
How big is the Black magic PCB?
The Black magic measures 50.9 × 43.8 mm, has 4 copper layers and is 1.6 mm thick.
How many components are on the Black magic?
70 components, from 34 distinct parts, with part numbers taken from the project's own BOM. The full bill of materials is listed on this page.
Where can I download the Black magic design files?
From the GKevinLi/black-magic repository on GitHub, which has the KiCad layout, the schematic and the BOM; the links under Design files point to each one.
Can I use the Black magic design in my own project?
The repository has no license, so all rights stay with GKevinLi. Use it as a reference, and ask the author before reusing the design.
Can I test firmware for the Black magic without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug STM32 firmware against it before you order a PCB.
Similar boards
STM32
LumenPnP Motherboard
opulo-inc
149 × 95 mm296 parts4LCC-BY-SA-4.03.7kSTM32
Type c
google
188 × 30 mm17 parts2LApache-2.02.9kSTM32
Main panel
google
234 × 84 mm26 parts4LApache-2.02.9kSTM32
Base
google
52.3 × 52.3 mm36 parts2LApache-2.02.9kSTM32
Type a
google
150 × 30 mm14 parts2LApache-2.02.9kSTM32
Type e
google
140.5 × 30 mm13 parts2LApache-2.02.9k