Learn how to configure FreeRTOS in STM32 using CubeMX. Create tasks, manage priorities, and build multitasking embedded systems.
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.
SSD1306 STM32 I2C Guide: HAL Code, CubeMX Setup & Display Libraries
Learn to interface SSD1306 OLED with STM32 using I2C. Includes HAL code, CubeMX setup, SSD1306 library options, and display examples.
STM32 UART DMA & Interrupt Tutorial | HAL_UART_Transmit_DMA Example
STM32 UART tutorial on using interrupt and DMA with HAL_UART_Transmit_DMA. Ideal for large data transmission with UART2 on STM32F4 MCUs.
STM32 GPIO Output Example Using Registers | BSRR, MODER, GPIOA Explained
STM32 GPIO output example using registers. Learn MODER, GPIOA, BSRR, and other GPIO registers with LED blinking code on STM32.
STM32 RTC Example | Real-Time Clock Alarm, VBAT, LCD Display (HAL + CubeMX)
STM32 RTC tutorial with alarm, VBAT backup, and LCD display. Learn real-time clock config using HAL and CubeMX with example code.
STM32 GPIO Input Configuration – Pin Setup, Pull-Up, and IDR Read
Configure STM32 GPIO pin as input using registers. Learn STM32 pin configuration, pull-up setup, and input reading with IDR for F1 and F4 series.
STM32 UART Tutorial: Configure and Transmit Data Using HAL in Blocking Mode
Learn how to configure UART in STM32 using STM32CubeMX and transmit data with HAL functions in blocking mode. Ideal for beginners in STM32 serial communication.
Interface 28BYJ‑48 Stepper Motor with STM32 (HAL + CubeMX Tutorial)
Learn how to control the 28BYJ‑48 stepper motor using an STM32 MCU and ULN2003 driver, with HAL and CubeMX setup. Includes wiring diagrams, code, and wave/full/half‑drive modes explained.
STM32 DHT22 Temperature & Humidity Sensor with HAL
Learn how to interface the DHT22 sensor with STM32 using HAL libraries to accurately measure temperature and humidity with microsecond precision.