STM32 Blue Pill Timer Encoder Mode with Rotary Encoder Example

STM32 Blue Pill Timer Encoder Mode with Rotary Encoder Example

In this Blue Pill tutorial, we will discuss how to configure STM32 timer module in encoder mode. We will use a rotary encoder to demonstrate that how to read the encoder ticks using STM32Cube IDE and HAL libraries. In the first example, we will display encoder ticks on a serial terminal, and in the second … Read more

STM32 Blue Pill Timer Input Capture Mode with Frequency Measurement Example

STM32 Blue Pill Timer Input Capture Mode with Frequency Measurement Example

In this STM32 Blue Pill user guide, we will discuss how to configure timer module in input capture mode to measure the frequency of an input signal. We will program our STM32 Blue Pill in STM32 Cube IDE and build a frequency counter whereby one input capture channel will be enabled to capture an external … Read more

STM32 Blue Pill ADC with Polling, Interrupt and DMA

STM32 Blue Pill ADC Polling Interrupt and DMA method

In this STM32 Blue Pill tutorial, we will learn to use ADC and read analog input voltage using STM32CubeIDE and HAL libraries. We will discuss three methods to read ADC including polling, interrupt, and DMA method. This will be demonstrated with the help of an LED dimmer example where we will connect the potentiometer as … Read more

STM32 Blue Pill UART DMA with STM32Cube IDE and HAL Libraries

STM32 Blue Pill UART DMA STMCube IDE and HAL libraries

In this tutorial, we will show you how to use STM32 Blue Pill UART with DMA to transmit and receive data through direct memory access without requiring to involve CPU. In DMA mode, data can be transferred from UART RX data register to user memory without any CPU processing time. By using DMA with UART, … Read more

STM32 Blue Pill UART Interrupt with CubeIDE and HAL Libraries

STM32 Blue Pill UART Interrupt STMCube IDE and HAL libraries

In this tutorial, we will show you how to use STM32 Blue Pill UART in interrupt mode to transmit and receive data. We will use STM32 CubeIDE to create a project where we will use UART interrupt of STM32 Blue Pill to receive data on the Rx pin via interrupt and we will send serial … Read more

STM32 Blue Pill UART Communication Tutorial with CubeIDE and HAL Libraries

STM32 Blue Pill UART communication tutorial

In this STM32 tutorial, we will learn how to use the UART communication channels of STM32 Blue Pill. We will see how to transmit and receive data through UART using STM32 CubeIDE and HAL libraries. We will be covering two projects in this guide. In the first project we will use the UART feature of … Read more

STM32 Blue Pill Timer Interrupt with STM32Cube IDE and HAL Libraries

STM32 Blue Pill Timer Interrupt with STM32Cube IDE and HAL Libraries

In this STM32 Blue Pill tutorial, we will learn how to configure and handle timer interrupts using HAL Library in STM32Cube IDE. We will demonstrate this through an example by toggling an LED after a set number of time. Timer interrupts in STM32 pause the sequential execution of a program loop() function for a predefined … Read more

STM32 Blue Pill External Interrupts with STM32Cube IDE and HAL Libraries

STM32 Blue Pill External Interrupts with STM32Cube IDE

In this STM32 Blue Pill tutorial, we will learn how to configure and handle external interrupts using HAL Library in STM32Cube IDE. We will demonstrate this through an example with a push button and an LED. Additionally, we will also show you how to measure Blue Pill interrupt latency via an oscilloscope measurement. Recommended Components … Read more

STM32F103C8T6 Blue Pill Development Board

STM32F103C8T6 Blue Pill pinout diagram

STM32F103C8T6 is one of the mid-range microcontroller units of the STM32F103x8 family based on RISC architecture. An integrated Blue Pill Development Board was introduced as a low-cost board as an alternative to STMicroelectronics STM discovery boards. The price of Blue Pill is around 2-3$. STM32F103C8T6 microcontroller comes with GPIO pins, processor, memory, USB port, Analog … Read more