Home STM32

STM32

189 Articles
STM32 ADC Single Channel Polling Mode using HAL & CubeMX

STM32 ADC Single Channel Polling Mode using HAL & CubeMX

Learn to configure STM32 ADC1 in single channel polling mode using HAL and CubeMX. Step-by-step guide with code example for STM32F1, F4, and...

How to Scroll Text on MAX7219 Dot‑Matrix with STM32 (SPI)

How to Scroll Text on MAX7219 Dot‑Matrix with STM32 (SPI)

Step‑by‑step guide to scroll text on a MAX7219 dot‑matrix display with STM32 via SPI. Includes font handling, bit‑endianness and shift functions.

How to Cascade Dot Matrix Displays with STM32

How to Cascade Dot Matrix Displays with STM32 – Step-by-Step SPI Guide

Learn how to cascade multiple MAX7219-based dot matrix displays with STM32 using SPI. Step-by-step wiring, cascading code, and column-to-row data conversion included.

Interface LED Dot Matrix with STM32 via SPI | PART1

Interface LED Dot Matrix with STM32 via SPI | PART1

Learn to interface an 8×8 LED dot matrix with STM32 using SPI and MAX7219. Covers initialization, wiring (PA5/SCK, PA7/MOSI, PA4/CS), and code walkthrough.

Interface SH1106 1.3″ OLED with STM32 via I2C

Interface SH1106 1.3″ OLED with STM32 via I2C

Learn to interface a 1.3″ SH1106 OLED with STM32 via I2C. Includes wiring on STM32 I2C pins, CubeMX setup, init code, text, bitmaps...

Control Continuous Servo RPM with Potentiometer & STM32

Control Continuous Servo RPM with Potentiometer & STM32

Learn to control continuous‑rotation servo RPM via potentiometer (and optional button) on STM32: ADC setup, PWM mapping, direction & speed control.

Interface Continuous‑Rotation Servo with STM32 PWM

Interface Continuous‑Rotation Servo with STM32 PWM

Learn to interface a continuous‑rotation servo with STM32 using PWM. Covers CubeMX timer setup, wiring, pulse‑width control (0.5–2.5 ms) for RPM & direction.

Interface Passive Buzzer with STM32

This tutorial will cover how to interface the passive buzzer with STM32 and how to play a melody containing tones of different frequencies...

Display Clock on TM1637

This tutorial will cover how to display the clock on the TM1637 seven segment display using the internal RTC of STM32F103C8 MCU...