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…
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 SPI Communication Example – HAL Read/Write with ADXL345
Learn STM32 SPI with HAL. Configure SPI in CubeMX and perform read/write with ADXL345 sensor using HAL_SPI_Transmit and HAL_SPI_Receive.
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.
How to Interface DHT11 Temperature and Humidity Sensor with STM32 using HAL
Learn how to connect and read data from a DHT11 temperature and humidity sensor using STM32 and HAL libraries. Includes circuit, timing details, and complete code examples.
How to Control a Servo Motor with STM32 using PWM (HAL + CubeMX Tutorial)
Learn how to control a servo motor using STM32 and PWM with HAL library and CubeMX. Step-by-step guide with circuit, code, and timer setup.
Interfacing ADXL345 Accelerometer with STM32 via I2C – Complete Tutorial with Code
Learn how to interface the ADXL345 3-axis accelerometer with STM32 using I2C. This step-by-step tutorial includes CubeMX setup, HAL-based code, register configuration, and real-time data display on OLED.
Interfacing SSD1306 OLED Display with STM32 using I2C (HAL & CubeMX Guide)
Learn how to connect and program an SSD1306 OLED display with STM32 using I2C. This step-by-step guide covers CubeMX configuration, HAL-based code, initialization commands, and displaying text and bitmaps.
1 Comment.
[…] you’ve tried connecting multiple devices to your STM32 and only got random data or no response, you’re not alone. Many beginners face I2C problems such […]