STM32 ESC PCB Schematic Design - KiCAD ESC Project (DeepDrive v1.0)

preview_player
Показать описание
This is the first version of the DeepDrive project, an STM32-Based ESC PCB Designed For Evaluating Motor Control Algorithms for PMSM/BLDC Motors. I’ve designed this board to be a development board that can be used to test various motor control algorithms, especially Sensorless FOC (Field-Oriented Control).

In this video, I'll show you the STM32 ESC PCB & schematic design steps, explain some of the design decisions that I’ve made, how to prepare the files needed for manufacturing, and how to place the PCB SMT order at JLCPCB who are kindly sponsoring this project as well.

[ ◾-- JLCPCB Discount Coupon Link --◾ ]
Create a new JLCPCB account to enjoy a 54$ discount coupon on your first PCB/PCBA order using the link below

[ ◾-- Support My Work --◾ ]

[ ⏱️-- Timestamps --⏱️ ]
(Project Overview)
00:00:00 - DeepDrive v1.0 Project Overview & Objectives
00:01:40 - Hardware Requirements For The PCB Project
00:02:58 - Hardware HLD (High-Level Design)
(Schematic Design)
00:03:40 - Schematic Design Overview
00:06:14 - DC Voltage Input (Power IN) + TVS
00:07:33 - RPP (Reverse Polarity Protection)
00:11:58 - DC-Link Filtering Cap. Array
00:12:20 - DC-DC Buck Converter (3.3v Logic Supply)
00:15:10 - Gate Driver (DRV8302) 3-Phase Half-Bridge MOSFET Driver
00:20:20 - 3-Phase Inverter Bridge + RC Snubbers
00:25:42 - Dual-Shunt Phase Current Measurement
00:30:35 - Phase Voltage Measurement + Virtual Neutral Point
00:31:26 - BEMF ZCD (Zero-Crossing Detection For 3-PH BEMF)
00:32:00 - DC (Battery) Current Measurement
00:38:07 - DC-Link & Battery Voltage Measurement
00:38:50 - Temperature Sensing Using a BJT Transistor
00:43:12 - ADC Analog Inputs Protection
00:44:03 - STM32G4 Microcontroller Circuitry (uC, SWD, OSC, VDDA, RESET)
00:51:00 - uC Auxiliaries (USB 2.0 FS, UART, AIN, LEDs, Switches, NVM)
(PCB Layout Overview)
00:55:28 - PCB Stackup & Layout Overview
(Generating PCB Fabrication & Assembly Output Files in KiCAD)
00:58:51 - Fabrication Output Files Generation Using JLCPCB Toolkit Plugin
(Placing PCBA Order At JLCPCB)
00:59:53 - Placing PCBA Assembly Order At JLCPCB
(PCB Unboxing, Smoke Testing, and Firmware Test)
01:05:17 - PCB Unboxing
01:05:42 - Microscope Inspection
01:05:54 - Firmware Test (LED Blinking)
01:06:28 - Spinning a BLDC With DeepDrive Board (in OLC)
(What's Next?)
01:06:33 - What's Coming Next?!
01:07:05 - DeepDrive v1.0 Rev. E (Economic Optimized Revision)
01:09:45 - Outro

[ 🔖-- Attachments --🔖 ]
OneNote Hand-Written Notes
DeepDrive v1.0 STM32 ESC PCB Project Article
STM32 Programming Tutorials Series

------------------

Disclaimer: These are affiliate links so if you buy anything through them I get a small commission as a kickback from Amazon which helps out the channel. Thank you!

[ ⚙️-- LAB KIT --⚙️ ]

[ 💻-- COURSES --💻 ]
PCB Design For Embedded Systems & Electronics Projects

------------------

[ 🔗-- LINKS --🔗 ]
Рекомендации по теме
Комментарии
Автор

I am so fortunate to have found this helpful video. I was completely overwhelmed by the lack of videos covering this topic. 
Thank you, Khaled.

ida_
Автор

amazing, waiting for more !
this type of videos are gonna blow up, very good

DeMaxize
Автор

amazing content! I hope you will produce more videos like this

retronexusnet
Автор

Superb explanation! Eagerly awaiting the PCB layout and routing followup video.

dhruvbose
Автор

ما شاء الله عليك يا خالد
ربنا ينفع بك ويوفقك ❤

mustafa_mah
Автор

I'm developing ESC for ebike and found your video its very helpful and guided through my mistakes and helps me a lot if I just changed the FETs to drive at higher voltage along with power sections it's possible to implicate same configuration of your circuit for my project.

Waiting for your follow-up video related to drivers and testing 😊

dhairyapanchal
Автор

Give us more videos - this is really good work.

kulaniscap
Автор

Amazing video. Thank you for posting this!

davidbalderrrama
Автор

An Amazing video!! waiting for more similiar videos.

amerhk
Автор

may I ask how you calculate the series gate resistor for the mosfet to be 22ohm?

phutan
Автор

hello, do you know about the sizing of capacitor and inductor for the bridge filter and bulk capacitor? thanks

rizqokarim
Автор

how is V2 going? also is the code finished?

sanjikaneki
Автор

Thanks, this is a really excellent level of detail, very educative for the level of knowledge I am at. Would be great to see someone go over firmware written for educational purposes as well. As much as I like VESC I cant say the code was very much written to be read.

eelcohoogendoorn
Автор

is there any software coding design video released yet for this project? will you do it?

nimasalehi
Автор

Amazing guide to BLDC motor driver. Thankyou!
I just have a some small questions, any way you can guide would be very much appreciated
a) What maximum current rating of a BLDC motor this driver can drive?
b) What changes would you suggest I look into to make it a 24V DC supply operated system
c) Can you share or make a video on the firmware that you developed in this video at the end for the six step commutation system? Did you use an FOC algorithm?

kumaylmoosavi
Автор

Amazing content as always and looking forward to hear about the consolidated version for cheap skates folks LOL !
I had a question tho regarding the shipment, duty fees and taxes on such boards in Egypt, and was it a smooth process importing such board ?

mohamedsafy
Автор

Hello! How's the project going? :) Any updates? :D Thanks for the video comprehensively walking through your thought process!

giantbee
Автор

how to download schematic ? it is asking password for drive

TrilokSawant-pzsn
Автор

Did you post your microcontroller code/walkthrough it anywhere?

zakhoover
Автор

Why didnt you use DRV built in buck converter?

damianwiecaw