Skip to the content
4 layers76 × 74.3 mmMCU PSU, the printed circuit board in 3D

2-phase synchronous digitally controlled buck converter (30V in, up to 10A out). Features a 4-layer custom KiCad PCB optimized for EMI. Firmware written in C (HAL) for STM32G474, leveraging advanced hardware accelerators (HRTIM, FMAC) for dual-loop voltage/current control and LCD UI.

Size
76 × 74.3 mm
Copper layers
4
Thickness
1.6 mm
Parts
119
Nets
81
Pads
406
Tracks, vias
616, 193
Pours
26
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
25 Mar 2026
Updated
9 Aug 2026

Overview

MCU PSU is an open-source printed circuit board by Blaze-Pascal, from the Blaze-Pascal/EKA-PiF-MCU_PSU repository on GitHub, published under the GPL-3.0 licence. It is a 4-layer board of 76 × 74.3 mm with 119 parts on 81 nets, routed with 616 tracks and 193 vias.

It is built around the TPS560430XDBVR-MS, UCC27211D and LDI1117-3.3H, with the AON6144, AONS66406 and BSS138 among its other parts. Its parts include 40 resistors, 34 capacitors, 6 ICs, 6 diodes and 6 transistors. It belongs with the power boards and the STM32 boards of this library.

Main components

8

README

README.md

2-Phase Synchronous Digitally Controlled Buck Converter

Hardware Setup

Project Overview

Goal: Build a multi-phase, MCU-controlled high-power buck converter to act as a current amplifier for a linear lab power supply (30V/5A) at lower voltages.

Project Scope:

  • Custom Hardware: 4-layer power stage and control circuitry designed in KiCad with focus on EMI mitigation. Switching at 250 kHz, designed for 10A at 12V output.
  • Advanced MCU Control: Firmware written in C (STM32 HAL) for the STM32G474, utilizing a software-defined voltage loop (via FMAC), a pure-hardware current protection loop, and hardware encoder UI integration.

System Architecture

System Schematic Block Diagram

The system is split into two primary domains: the digital control stage, centered around the STM32G474's advanced power-control peripherals, and the power stage, featuring dedicated gate drivers and power MOSFETs.


Hardware Details

The Power Stage

Power stage

The power stage consists of two identical, interleaved synchronous buck topologies:

  • Gate Drivers: UCC27211A drivers were selected for their 30V bootstrap tolerance, high 4A peak drive current, and discrete inputs, which allow for precise dead-time insertion directly from the MCU's HRTIM.
  • MOSFETs: Two different Alpha & Omega DFN-8 MOSFETs are utilized to optimize the specific roles of the buck topology. The AONS66406 is used on the high side for its lower gate charge (faster switching, lower switching losses), while the AON6144 is used on the low side for its lower Rds(on) (better conduction efficiency).
  • Passives: The system uses 22µH molded inductors (derated from 8.5A to around 5A). Input capacitance consists of 3x 10µF 50V MLCCs + 100µF electrolytic, while the output utilizes 3x 22µF 25V MLCCs + 100µF electrolytic.

PCB Layout & EMI Mitigation

PCB Layout Diagram

Great care was taken during the PCB routing phase to minimize radiated and conducted emissions:

  • 4-Layer Stackup: Allows for smaller L1-to-L2 distances, increasing plane coupling and reducing radiated emissions.
  • Strategic Placement: The MLCC capacitors "hug" the MOSFETs on the input and the inductors on the output to minimize high-frequency current return paths. The slower bulk electrolytic capacitors are placed further out at the input/output terminals.
  • Node Optimization: The physical copper area of the noisy switching (SW) nodes was kept to an absolute minimum. Molded inductors were chosen specifically to further contain magnetic emissions.
  • Signal Isolation: Delicate analog feedback signals for the current loops were routed exclusively on the bottom layer to shield them from the noisy power stage on the top layer. They were also routed as differential pairs in order to minimise common mode noise.

The Digital Stage & UI

Digital stage

The control circuitry relies heavily on the STM32G474's internal mixed-signal capabilities. Additionally, the system features a local user interface: a rotary encoder is connected to a hardware timer in encoder mode, allowing the user to adjust voltage and current setpoints on the fly, which are displayed on an integrated 16x2 LCD.


Control Loop Architecture

Voltage loop Current loop

The core of the project is its dual-loop control scheme, leveraging the specific hardware accelerators of the STM32G4 family:

1. Software Voltage Control Loop

  • Averaged Sampling: The High-Resolution Timer (HRTIM) triggers ADC3 to sample the feedback voltage (buffered via an internal OpAmp) at the exact midpoint of the MOSFET's on-time. This effectively averages the signal without requiring software filtering.
  • Hardware Math Acceleration: The ADC value is sent via DMA directly to the Filter Math Accelerator (FMAC) WDATA register, where a Proportional (P) control algorithm is calculated in hardware.
  • Duty Cycle Update: Once the FMAC presents the result in the RDATA register, it generates an interrupt. The MCU core wakes up, applies corrections for phase current mismatch, and writes the new duty cycle to the HRTIM CMP1xR register.

2. Hardware Current Control Loop

  • Differential Measurement: Current is measured via a shunt resistor at the low-side source. The small signal is read differentially for improved noise rejection.
  • Internal Analog Processing: The voltage is amplified by an internal MCU difference amplifier and immediately fed into a built-in hardware comparator against a threshold set by an internal DAC.
  • Asynchronous Shutdown: The comparator output is routed directly to the HRTIM external event port. This asynchronous link ensures near-zero latency between an overcurrent event and power stage shutoff, effectively realizing valley current control mode.
  • Blanking Window: The HRTIM utilizes an internal event blanking window to ignore switching transients, preventing false safety triggers.

Results & Verification

Testing was conducted in progressive stages to ensure system stability and safety:

Test setup

1. Controller Verification (No Power Stage): Feedback voltages were injected directly into the digital section to validate the software. Interleaving, dead-time insertion, duty cycle adjustment, soft start, current balancing, and overcurrent protection were all verified before high voltage was applied.

2. Real-World Ripple Testing: With the power stage assembled and hooked to a 25V lab supply, the output voltage ripple was measured at no load.

ripple oscope showcase

The dual-phase interleaved topology yielded a voltage ripple of just 7mVp-p. Compared to single-phase operation (which measured 35mVp-p), interleaving provided an 80% reduction in ripple purely through topology.

3. Efficiency Analysis: The converter was tested across its full operating range using an electronic DC load.

Input Volts (V)Input Current (A)Output Volts (V)Output Current (A)Efficiency (%)
25.120.07712.030.0000.00
25.120.21811.910.29964.82
24.980.53811.160.99982.97
24.960.98911.072.00089.71
24.902.11010.924.50093.60
24.643.22910.707.00094.19
24.603.67710.658.00094.21
24.564.57310.5510.00093.95
efficiency graph

Test conditions note: Testing was capped at 25V input (instead of 30V) due to observed ringing at the switching node, which threatened to exceed the transistor voltage ratings.


Future Improvements

While the current revision serves as a highly successful proof of concept, several areas are targeted for future improvement:

  • Regulator Tuning: The observed voltage drop under load is due to the implementation of a pure Proportional (P) regulator. A PI regulator caused stability issues in this revision, but with proper parameter tuning, stable operation with minimal offset drop is achievable.
  • Ringing Attenuation: Adding a snubber circuit or increasing gate resistor values will dampen the switching node ringing. Alternatively, transistors with higher voltage ratings could be used, though at a slight cost to Rds(on) and gate capacitance.
  • Component Optimization: The passive components and MOSFETs were intentionally over-provisioned for this prototype. A production-ready version would undergo stricter component selection to reduce costs.
  • Software Hardening: The firmware requires further refinement and exhaustive safety testing to handle edge cases gracefully (e.g., during testing, one phase shut down, and the converter was ultimately saved by the external PSU's overcurrent protection).

Documentation

Comprehensive project documentation is available in the repository (written in Polish, prepared for university coursework in Power Electronics and Digital Signal Controllers):

  • Raport Techniczny: Initial project considerations and mathematical foundations.
  • Raport Implementacyjny: Simulated testing and core code fragments.
  • Raport Wdrożeniowy: Physical implementation and final hardware measurements.
  • Raport Projektowy: Executive summary of the project lifecycle.

Parts

119
QtyValueFootprintReferences
1410kPCM_Resistor_SMD_AKL:R_0603_1608MetricR2, R3, R12, R14, R16, R17, R18, R20, R22, R23, R25, R26, R28, R29
12100nPCM_Capacitor_SMD_AKL:C_0603_1608MetricC1, C4, C6, C7, C8, C9, C11, C13, C102, C202, C301, C401
910uPCM_Capacitor_SMD_AKL:C_1206_3216MetricC12, C101, C103, C104, C105, C201, C203, C204, C205
822uPCM_Capacitor_SMD_AKL:C_0805_2012MetricC15, C16, C106, C107, C108, C206, C207, C208
7NetTie_2NetTie:NetTie-2_SMD_Pad0.5mmNT1, NT2, NT3, NT101, NT102, NT201, NT202
6100kPCM_Resistor_SMD_AKL:R_0603_1608MetricR13, R15, R19, R21, R24, R303
43.3RPCM_Resistor_SMD_AKL:R_0603_1608Metric_Pad0.98x0.95mmR101, R102, R201, R202
3G_LEDLED_SMD:LED_0603_1608MetricD3, D4, D5
3LOGOLOGOG***, G***, G***
20R01PCM_Resistor_SMD_AKL:R_1206_3216Metric_Pad1.30x1.75mmR103, R203
2100RPCM_Resistor_SMD_AKL:R_0603_1608MetricR7, R9
2100uCapacitor_SMD:CP_Elec_8x10.5C5, C10
2150kPCM_Resistor_SMD_AKL:R_0603_1608MetricR301, R401
21kPCM_Resistor_SMD_AKL:R_0603_1608MetricR4, R6
222uH@6,5/8,5AInductor_SMD:L_Coilcraft_XAL1010-XXXL101, L201
23.3kPCM_Resistor_SMD_AKL:R_0603_1608MetricR1, R5
233kPCM_Resistor_SMD_AKL:R_0603_1608MetricR11, R402
28.2pPCM_Capacitor_SMD_AKL:C_0402_1005MetricC2, C3
2AON6144PCM_Package_SON_AKL:Infineon_PG-TDSON-8Q102, Q202
2AONS66406PCM_Package_SON_AKL:Infineon_PG-TDSON-8Q101, Q201
2BSS138PCM_Package_TO_SOT_SMD_AKL:SOT-23Q1, Q2
2TPS560430XDBVR-MSPCM_Package_TO_SOT_SMD_AKL:SOT-23-6U301, U401
2UCC27211DPCM_Package_SO_AKL:HTSOP-8-1EP_3.9x4.9mm_P1.27mm_EP2.4x3.2mm_ThermalViasU101, U201
10PCM_Resistor_SMD_AKL:R_0603_1608MetricR8
112kPCM_Resistor_SMD_AKL:R_0603_1608MetricR302
115uHInductor_SMD:L_Wuerth_MAPI-3015L401
1220kPCM_Resistor_SMD_AKL:R_0603_1608MetricR403
122uCapacitor_SMD:CP_Elec_5x5.4C14
133uHInductor_SMD:L_Wuerth_MAPI-3015L301
1470kPCM_Resistor_SMD_AKL:R_0603_1608MetricR10
17AFuse:Fuseholder_Clip-5x20mm_Keystone_3517_Inline_P23.11x6.76mm_D1.70mm_HorizontalF1
1BAV99PCM_Package_TO_SOT_SMD_AKL:SOT-23D6
1B_LEDLED_SMD:LED_0603_1608MetricD1
1ENC_CONNConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ7
1I2C_CONNConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ8
1LDI1117-3.3HPCM_Package_TO_SOT_SMD_AKL:SOT-223-3_TabPin2U2
1P_INTerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-5.0-H_1x02_P5.00mm_HorizontalJ1
1P_OutTerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-5.0-H_1x02_P5.00mm_HorizontalJ4
1R_LEDLED_SMD:LED_0603_1608MetricD2
1STM32G474CBTxPCM_Package_QFP_AKL:LQFP-48_7x7mm_P0.5mmU1
1SWD_CONNConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ6
1SW_PushButton_Switch_THT:SW_PUSH_6mmSW1
1UNUSED_PINSConnector_PinHeader_1.27mm:PinHeader_2x06_P1.27mm_VerticalJ5
1XL7EL89CKI-111YLC-32MCrystal:Crystal_SMD_2016-4Pin_2.0x1.6mmY1

The 115 most common of 119 parts.

Similar boards

  • 2 layers44 × 60 mmPowerControl PCM V0.1 Power, the printed circuit board in 3D

    PowerControl PCM V0.1 Power

    htsong-lab/hardware

    Hardware engineering portfolio: FPGA high-speed board, RoboMaster power electronics and smart-car projects.

    74 parts
  • 4 layers150 × 75 mmMypsu, the printed circuit board in 3D

    Mypsu

    nerdmaennchen/WattaVolt

    this repository contains hardware + software for my custom PSU/bringup-tool/younameit

    275 parts2MIT
  • 2 layers80.4 × 56.8 mmBms design, the printed circuit board in 3D

    Bms design

    Harshavar8jdm/5-series-bms

    Custom BMS for 5S-1P NMC Battery Packs

    57 parts1
  • 2 layers77.5 × 75 mmPwr, the printed circuit board in 3D

    Pwr

    vaidastal/DZF-6020-UV-power-addon

    Addon for DZF-6020 vacuum UV post-curing chamber to adjust light sources and their radiant flux.

    134 parts1GPL-3.0
  • 6 layers65 × 85 mmTrackball, the printed circuit board in 3D

    Trackball

    efogtech/endgame-trackball-hardware

    Because it's cheaper than 4 layers. Yes, seriously.

    260 parts26
  • 4 layers150 × 50 mmEmber, the printed circuit board in 3D

    Ember

    notaroomba/ember

    A custom hot plate powered by USB-C Power Delivery.

    136 parts25
  • 6 layers16.4 × 25.3 mmNrf54l module, the printed circuit board in 3D

    Nrf54l module

    efogdev/nrf54l15-module

    nRF54L15 module with full IO set and external DC-DC regulator for maximum efficiency

    134 parts12
  • 4 layers30 × 48 mmMy first pcb, the printed circuit board in 3D

    My first pcb

    VictorManuel-Bautista/my-first-pcb

    Project developed in Windows 11. Not considered WSL during the following steps.

    54 partsMIT

Questions

How big is the MCU PSU PCB?

It measures 76 × 74.3 mm and has 4 copper layers, 1.6 mm thick.

What parts does the MCU PSU use?

119 parts, built around the TPS560430XDBVR-MS, UCC27211D, LDI1117-3.3H and AON6144. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the MCU PSU KiCad files?

From the Blaze-Pascal/EKA-PiF-MCU_PSU repository on GitHub, at the commit this page was made from: the board is KiCad/MCU_PSU/MCU_PSU.kicad_pcb and its schematic KiCad/MCU_PSU/MCU_PSU.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the MCU PSU design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).