https://warg.365.altium.com/designs/BA1886A1-87A3-459C-B25E-4C3D181A3101
Table of Contents | ||
---|---|---|
|
ToDo:
Add extra cap near Vin pin of LM5146. Most of caps will be near Q1 FET, but one can be with buck.
Add 0 ohm resistors on FET gates
Address review comments
Think more deeply about anti-ringing snubber values
Add a bit of an intro/context section to this Confluence
What to do with PGOOD output? (optional)
Look into common mode choke (optional)
Look into potential Vsense feature (optional)
add in a summary to this confluence page, what this project is, why
Requirements/Needs Assessment
Meets or exceeds spec of https://rotorgeeks.com/matek-bec-12s-pro
Externally visible current sense (optional),
needs ADC to interpret op amp value if doing digital comms
Ask FW team for digital (or analog) requirement. (eg. prontocol? CAN? etc…)
Questions:
How many BECs max on the drone?
Depends on the number of peripherals and current requirements
How many peripherals should one BEC connect to (one or multiple)? Would they be same or mixed voltage?
High current devices use one BEC
Some peripherals will share one BEC
Any BEC will only be configured for one voltage, not multiple voltages at once
Which peripherals being applied to, is there a list? Need to see if the spec of Matek BEC is even sufficient for them.
raspberry pi (5.1V input)
servos
video transmitters
radio
lighting
What is the characteristic of the input coming from the PDB to the BEC?
Input range from 9V to 12s (44.4v nominal, 50v fully charged)
Maybe there can be some level of digital control, instead of jumpers? I think this would make it more universal.
Better to have jumpers/switches
(but switches can cause accidents)
Options will definitely include 5(.1)V and 12V, and maybe include 8V.
->Go with 5.1V over 5V since there will be some voltage drop in the harness at higher current. Not doing 5.2V to be safe since some devices have tight 0.1V tolerance on 5V https://ca.robotshop.com/products/benewake-tfmini-s-micro-lidar-module-i2c-12m .
Maybe instead of discrete options, there could be something more continuous involving a potentiometer.
This would be more complex, and is only worthwhile if the target peripherals each have unique input voltage requirements, which is not really the case
Linear or Switching BEC?
Definitely switching since more efficient and less heat (although more noisy).
Could optocoupler serve any purpose?
Not sure, will research more
Should current sense be accessible as an analog or digital value?
Digital will probably end up using some CAN protocol, in which case the ADC output needs to be passed through a microcontroller and then to the CAN driver and connector.
Analog will be less reliable and need some digital conversion on the part of other components on the drone.
Should external current sense go before or after the buck converter (or both)?
1) Output side in series with load
Pros
Get to see what the peripheral is drawing from the BEC.
Cons:
Sense resistor on output side may introduce a small voltage drop that varies depending on the current. This may decrease and maybe somewhat destabilize output voltage (adds error).
However, I think a 2 mOhm max current sense resistor w/ amplifier will hardly have any voltage drop.
1.1) Another option: output side in series with the Buck converter inductor
Pros
If I have something like in this image https://theorycircuit.com/wp-content/uploads/2021/02/75-V-to-10-V-DC-DC-Buck-Converter-Circuit.png, but an extra sense resistor is in series with the inductor, wont the feedback mechanism just account for the error created by the sense resistor?
Cons:
This just gives the current passing through the MOSFET (& other elements) within the buck converter IC, not particularly the output or input. The usefulness of this sensing this is questionable.
Also, the inductor current will have a much wider ripple range than the load current.
2) Input side in series with supply:
Pros:
Get to see what the BEC as a whole is drawing from the battery. This might be more valuable in the context of the system.
Also, if the efficiency of the BEC is tested and proven to be in some range (e.g. 85-95%), then peripheral current draw can be estimated from BEC current draw.
Cons:
Higher current on input side, so more power consumed by current sense resistor.
Then again, the highest current drawing is probably the 3A of the RPI. Even if the input current is something extreme like 20A, (20A^2)*2mOhms = 0.8W, which compared to what the peripheral itself would be drawing, is negligible.
Current sense would be on a signal that is switching on and off. One would have to obtain an average current using a microcontroller, which introduces some complexity.
3) Both sides:
Pros:
Accurate BEC efficiency tracking. But this is not really necessary
Cons
All the cons from the input side + output side.
Deciding how to create multiple voltage output options
1) one adjustable buck using jumpers
Cheapest option, but has the technical challenge of figuring out the jumper/resistor configuration.
Makes the most sense since each BEC will only power devices of the same voltage.
1.1) one adjustable buck using a potentiometer
Cheap, involves less jumpers, and offers more flexibility in output voltage
But, it’s technically complex. Also, is the flexibility even needed?
2) multiple bucks
Expensive, but effective and technically simpler.
3) one buck with multiple LDOs connected to it
Medium price and simple/effective, but high power consumption.
Overcurrent protection and thermal shutdown
Simplest option is to just pick a buck IC that has these features built in, just as the Matek BEC does with the LM5116
Spike protection?
Depends on the characteristics of the input LIPO battery, PDB, and loads…
e.g. TVS diode (unidirectional), flyback diode, snubber circuit…
External current limiting on output
1) dedicated circuitry, e.g. https://www.youtube.com/watch?v=8uoo5pAeWZI&ab_channel=GreatScott!
This would be cool but quite a technical challenge to implement.
2) simple fuse
3) Nothing external
It may be simplest to pick a buck with preexisting current limiting feature, which a lot of them have. In this sense, it may be best to wait on whether to have external output current limiting until the part selection stage
https://www.quora.com/What-happens-if-you-short-circuit-the-output-of-a-boost-converter
https://www.renesas.com/us/en/document/whp/how-protect-buck-regulators-overcurrent-damage
Load flyback diode (separate to the one used in the buck converter)
For inductive loads like servo
https://www.youtube.com/watch?v=LXGtE3X2k7Y&ab_channel=Afrotechmods
Does control circuit inside our servos deal with the back EMF? It should, but an extra layer of safety on BEC is needed
It may be the case that the diode used for the buck converter is enough of a flyback for inductive load, so a 2nd diode is not needed. To be determined during part selection.
Actually, considering some analysis the load side diode would act as a clamp, not a flyback. That means choose a TVS or Zener diode (TVS has faster response to transients). Nonetheless it will help with voltage spikes.
Snubber on Buck converter and other output side diodes
The need for this depends on the buck converter IC chosen during part selection.
Polyfuse vs normal fuse
Polyfuse is resettable and there are ones that don’t instantly trigger on overcurrent, so switching current transients won’t trigger them.
Other bonus features?
Need to consider how output to USB C for rpi will work
Consider adding useful common output terminals as an a feature.
Or, have a simple generic output terminal to minimize board weight and size. The simple terminal can be connected to the needed adapter cable.
Something useful should be done with the current sense
Option A) Current sense terminal will be useful if there is also a terminal to the enable pin of the buck converter for another board to turn it off
Option B) If a buck controller/converter with adjustable current limiting is present, current sense resistor will be useful to limiting current of the buck/
In this case, there may not be a need to provide terminals for another board to read the current sense and control the enable, it would just be a bonus item at that point
Architecture
Some notes:
Input will be 2S (around 6V lowest) min not 5V.
Using 3 output LEDs is wasteful. 0 is enough.
There might need to be different TVS diodes for the different output voltages. → Nah
Sense Option A)
...
Sense Option B)
...
Caters Sense Option B:
(just controller chips, needs external FETs. More design flexibility):
4)https://www.ti.com/product/LM5148
$6.63 DigiKey
5) https://www.ti.com/product/LM5149
$6.75 DigiKey
6)https://www.ti.com/product/LM5088
$5.82 DigiKey
7)https://www.ti.com/product/LM5085
$4.49 DigiKey
8)https://www.monolithicpower.com/en/mp2908a.html
$4.29 DigiKey
9) https://www.monolithicpower.com/en/mp9928.html
$4.14 DigiKey
10) https://www.ti.com/product/LM5146?keyMatch=LM5146&tisearch=search-everything&usecase=GPN-ALT
Component Selection
Buck Converter Components
Latest TI Design Calculation Tool plug and chug excel file (ignore the file name):
View file | ||
---|---|---|
|
^This is the tool I used to verify/finalize all values
Buck controller
LM5146:
...
Frequency setting resistor
RRT = 45.3kR, 1/16W
Yields ~220KHz switching frequency. Lower frequency means less switching loss. Can’t go too low or too large inductor and output capacitors will be needed to account for the higher ripple.
Inductor
...
LF = 27uH, (saturation at > 5.375A, > 4.3A max DC current. See ILIM section)
Alternative: https://www.digikey.ca/en/products/detail/sumida-america-inc/125CDMCCDS-470MC/9490421
Has a pretty bad DCR of 97.2mOhm. Need to find/consider an inductor with <= 40mOhm DCR to save about 3% efficiency at nominal I/O conditions.
https://www.desmos.com/calculator/cmd60zlxtp
At 220KHz, 3A peak load, 27uH gets ripple between 25%-50% over the entire output range.
Output Capacitors
...
COUT = 3 x 22uF, 25V, ceramic, X7R, 1206 or 1210 size
https://www.digikey.ca/en/products/detail/murata-electronics/GRM21BR61E226ME44K/4905534
ESR of each capacitor = 3mR at 220KHz according to SimSurfing. For 3 in parallel ZTotal = (Z1^-1 + Z3^-1 + Z3^-1)^-1 = 0.001 - j0.10961. That is, 3mR becomes 1mR for 3 capacitors.
https://www.desmos.com/calculator/iwoiula6yw
Lower capacitance value (30.838uF) is needed to achieve an optimal s <= 1% ripple. But, for 12s nominal input to 5.1V output, TI design calculation tool recommends de-rating to 47uF. Using 3 x 22uF for low ESR.
Here input voltage is X axis and capacitance is Y axis:
Ceramic cap.s have low ESR. Higer ESR increases capacitance needed.
Input Capacitors
...
CIN = 6 x 4.7uF, 100V, ceramic, X7R, >2.52 RMS current
Option: GRJ31CZ72A475KE01L
10mR ESR per capacitor. Approximate ESR for 6 in parallel is 10mR/6 = 1.67mR
https://www.desmos.com/calculator/uovqhzl57b
To achieve an optimal 2% ripple:
At 5.1V out, 21.98uF minimum capacitance is needed (at 7.5V in).
At 8V out, 13.471uF minimum capacitance is needed (at 11.8V in).
At 12V out, 8.772uF minimum capacitance is needed (at 17.5V in).
TI design calculation tool recommends de-rating to 6 x 4.7uF
https://www.desmos.com/calculator/x1iysyhtb4
2.52 RMS rating computed from a de-rated 5A output (1.8 RMS rating if de-rating to 3.5A)
Here D = 0.5 gives the maximum value:
Per the TI design tool recommendation:
Max ESR for 2% ripple at 5V is 15mR
Max ESR for 2% ripple at 8V is 25mR
Max ESR for 2% ripple at 12V is 39mR (7mR for 1%, which parallel capacitors can achieve)
Additional Input Capacitor
From LM5146 datasheet Section 10:
I think the CD chosen in the EMI Filter section should be enough to deal with this.
Power MOSFETs
...
https://www.desmos.com/calculator/o9jukbktfa
Power loss calculations assume nominal conditions: 3A, 45V in, 5V out. (Note: Nominal is updated to 5.1V output, but the power analysis results in the below table/graphs should be effectively the same.)
Assuming 14ns tdt1 and tdt2, which is the LM5146 default.
...
Q1 = CSD18563Q5A
Q2 = CSD18534Q5A
Soft-Start Capacitor
Css = 16V, 680nF X7R
Yields 54.4ms startup time. Longer time will help lower inrush currents.
It seems 54.4ms is more than good enough, even overkill, to ensure that ICAP is small
Feedback Resistors
RFB1 = 21kR, 1/16W
3 different RFB2 will be jumper selected for the different output voltage options, such that input on FB pin of LM5146 is 0.8V.
For 5.1V: RFB2_5V1 = 3.92kR, 1/16W
Note: There may be a case that 5.2V output is realized to be more appropriate due to power harness resistance loss. In this case, use 3.83kR instead.
For 8V: RFB2_8V = 2.32kR, 1/16W
For 12V: RFB2_12V = 1.5kR, 1/10W
Control Loop Compensation
...
Desired crossover frequency is typically chosen to be 10% to 20% of of the switching frequency, so 33kHz is a good pick.
Zeros and poles are placed per TI design tool recommendation.
2 compensator zeros are placed just before the LC double pole.
The 1st compensator pole is placed near the zero created by COUT and it’s ESR. Since the ESR of the COUT currently chosen is so low (1mR but assuming 2mR worst case) the first pole is at a very high frequency (not even visible on the Bode Plot).
The 2nd compensator pole is half the switching frequency.
Phase shift is between 50% to 70% at crossover frequency, for all 3 output voltages, which is what is recommended.
...
Thus,
RC1 =12.1kR, 1/16W
CC1 = 4700pF, 50V
CC2 = 120pF, 50V
RC2 = 59R, 1/8W
CC3 = 2200pF, 25V
UVLO Resistors
...
VEN is 1.2V and IHYS is 10uA
It would be more ideal to have different output (5.1V, 8V, or 12V) demand a different minimum VIN(on), rather than having a 6V minimum that would be too low to be applicable to the 8V and 12V outputs. The strategy for doing this is choosing a constant VIN(on) to VIN(off) difference, in which case RUV1 will be constant.
Choose a difference of 0.5V. Calculating gives RUV1 = 49.9kR, 1/16W
Then, calculating for 3 different RUV2 resistors, which will be selected through the same jumper as RFB2:
For 5.1V, VIN(off) = 5.5V, VIN(on) = 6V: RUV2_5V = 12.4kR, 1/16W
Option: https://www.digikey.ca/en/products/detail/yageo/RC0603FR-0712K4L/726917
Note: There may be a case that 5.2V output is realized to be more appropriate due to power harness resistance loss. In this case, use 12.4kR instead to get VIN(off) = 5.6V, VIN(on) = 6.1V.
For 8V, VIN(off) = 8.5V, VIN(on) = 9V: RUV2_8V = 7.68kR, 1/16W
For 12V, VIN(off) = ~12.5V, VIN(on) = ~13V: RUV2_12V = 5.11kR, 1/16W
ILIM
...
Going to use shunt sensing option to lower complexity of considering a changing Q2 RDS value.
BEC will support 3A continuous current. Anything past 4A to 4.3A will trigger ILIM protection.
(Maybe consider increasing the ILIM current. But, high inductor saturation current and DC current rating is hard to find and the DCR is bad)
Rs = 2mR, 1/8W.
Will cost 0.01W
Option:https://www.digikey.ca/en/products/detail/yageo/PA0805FRE470R002L/17009641
RILIM = 71.5R, 1/8W
Per the TI design calculation tool, for these values:
Result in 4A limit at 5.1V output.
Result in 4.3A limit at 12V output.
It is recommended that the inductor saturation current accounts for the limit current + ripple: 4.3 + (4.3 * max 50% ripple)/2 <= 5.375A. So the inductor chosen should saturate at > 5.375A.
...
PGOOD Resistor
LM5146 datasheet recommends 10kR to 100kR
RPGOOD = 20kR, 1/16W
Should the PGOOD output be available through an external port?
VCC Capacitor
TI design calculation tool recommends 2.2uF
CVCC = 2.2uF, 16V
Vcc is the output of a 7.5V BIAS regulator, 16V capacitor rating is enough
Option: GRM188R61E225KA12D
BST Capacitor
...
https://resources.pcb.cadence.com/blog/how-bootstrap-capacitors-work-in-switching-regulators
CBOOT (aka CBST)= 0.1uF, 100V
EMI Filter Design
An additional inductor, 2 caps, and resistor will be needed. Care needs to be taken in selecting these values since per LM5146 datasheet: “The output impedance of the filter must be sufficiently small such that the input filter does not significantly affect the loop gain of the buck converter“
EMI filter will protect the LIPO and etc…
EMI is a cause of common mode noise: https://www.ti.com/lit/an/slla057/slla057.pdf?ts=1711483329764&ref_url=https%253A%252F%252Fwww.google.com%252F
Both CISPR25 Class 3 and CISPR32 Class B have a limit of >60dBuV for VMAX. CISPR25 is an automotive standard and CISPR32 is a “multimedia equipment“ standard.
https://www.desmos.com/calculator/gcwhdezg14
→ Choosing the following values:
LIN = 1uH, (saturation at > 5.375A, > 4.3A max DC current. See ILIM section)
CF = 33uF, 100V
Option: https://www.digikey.ca/en/products/detail/panasonic-electronic-components/ECA-2AHG330/245194
This is the max capacitance needed and occurs at a duty cycle DMAX of 0.5.
CD = 2 x 47uF + 1 x 22uF, 100V, electrolytic
Option: https://www.digikey.ca/en/products/detail/panasonic-electronic-components/ECA-2AM470B/2688786 and https://www.digikey.ca/en/products/detail/panasonic-electronic-components/ECA-2AM220/245064
Rounded up from the Desmos value, which is viable.
RD = 191mR, 1/4W
SYNCOUT and SYNCIN
SYNCOUT will be NC.
SYNCIN will be tied to ground:
Anti-ringing snubber
https://www.ti.com/lit/an/slyt682/slyt682.pdf?ts=1714980093816
This is a big topic that needs more digging to find ideal snubber values, but for now I will just use the example 2.2R and 100pF
Other Components
Input Polyfuse
https://www.digikey.ca/en/products/detail/littelfuse-inc/2920L600-12MR/6234818
Hold current = 6A
Trip current = 12A
Trip time = 2 seconds
Initial resistance (resistance for a new polyfuse): 4mR
Post trip, after closing again, the polyfuse won’t ever be as good as a new one. It will be 8mR. https://www.eevblog.com/forum/projects/polyfuse-8milli-ohms-post-trip-am-i-missing-something/msg2713818/#msg2713818
Input TVS
The input TVS will be located between the EMI Filter and CIN of the buck converter.https://e2e.ti.com/support/amplifiers-group/amplifiers/f/amplifiers-forum/911201/the-correct-order-of-tvs-filters-and-clamp-diodes#:~:text=As%20a%20general%20rule%3A,also%20add%20an%20insulation%20resistance). ← Note: They’re not using a PI EMI filter bridge.
To protect the EMI filter capacitors, TVS will come before the EMI filter and before the fuse.
Actually, Daniel mentioned a possible fail where the TVS shorts → very bad. So the TVS will go after the fuse.
Theory:
Selected: https://www.digikey.ca/en/products/detail/littelfuse-inc/SMBJ51CA/688283
$0.53
Better power rating but more expensive: https://www.digikey.ca/en/products/detail/littelfuse-inc/SMDJ51CA/2024548
$1.73
Input Common Mode Choke?
TBD. Is this necessary?
What is the comparison between this and the EMI filtering option in the LM5148 datasheet?
→ Jerry recommends going with the EMI filter option since the datasheet mentions it.
BUT, don’t completely disregard the choke option incase the EMI filtering option is not enough for common mode noise rejection from ESCs and other sources.
Input Header
XT60PW-M connector
Output TVS
There will be 3 output TVS. One for each of the output voltage options.Having an output TVS for each voltage option is a bit overkill considering there are already large output capacitors. The load will be protected. Also, LM5146 and other buck ICs have good load transient response mechanisms.
Just the 12V TVS above is enough, and it will protect the BEC if somehow there is a massive transient caused by the load.
Output Headers
XT60PW-M connector
This keeps the it simple as opposed to having multiple output header types, which would increase board weight. XT60PW to <header type> adapters can be used off the board.
Output LEDs
The goal is to optimize efficiency. A RED LED needs 20mA and lets say 5mA for a quarter the brightness. With 2V drop, LED for the 12V output would need a 2kR resistor. Under 5mA, power dissipated by the resistor would be 0.05W. The LED and it’s resistor will also add to board space/weight.
Given the requirement for high efficiency, and noting that the OTC BEC does not have LEDs, this BEC will not include LEDs.
Output Selection “Jumper”
To save board space, the jumpers will just be 3 x 0805 size 0ohm resistors, 2 of which will be depopulated when one of the 3 output voltage options is selected.
Jumper = https://www.digikey.ca/en/products/detail/yageo/RC0805JR-070RL/728216
0ohm resistor
Rated current = 2A
Current Sense Amplifier and its Header???
This design will use Sense Option B architecture option. I don’t see an advantage to current sense unless the BEC has an emergency shutoff that is controlled externally.
Shower Thought on a Vsense line:
There could be Vsense line feature added for accounting for voltage drop in the harness. Vsense+ and Vsense- come from the load device. Need to think more about this, but it would be a valuable feature to add if feasible/economical.
Brainstormed ideas:
1) Feed Vsense+ and Vsense- into a unity gain difference amplifier, that has rail-to-rail voltage swing. The amplifier output would tie directly into the FB pin of the LM5146. The amplifier will be referenced to local ground.
Con: The rail-to-rail thing becomes tricky when the load voltage is already almost the same as the BEC output voltage. The LM5146 would end up thinking the load voltage is a couple mV lower than it really is and raise it when unneeded. The op-amp should be chosen with great care to achieve an acceptably small rail-to-rail margin.
2) Feed the difference amp output into a VCR (Voltage controlled resistor) that is part of the resistor divider on the FB pin.
etc…
Layout and Manufacturing Considerations
Vias
Footprints
LM5146RGYR
https://www.ti.com/lit/an/slua271c/slua271c.pdf?ts=1712335775976
Sections 3 has valuable info related to QFN footprint design and thermal vias
It is a good idea to have a via keep out region near pin 1
Section 4 has valuable info related to the QFN stencil. The stencil holes may need to be smaller than the QFN pads, else the volume of solder may be too high.