STM32G474 Automatic 12 V Battery Charger - Engineering Prototype

Designed and assembled an STM32G474-based automatic battery-charger engineering prototype built around a converted ATX power stage. The system combines a synchronous buck converter, MCU-controlled CC/CV regulation, current and voltage sensing, hardware current protection, relay isolation, thermal supervision, cooling control, and a TFT/encoder user interface. My work covers requirements, system architecture, KiCad schematic and PCB design, component selection, prototype assembly, STM32Cube configuration, embedded C/C++ firmware structure, hardware bring-up, debugging, and verification planning. I use STM32CubeIDE, STM32CubeMX, VS Code, and AI-assisted engineering tools for design review, code development, test planning, and fault analysis while personally validating all engineering decisions and results. Key design elements: - STM32G474 control using ADC, DAC, internal OPAMP, comparator, timers/HRTIM, and PWM - Synchronous buck power stage with IR2113 gate driver and IRFB4110 MOSFETs - Shunt current sensing and output-voltage measurement - Fast hardware fault path using a comparator threshold and immediate PWM shutdown - ST7735 TFT display, rotary encoder, buttons, output relay, fan control, and temperature monitoring - KiCad schematic and PCB, manufacturing-layer outputs, STM32Cube configuration, firmware sources, and technical documentation - Architecture prepared for PC or mobile supervision and further communication-interface development The gallery shows the assembled prototype, internal power and control hardware, the current KiCad schematic, and PCB renders. The hardware is presented as an assembled engineering prototype undergoing bring-up and validation. Final charge-current, thermal, and CC/CV performance figures are not claimed until measured testing is complete.
c pcb-design stm32 power-electronics embedded-systems embedded-c battery-charger