HC-SR04 Ultrasonic Sensor with STM32 Nucleo using STM32CubeIDE

HC-SR04 Ultrasonic Sensor with STM32 Nucleo using STM32CubeIDE

In this tutorial, we will learn to use or interface HC-SR04 ultrasonic sensor with STM32 Nucleo 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 Nucleo and program it for contactless distance measurement using STM32CubeIDE. For demonstration, we will … Read more

SSD1306 OLED with STM32 Nucleo using STM32CubeIDE

SSD1306 OLED with STM32 Nucleo using STM32CubeIDE

In this tutorial, we will learn to interface SSD1306 OLED with STM32 Nucleo and program it using STM32CubeIDE and HAL libraries. An OLED (organic light-emitting diode) is used frequently in displaying texts, bitmap images, shapes, and different types of clocks. They offer good view angles and pixel density in a cost-effective manner. At first, we … Read more

HC-05 Bluetooth Module with STM32 Nucleo using STM32CubeIDE

HC-05 Bluetooth Module with STM32 Nucleo using STM32CubeIDE

In this tutorial, we will learn to interface HC-05 Bluetooth module with STM32 Nucleo using STM32CubeIDE and HAL libraries. We will use an Android application to communicate with the STM32 Nucleo through the HC-05 Bluetooth module. We will see an example of controlling an LED from the Android application using Bluetooth communication. The LED will … Read more

STM32 Nucleo Timer in Counter Mode with STM32CubeIDE and HAL Libraries

STM32 Nucleo Timer in Counter Mode with STM32Cube IDE and HAL Libraries

In this user guide, we will discuss how to configure STM32 Nucleo 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 Nucleo Timer Encoder Mode with Rotary Encoder Example

STM32 Nucleo Timer Encoder Mode with Rotary Encoder Example

In this Nucleo 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 example, … Read more

STM32 Nucleo Generate PWM with Timers using STM32CubeIDE

STM32 Nucleo Timer in PWM Mode with LED Dimmer Example

In this tutorial, we will learn to use STM32 Nucleo timer in PWM mode to generate PWM signals 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 … Read more

STM32 Nucleo ADC with Polling, Interrupt and DMA STM32CubeIDE

STM32 Nucleo ADC with Polling, Interrupt and DMA STM32CubeIDE

In this STM32 Nucleo 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 an … Read more

STM32 Nucleo Timer Input Capture Mode with Frequency Measurement Example

STM32 Nucleo Timer Input Capture Mode with Frequency Measurement Example

In this STM32 Nucleo 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 Nucleo in STM32 Cube IDE and build a frequency counter whereby one input capture channel will be enabled to capture an external signal on … Read more

STM32 Nucleo Timer Interrupt with STM32CubeIDE and HAL Libraries

STM32 Nucleo Timer Interrupt Example STM32CubeIDE

In this STM32 Nucleo 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 number … Read more

STM32 Nucleo UART DMA with STM32CubeIDE and HAL Libraries

Nucleo-F103RB_UART1_FTDI_actual

In this tutorial, we will show you how to use STM32 Nucleo 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, we … Read more