Table of Contents | ||
---|---|---|
|
Introduction
WARG-Altium365 Link: https://warg.365.altium.com/designs/74D65A2E-05AC-4B8C-AE55-D8D307F760C7#design
Who
Reserved for Kevin Li co-op student
Robert Tang doing the engineering
high level architecture defined by Daniel Puratich
What
Buck Converter
6S LiHv input
27V absolute max on LiHv
5V output voltage
rpp
Kind of nice because autonomy software people like to use this hardware
5 A output current
30.5x30.5 mount pattern
usb-c (for rpi) and jst (for pixhawk) output conns
USB-C connects to the raspberry pi easily, can copy circuit from 12V->5V @ 5A Buck Converter Board
Pixhawk standard connector for POWERx style port so this can be used as a redundant supply
To be clear, both of these output connectors should be present. Only one will be used in any given system though (so both should be sized on the PCB to handle the full 5 A of current).
xt30 input connector or just solderpads for input
both in library already (2.54mm pitch solderpads)
if solderpads are used, give space for epoxy so we can strain relieve
clear polarity label would be nice if solderpads are used
Why
Powering the Raspberry Pi 5 for https://uwarg-docs.atlassian.net/wiki/spaces/ARCHS22/pages/2556133415/Fixed+Wing+2025?search_id=772ded46-862b-41b6-8115-093586821d0d if we decide we want to mount the RPi into this system and dont want to use https://uwarg-docs.atlassian.net/wiki/spaces/EL/pages/2701197313/RPi+Interface+Rev+C?search_id=b1053a4c-4ec7-47de-9489-d50daf49510a&additional_analytics=queryHash---7d2c48e78a27d21f150b620681696259928cd14daa6e640c84eaf507c582ec26 . Currently there is no plan to do this but it is nice. Ground testing power supply for the raspberry pi is also a use case, but 12V->5V @ 5A Buck Converter Board kind of accomplishes this already.
Redundant Pixhawk power supply for https://uwarg-docs.atlassian.net/wiki/spaces/ARCHS22/pages/2556133415/Fixed+Wing+2025?search_id=772ded46-862b-41b6-8115-093586821d0d . See https://docs.px4.io/main/en/flight_controller/pixhawk6x.html for details.
...
The only problem with this chip, is that the switching frequency is fixed, that may cause some problems when selecting Inductors, luckily, after calculation I can source pretty good inductors based on the fixed frequency, so in the end I chose the MP2491CGQB-Z chip
EN Current Calculation:
R_Pullup +3kOhm (internal pullup) = (24V-7V)/I_EN (7Volt is the internal Zener Diode)
...
In this case, R_Pullup=220kR, so I_EN=62.7uA, smaller than the 100uA, which is good.
Inductor
From the data sheet the design requirements of the inductors is that:
...
For simplification I just used a 20uF capacitor (connected 2 10uF in parallel),
Output Capacitors:
The effective capacitance can be calculated as follows,
...
To compensate the DC-bias and looking at the capacitors the WARG library already have, I selected 2 10uF capacitors with equivalent capacitance around 4.24uF at 5V DC and connect them in parallel.
Resistors
For the ILIM pin, a resistor is needed to set the current limit, according to the graph in the data sheet, to get a current limit of 6A we need 60.4kOhm resistor
For the FB pin, we need to build a voltage divider network to set the output voltage from the feedback voltage.
I have already set V_FB=0.5V by connecting VSEL_1 and VSEL_2 to VCC
...
Updated (10/3): to compensate for the DCR losses, the voltage aimed to be regulated is changed to 5.1V
In this case, R1/R2=9.2, R2=10kOhms, R1=92kOhms, the library values I found are 10k and 91k.
System Block Diagram
...
Reverse Polarity Protection
One feature of the buck converter that is nice to have is RPP. It can be implemented using the following methods:
...
Overall, choosing a P-MOSFET and an IC are equally favorable, for the sake of learning I have chosen to use IC.
RPP IC selection:
...
RPP diagram:
...
PCB Layout
Some guidelines in the datasheet of the Buck IC:
...
Placement
Initial placement:
...
Kevin’s feedback are as follows:
...
Some notes:
1. Top priority, input caps and output caps, Buck IC, and RPP circuit, then everything else;
2. the distance between the inductor and the switch node pin should be as close as possible;
3. the path for high current traces should be as large as possible (use polygon rather than traces for high current lines)
4. can move the RPP circuit down to leave more room for the BUCK IC
Updated Placements (From 9-30 to 10-2)
...
Routing
...
PDN Analysis
Goal is to calculate loop impedance for the following:
VBUS: Input connector -> NMOS, NMOS -> Buck IC
SW: Buck IC -> Inductor
5V: Inductor -> Pixhawk Conn, Inductor -> USB-C Conn, also do Inductor to farthest decoupling cap down (basically before the via punch down to L4).
Used the Power Analyzer by Keysight tool, not able to calculate the loop impedance directly, use the voltage drop and current simulated to calculated loop impedance.
...
Pixhawk Wiring
The Pixhawk connector that I find is the 5024430670 Molex Clickmate connector, linked below:
https://www.digikey.ca/en/products/detail/molex/5024430670/2380429
The link below is the pixhawk wiring standard
...
The wiring harness that WARG use is 1:1 harness, as pictured, the red cable indicating pin 1
...
Comparing the cable with the pin placements on my PCB shows that it is correct
...
...