Learn how to connect a 16×2 LCD (LCD1602) to STM32 with only two I²C pins using the PCF8574 port expander. Includes wiring diagrams, HAL code for initialization, send data/functions (lcd_init, lcd_send_cmd/data/string) and example outputs.
STM32 Projects & Tutorials
STM32 microcontrollers are widely used in embedded and industrial systems. This section offers practical tutorials and tested code for STM32F103, STM32F4, and Nucleo boards. Programming is done using STM32CubeIDE with both HAL and LL drivers. Topics include GPIO, UART, ADC, timers, and other core functions—ideal for learners and developers working on real hardware.
Display Analog Clock on GC9A01 Using STM32 + LVGL + SquareLine Studio (Part 2)
Learn how to display an analog clock on the GC9A01 round display using STM32 and LVGL. Use SquareLine Studio to design the GUI. Includes code, design steps, and integration tips.
How to Interface GC9A01 Round Display with STM32 Using SPI + LVGL Integration
Learn how to interface the GC9A01 round TFT display with STM32 via SPI and implement LVGL for rich embedded GUIs. Step-by-step guide to wiring, code, and rendering graphics with LVGL.
Interface SD Card with STM32 via SDIO (4bit Mode)
Step-by-step guide to interface an SD card with STM32 using SDIO peripheral and DMA. Covers CubeMX setup, SDIO 4Bit config, and read/write file operations.
Interface SD Card with STM32 via SPI+DMA
Step-by-step guide to interface an SD card with STM32 using SPI and DMA. Covers CubeMX setup, FATFS init, SPI‑DMA config, and read/write file operations.
GP2Y0A41SK0F STM32 ADC Distance Measurement Guide
Learn how to interface the GP2Y0A41SK0F IR distance sensor with STM32 using ADC. Includes circuit diagram, code example, and distance measurement explanation.
Interface AHT20 Sensor with STM32 Using I2C
Learn how to interface the AHT20 temperature and humidity sensor with STM32 using I2C. Includes circuit diagram, datasheet-based code, and project files.
ESP32 SPI LCD Touch Interface | Add Touch to Your Display
Learn how to add a touch interface to an SPI LCD using ESP32. Step-by-step guide with code and circuit to create interactive touch-enabled displays.
STM32 Ethernet with Mongoose | Part 4 OTA Update
Implement OTA (Over‑The‑Air) firmware updates on STM32 using the Mongoose Ethernet library. Learn setup, HTTP transfer, and safe flashing.