Black magic

GKevinLi·black-magic

Black magic PCB layout, top view — open source STM32 board by GKevinLi

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.

Black magic, from the project README
From the project README

Main components on the Black magic

Black magic bill of materials (BOM)

70 components, 34 distinct parts — part numbers from the project's BOM.

QtyPartRefs
1
STM32G431CBTX
STM32G431CBTx
U1
1
USBLC6-2P6
U3
1
TLV76133DCY
U4
1
DRV8323SRTAT
U8
1
TPS82130
U9
6
CSD17577Q3A
Q1, Q2, Q3, Q4, Q5, Q6
1
USB_C_RECEPTACLE_USB2.0_14P
USB_C_Receptacle_USB2.0_14P
J1
1
CONN_01X03
Conn_01x03
J2
1
CONN_01X02
Conn_01x02
J3
1
CONN_01X03
Conn_01x03
J4
2
SW_Push
SW1, SW3
2
D_Schottky
D2, D7
1
LED
D6
2
100UF
100uf
C1, C10
2
22UF
22uf
C2, C7
2
0.1UF
0.1uf
C3, C6
1
1UF
1uf
C4
1
47NF
47nf
C5
3
10UF
10uf
C11, C23, C26
1
3.3NF
3.3nf
C12
Show 14 more
QtyPartRefs
4
100NF
100nf
C13, C19, C20, C21
5
22UF
22uf
C14, C15, C16, C17, C18
1
2.2UF
2.2uf
C22
2
0U1F
0u1f
C24, C25
6
10
R1, R2, R7, R8, R9, R10
2
5K1
5k1
R5, R6
6
33K
33k
R11, R15, R16, R20, R21, R22
1
68K
68k
R12
1
22K
22k
R13
1
100K
100k
R14
4
10K
10k
R17, R18, R19, R28
1
5.1K
5.1k
R23
3
0.01
R24, R25, R26
1
4.7K
4.7k
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.

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