Can you help me write a weekly report for this project with an abstract, images of the project, all the important things of the project, and a conclusion
Thought for 15 sec
flux
3 days ago
I’ll draft a weekly report with an abstract, project figures, progress, remaining issues and a conclusion. I’ll clearly separate the final 1 hp goal from the current low-voltage prototype and avoid claiming hardware tests that have not happened.
Thought for 12 mins 20 sec
3 days ago
"VFD Capstone Progress Report" completed.
Thought for 35 sec
flux
3 days ago
I created your seven-page weekly report with two actual PCB images. The full schematic image was too zoomed out to read, so I used a board overview and an enlarged MCU-routing view instead.
Before submitting, fill in your name, course, instructor and reporting dates. The report distinguishes recent progress from cumulative work and clearly states that hardware testing and the final 230 V, 1 hp capability have not yet been demonstrated. Word pagination may vary; the PDF is the checked edition.
This revision supersedes every auxiliary allocation, PFM description, thermal acceptance and test-current recommendation below. Historical selection material is retained, not an assembly BOM. No energization authorization. Scope: live schematic inventory, 48 V nominal / 60 V maximum prototype; no schematic, PCB, BOM, role-property, audit or bring-up edits. Builder remains active. Live readback found U8→12 V→U9→5 V→U10→3.3 V; +3V3_A is the same load through R11=10 Ω, not another regulator. U13 VCC2 is board 3.3 V; VCC1 is USB_3V3. J4 and J5 export 3.3 V, J6 feeds E-stop. No fitted LED, fan or display load was found on these supply nets. Any external attachment is additional, not a hidden reserve.
Scenarios and evidence limits
S (powered sleep): U1 Stop1, RTC off, ADC/DAC/internal comparators off, raw PWM low, gate command low, external connectors unloaded, UART idle high; ACTIVE_FAULT_N held low. Rails and all analog protection stay powered. Sleep is not board shutdown.
B (disabled bench calculation): U1 16 MHz, Range1, Flash single bank, ADC/HRTIM off; UART idle, same faulted state. This is a load scenario, not permission to power the board.
A (bounded active calculation): U1 170 MHz boost, Flash single bank; HRTIM, DMA1, ADC1/2 digital clocks and USART3 bus clock at170 MHz, ADC independent clock60 MHz, USART independent clock170 MHz. Two single-ended ADCs at1 Msps each, DAC/opamps/internal comparators off (external U19/U20 implement protection). Six complementary PWM outputs20 kHz, 50% aggregate duty; UART≤1 Mbps. Other clock gates off. Add explicit residual M for GPIO ports, SYSCFG, workload/oscillator differences and other enabled peripherals; numerical illustration M=2 mA assumed, not guaranteed. Firmware does not yet enforce this scenario.
E (conditional sizing envelope): require total on-board3.3 V≤125 mA continuously and U10 ground current≤2 mA. These are proposed acceptance caps, NOT inferred datasheet maxima or fabricated measurements. External X remains symbolic. Continuous is the conservative duration for all active rail loads; no unsupported short peak-duration discount. Startup and nanosecond gate pulses are separate below.
U1 Flash170 MHz no-peripheral IDD is29.5 mA typical25°C, max31/35/42/48/56 mA at25/55/85/105/125°C. At16 MHz Range1 typical2.8 mA25°C; its bench maximum is unresolved. Stop1 RTC-off typical81.5 µA at3.6 V25°C is used as a nearby-voltage estimate, not a guaranteed3.3 V value or hot maximum.
Finite rail inventory (mA; S / B / A typical unless marked max)
Table
Rail / load
S
B
A
Peak/design and conditions
3.3 V U1 core
0.0815
2.8
29.5
56 mA core-only hot maximum; not whole MCU
3.3 V U1 digital peripherals
0
0
15.299
Typical only, maxima not specified; retain residual M and conditional cap
3.3 V U1 VDDA+VREF ADCs
0
0
0.380
0.520 max for two1 Msps single-ended ADCs; continuously enabled
8×10 µA static, rail inputs; D is switching/input-midrail current
3.3 V U11 TMP235
0.009
0.009
0.009
0.0145 max through125°C
3.3 V U26 supervisor
0.00025
0.00025
0.00025
0.001 max3.3 V, reset sink counted in R58
3.3 V R54/55 and R56/57
0.08992
0.08992
0.08992
2×3.3/73.4k continuous
3.3 V pull/output network
1.0321
1.0321
1.9833
State dependent; conservative all-high/low combination≤5.4 mA nominal; see below
3.3 V J4/J5 external apparatus
X_S
X_B
X_A
Required input: actual current/IO load, including pot and status indicator
5 V U5/U6/U7 INA240
5.4
5.4
5.4
7.8 max aggregate hot; no sleep-disable pin
5 V U10 LDO input
I3+G
I3+G
I3+G
LDO pass-through, NOT3.3/5 current scaling
12 V U2/U3/U4 static bias incl HB
0.525
0.525
0.525
0.930 max aggregate
12 V U2/U3/U4 switching overhead
0
0
0.303 estimate
20 kHz linear interpolation assumption;18 mA aggregate500 kHz max used as conservative conditional ceiling, not guaranteed20 kHz interpolation
12 V Q1–Q6 gate charge
0
0
4.920 estimate
6.240 mA at52 nC, 10 V Qg test, not guaranteed12 V gate charge
12 V R28–R33 gate-source pulls
0
0
3.600
6×12/10k×0.5;7.2 mA impossible-all-high conservative ceiling
12 V U25 static
0.027
0.027
0.027
0.050 max VCC, additional charge-pump/TS current H retained
12 V R7/R8 feedback
0.02386
0.02386
0.02386
12/502.9k continuous
12 V U9 input
5I5/(12η9)+N
same
same
N captures actual FPWM idle loss; no PFM substitution
DC_BUS direct passive paths
V/100k+V/210k+V/200.6k
same
same
Bleeder R1, ADC R2–4, precharge R63–65
FUSED_DC direct divider
Vs/220k
same
same
R60–62, outside25 Ω path
DC_BUS U8 / RON / leakage
Q8+T+L
same
same
Keep separately from converted rail power
ADC1/2 digital budget=(6.24×170+0.72×60)µA; DMA1=2.83×170 µA; HRTIM=69.98×170 µA; USART3=(2.71+7.98)×170 µA, giving15.299 mA typical. These digital coefficients exclude analog. Each ADC1 Msps uses160/220 µA IDDA and30/40 µA VREF typical/max.
U13 per-side currents: DC-high1/2.1, DC-low2.2/3.4,1 Mbps1.6/2.8 mA typical/max at3.3 V±10%,15 pF switching load. Comparators16 µA typical/channel and35 µA max/channel hot, specified at1.8/5 V: applying this as3.3 V envelope is conditional. TMP2359 µA typical2.3 V25°C,14.5 µA max through125°C. U260.25/1 µA typical/max3.3 V. Logic10 µA max/device verified individually/families: U15–17, U14/U24, U21, U22, U23. Typical logic static unspecified: max substituted, not claimed typical. D typical≈6×17 pF×3.3×20 kHz=6.7 µA internal plus Cload×V×f; layout capacitance/input slew remains unknown.
Pull detail: R14–19 six10k raw PWM consume0.990 mA at50% duty,≤1.980 all-high; R20 E-stop and R21 command each0.330 when high; R48–51 four local-control pulls each0.330 when asserted; R52 status0.330 when high; R12 BOOT00.330 if driven high; R13 NRST0.330 when low; R10 PGOOD0.330 when low; R58 fault pull0.7021 when low; R59 precharge pull0.330 when low or≈3.3 µA into U25 internal1M when high. R66 contributes≤3.3 µA. These are mutually state-dependent, not extra IC supply currents. Open connector inputs consume no pull-down current; J6 closed E-stop current must be included, not assigned to motor. Clamp D3/D4 nominal leakage and INA reference loading remain residual L/H rather than fictitious zero worst-case.
INA2401.8 mA typical5 V25°C and2.6 mA maximum hot per amplifier; add any output-load/filter transient demand. U10 G is6.5 µA typical no-load,15 µA max no-load hot, but2 mA typical only at300 mA; a guaranteed loaded G bound is absent. Never use6.5 µA as a guaranteed loaded ground current.
UCC static VDD/HB0.11/0.065 mA typical and0.19/0.12 max;500 kHz no-load operating1.4/1.3 typical and3/3 max, respectively. Interpolating incremental typical current from500 kHz gives3×(2.7−0.175)×20/500=0.303 mA; this is an estimate only. Qg41/52 nC typical/max is tested0→10 V at75 V/50 A. Required correction: obtain12 V gate-charge envelope; 6.24 mA is not a guaranteed12 V worst case. U25 VCC27/50 µA typical/max in both INP-low/high static at BST−TS13 V; charge-pump/TS additional current and startup must not be silently omitted.
Sums, input reflection and numerical envelope
Nominal3.3 V sums: S=18.921 mA+X_S+residuals; B=21.640 mA+X_B+residuals; A=65.57 mA+M+D+X_A, or 67.57 mA with illustrative M=2 mA and negligible D. Sleep/bench totals are estimates with some maxima substituted, not measured or all-temperature maxima. Proposed E caps on-board3.3 V at125 mA, including every residual; verify actual MCU max and peripherals against that cap before treating E as a closed design budget. Retain X separately; no external load has been invented.
I5=I3+I_INA+G. A illustration with G=0.10 mA assumed gives 73.07 mA; E with G≤2 mA and INA≤7.8 gives 134.8 mA+X. Direct12 V A estimate=9.400 mA+H. For conservative E require direct12 V≤32 mA, covering18 mA driver overhead+6.24 mA gate estimate+7.2 mA pull ceiling+U25/feedback; this cap still requires actual12 V Qg and H verification. It is a proposed acceptance bound, not guaranteed device maximum.
For A/E only, use η8,η9=85–93% conditional assumptions, not actual efficiency data: I12=Idirect12+5I5/(12η9); Ibus=12I12/(Vbusη8)+Q8+T+L+Vbus(1/100k+1/210k+1/200.6k), plus Vs/220k at input. Avoid double counting regulator IQ if later replacing conditional efficiency by measured total efficiency.
Add direct nominal passive currents1.166 mA at48 V,1.458 mA at60 V (includes fused divider); U8 active IQ0.600 mA typical/0.880 max and RON T, leakage L remain additive. Thus E at48 V upper-efficiency-loss end is 30.89 mA+T+L (28.8466+1.1660+0.880=30.8926 mA before rounding), at60 V 25.42 mA+T+L, at15 V 93.55 mA+T+L, using0.880 mA IQ. Each external1 mA3.3 V adds5 mW before buck losses, up to6.92 mW bus input at85%×85% (0.144 mA at48 V). No motor power is included. Full input=auxiliary+motor/inverter DC input+startup; motor DC input/RMS, regeneration and losses are unknown, not derived by equating5 A phase with5 A source.
Sleep reflection: U8 sleep10.5 µA typical/25 max and shutdown3/15 µA are at24 V; active600/880 µA. Here persistent16.5 mA reference and5.4 mA INA loads mean board sleep is not no-load converter sleep. U9 placed Y5F is FPWM, not PFM; no applicable numeric FPWM no-load current bound was found. PFM90 µA no-load and PFM IQ rows cannot be used for Y5F. For S use P5=5×(24.321 mA+G+X_S), and I12=0.5759 mA+[P5+P_loss9,S]/12; bus current=[12I12+P_loss8,S]/Vbus+Q8,state+direct paths. P_loss9,S and P_loss8,S require characterization; no85% sleep claim. Quiescent terms remain explicit; switching losses must exclude already-counted IQ. This closes the finite load inventory but not a guaranteed sleep input total.
Current, thermal, inductor and headroom limits
U9 fixed5 V is4.925–5.075 V; duty98% is typical only, input operating4–36 V is NOT a guarantee of regulated5 V at4 V. U10 ±1.5% output and145 mV maximum dropout at300 mA. At5 V minimum4.925, headroom to3.3495 V+0.145 V is1.4305 V before wiring. U8 nearly100% duty capability does not provide a guaranteed numeric dropout for12 V. Therefore 6 V minimum U8 VIN is not minimum viable complete-board bus. A15 V bus calculation is an analytical example with3 V nominal12 V buck headroom, not an approved lower operating point. Actual lowest viable bus must exceed12 V buck headroom, source drops and startup conditions; qualify dropout and PGOOD, not just gate-driver UVLO. U25 default floating VCCUV rising6.5/7/7.5 V min/typ/max does not establish regulated12 V readiness.
U10 thermal at max normal input5.075 V and min output3.2505 V: Pd≈1.8245×I3+5.075×G. At A67.57 mA plusG0.1 mA, Pd≈0.124 W; at E125 mA plusG2 mA, Pd≈0.238 W. No external-load thermal approval: 0.4 W small-SOT23 rule gives I3≤(0.4−5.075G)/1.8245=213.7 mA with G2 mA, i.e. X≤88.7 mA above E, before ambient/board thermal limits. At300 mA Pd≈0.558 W withG2 mA: Error/required-solution HOLD above0.4 W: select a SOT-223/DPAK LDO with copper or a buck; do not authorize this small SOT23 at that load. No replacement made before budget. Ambient/junction limit and actual PCB thermal resistance may impose a lower current. Reference187.1°C/W from prior audit is not board measurement.
Regulator current margins under E+X: U10 nominal300−125=175 mA, but thermal cap is lower; U9 nominal1000−134.8=865.2 mA; U8 nominal1000−98.08=901.92 mA atη9=85%. These are current-only conditional margins, not full thermal acceptance. E active inferred auxiliary protection hold target≥1.5×(30.8926 mA+T+L)=46.3389 mA+1.5T+1.5L at48 V is not selection or coordination approval of placed F1 0476012.MRSN; no15 A substitution is authorized. Source current capability, short-circuit current, wire/connector coordination and startup peak are still required; no approved initial bench current limit.
At nominal68 µH/300 kHz60→12 V ripple0.4706 A p-p; E CCM extrapolated peak0.3334 A (actual low-load/DCM peak differs). L2 nominal4.7 µH/1.8 MHz12→5 ripple0.3448 A, E FPWM peak0.3072 A. Require hot Isat≥actual peak with minimum biased L/min frequency plus startup/current-limit overshoot; winding RMS loss separately. L1/L2 remain generic placed parts; conditional Bourns SRR1260-680M / SRN6028-4R7M procurement candidates remain conditional, no BOM overwrite. Existing audit documents fault-limit/hot-Isat limitations; those do not close from low average current.
Precharge sustain and startup (not permission)
Live25 Ω bank is physically between FUSED_DC and DC_BUS; U8 supplied from DC_BUS, so auxiliary load is behind precharge. For constant auxiliary power P and Q7 off, available load power at bus V is Pavail=V(Vs−V)/25. Maximum Vs²/100 is23.04 W at48 V,36 W at60 V; existence of a high-voltage equilibrium does NOT guarantee startup through UVLO/inrush.
For illustrative completion fraction k=0.912, sustainable power at comparator crossing is k(1−k)Vs²/25=0.00321024Vs²:7.396 W at48 V,11.557 W at60 V,0.722 W at15 V. E1.385 W plus direct loads readily fits48/60 static sustain, but does not fit15 V crossing: even with zero direct loss Vs must exceed sqrt(1.385/0.00321024)=20.77 V to reach91.2%. A0.638 W needs≥14.10 V before direct losses. Thus lowest plausible auxiliary run bus and lowest successful precharge/bypass bus are different; no approved minimum is established. Real ratio/hysteresis/loading differs from0.912; include tolerance and residual bus. Source droop/current limiting raises the minimum.
C1/C2 nominal940 µF gives25Ω×C=23.5 ms, unloaded91.2%≈57.1 ms; initial current1.92 A48 V/2.40 A60 V, not source setting recommendations. Add converter input and12/5/3.3 V output charging, bootstrap charging and Cmax. C9/C16 nominal44 µF alone needs0.528 mC at12 V; C21 nominal10 µF needs50 µC5 V; C23 nominal4.7 µF needs15.51 µC3.3 V, plus all distributed capacitors/external loads. Current is Ceff×dV/dt; ramp and startup current-limit behavior are unknown. Exact MLCCs/DC-bias curves needed; provision at least2× required nominal MLCC capacitance for bias derating, then verify effective minimum, rather than assuming labels equal Ceff.
U25 C77 pump startup40 ms nominal from valid bias (prior audit evidence) cannot be inferred from57 ms at source application: U8/U9 startup and UVLO delay subtract from that interval. Brownout/hot restart, bootstrap leakage, source current limit, resistor pulse/retry envelope and Q7 SOA remain HOLD. Do not infer timing or startup guarantee from static power margin.
Separate isolated USB domain
USB source advertisement/negotiated allowance is unknown; assume no advertised higher current. Rd does not authorize3 A. U12 normal115200 continuous bidirectional9.5 mA typical, suspend0.195 mA typical; no maximum specified, USB pull-up current additional. Internal regulator100 mA rating includes device current, not external-only capability. Add U13 VCC1:1 mA typical idle/1.6 typical1 Mbps/3.4 max DC-low; R45/46 draw5/69.6k=0.07184 mA; R44 adds3.3 mA if reset low (duration firmware/startup dependent), normally leakage only. USB pull-up estimated0.2 mA illustrative, not sourced maximum; ESD leakage/capacitance/inrush remain symbolic. Normal115200 illustrative 11.37 mA (9.5+1.6+0.07184+0.2); suspend with isolator idle-high ≥1.267 mA typical plus USB pull-up/leakage, not0.195 mA board suspend. No finite guaranteed host peak is claimed without U12 max/input-capacitance and host allowance. USB_GND remains isolated; never add USB current to bus auxiliary or bridge USB to PGND.
Disposition and finite corrections
Completed: live per-rail load inventory and state equations, cited component currents, calculable nominal sums, conditional regulated-rail/input envelope, U10 quantitative thermal boundary, precharge sustain distinction, separate USB budget, document-only update. Failed/blocked qualification: guaranteed whole-MCU max for actual firmware, U9 FPWM sleep loss,12 V Qg/driver overhead/H, loaded LDO G, external X, source capability/voltage/current-limit behavior, hot inductor ratings, startup slopes/capacitance/pulse retries. These are specific missing operands, not a request for another broad audit. Unattempted by instruction: circuit/layout/BOM/role-property/audit/bring-up changes and measurements. Record role-detail totals only after acceptance caps become verified; mutation is prohibited in this batch.
Recommended next corrections: enforce/measure scenario A and establish max MCU/peripheral current; specify J5/J4 current cap and pot resistance; characterize FPWM sleep loss and real converter efficiencies; resolve12 V gate/charge-pump/startup model; keep U10 below both0.4 W and board-specific junction limit or implement required larger-package/buck solution; approve actual source and precharge timeout/retry envelope only after those operands close. All numbers are analytical, no fabricated measurements. Overall board readiness remains separate and blocked.
Current design-note status — 2026-08-16:
Assumption control and revision triggers
Recalculate this budget before changing any regulator, fuse, connector, DC-link capacitor, shunt, MOSFET, PWM frequency, bus-voltage limit, or current target. The present estimates assume a regulated/current-limited 48 V nominal source, 60 V maximum bus, 5 A RMS phase current, 10 A short peak, 20 kHz PWM, coast-to-stop operation, and no populated braking chopper. USB-side power is supplied by the laptop and is excluded from the DC-bus auxiliary total.
The auxiliary power estimates include engineering allocation for local controls and analog circuitry, but not yet a finalized count of LEDs, display hardware, fans, relays/contactors, external sensors, or an isolated gate-drive supply. Adding any of these loads requires a new rail-by-rail sum and thermal check.
Scope and decision summary
This file selects a coherent component set for the 48 V nominal, 60 V maximum low-voltage (LV) prototype only. It does not select the later 325 VDC inverter devices. The LV stage uses a common-DC-minus controller/power-stage ground, three bootstrap half-bridge drivers, six 150 V MOSFETs, three low-side phase shunts, and an independently isolated USB-to-UART boundary.
20 kHz, center-aligned complementary PWM, programmable dead time
Initial control
Open-loop V/Hz, 0–60 Hz fundamental
Current sensing
Three low-side shunts, one per inverter leg; bidirectional measurement
Fault response
Analog comparator path directly to STM32 HRTIM/TIM break; firmware not required to remove PWM
Gate drive
12 V; independent high-/low-side inputs; bootstrap high side
Grounding/isolation
LV controller and inverter share DC−. USB/UART is galvanically isolated. Gate-drive isolation is deferred to the final HV stage.
Ambient/design temperature
Bench ambient up to 40°C; semiconductor calculations checked at 100–125°C junction assumptions
Motor/load
A low-voltage three-phase motor or RL load whose voltage/current ratings are compatible with the 48 V bus; do not connect the 230 V/1 hp motor expecting rated torque.
The 150 V MOSFET selection intentionally provides more transient headroom than a 100 V device. The 64 V standoff TVS can clamp at 103 V under its rated 10/1000 µs pulse, so a 100 V MOSFET would not have a defensible full-surge margin.
170 MHz Cortex-M4F, 512 KB Flash and 128 KB total SRAM.
Five 12-bit ADCs and seven ultra-fast rail-to-rail comparators.
HRTIM provides twelve high-resolution PWM outputs; advanced timers also support complementary outputs/dead time.
Comparator outputs can feed TIM1/TIM8/TIM20 break and HRTIM fault inputs through the internal interconnect matrix.
USB FS is present, although this design uses UART behind an external isolated USB bridge to keep the isolation boundary simple.
LQFP64 is realistic for a student prototype and leaves adequate ADC, PWM, UART, SWD, local-control and fault pins.
Critical ratings/evidence: 1.71–3.6 V supply, 170 MHz maximum, seven comparators, 184 ps HRTIM resolution, LQFP64 package. At 170 MHz, representative run current is approximately 24–38 mA typical depending on code location/workload; datasheet maximum reaches 53 mA at 125°C with peripherals disabled.
Flux library: exact Q1 PowerPAD variant available (UCC27211AQDDARQ1, UID 7df83763-c8c2-43c7-911e-02bf86b4f373).
Gate-drive implementation
VDD = 12 V. This fully enhances the selected standard-level MOSFETs, whose RDS(on) is specified at VGS = 10 V.
Start with 4.7 Ω series gate resistors and 10 kΩ gate-source pull-downs. Tune gate resistance from measured switch-node ringing and switching loss.
Place 1 µF, 25 V X7R bootstrap capacitor from HB to HS at each driver. The datasheet rule is CBOOT ≥ 10 × Qg/(VDD − VD). Using the MOSFET maximum Qg of 52 nC and approximately 11.1 V available gives a minimum near 47 nF; 1 µF provides strong DC-bias and skipped-cycle margin.
Place 100 nF + 1 µF local VDD bypass at each driver.
Bootstrap charge is refreshed only when HS returns near ground. Firmware must avoid true 100% high-side duty and must guarantee recurring low-side/off intervals. Use complementary PWM even at low fundamental frequency; do not statically hold a high-side MOSFET on at zero speed.
UCC27211A has independent inputs and no built-in dead-time interlock. Dead time and shoot-through prevention are therefore mandatory in HRTIM/TIM hardware configuration.
Isolation strategy
The LV prototype deliberately uses non-isolated gate drivers and a shared DC− control ground. This reduces parts and improves observability during 48–60 V commissioning. The PC connection is isolated separately. The later 325 V stage must use an isolated gate-drive/power architecture and must not copy this grounding decision unchanged.
Protection behavior
Driver UVLO forces outputs low if VDD or bootstrap bias is inadequate. Fast current faults are handled by the STM32 comparator-to-break hardware path described below. A global hardware gate-enable line should also pull all six driver inputs low and be controlled by emergency stop, MCU reset supervision and latched fault logic.
4. Current sensing and asynchronous overcurrent shutdown
Selected architecture: three low-side shunts
3 × Vishay WSLP2726R0050FEA, 5 mΩ, 1%, 5 W, 2726 Power Metal Strip.
3 × Texas Instruments INA240A1D, gain 20 V/V, SOIC-8.
The WSLP2726 family supports 5 mΩ at 5 W, ±1%, low inductance and ±75 ppm/°C component TCR. Exact MPN availability should be reconfirmed before ordering; it was not found as an exact Flux library part.
Flux library: INA240A1D available (UID 36dd45e5-f9f4-4f0e-950c-42fff05bbdef).
Scaling and losses
VSHUNT = I × 0.005 Ω
VOUT = 1.65 V + (20 V/V × VSHUNT) = 1.65 V + 0.1 V/A × I
Table
Current
Shunt voltage
INA240 output
Shunt dissipation
−10 A
−50 mV
0.65 V
0.50 W
−5 A
−25 mV
1.15 V
0.125 W
0 A
0 mV
1.65 V
0 W
+5 A
+25 mV
2.15 V
0.125 W
+10 A
+50 mV
2.65 V
0.50 W
The selected 5 W shunt has a 10:1 power-rating margin at the 10 A peak point, but PCB copper and Kelvin routing remain important. Route each INA240 input as a true Kelvin pair directly to the shunt pads.
INA240 suitability
2.7–5.5 V supply; use 5 V.
−4 V to +80 V common-mode operating range.
Enhanced PWM rejection, 400 kHz bandwidth.
Gain 20 V/V; ±25 µV maximum input offset.
2.4 mA maximum quiescent current.
The amplifiers are biased at 1.65 V using a low-impedance buffered reference or an enabled STM32 DAC output. Do not use a high-impedance divider directly on both REF pins.
Hardware overcurrent trip path
Because each INA240 is powered from 5 V while STM32 analog inputs are referenced to 3.3 V, every amplifier output must include a current-limiting series resistor and a verified 3.3 V clamp (or be rescaled/buffered) so startup, open-shunt, and fault transients cannot exceed MCU absolute-maximum ratings. The nominal ±10 A range remains within 0.65–2.65 V.
Use six of the STM32G474's seven comparators as three window comparators:
Three upper trips compare each phase-current output against a high threshold.
Three lower trips compare each output against a low threshold.
Comparator outputs are internally routed/ORed into an HRTIM or advanced-timer fault/break input.
Configure the timer break as asynchronous, active in hardware, forcing all PWM outputs to the inactive state and latching the fault until an explicit safe reset.
Recommended commissioning thresholds:
First power tests: ±8 A (0.85 V and 2.45 V).
Normal LV validation after calibration: approximately ±11 A (0.55 V and 2.75 V) so 10 A peaks do not nuisance-trip.
The exact comparator/DAC pin and internal-matrix assignment must be confirmed during schematic pin planning, but the MCU datasheet explicitly supports comparator-generated timer breaks and HRTIM faults.
Flux library: exact MPN available (UID e7e17ac6-afa7-4f47-8a9c-52ca0d53dfad), but the library entry lacks an attached datasheet and should be footprint-checked before layout.
Estimated conduction loss at 5 A RMS
For a first-order sinusoidal-PWM estimate, use Pdevice = Iphase_rms² × RDS(on) × 0.5.
Table
Assumed junction
RDS(on) used
Per MOSFET
Six-MOSFET total
25°C
7.40 mΩ
0.093 W
0.555 W
100°C
11.47 mΩ (1.55×)
0.143 W
0.860 W
125°C
12.95 mΩ (1.75×)
0.162 W
0.971 W
This is conduction loss only. It excludes switching loss, reverse-recovery loss, dead-time body-diode loss, copper loss and current ripple. The 150 V rating gives 2.5× the 60 V operating bus and remains above the TVS 103 V full-pulse clamp value.
At 20 kHz and 12 V gate drive, six devices at maximum Qg = 52 nC require approximately:
PGATE = 6 × Qg × VGS × fSW = 74.9 mW
Equivalent 12 V gate-charge current is approximately 6.24 mA. The UCC27211A drive-current capability is therefore ample; gate resistors will set practical edge rate.
Thermal caveats
Use large drain copper areas, multiple thermal vias and short commutation loops.
Do not infer board-level current capability from the datasheet's case-cooled 80–114 A figures.
Validate case/board temperature at 5 A continuous and 10 A pulsed operation with thermocouples or IR imaging corrected for emissivity.
Measure switch-node overshoot at the MOSFET pins with a low-inductance probe; tune gate resistance and add RC snubbers if necessary.
6. Input protection, DC link, auxiliary rails, temperature and USB
DC input connector
Phoenix Contact 1714971 (MKDS 5/2-9.5), 2-position screw terminal, 9.52 mm pitch, 32 A nominal, up to 1000 V rated, AWG 24–10.
The 15 A rating permits 10 A short peaks while protecting against gross faults. Final fuse coordination must use measured input-current waveforms and the selected source's short-circuit capability. Exact 15 A part was not found in Flux; a 12 A member of the same series is present.
TVS
Vishay SMCJ64A-E3/57T, unidirectional, 64 V standoff, 71.1–78.6 V breakdown, 103 V maximum clamp at 14.6 A, 1500 W 10/1000 µs rating.
Place after the fuse, directly across DC+ and DC− with a short loop. This TVS is for wiring/bench transients, not sustained regenerative energy. Optional braking remains deferred, so aggressive deceleration or an overhauling load can still raise the bus beyond the TVS's safe energy capability.
DC-link capacitors
2 × Panasonic EEUFS1K471L, 470 µF, 80 V, 10,000 h, 2.2 A ripple each, 30 mΩ impedance at 100 kHz: 940 µF total bulk.
1 × 1 µF, 100 V polypropylene film across the bridge supply, recommended Panasonic ECW-F2105JA or equivalent.
4 × 1 µF, 100 V X7R 1210 distributed near the half bridges, recommended TDK C3225X7S2A105K250AB or equivalent.
100 nF, 100 V ceramics immediately adjacent to each half-bridge commutation loop.
Bulk capacitor datasheet/library source: exact EEUFS1K471L available in Flux (UID 9ceccab6-4dc9-42ef-bd83-fcb089e8f308).
At 10 A, 940 µF alone changes by approximately 10.6 V per millisecond (ΔV = IΔt/C), so the capacitors do not replace a low-impedance current-limited bench supply. Their purpose is local switching current and short transient buffering.
Bus-voltage measurement
Use two series 100 kΩ, 0.1% resistors from DC+ to the ADC node and 10 kΩ, 0.1% to DC−, plus 1 nF at the ADC node and a small series resistor/clamp network. The ratio is 21:1:
48 V bus → 2.286 V ADC.
60 V bus → 2.857 V ADC.
Using two top resistors shares voltage stress and improves fault tolerance. Firmware should set conservative UV/OV thresholds after divider and ADC calibration; an initial overvoltage trip near 62 V is appropriate for bench tests.
Auxiliary regulators
LM5164DDA: 48–60 V to 12 V, 1 A-rated, 6–100 V input synchronous buck, PowerPAD SO-8. Use the datasheet's 48 V/12 V example as the starting point: 68 µH inductor, 2 × 2.2 µF/100 V input ceramics, and 2 × 22 µF/25 V output ceramics. Datasheet: https://www.ti.com/lit/ds/symlink/lm5164.pdf. Flux UID 6c409799-d1a6-46a2-9152-6bdfcd59ffa0.
LMR50410Y5FQDBVRQ1: 12 V to fixed 5 V, 1 A synchronous buck, 4–36 V input, 2.1 MHz, PFM version for light-load efficiency. Datasheet: https://www.ti.com/lit/ds/symlink/lmr50410-q1.pdf. Flux UID 2015cbcf-e6a3-41cf-8f18-22ebe999b861.
TPS7A2033PDBVR: 5 V to 3.3 V, 300 mA LDO, 145 mV maximum dropout at 300 mA in SOT-23-5, stable with 1 µF minimum ceramic. Datasheet: https://www.ti.com/lit/ds/symlink/tps7a20.pdf. Flux UID eed0eb5f-72eb-4c21-a225-e35b91687c0e.
The 3.3 V LDO intentionally provides a quieter MCU/ADC rail than a second direct high-frequency buck. At the 120 mA peak budget, dissipation is (5 − 3.3) × 0.12 = 0.204 W, acceptable with normal SOT-23 copper.
Temperature sensing
Texas Instruments TMP235A2DCKR, analog output, 2.3–5.5 V, approximately 9 µA typical, 10 mV/°C with 500 mV at 0°C, ±2°C maximum over −40°C to +150°C for the A2 grade. Power from 3.3 V and place close to the hottest low-side MOSFET/copper region.
Flux library: exact MPN available (UID b7f7285b-a766-4ef0-8bd1-6f435b3e9db9).
Galvanically isolated USB serial
GCT USB4105-GF-A USB-C receptacle, USB 2.0, 16 contacts. Use only USB 2.0 D+/D− and VBUS; add 5.1 kΩ Rd on CC1 and CC2 and USB ESD protection. Flux UID e144d1e5-c996-4a7a-a01d-8049d0ab61fd.
Silicon Labs CP2102N-A02-GQFN24, USB 2.0 full speed to UART, up to 3 Mbaud, 9.5 mA typical at 115200 baud, integrated oscillator and 3.3 V regulator. USB side is powered from VBUS. Flux UID f258c0a9-283f-4384-a1a9-98b9bd5a1d51. Datasheet: https://www.silabs.com/documents/public/data-sheets/cp2102n-datasheet.pdf
Texas Instruments ISO7721DR, reinforced dual-channel 1-forward/1-reverse digital isolator for UART TX/RX, 2.25–5.5 V, 100 Mbps, 11 ns typical propagation, 3000 VRMS isolation for narrow SOIC-8. Its default-high behavior matches UART idle. Flux UID b31f6026-ccf0-4b4f-8439-a84f3954d3af. Datasheet: https://www.ti.com/lit/ds/symlink/iso7721.pdf
CP2102N and the USB-side ISO7721 supply are powered from USB VBUS/CP2102N 3.3 V. The controller-side ISO7721 supply is the board's isolated-from-PC 3.3 V rail. No isolated DC/DC is required because each side already has an independent source. Maintain the isolation creepage gap and do not connect USB shield/ground directly to DC−; provide only a deliberate chassis/EMI network if later testing requires it.
7. Preliminary auxiliary-rail power budget
Budget confidence: preliminary/component-selection level. Typical figures are suitable for architecture comparison; peak/design figures are the values to use for initial regulator and protection sizing. They are not production guarantees until the completed schematic provides an exact load inventory and measurements confirm startup, switching, and transient demand.
Load budget
Table
Rail/load
Typical
Peak/design
Basis
3.3 V STM32 + clocks/ADC
40 mA
70 mA
Datasheet run current plus enabled peripherals
3.3 V controller-side isolator/local I/O/margin
20 mA
50 mA
Allocation
3.3 V rail total
60 mA / 0.198 W
120 mA / 0.396 W
TPS7A20 rated 300 mA
5 V: 3 × INA240
7.2 mA
7.2 mA
Datasheet maximum
5 V: references/analog
5 mA
5 mA
Allocation
5 V: local LEDs/controls
5 mA
15 mA
Allocation
5 V feeding 3.3 V LDO
60 mA
120 mA
LDO input ≈ output current
5 V rail total
77.2 mA / 0.386 W
147.2 mA / 0.736 W
LMR50410 rated 1 A
12 V MOSFET gate charge
6.24 mA
6.24 mA
6 × 52 nC × 20 kHz
12 V: 3 gate-driver bias
0.93 mA
0.93 mA
Max VDD + HB quiescent
12 V direct reserve
0 mA
10 mA
Margin
12 V direct load
7.17 mA / 0.086 W
17.17 mA / 0.206 W
Excludes reflected 5 V load
Assuming 85% efficiency for 12 V→5 V and 90% efficiency for bus→12 V:
Table
Quantity
Typical
Peak/design
5 V load reflected to 12 V
37.9 mA
72.2 mA
Total LM5164 12 V output
45.0 mA / 0.540 W
89.3 mA / 1.072 W
Reflected current at 48 V bus
12.5 mA
24.8 mA
Reflected current at 60 V bus
10.0 mA
19.9 mA
The LM5164 and LMR50410 are each rated for 1 A, leaving substantial current and thermal margin. The auxiliary budget is separate from inverter/motor power. USB-side CP2102N and the USB-side isolator draw from the laptop's VBUS, not the 48 V bus; budget approximately 15–20 mA from USB during normal serial operation.
8. Alternatives considered and rejected
Table
Alternative
Reason not selected
DRV8353 integrated three-phase driver/CSAs
Attractive integration, but the discrete UCC27211A + INA240 architecture is easier to probe, has a 120 V driver rating, separates sensing from gate-drive configuration, and makes the asynchronous comparator path explicit.
100 V BSC040N10NS5 MOSFET
Excellent 4 mΩ performance and Flux availability, but a 64 V TVS can clamp at 103 V; insufficient full-surge voltage margin at a 60 V maximum bus.
80 V MOSFETs
Rejected because normal bus tolerance and switching overshoot would consume most rating margin.
Hall-effect phase sensors
Provide isolation and low insertion loss, but cost/size/offset are higher; unnecessary for the shared-ground LV stage. Reconsider for HV.
Single DC-link shunt
Lowest cost, but constrains PWM sampling windows and is less useful for later current-control expansion.
Two-shunt sensing
Viable fallback if layout or ADC resources force simplification, but three shunts maximize observability during capstone commissioning.
Isolated gate drivers on LV stage
Safer domain separation but adds isolated bias supplies and cost. Deferred to the final HV stage; USB remains isolated now.
Direct STM32 USB
Would require isolating USB D+/D− or accepting a non-isolated laptop ground. CP2102N + ISO7721 creates a simple isolated serial boundary and standard desktop COM port.
Linear 60 V→12 V or 12 V→5 V regulation
Excess dissipation and poor efficiency; switchers selected.
9. Open questions, risks and validation tests
Implemented DC-link precharge and bypass
F1 feeds a new FUSED_DC node. Four 100 Ω, 5 W resistors (R67–R70) operate in parallel between FUSED_DC and DC_BUS, giving 25 Ω total.
With 940 µF bulk capacitance, the nominal time constant is 23.5 ms. The comparator bypass command is designed to assert near 91% charge, approximately 56 ms after input application under nominal unloaded conditions.
U20 channel 3 compares filtered scaled versions of DC_BUS and FUSED_DC. The 190.6 kΩ/10 kΩ bus divider and 210 kΩ/10 kΩ input divider produce the nominal 91.2% ratio threshold. R66 is 1 MΩ for light positive-feedback hysteresis.
PRECHARGE_VALID drives LTC7001 U25 and is also required by U14 in GATE_PREREQ; PWM cannot be enabled before precharge completion.
U25 is powered from +12V_GATE, uses the datasheet default VCC UVLO, has OVLO disabled low, and uses C77 = 0.1 µF from BST to TS. TGUP and TGDN drive Q7 together.
Q7 is connected drain-to-FUSED_DC, source-to-DC_BUS, so its intrinsic body diode does not bypass the precharge resistors during normal forward energization.
U20 channel 4 is biased to a defined unused state and its open-drain output is intentionally no-connect.
The bypass path is intended for static continuous conduction after precharge; bench testing must verify turn-on timing, resistor pulse temperature, Q7 VDS polarity, and loss of PRECHARGE_VALID behavior before motor operation.
Open questions / risks
Bench verification pending: connectivity and focused ERC are complete, but precharge timing, hardware shutdown latency, current thresholds, regulator startup, and MOSFET switching behavior still require measurement before connecting a motor.
Low-voltage motor/load selection: confirm winding voltage, rated current and permissible PWM carrier frequency. A 230 V motor on 48 V can demonstrate frequency generation but will not deliver rated torque.
Regeneration without brake chopper: coast-to-stop only at first. Deceleration or overhauling loads can overcharge the 80 V capacitors and exceed TVS energy capability.
Bootstrap at extreme duty cycle: validate minimum low-side refresh time over the full V/Hz table and during startup/zero-speed states.
Comparator routing: confirm the exact STM32G474 LQFP64 pins and internal COMP/DAC/HRTIM mapping before schematic capture.
MOSFET footprint/library quality: verify the Flux BSC074N15NS5 footprint against the Infineon land pattern before layout.
Shunt footprint/library availability: exact WSLP2726R0050FEA was not found in Flux and may require a verified library part or custom component later.
60 V absolute ceiling: use a current-limited bench supply with a hard voltage limit. Do not use an unregulated “48 V” source that can exceed 60 V during charge or regeneration.
Fuse coordination: validate fault current and opening behavior with the actual source; 15 A is preliminary, not a substitute for source current limiting.
Switching-loss uncertainty: conduction loss is small, but switching and dead-time losses require oscilloscope measurement.
Low-side-shunt observability: phase current is directly observable only during valid low-side conduction/sampling windows. PWM-triggered ADC timing and sample-valid logic must be designed and verified; these measurements are not continuous Hall-sensor equivalents.
Required validation tests
Power auxiliary rails from a current-limited bus before fitting MOSFETs: verify 12 V, 5 V and 3.3 V startup from 48 V and 60 V.
Confirm all six gate outputs, dead time and UVLO behavior into dummy capacitive loads.
Demonstrate bootstrap retention at maximum commanded duty and lowest fundamental frequency.
Calibrate each shunt channel at ±1 A, ±5 A and pulsed ±10 A; compare against a precision current probe/DMM.
Inject comparator thresholds and verify PWM is removed without CPU/interrupt service; measure fault-to-gate-off latency.
Start with ±8 A hardware limits and a low bus current limit; raise only after current calibration.
Double-pulse or low-duty switching test: measure VDS overshoot, rise/fall times and ringing at 48 V and 60 V.
Run 5 A RMS thermal soak; log MOSFET, shunt, connector, fuse and capacitor temperatures.
Verify bus ADC accuracy at 12, 24, 48 and 60 V; test UV/OV latch behavior.
Verify USB isolation with an ohmmeter/hipot appropriate to the assembled barrier and confirm USB disconnect leads to a defined safe state.
10. Concise recommended BOM
Table
Qty
Manufacturer
MPN
Role
Key ratings
Sourcing / Flux status
1
STMicroelectronics
STM32G474RET6
Motor-control MCU
170 MHz, 5 ADCs, 7 comparators, HRTIM, LQFP64
Active; mainstream; exact Flux part
3
Texas Instruments
UCC27211AQDDARQ1
Half-bridge gate drivers
120 V boot, 8–17 V VDD, 3.7/4.5 A
Active; exact Flux part
6
Infineon
BSC074N15NS5
Inverter MOSFETs
150 V, 7.4 mΩ max at 10 V, Qg 41 nC typ
Mainstream; exact Flux part, verify footprint
3
Texas Instruments
INA240A1D
Phase-current amplifiers
Gain 20, −4 to 80 V CM, 400 kHz
Active; exact Flux part
3
Vishay
WSLP2726R0050FEA
Current shunts
5 mΩ, 1%, 5 W
Mainstream; exact Flux part not found
1
Texas Instruments
LM5164DDA
48–60 V→12 V buck
6–100 V input, 1 A
Active; exact Flux part
1
Texas Instruments
LMR50410Y5FQDBVRQ1
12 V→5 V buck
Fixed 5 V, 1 A, 4–36 V
Active; exact Flux part
1
Texas Instruments
TPS7A2033PDBVR
5 V→3.3 V LDO
300 mA, low noise
Active; exact Flux part
1
Texas Instruments
TMP235A2DCKR
Power-stage temperature
10 mV/°C, −40 to 150°C
Active; exact Flux part
1
Silicon Labs
CP2102N-A02-GQFN24
USB-to-UART
USB FS, UART to 3 Mbaud
Active; exact Flux part
1
Texas Instruments
ISO7721DR
UART isolation
3000 VRMS SOIC-8, 100 Mbps
Active; exact Flux part
1
GCT
USB4105-GF-A
USB-C receptacle
USB 2.0, top mount
Active; exact Flux part
1
Phoenix Contact
1714971
DC input connector
32 A, 9.52 mm, AWG 10 max
Active; exact Flux part
1
Littelfuse
0476015.MR
Input fuse
15 A, 125 VDC, 300 A interrupt
Mainstream; exact Flux part not found
1
Vishay
SMCJ64A-E3/57T
Bus TVS
64 V standoff, 103 V clamp, 1.5 kW
Mainstream; family in Flux, exact MPN not confirmed