STM32 Peripherals Tutorials
This page covers tutorials on the built-in peripherals of STM32 microcontrollers. Peripherals are the hardware modules inside the MCU that handle communication, timing, data conversion, and storage. Understanding how to configure and use them correctly is the foundation of any STM32 project.
Each series listed below focuses on a specific peripheral, starting from the basics and working through practical examples. The tutorials use STM32CubeIDE and CubeMX for configuration, with working code and project files available for download.
STM32 ADC Series
The STM32 ADC series covers how to use the Analog to Digital Converter peripheral on STM32 microcontrollers. Starting from a basic single channel read, the series works through more practical setups like multi-channel scanning, DMA based conversions, and using the ADC with timers for precise sampling. If you are working with sensors or any analog signal, this series covers what you need.
No post found!
STM32 Timer Series
The STM32 Timer series covers one of the most versatile peripherals on the STM32. Starting from basic timer configuration, the series works through practical use cases like generating delays, PWM output, input capture for frequency measurement, and encoder mode for motor control. Timers are used in almost every embedded project in some form, so this is a series worth going through regardless of what you are building.
No post found!
STM32 UART Series
The STM32 UART series covers serial communication on STM32 microcontrollers. Starting from basic transmit and receive, the series works through more practical implementations like interrupt based communication, DMA transfers, and handling variable length data. UART is one of the most commonly used interfaces for debugging, communicating with other devices, and building command line interfaces, so it is a good peripheral to get comfortable with early on.
STM32 UART PART 10 – Lin Protocol PART 3
STM32 I2C Slave Series
The STM32 I2C Slave series covers how to configure an STM32 as an I2C slave device. Most tutorials focus on the master side, reading sensors and external modules, but there are plenty of situations where you need the STM32 itself to act as a slave, for example when communicating with another microcontroller or a single board computer like a Raspberry Pi. This series covers the slave configuration from scratch and works through practical examples of sending and receiving data in slave mode.
No post found!
STM32 USB Series
The STM32 USB series covers how to use the built-in USB peripheral on STM32 microcontrollers. Starting from basic USB device configuration, the series works through common use cases like CDC virtual COM port for serial communication over USB, HID for keyboard and mouse emulation, and mass storage for reading and writing files. USB is a widely used interface and having it working directly on the STM32 removes the need for an external USB to UART converter in many projects.
No post found!
