STM32 DMA Tutorial with a Blue Pill Memory Copy Lab
Copy SRAM buffers with STM32F103 DMA and HAL. Learn fixed DMA1 channel mapping, item counts, alignment, circular buffers and transfer diagnostics.
STM32 EXTI Tutorial for GPIO Interrupts and Button Debouncing
Set up STM32 EXTI on the Blue Pill with HAL. Route PB8 to a shared interrupt, debounce a push button and verify one LED toggle per press.
STM32 Timers and PWM Tutorial with Blue Pill Input Capture
Learn STM32 Blue Pill timers with HAL. Calculate PWM frequency and duty cycle, measure input captures, handle rollover and troubleshoot a PA6-to-PA0 lab.
STM32 I2C Tutorial: Blue Pill Sensors, HAL Wiring, Scanner and Troubleshooting (2026)
Quick answer: To connect a 3.3 V I²C sensor to an STM32F103C8 Blue Pill, connect PB6 to SCL, PB7 to SDA, and GND to GND. Power the sensor from a supply appropriate to its actual breakout, normally 3.3 V for…
STM32 ADC Tutorial: 12-Bit Analog Inputs, Calibration and DMA on the Blue Pill (2026)
Quick answer: The STM32F103C8 Blue Pill has two 12-bit analog-to-digital converters (ADCs). To read a potentiometer on PA0, configure ADC1 channel 0 in STM32CubeMX, put PA0 into analog mode, keep the ADC clock at or below 14 MHz, calibrate the…
STM32 UART Tutorial: Serial Communication with HAL, Interrupts and DMA (2026)
Need reliable STM32 serial output or an interactive serial command channel? On the STM32F103C8 Blue Pill, enable USART1 asynchronous mode, connect PA9 (USART1_TX) to a 3.3 V USB-to-UART adapter’s RX, connect PA10 (USART1_RX) to the adapter’s TX, and share GND.…
STM32 GPIO Tutorial: Blink an LED with STM32CubeIDE and HAL (2026)
Want your first STM32 LED blink to work reliably? Configure a GPIO output in STM32CubeMX, generate an STM32CubeIDE project, and call HAL_GPIO_TogglePin() followed by HAL_Delay() inside the main loop. On a typical STM32F103C8 Blue Pill, the built-in LED is connected…
STM32 SPI Tutorial: Blue Pill, HAL, Sensors, Displays and DMA
Learn STM32F103 Blue Pill SPI1 with CubeMX and HAL: PA5/PA6/PA7 wiring, chip select, LIS3DH sensor reads, display transfers, DMA and troubleshooting.
Fake STM32 Blue Pill Boards: How to Identify Clones and Avoid Problems (2026)
A Blue Pill that says “STM32F103C8T6” is not automatically built with an STMicroelectronics chip. Some inexpensive boards use a clearly labelled compatible MCU from another manufacturer; others have been sold with devices falsely marked as STM32. Even a board with…