I2C LCD with STM32 Blue Pill using STM32CubeIDE

I2C LCD with STM32 Blue Pill using STM32CubeIDE

In this tutorial, we will learn to interface I2C LCD with STM32 Blue Pill and program it using STM32CubeIDE and HAL libraries. Firstly, we will briefly introduce you to the I2C LCD including its pinout and connection with STM32 Blue Pill. Then we will move ahead and program our board in STMCube IDE to demonstrate … Read more

4×3 Keypad with STM32 Blue Pill using STM32CubeIDE

keypad with stm32 blue pill stm32cubeide

In this tutorial, we will learn how to interface a 4×3 keypad with STM32 Blue Pill and program it in STM32CubeIDE using HAL libraries. A keypad is an input device that is used to give commands to other devices, from calculators to computers; input is given through the keypad. At first, we will briefly introduce … Read more

MicroSD Card Module with STM32 Blue Pill using STM32CubeIDE

STM32 Blue Pill with MicroSD Card Module hardware

In this tutorial, we will learn how to interface a microSD card with STM32 Blue Pill using the microSD card module using STM32CubeIDE. This module provides an SPI interface to connect an SD card module with any microcontroller which supports the SPI communication interface. Using a microSD card becomes very handy for applications where we need to store … Read more

DHT22 Sensor with STM32 Blue Pill using STM32CubeIDE

STM32 Blue Pill DHT22 Sensor with OLED demo

In this tutorial, we will learn how to interface DHT22 temperature and humidity sensor with STM32 Blue Pill and program it in STM32CubeIDE using HAL libraries. At first, we will briefly introduce you to DHT22 sensor, then interface it with our STM32 and program it for temperature and humidity measurement using STMCube IDE. For demonstration, … Read more

HC-SR04 Ultrasonic Sensor with STM32 Blue Pill using STM32CubeIDE

STM32 Blue Pill with Ultrasonic Sensor Demo

In this tutorial, we will learn to use HC-SR04 ultrasonic sensor with STM32 Blue Pill and program it using STM32CubeIDE and HAL libraries. At first, we will take a look at the ultrasonic sensor, then interface it with our STM32 Blue Pill and program it for contactless distance measurement using STM32CubeIDE. For demonstration, we will … Read more

STM32 Blue Pill SPI Communication with Master Slave Example

STM32 Blue Pill SPI communication STM32CubeIDE

In this STM32 Blue Pill user guide, we will learn how to send and receive data through SPI communication protocol between a master STM32 and a slave STM32 board. We will particularly focus on showing you three methods to receive data via SPI communication that involves polling, DMA, and interrupt methods. Therefore, we will create … Read more

STM32 Blue Pill Timer in PWM Mode with LED Dimmer Example

STM32 Blue Pill Timer PWM Mode with LED Dimmer Example

In this tutorial, we will learn to use STM32 Blue Pill timer PWM mode and how to configure them to generate signals with different duty cycle and frequency. We will use an LED dimmer example to demonstrate how to setup the timer in PWM mode using STM32Cube IDE and HAL libraries along with a comprehensive … Read more

STM32 Blue Pill Timer in Counter Mode with STM32Cube IDE and HAL Libraries

STM32 Blue Pill Timer in Counter Mode with STM32Cube IDE and HAL Libraries

In this user guide, we will discuss how to configure STM32 Blue Pill timer module in counter mode. To use the timer as a counter, we will configure it in input-edge counter mode. In input edge capture counter mode, timers of stm32 start to count whenever an external event occurs on the input-edge capture GPIO … Read more

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