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 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 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

Arduino Timer Interrupts – Explained with Timer1 and Timer2 Examples

Arduino UNO LED blink time interrupts

Interrupts are used to handle events that do not happen during the sequential execution of a program. There are two types of interrupts for the Arduino microcontroller. Hardware or external interrupt and Timer interrupt. In a previous tutorial, we looked at Arduino external interrupt where the interrupt was caused by is caused by the external … Read more

ESP8266 Interrupts and Timers Arduino IDE – PIR Motion Sensor Example

detect motion ESP8266 interrupts and timers

In this tutorial, we will learn to use interrupts and timers of ESP8266 NodeMCU using Arduino IDE. By using ESP8266 interrupt, we will be able to detect changes on GPIO pins without the need to continuously poll GPIO pins. Whenever an interrupt occurs, we can execute a certain function that should execute on state change … Read more

ESP32 Interrupts and Timers with PIR Sensor using Arduino IDE

ESP32 timers interrupts PIR motion sensor Arduino IDE

This tutorial focuses on an example project which shows motion detection through a PIR motion sensor. This PIR motion sensor will be interfaced with the ESP32 board and a 5mm LED. Through interrupts and timers of ESP32, the LED will be controlled. Whenever motion will be detected, an interrupt will be triggered, a timer will … Read more

External Interrupts 8051 Microcontroller – Example

external interrupts 8051 microcontroller

In this tutorial, we will discuss how to use GPIO interrupts which are also known as external interrupts of 8051 microcontroller. We will learn to configure GPIO interrupts as edge-triggered such as positive or negative edge or level triggered such as active high or active low level triggered. Before reading this article, you should know … Read more