
POWER 0-50
Aleksei327/STM32G474-Precision-Lab-Power-Supply
Precision 0–50 V programmable laboratory PSU with 1 mV/1 mA setting steps, hybrid synchronous-buck + linear regulation, STM32G474 control, INA228 metering, and layered hardware protection.

Experimental STM32G474-based high-current battery charger and programmable synchronous buck converter. KiCad hardware and STM32CubeIDE firmware.
Power Charg AUTO 12V C is an open-source printed circuit board by Aleksei327, from the Aleksei327/STM32G474-Power-Charger repository on GitHub. It is a 2-layer board of 177 × 91.6 mm with 160 parts on 65 nets, routed with 902 tracks and 36 vias.
It is built around the IR2113S, AMS1117-3.3V and D882, with the IRFB4110, SS14 and B340 among its other parts. Its parts include 52 resistors, 45 capacitors, 18 diodes, 6 connectors and 5 ICs. It belongs with the power boards and the STM32 boards of this library.
Experimental high-current battery charger and programmable synchronous buck converter built around an STM32G474, HRTIM and an IR2113 gate driver.

[!WARNING] This repository is an engineering snapshot of a hand-built prototype. The power stage and bring-up firmware work, but the battery charging algorithms are not finished or certified. The design uses a modified mains-powered ATX supply, high currents and lithium-capable output voltages. Do not connect a battery or mains power unless you understand the schematic, protections, isolation and measurement setup. Never charge lithium cells without a suitable BMS/balancer and supervision.
Hardware prototype: operational. Firmware: bring-up / experimental.
Verified on the assembled unit:
Still in progress:
The current source is published so the implementation can be reviewed and improved. No ready-to-flash release binary is provided because the battery algorithms are not complete.
| Block | Current implementation |
|---|---|
| Controller | WeAct STM32G474CEU6 MiniCore, 104 MHz |
| Main input | Modified ATX supply, approximately 18.8-19 V |
| Converter | Synchronous buck, IRFB4110 MOSFET pair |
| Gate driver | IR2113, 12 V gate supply |
| PWM | HRTIM Timer A, complementary outputs, 5-95% test range |
| Current sense | 3 x 10 mOhm in parallel, Kelvin wiring, internal OPAMP PGA x2 |
| Fast protection | OPAMP output to PB1/COMP1, DAC threshold, HRTIM EEV6 shutdown |
| Voltage sense | Battery, buck output, 18.8 V input and auxiliary 12 V dividers |
| User interface | ST7735 160 x 128 TFT, encoder, START/MENU/RESET buttons |
| Output connection | 12 V automotive relay with reverse-polarity check |

| Path | Contents |
|---|---|
hardware/kicad/ | KiCad 10 schematic, PCB, project and local libraries |
hardware/plots/ | Schematic PDF and copper/silkscreen/edge PDF plots |
firmware/STM32G474_Charger/ | STM32CubeIDE project and source |
docs/hardware-design-spec.md | Detailed Russian engineering notes and design intent |
docs/firmware-architecture.md | Firmware structure, pin map and bring-up history |
docs/status-and-validation.md | Build, ERC/DRC and bench-test status |
docs/photos/ | Full-resolution prototype photographs |
See hardware/README.md and firmware/README.md before opening or rebuilding the project.
The firmware was built successfully with STM32CubeIDE 1.18.0:
firmware/STM32G474_Charger as an existing project.Debug configuration.Validation on 2026-07-19 completed with 0 compiler errors and 0 warnings. The resulting image size was 59,812 bytes of text, 120 bytes of data and 4,352 bytes of BSS.
The included KiCad project opens and exports with KiCad 10.0.1. Current checks:
Many DRC messages are caused by local footprint copies, silkscreen overlap, manual overrides and the several physical board sections kept in one PCB file. There are also connection/edge-clearance items that require individual review. Do not send this PCB directly to fabrication. See docs/status-and-validation.md.

The complete set is in docs/photos and selected views are listed in docs/photo-gallery.md.
No project-wide open-source license has been selected for this first public snapshot. Project-specific hardware, firmware and documentation remain copyright Aleksei Subbotin. STMicroelectronics HAL/CMSIS files retain their upstream licenses. See LICENSE-NOTICE.md.
Это экспериментальное мощное зарядное устройство и регулируемый синхронный
buck-преобразователь на STM32G474 + HRTIM + IR2113.
Силовая часть собрана и работает: проверены ШИМ, dead-time около 200 нс,
драйвер и ключи, дроссель, реле, измерение напряжений и тока, синхронный опрос
АЦП, аппаратная защита через OPAMP -> COMP -> HRTIM, а также лабораторный
контур CC/CV. Кратковременно проверена нагрузка до 12,5 А. После установки двух
выходных конденсаторов 1000 мкФ low-ESR измеренная пульсация снизилась примерно
до 20 мВ пик-пик.
Но это ещё не готовая серийная зарядка. Полные алгоритмы заряда лития, свинца и никеля, завершение заряда, температурные защиты и длительные испытания ещё предстоит доделать. Исходники опубликованы как рабочий инженерный снимок для изучения и совместной доработки; готовую прошивку для безопасной зарядки аккумуляторов пока не выпускаем.
Схема, плата, исходники, инженерные заметки и фотографии находятся в соответствующих каталогах выше. Перед изготовлением новой платы обязательно надо разобрать текущие замечания DRC и сверить плату с фактически собранным экземпляром.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 18 | 100nF | Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolder | C7, C10, C24, C27, C28, C29, C30, C31, C33, C35, C38, C44, C45, C234, C235, C236 +2 |
| 15 | 1N4148 | Diode_SMD:D_MiniMELF | D4, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19 |
| 14 | 10kOm | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R15, R31, R32, R35, R36, R40, R41, R42, R43, R44, R45, R49, R51, R53 |
| 11 | , , , , , , , , , , | ||
| 10 | 100 | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R12, R13, R16, R17, R18, R19, R20, R29, R30, R37 |
| 8 | 470uF | Capacitor_THT:CP_Radial_D10.0mm_P5.00mm | C11, C17, C18, C19, C20, C39, C40, C41 |
| 4 | 10 | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R33, R34, R38, R39 |
| 4 | 10uF | Local:CP_Radial_D5.0mm_P2.0-3.5mm_H11mm_Hand | C13, C14, C15, C16 |
| 4 | 4.7kOm | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R23, R25, R26, R47 |
| 3 | 0.01 | Local:Shunt_U_Constantan_D1.5mm_P19.00mm_H10.00mm | R6, R10, R11 |
| 3 | 1uF | Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolder | C23, C34, C43 |
| 3 | 22kOm | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R22, R27, R28 |
| 2 | 100kOm | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R4, R48 |
| 2 | 10nF | Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolder | C21, C26 |
| 2 | 10uF | Capacitor_SMD:C_1210_3225Metric_Pad1.33x2.70mm_HandSolder | C22, C42 |
| 2 | 1kOm | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R14, R52 |
| 2 | 220uF | Capacitor_THT:CP_Radial_D10.0mm_P5.00mm | C5, C6 |
| 2 | 330uF | Capacitor_THT:CP_Radial_D10.0mm_P5.00mm | C1, C2 |
| 2 | 470pF | Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolder | C36, C37 |
| 2 | D882 | Package_TO_SOT_THT:TO-126-3_Vertical | Q4, Q5 |
| 2 | IRFB4110 | Package_TO_SOT_THT:TO-220-3_Vertical | Q1, Q2 |
| 2 | SS14 | Diode_SMD:D_SMA | D2, D5 |
| 1 | 0 Om | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R00 |
| 1 | 1,2 kOm | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R1 |
| 1 | 10,5 kOm | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R2 |
| 1 | 180kOm | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R7 |
| 1 | 1kOm | Local:R_Axial_D5.0mm_P20.00mm_2W | R46 |
| 1 | 200kOm | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R21 |
| 1 | 220 | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R8 |
| 1 | 22uH | Local:L_THT_Power_25x15mm_P20.00mm_H25mm | L2 |
| 1 | 2nF | Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolder | C32 |
| 1 | 330 | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | RNLDO |
| 1 | 4.7uF | Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolder | C46 |
| 1 | 470 | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R50 |
| 1 | 6.8kOm | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R24 |
| 1 | 680 | Local:R_Axial_D5.0mm_P20.00mm_2W | R3 |
| 1 | 68uH | Local:L_THT_LM2596_15x10mm_P10.00mm | L1 |
| 1 | AMS1117-3.3V | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U5 |
| 1 | B340 | Diode_SMD:D_SMC | D3 |
| 1 | BTN_MENU | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J4 |
| 1 | BTN_RESET | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J3 |
| 1 | BTN_START | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J5 |
| 1 | ENCODER | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J2 |
| 1 | FAN | Local:Fan_2Wire_P5.08mm_WireOrTerminal | J6 |
| 1 | IR2113 | Package_DIP:DIP-14_W7.62mm | U1 |
| 1 | JD1914 | Local:Relay_JD1914_30x30mm_TabSlots_Draft | K1 |
| 1 | LCD_ST7735 | Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_Vertical | J1 |
| 1 | LM2596S-ADJ(12V) | Package_TO_SOT_SMD:TO-263-5_TabPin3 | U4 |
| 1 | PC817 | Package_DIP:DIP-4_W7.62mm | U6 |
| 1 | Thermistor_NTC | Local:Thermistor_2Pin_P2.54mm_WirePads | TH1 |
| 1 | WeAct_STM32G474CEU6_MiniCore | Local:WeAct_STM32G474CEU6_MiniCore | U2 |
The 146 most common of 160 parts.

Aleksei327/STM32G474-Precision-Lab-Power-Supply
Precision 0–50 V programmable laboratory PSU with 1 mV/1 mA setting steps, hybrid synchronous-buck + linear regulation, STM32G474 control, INA228 metering, and layered hardware protection.

Aleksei327/ESP32-C5-OBD2-Scanner
DIY dual-CAN OBD2 adapter on Seeed XIAO ESP32-C5 with a Flutter Android app. Working prototype, tested on a Citroën C3 II: full read-only ECU scan, PSA fault codes, live data. Single-sided home-etched KiCad board.

M-S-Ali/raven-i-sentinel
6S - 24V - 20A Battery Management System (BMS) based on TI BQ76925 and Microchip Atmega328P.

jdelouche/aPortableInductionHeater
This is a hardware design that can be used to create a portable induction heater.

Bihyungbetter/exoskeleton
Exoskeleton is a powered lower-limb exoskeleton with six actuated joints — hip flexion, hip abduction, and knee flexion per leg.

cjheath/jlcbasic
JLC Basic parts library for Kicad fetched and converted from EasyEDA


reljamar/singlePhaseInverter
A precursor project to a future three-phase inverter for driving synchronous motors
It measures 177 × 91.6 mm and has 2 copper layers, 1.6 mm thick.
160 parts, built around the IR2113S, AMS1117-3.3V, D882 and IRFB4110. 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 Aleksei327/STM32G474-Power-Charger repository on GitHub, at the commit this page was made from: the board is hardware/kicad/Power_Charg_AUTO_12V_C.kicad_pcb and its schematic hardware/kicad/Power_Charg_AUTO_12V_C.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask Aleksei327 before reusing the design.