# ESP32 BLDC Motor Controller ## Description Multi-layer circular BLDC motor controller for a 24 V, up to 750 W system using an ESP32-WROOM with DRV8323RS gate driver, six external MOSFETs, 2 mOhm shunt current sensing, bottom-mounted AS5600 encoder, USB-C programming/user interface, 3.3 V logic powered from the DRV8323RS buck regulator, and heavy motor phase pads sized for approximately 30 A current paths. Target layout is a circular board around 50 mm diameter, expandable if required for thermal management, power routing, and signal integrity. ## Project Details - **Owner:** amird148 - **Created:** 4/6/2026 - **Last Updated:** 4/17/2026 - **Visibility:** Public ## Key Components ### D1 — [B5819WS](https://www.flux.ai/lcsc/b5819ws~53q5.md) - Role: Buck Freewheel Diode - Package: SOD-323 - Diode Type: Schottky Diode - Manufacturer Part Number: B5819WS - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/1809211240_Shikues-B5819WS_C122855.pdf - JLCPCB Part Class: Extended Part - Max Reverse Voltage: 40V - Product Info Url: https://lcsc.com/product-detail/Schottky-Barrier-Diodes-SBD_B5819WS_C122855.html - Package or Case Code: SOD-323_L1.8-W1.3-LS2.5-RD - Part Type: Schottky Barrier Diodes (SBD) - Forward Voltage: 0.45V to 0.50V - Role Details: Schottky catch diode for DRV8323 internal buck from SW node to ground - LCSC Part Number: C122855 - Manufacturer Name: SHIKUES(时科) **Pins:** - A [pin 2] - K [pin 1] ### D2 — [24V Unidirectional TVS Diode](https://www.flux.ai/corynrobinson/24v-unidirectional-tvs-diode~im.md) - Manufacturer Part Number: SMAJ24A-TR - Breakdown Voltage: 26.7V - Role Details: 24 V VIN surge suppression diode across VIN_24V and GND - Part Type: Diode - Leakage Current: 200nA - Manufacturer Name: STMicroelectronics NV - Package: SMA - Datasheet URL: https://octopart.com/datasheet/smaj24a-tr-stmicroelectronics-350001 - Package or Case Code: D_SMA - Role: Input TVS **Pins:** - A - K ### J1 — [UJ20-C-H-G-SMT-2-P16-TR](https://www.flux.ai/adrian95/uj20-c-h-g-smt-2-p16-tr~v05.md) - Manufacturer Part Number: UJ20-C-H-G-SMT-2-P16-TR - Part Type: Connector - Role: USB Interface - Package: USB-C Receptacle - Mount: Surface Mount - Manufacturer Name: Same Sky (Formerly CUI Devices) - Role Details: USB-C receptacle for UART programming, user power sense, and external interface access - Datasheet URL: https://www.sameskydevices.com/product/resource/uj20-c-h-g-smt-2-p16-tr.pdf - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - CC1 [pin A5] - CC2 [pin B5] - DN1 [pin A7] - DN2 [pin B7] - DP1 [pin A6] - DP2 [pin B6] - GND [pin A1_B12] - GND__1 [pin B1_A12] - SBU1 [pin A8] - SBU2 [pin B8] - SHIELD [pin SH1] - SHIELD__1 [pin SH2] - SHIELD__2 [pin SH3] - SHIELD__3 [pin SH4] - VBUS [pin A4_B9] - VBUS__1 [pin B4_A9] ### Q1 — [NCE6080K](https://www.flux.ai/lcsc/nce6080k~cnku.md) - Part Type: MOSFETs - Continuous Drain Current: 80A - Role Details: Phase A low-side MOSFET - Transistor Type: 1 N-channel - Package: TO-252-2 - Operating Temperature: -55℃~+175℃ - Manufacturer Name: NCE(无锡新洁能) - JLCPCB Part Class: Extended Part - LCSC Part Number: C341705 - Product Info Url: https://lcsc.com/product-detail/Others_Wuxi-NCE-Power-Semiconductor-NCE6080K_C341705.html - Power: 110W - Manufacturer Part Number: NCE6080K - Drain to Source Voltage: 60V - Role: Inverter MOSFET - Package or Case Code: TO-252-2_L6.6-W6.1-P4.57-LS10.1-BR-CW - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/1912111437_Wuxi-NCE-Power-Semiconductor-NCE6080K_C341705.pdf **Pins:** - D [pin 2] - G [pin 1] - S [pin 3] ### Q2 — [NCE6080K](https://www.flux.ai/lcsc/nce6080k~cnku.md) - Manufacturer Name: NCE(无锡新洁能) - Operating Temperature: -55℃~+175℃ - Transistor Type: 1 N-channel - Part Type: MOSFETs - Continuous Drain Current: 80A - Package: TO-252-2 - Product Info Url: https://lcsc.com/product-detail/Others_Wuxi-NCE-Power-Semiconductor-NCE6080K_C341705.html - JLCPCB Part Class: Extended Part - Role Details: Phase B low-side MOSFET - LCSC Part Number: C341705 - Drain to Source Voltage: 60V - Manufacturer Part Number: NCE6080K - Power: 110W - Role: Inverter MOSFET - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/1912111437_Wuxi-NCE-Power-Semiconductor-NCE6080K_C341705.pdf - Package or Case Code: TO-252-2_L6.6-W6.1-P4.57-LS10.1-BR-CW **Pins:** - D [pin 2] - G [pin 1] - S [pin 3] ### Q3 — [NCE6080K](https://www.flux.ai/lcsc/nce6080k~cnku.md) - Package or Case Code: TO-252-2_L6.6-W6.1-P4.57-LS10.1-BR-CW - Role Details: Phase C low-side MOSFET - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/1912111437_Wuxi-NCE-Power-Semiconductor-NCE6080K_C341705.pdf - Power: 110W - Manufacturer Part Number: NCE6080K - Drain to Source Voltage: 60V - Role: Inverter MOSFET - LCSC Part Number: C341705 - JLCPCB Part Class: Extended Part - Product Info Url: https://lcsc.com/product-detail/Others_Wuxi-NCE-Power-Semiconductor-NCE6080K_C341705.html - Package: TO-252-2 - Part Type: MOSFETs - Continuous Drain Current: 80A - Transistor Type: 1 N-channel - Operating Temperature: -55℃~+175℃ - Manufacturer Name: NCE(无锡新洁能) **Pins:** - D [pin 2] - G [pin 1] - S [pin 3] ### Q4 — [NCE6080K](https://www.flux.ai/lcsc/nce6080k~cnku.md) - Drain to Source Voltage: 60V - Manufacturer Part Number: NCE6080K - Power: 110W - Package: TO-252-2 - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/1912111437_Wuxi-NCE-Power-Semiconductor-NCE6080K_C341705.pdf - Package or Case Code: TO-252-2_L6.6-W6.1-P4.57-LS10.1-BR-CW - Manufacturer Name: NCE(无锡新洁能) - Operating Temperature: -55℃~+175℃ - Role Details: Phase A high-side MOSFET - Transistor Type: 1 N-channel - Role: Inverter MOSFET - Continuous Drain Current: 80A - Part Type: MOSFETs - Product Info Url: https://lcsc.com/product-detail/Others_Wuxi-NCE-Power-Semiconductor-NCE6080K_C341705.html - JLCPCB Part Class: Extended Part - LCSC Part Number: C341705 **Pins:** - D [pin 2] - G [pin 1] - S [pin 3] ### Q5 — [NCE6080K](https://www.flux.ai/lcsc/nce6080k~cnku.md) - Role Details: Phase B high-side MOSFET - Product Info Url: https://lcsc.com/product-detail/Others_Wuxi-NCE-Power-Semiconductor-NCE6080K_C341705.html - LCSC Part Number: C341705 - JLCPCB Part Class: Extended Part - Manufacturer Name: NCE(无锡新洁能) - Operating Temperature: -55℃~+175℃ - Transistor Type: 1 N-channel - Part Type: MOSFETs - Continuous Drain Current: 80A - Package: TO-252-2 - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/1912111437_Wuxi-NCE-Power-Semiconductor-NCE6080K_C341705.pdf - Role: Inverter MOSFET - Package or Case Code: TO-252-2_L6.6-W6.1-P4.57-LS10.1-BR-CW - Drain to Source Voltage: 60V - Manufacturer Part Number: NCE6080K - Power: 110W **Pins:** - D [pin 2] - G [pin 1] - S [pin 3] ### Q6 — [NCE6080K](https://www.flux.ai/lcsc/nce6080k~cnku.md) - Package: TO-252-2 - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/1912111437_Wuxi-NCE-Power-Semiconductor-NCE6080K_C341705.pdf - Package or Case Code: TO-252-2_L6.6-W6.1-P4.57-LS10.1-BR-CW - Manufacturer Part Number: NCE6080K - Role Details: Phase C high-side MOSFET - Drain to Source Voltage: 60V - Role: Inverter MOSFET - Power: 110W - JLCPCB Part Class: Extended Part - LCSC Part Number: C341705 - Product Info Url: https://lcsc.com/product-detail/Others_Wuxi-NCE-Power-Semiconductor-NCE6080K_C341705.html - Manufacturer Name: NCE(无锡新洁能) - Operating Temperature: -55℃~+175℃ - Continuous Drain Current: 80A - Part Type: MOSFETs - Transistor Type: 1 N-channel **Pins:** - D [pin 2] - G [pin 1] - S [pin 3] ### Q7 — [MMBT3904LT1G](https://www.flux.ai/openpartlist/mmbt3904lt1g~s5.md) - Part Type: Transistor - Role Details: NPN transistor used in the CP2102N to ESP32 auto-reset/boot circuit - Role: Auto Program Transistor - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://www.onsemi.com/pdf/datasheet/mmbt3904lt1-d.pdf - Manufacturer Part Number: MMBT3904LT1G - Manufacturer Name: ON Semiconductor - Package: SOT-23-3 **Pins:** - B [pin 1] - C [pin 3] - E [pin 2] ### Q8 — [MMBT3904LT1G](https://www.flux.ai/openpartlist/mmbt3904lt1g~s5.md) - Part Type: Transistor - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://www.onsemi.com/pdf/datasheet/mmbt3904lt1-d.pdf - Manufacturer Part Number: MMBT3904LT1G - Manufacturer Name: ON Semiconductor - Role: Auto Program Transistor - Role Details: NPN transistor used in the CP2102N to ESP32 auto-reset/boot circuit - Package: SOT-23-3 **Pins:** - B [pin 1] - C [pin 3] - E [pin 2] ### U1 — [ESP32-WROOM-32E-N16](https://www.flux.ai/jecstronic/esp32-wroom-32e-n16~wqb.md) - Package: Module - Datasheet URL: https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32e_esp32-wroom-32ue_datasheet_en.pdf - Role Details: ESP32-WROOM module for SPI gate-driver control, ADC monitoring, I2C encoder interface, UART programming - License: https://creativecommons.org/licenses/by/4.0/ - Part Type: Module - Manufacturer Part Number: ESP32-WROOM-32E-N16 - Role: Main Controller - No Connect: IO15, IO16, IO17, IO2 - Manufacturer Name: Espressif Systems **Pins:** - 3V3 [pin 2] - EN [pin 3] - GND [pin 47] - GND [pin 43] - GND [pin 40] - GND [pin 44] - GND [pin 46] - GND [pin 45] - GND [pin 1] - GND [pin 38] - GND [pin 39] - GND [pin 42] - GND [pin 41] - GND [pin 15] - IO0 [pin 25] - IO12 [pin 14] - IO13 [pin 16] - IO14 [pin 13] - IO15 [pin 23] - IO16 [pin 27] - IO17 [pin 28] - IO18 [pin 30] - IO19 [pin 31] - IO2 [pin 24] - IO21 [pin 33] - IO22 [pin 36] - IO23 [pin 37] - IO25 [pin 10] - IO26 [pin 11] - IO27 [pin 12] - IO32 [pin 8] - IO33 [pin 9] - IO34 [pin 6] - IO35 [pin 7] - IO4 [pin 26] - IO5 [pin 29] - NC [pin 21] - NC [pin 32] - NC [pin 18] - NC [pin 20] - NC [pin 22] - NC [pin 19] - NC [pin 17] - RXD0 [pin 34] - SENSOR_VN [pin 5] - SENSOR_VP [pin 4] - TXD0 [pin 35] ### U2 — [DRV8323RSRGZR](https://www.flux.ai/lcsc/drv8323rsrgzr~gpmb.md) - Manufacturer Part Number: DRV8323RSRGZR - Package: VQFN-48 - Role Details: 24 V BLDC gate driver with SPI, shunt sensing, and internal buck regulator powering 3.3 V rail - Package or Case Code: VQFN-48_L7.0-W7.0-P0.50-TL-EP5.1 - LCSC Part Number: C545497 - Part Type: Motor Driver ICs - Role: Three-Phase Gate Driver - JLCPCB Part Class: Extended Part - Manufacturer Name: TI(德州仪器) **Pins:** - AGND [pin 35] - BGND [pin 43] - CAL [pin 34] - CB [pin 44] - CPH [pin 4] - CPL [pin 3] - DGND [pin 27] - DVDD [pin 36] - ENABLE [pin 33] - EP [pin 49] - FB [pin 1] - GHA [pin 8] - GHB [pin 17] - GHC [pin 18] - GLA [pin 10] - GLB [pin 15] - GLC [pin 20] - INHA [pin 37] - INHB [pin 39] - INHC [pin 41] - INLA [pin 38] - INLB [pin 40] - INLC [pin 42] - NC [pin 46] - nFAULT [pin 28] - nSCS [pin 32] - nSHDN [pin 48] - PGND [pin 2] - SCLK [pin 31] - SDI [pin 30] - SDO [pin 29] - SHA [pin 9] - SHB [pin 16] - SHC [pin 19] - SNA [pin 12] - SNB [pin 13] - SNC [pin 22] - SOA [pin 25] - SOB [pin 24] - SOC [pin 23] - SPA [pin 11] - SPB [pin 14] - SPC [pin 21] - SW [pin 45] - VCP [pin 5] - VDRAIN [pin 7] - VIN [pin 47] - VM [pin 6] - VREF [pin 26] ### U3 — [AS5600-ASOT](https://www.flux.ai/lcsc/as5600-asot~u8qg.md) - Manufacturer Name: ams(艾迈斯半导体) - Manufacturer Part Number: AS5600-ASOT - Package or Case Code: SOIC-8_L5.0-W4.0-P1.27-LS6.0-BL - JLCPCB Part Class: Extended Part - Supply Voltage: 3.3V;5V - Package: SOIC-8 - Operating Temperature: -40 to 125°C - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2410010132_AMS-AS5600-ASOT_C499458.pdf - Role Details: Bottom-mounted I2C magnetic angle sensor for SimpleFOC rotor position tracking - Part Type: Angle, Linear Position Sensors - LCSC Part Number: C499458 - Product Info Url: https://lcsc.com/product-detail/New-Arrivals_Advanced-Monolithic-Systems-AMS-AS5600-ASOT_C499458.html - Role: Position Encoder **Pins:** - DIR [pin 8] - GND [pin 4] - OUT [pin 3] - PGO [pin 5] - SCL [pin 7] - SDA [pin 6] - VDD3V3 [pin 2] - VDD5V [pin 1] ### U4 — [CP2102N-A02-GQFN20](https://www.flux.ai/vasyl/cp2102n-a02-gqfn20~q3n.md) - Part Type: Microcontroller - Role: USB-UART Bridge - Datasheet URL: https://www.silabs.com/documents/public/data-sheets/cp2102n-datasheet.pdf - Manufacturer Part Number: CP2102N-A02-GQFN20 - Role Details: USB to UART bridge providing TXD RXD RTS DTR for ESP32 programming - Manufacturer Name: SILICON LABS - Package: QFN-20 **Pins:** - ~CTS [pin 15] - ~RTS [pin 16] - ~RXT~/GPIO.3 [pin 19] - ~SUSPEND [pin 11] - ~TXT~/GPIO.2 [pin 20] - ~WAKEUP [pin 13] - CLK/GPIO.0 [pin 2] - D- [pin 5] - D+ [pin 4] - GND [pin 21] - GND [pin 12] - GND [pin 3] - NC [pin 10] - RS485/GPIO.1 [pin 1] - RXD [pin 9] - RXD [pin 17] - SUSPEND [pin 14] - TXD [pin 18] - USB [pin 8] - VDD [pin 6] - VREGIN [pin 7] ### U5 — [TPD4E02B04DQA](https://www.flux.ai/kicad-part-library/tpd4e02b04dqa~id.md) - Package or Case Code: USON-10_2.5x1.0mm_P0.5mm - Manufacturer Part Number: TPD4E02B04DQA - Datasheet URL: http://www.ti.com/lit/ds/symlink/tpd4e02b04.pdf - Manufacturer Name: Texas Instruments Inc. - Package: USON-10 - Role: ESD Protection - Role Details: Protects USB D+ D- and CC lines at the USB-C connector **Pins:** - G [pin 3] - G [pin 8] - IO1 [pin 1] - IO2 [pin 2] - IO3 [pin 4] - IO4 [pin 5] - NC [pin 10] - NC [pin 7] - NC [pin 9] - NC [pin 6] *The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/amird148/esp32-bldc-motor-controller~ts](https://www.flux.ai/amird148/esp32-bldc-motor-controller~ts).* --- *Generated from [https://www.flux.ai/amird148/esp32-bldc-motor-controller~ts](https://www.flux.ai/amird148/esp32-bldc-motor-controller~ts)*