This tutorial will cover how to interface the HCSR04 Ultrasonic distance sensor with STM32…
STM32 Tutorials Using HAL
STM32 HAL programming simplifies peripheral access using predefined functions from ST’s hardware abstraction layer. This section includes tutorials for STM32F103, STM32F4, and Nucleo boards using STM32CubeIDE. Learn to configure GPIO, UART, timers, ADC, and more with HAL drivers. Ideal for developers looking for faster development without working directly on registers.
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…
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 SPI in STM32 – STM32 SPI Tutorial & ADXL345 Interface
Discover how to configure and use the SPI peripheral on STM32 microcontrollers to communicate with devices like the ADXL345 accelerometer. This tutorial covers wiring, CubeMX setup, SPI modes, CPOL/CPHA configuration, and step‑by‑step HAL functions for read/write operations.
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…