I made my own version of the VESC controller from the open source schematics. I'm a rookie at the rules for circuit traces but have read most of what is covered.
I do not know if I should make the inner copper layer of the same layer linked together because the MOSFETs will be fed 50V constant while the DRV8301 and MCU are fed their own voltage supply utilizing the buck converter on the DRV8301.
PCB is 4 layers.
- Red is top copper layer supplying 50V,
- yellow is inner copper layer 1,
- purple is inner copper layer 2,
- and green is the ground layer
Edit:
The VESC is made by Benjamin Vedder. His github. https://github.com/vedderb
THe speed controller was design to drive BLDC motors. Paragraph 2 was whether it is okay to have separate sections for different voltages if all lead to ground. I can do 2 layers, but 4 layers allow the speed controller to be as small as possible for an electric skateboard.
Direct link to my Github page holding the files for examination. I used Kicad.
Best Answer
Designing a BLDC controller for high current motors is not an easy task, layout is very important and not only the polygon pours and which layer is top or middle. You have to focus on the switching traces, grounding , decoupling etc...
I donot claim that this is the best way to be done , but that is how i would do it anyway :
check those appnotes for more info :
AN-9005 Driving and Layout Design for Fast Switching
PCB-layout considerations for nonisolated switching power supplies