
PowerControl PCM V0.1 Power
htsong-lab/hardware
Hardware engineering portfolio: FPGA high-speed board, RoboMaster power electronics and smart-car projects.

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.
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.
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:
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.
The power stage consists of two identical, interleaved synchronous buck topologies:
Great care was taken during the PCB routing phase to minimize radiated and conducted emissions:
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.
The core of the project is its dual-loop control scheme, leveraging the specific hardware accelerators of the STM32G4 family:
WDATA register, where a Proportional (P) control algorithm is calculated in hardware.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.Testing was conducted in progressive stages to ensure system stability and safety:
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.
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.12 | 0.077 | 12.03 | 0.000 | 0.00 |
| 25.12 | 0.218 | 11.91 | 0.299 | 64.82 |
| 24.98 | 0.538 | 11.16 | 0.999 | 82.97 |
| 24.96 | 0.989 | 11.07 | 2.000 | 89.71 |
| 24.90 | 2.110 | 10.92 | 4.500 | 93.60 |
| 24.64 | 3.229 | 10.70 | 7.000 | 94.19 |
| 24.60 | 3.677 | 10.65 | 8.000 | 94.21 |
| 24.56 | 4.573 | 10.55 | 10.000 | 93.95 |
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.
While the current revision serves as a highly successful proof of concept, several areas are targeted for future improvement:
Comprehensive project documentation is available in the repository (written in Polish, prepared for university coursework in Power Electronics and Digital Signal Controllers):
| Qty | Value | Footprint | References |
|---|---|---|---|
| 14 | 10k | PCM_Resistor_SMD_AKL:R_0603_1608Metric | R2, R3, R12, R14, R16, R17, R18, R20, R22, R23, R25, R26, R28, R29 |
| 12 | 100n | PCM_Capacitor_SMD_AKL:C_0603_1608Metric | C1, C4, C6, C7, C8, C9, C11, C13, C102, C202, C301, C401 |
| 9 | 10u | PCM_Capacitor_SMD_AKL:C_1206_3216Metric | C12, C101, C103, C104, C105, C201, C203, C204, C205 |
| 8 | 22u | PCM_Capacitor_SMD_AKL:C_0805_2012Metric | C15, C16, C106, C107, C108, C206, C207, C208 |
| 7 | NetTie_2 | NetTie:NetTie-2_SMD_Pad0.5mm | NT1, NT2, NT3, NT101, NT102, NT201, NT202 |
| 6 | 100k | PCM_Resistor_SMD_AKL:R_0603_1608Metric | R13, R15, R19, R21, R24, R303 |
| 4 | 3.3R | PCM_Resistor_SMD_AKL:R_0603_1608Metric_Pad0.98x0.95mm | R101, R102, R201, R202 |
| 3 | G_LED | LED_SMD:LED_0603_1608Metric | D3, D4, D5 |
| 3 | LOGO | LOGO | G***, G***, G*** |
| 2 | 0R01 | PCM_Resistor_SMD_AKL:R_1206_3216Metric_Pad1.30x1.75mm | R103, R203 |
| 2 | 100R | PCM_Resistor_SMD_AKL:R_0603_1608Metric | R7, R9 |
| 2 | 100u | Capacitor_SMD:CP_Elec_8x10.5 | C5, C10 |
| 2 | 150k | PCM_Resistor_SMD_AKL:R_0603_1608Metric | R301, R401 |
| 2 | 1k | PCM_Resistor_SMD_AKL:R_0603_1608Metric | R4, R6 |
| 2 | 22uH@6,5/8,5A | Inductor_SMD:L_Coilcraft_XAL1010-XXX | L101, L201 |
| 2 | 3.3k | PCM_Resistor_SMD_AKL:R_0603_1608Metric | R1, R5 |
| 2 | 33k | PCM_Resistor_SMD_AKL:R_0603_1608Metric | R11, R402 |
| 2 | 8.2p | PCM_Capacitor_SMD_AKL:C_0402_1005Metric | C2, C3 |
| 2 | AON6144 | PCM_Package_SON_AKL:Infineon_PG-TDSON-8 | Q102, Q202 |
| 2 | AONS66406 | PCM_Package_SON_AKL:Infineon_PG-TDSON-8 | Q101, Q201 |
| 2 | BSS138 | PCM_Package_TO_SOT_SMD_AKL:SOT-23 | Q1, Q2 |
| 2 | TPS560430XDBVR-MS | PCM_Package_TO_SOT_SMD_AKL:SOT-23-6 | U301, U401 |
| 2 | UCC27211D | PCM_Package_SO_AKL:HTSOP-8-1EP_3.9x4.9mm_P1.27mm_EP2.4x3.2mm_ThermalVias | U101, U201 |
| 1 | 0 | PCM_Resistor_SMD_AKL:R_0603_1608Metric | R8 |
| 1 | 12k | PCM_Resistor_SMD_AKL:R_0603_1608Metric | R302 |
| 1 | 15uH | Inductor_SMD:L_Wuerth_MAPI-3015 | L401 |
| 1 | 220k | PCM_Resistor_SMD_AKL:R_0603_1608Metric | R403 |
| 1 | 22u | Capacitor_SMD:CP_Elec_5x5.4 | C14 |
| 1 | 33uH | Inductor_SMD:L_Wuerth_MAPI-3015 | L301 |
| 1 | 470k | PCM_Resistor_SMD_AKL:R_0603_1608Metric | R10 |
| 1 | 7A | Fuse:Fuseholder_Clip-5x20mm_Keystone_3517_Inline_P23.11x6.76mm_D1.70mm_Horizontal | F1 |
| 1 | BAV99 | PCM_Package_TO_SOT_SMD_AKL:SOT-23 | D6 |
| 1 | B_LED | LED_SMD:LED_0603_1608Metric | D1 |
| 1 | ENC_CONN | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical | J7 |
| 1 | I2C_CONN | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J8 |
| 1 | LDI1117-3.3H | PCM_Package_TO_SOT_SMD_AKL:SOT-223-3_TabPin2 | U2 |
| 1 | P_IN | TerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-5.0-H_1x02_P5.00mm_Horizontal | J1 |
| 1 | P_Out | TerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-5.0-H_1x02_P5.00mm_Horizontal | J4 |
| 1 | R_LED | LED_SMD:LED_0603_1608Metric | D2 |
| 1 | STM32G474CBTx | PCM_Package_QFP_AKL:LQFP-48_7x7mm_P0.5mm | U1 |
| 1 | SWD_CONN | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J6 |
| 1 | SW_Push | Button_Switch_THT:SW_PUSH_6mm | SW1 |
| 1 | UNUSED_PINS | Connector_PinHeader_1.27mm:PinHeader_2x06_P1.27mm_Vertical | J5 |
| 1 | XL7EL89CKI-111YLC-32M | Crystal:Crystal_SMD_2016-4Pin_2.0x1.6mm | Y1 |
The 115 most common of 119 parts.

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

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


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

efogtech/endgame-trackball-hardware
Because it's cheaper than 4 layers. Yes, seriously.


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

VictorManuel-Bautista/my-first-pcb
Project developed in Windows 11. Not considered WSL during the following steps.
It measures 76 × 74.3 mm and has 4 copper layers, 1.6 mm thick.
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.
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.
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).