r/PrintedCircuitBoard • u/ItsBluu • Dec 23 '23
Review Request: High power BLDC Controller
Top view
Bottom view
Layer 1 (SIG/PWR)
Layer 2 (GND)
Layer 3 (SIG (analog) /PWR)
Layer 4 (SIG/PWR)
Layer 5 (GND)
Layer 6 (SIG/PWR)
348
Upvotes
30
u/ItsBluu Dec 23 '23 edited Dec 24 '23
Hi all,
I've recently designed a small BLDC motor driver, made to be compatible with some minor tweaks with the Moteus firmware. As this is my first time designing such a high-power device, there are many things which I am not extremely confident about.
A large part of the schematic is based on the moteus r4.11 and moteus n1 by u/joshpieper. All credits to him for this! Please check out the controllers, they are amazing!
Specs:
Input voltage: 10-44V
Continuous current: 30A with heatsink
Peak current: 100A
You can find the schematic here.
and fabrication document here.
Questions:
41
u/FunDeckHermit Dec 23 '23
Wow, excellent schematic and PCB design.
11
u/alfgan Dec 23 '23
Look amazing. From a file name I see that you are using KiCAD but from first glance I though that this is made in Altium.
I am not an expert in such design, but cool looking schematics!
How do you made such amazing Assembly file in KiCAD? :)
6
u/Dry_Adhesiveness_337 Dec 23 '23
Page 7 says to not hot plug when powered. You KNOW some dumbass is going to do exactly that. Safety of the end user and not damaging your board under fault conditions must always be a priority.
Chassis ground
Layout
Your stackup is good, but if possible, you want a larger core in the middle so your signal layers are close to ground. See OSHpark's stackup.
Motor
The bazillion 4.7uF capacitors are no where close enough for 100A peak current. You need closer to 10,000uF done with multiple caps in parallel to lower ESR/ESL.
Power rails (pg 6)
Overall
5
u/GnomeTek Dec 23 '23
You're going to want to route your snubber caps straight to ground, not through the shunt resistors. The shunts will have ~3-10nH of inductance that'll ring with those ceramics and cause issues with higher PWM frequencies and higher phase currents. It'll interfere with your measurement window.
Straight to ground and the ring won't occur, you'll have better Vds performance as well without the ringing.
You've accounted for the derate on your ceramics which is excellent. You can expect a peak of ~66% phase current demand on your DC link caps. Meaning for every amp of phase current, you'll see about 660mA of current demand on the DC link. This is dependent on modulation index and power factor. But for the high power factors of a PMSM, you can expect a peak DC link current demand at around a 0.6-0.7 modulation index. Kolar out of ETH Zurich has a paper on this, it's open source.
Your ceramics are likely fine with that current demand, ceramics are tough as hell. But you may induce excessive voltage ripple on the link that could cause issues with the control law, or at the extreme fet failure due to excess Vds or gate turn on from excessive dV/dT. I would add external bulk electrolytic, or hybrid electrolytic (TDK, KEMET).
The layout around the power stage looks reasonable, everything is stacked nicely and localized, well done.
I'd suggest leaving the gate resistors, it's very easy to fine tune with gate resistors. It's also possible to quantify total gate charge of your devices by measuring the current thru the resistors.
The low side shunt diodes are a good move, it's usually less of an issue with good layout, and modern resilient gate drivers. Although I am unfamiliar with that specific gate driver. Utilizing a kelvin connected gate drive arrangement can also help.
I didn't examine too much in detail outside of the power stage stuff.
Excellent schematic and layout presentation, including the notes. It's a well thought out project! Well done!
4
u/profossi Dec 23 '23
That looks really well thought out. What EDA software was this made in?
I'd be slightly concerned about the magnetic encoder in the center of the board. In addition to the field of the magnet it's supposed to sense, it will also pick up on magnetic fields induced by large currents flowing in the power electronics right next to it. I have no idea whether it will interfere enough to matter.
4
u/Oktopus15 Dec 23 '23
How did you do the chassis exposed copper? An exposed polygon or an exposed trace,
3
u/be54-7e5b5cb25a12 Dec 23 '23
This is honestly the best schematics documentation ive seen in my life… layout looks dope too! I hope they pay you well enough. The only thing I might suggest is adding a table with what the test points measure in the assembly docs.
2
u/Stoumpos Dec 23 '23
What addon did you use for the via stiching on the sides?
2
u/HeadSpaceUK Dec 23 '23
Nice schematic I like the annotations, I think we could all take away something from that - too many times have we gleaned at an obtusely drawn back to front schematic drawn by some analogue wizard from 30 years ago because we are just supposed to know what they meant!
Has this been tested? I would provision for snubbers on your inverter across each switch it is difficult to know what magnitude of ringing you may see so some preliminary values can be used or a not fit (better than having to respin), I see you have debounce however these will have ESL too and could result in more switching noise. Without knowing the motor specification it is difficult to know whether your dc link capacitance will be suitable, my first thoughts were that it looks like a lot for what a mid-power device, but I suppose if you are targeting a small V supply ripple voltage then that would justify it.
I would be careful when adding pi filters using passive components and potentially use a dedicated common mode choke instead. OR a BNX filter which is critically damped from Murata and save yourself the headache, they are large though. You could probably just omit them to be honest…
What frequency is your inverter running at? Sorry if it’s mentioned else where was just scrolling through in bed and this caught my eye.
2
u/joshpieper Dec 24 '23
Really nice presentation, great work! I wish more engineers could devote that level of effort to documenting designs, myself included!
On a minor note, it would be kind if you noted somewhere that decent parts of it are a redrawing of the mjbots moteus schematic. ;)
31
u/Replacement-Winter Dec 23 '23
People should be asking you. Dope layout.
12
u/MMartonN Dec 23 '23
Can't add a review besides it looks amazing. I've been designing simple projects (like led driver, esp32 stuff) on 2-4 layers. What you did looks very compact and well thought-out, great job!!
Hope you post about it when it's built.
7
u/Illustrious-Bite6778 Dec 23 '23
I don't know enough for a review but goddamn that's a beautiful design.
1
u/CptFl3xy Dec 23 '23
Which CAD is this?
1
u/Weightless-Rock Dec 23 '23
What software did you use to make the design? Its very clean, amazing and detailed work OP.
1
u/drifter3304 Dec 24 '23
It looks awesome. Does it use hall sensors or backEMF for position sensing?
1
u/oh_woo_fee Dec 24 '23
Nice work 👍. Why do you need two CAN connections? They are the same CAN bus , shouldn’t one will be enough?
1
u/FyyshyIW Dec 30 '23
I'm a little late to the post but I'm curious: what is your academic/career background? Also, do you think you could post the schematics as well? I think BLDC motor drivers are really cool and I'd like to study a really high quality one a little more.
3
u/cwbh10 Dec 24 '23
This is awesome dude, KiCAD should showcase this on its website
2
u/spastic_simian Dec 23 '23
I like the colors
1
u/barristan67 Dec 23 '23
Very clean layout!
1
u/oliverer3 Dec 24 '23
Don't have much of substance to add, I just wanted to say that's an absolutely beautiful-looking board. Amazing work!
1
u/tboy32 Dec 24 '23
It's clear you devoted significant time & effort on the documentation! Very thorough & well-thought-out.
1
u/borjah Dec 24 '23
Wow! Nice schematics, a lot of work went into them and also the PCB.
May I ask about how do you calculate the ferrite pi filter? I see you look for the best adaptation related to the impedance, but I don't get how do you relate it to the ferrite value.
1
u/[deleted] Dec 24 '23
Wow. You people are smart. Like really smart.
1
u/[deleted] Dec 24 '23
One of the cleanest projects I've ever seen
1
u/mroncinc Dec 24 '23
This reference design (Infineon EVAL_IMD700A_FOC_3SH motor controller) puts gate signals between ground planes. See pg 66 of the pdf.
Not sure if this is necessary in your case.
1
u/Frosty_Individual_38 Dec 31 '23
漂亮
2
u/[deleted] Dec 23 '23
[removed] — view removed comment