Learn STM32 USB CDC configuration using cdc_transmit_fs and cdc_receive_fs. Setup virtual COM port, send & receive data without using UART.
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.
STM32 UART DMA Receive – Normal and Circular Mode (with Code)
Learn STM32 UART DMA receive using HAL in normal and circular mode. Includes tested code, callbacks, buffer handling, and real-world use cases.
STM32 Microsecond Delay Using HAL Timer – delay_us Example in C
Learn STM32 microsecond delay using HAL and timer. Includes tested delay_us code, timer setup, and oscilloscope results. Ideal for time-critical embedded tasks.
STM32 Low Power Modes Explained – Sleep, Stop, Standby & Power Consumption
Learn STM32 low power modes. Covers Sleep, Stop, and Standby with code, wake-up methods, and real STM32 Blue Pill power consumption data.
How to interface DS18B20 with STM32
Interface DS18B20 Temperature sensor with STM32 using the microseconds delay generated using the Timer. The sensor uses one wire…
How to use 4×4 keypad with STM32
This tutorial will cover how to interface a 4×4 keypad with STM32. We will use the blocking mode to read the key data and then…
HCSR04 Ultrasonic sensor and STM32
This tutorial will cover how to interface the HCSR04 Ultrasonic distance sensor with STM32…
STM32 TIMERS #2. How to Measure PWM Input
Today in this tutorial we will see how to use PWM input Mode to measure the frequency and duty of the input signal..
This tutorial will cover how to interface the LCD 20×4 using I2C with STM32 microcontroller…