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…
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.
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…
Internal RTC in STM32: Time, Date & Alarm HAL Tutorial
Learn how to configure the built‑in RTC on STM32 using HAL and CubeMX. Includes setting time, date, alarms, LCD display, VBAT backup – step‑by‑step guide.
How to use the SPI Peripheral in STM32
In this tutorial we will see how to use the SPI peripheral of STM32 to write and read the data from the ADXL345 accelerometer..
How to Interface Stepper motor with STM32
Interface the stepper motor 28BYJ-48 with STM32. The motor is connected via the driver ULN2003. We will use the Half Drive mode…
How to Interface DHT11 sensor with STM32
How to interface DHT11 Temperature and Humidity sensor with STM32. We will use the timer to generate the delay in microseconds…
How to Interface Servo motor with STM32
How to interface a regular servo motor with STM32. We will use the PWM signal to vary the angular displacement of the motor so that we…
How to Interface ADXL345 (I2C) with STM32
Interface the ADXL345 Accelerometer, connected via the I2C, with STM32. We will display the results on the oled display, which is also…
How to Interface SSD1306 OLED with STM32
Learn to interface a 0.96″ SSD1306 OLED with STM32 via I²C: CubeMX config, wiring, init code, text & numbers display using HAL and SSD1306 library.