STM32 based OLED screen driver with software or hardware I2C support (HAL library)
This article presents a complete STM32G474 HAL library driver for 0.96-inch SSD1306 OLED displays with 4-pin I2C interface, supporting both hardware and software I2C via simple macro configuration. It enables displaying English, integers, floating-point numbers, Chinese characters, images, binary and hex values, plus drawing points, lines, rectangles, circles, ellipses, and triangles with multiple fonts. Step-by-step STM32CubeMX setup instructions for both I2C modes are included, making integration straightforward.
Synchronous Rectification Buck-Boost Digital Power Supply Based on STM32
This article presents an open-source four-switch Buck-Boost digital power supply based on STM32G474, supporting Type-C PD and DC input up to 48V10A and 450W. It includes schematic, PCB, firmware, and 3D model files. The design offers adjustable output, OLED display, protections, and host monitoring, achieving up to 94.3% efficiency and low ripple. Users can access calculations and source code.