ESP32 Arduino: Getting DHT22 sensor measurements with interrupts

In this tutorial we will check how to obtain temperature measurements from a DHT22 sesnor using the ESP32, the Arduino core and timer interrupts. The tests were performed using a DFRobot’s ESP32 module integrated in a ESP32 development board, and a DFRobot DHT22 module. Introduction In this tutorial we will check how to obtain temperature measurements from a DHT22 sensor …

ESP32 Arduino: PIR motion sensor and interrupts

In this tutorial we will check how to interact with a PIR motion sensor using an interrupt based approach, using the Arduino core running on the ESP32. The tests were performed using a DFRobot’s ESP32 module integrated in a ESP32 development board, and a DFRobot’s PIR sensor module. Introduction In this tutorial we will check how to interact with …

ESP32 Arduino: Using structs as items in FreeRTOS queues

In this ESP32 tutorial we will check how to use structs as items in FreeRTOS queues. This will allow us to store more complex messages in queues, facilitating the process of inter-task communication. The tests were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board.   Introduction In this ESP32 tutorial we will check how to use …

ESP32 Arduino: Using the pthreads library

In this ESP32 tutorial, we will check how to use the pthreads library on the Arduino core and create a simple testing program. The tests of this ESP32 tutorial were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction In this ESP32 tutorial, we will check how to use the pthreads library on the Arduino core …

ESP32 Arduino: FreeRTOS queues performance test

In this post we will do a simple analysis of the performance of inserting and consuming items from a FreeRTOS queue. The tests were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction In this post we will do a simple analysis of the performance of inserting and consuming items from a FreeRTOS queue. Note that …

ESP32 Arduino: Communication between tasks using FreeRTOS queues

The objective of this post is to explain how to use FreeRTOS queues to communicate between two different tasks. The tests were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction The objective of this post is to explain how to use FreeRTOS queues to achieve inter task communication, using the Arduino core. Besides communication amongst …

ESP32 Arduino: Getting available messages and free spaces of FreeRTOS queue

The objective of this post is to explain how to check how many messages are available on a FreeRTOS queue, without consuming them. We will also check how to use the API to get how many free spaces are still available on the same queue. The tests of this ESP32 tutorial were performed using a DFRobot’s ESP-WROOM-32 device …

ESP32 Arduino: Inserting in front and back of FreeRTOS queues

The objective of this post is to explain how to insert content in the front and back of a FreeRTOS queue. The tests of this ESP32 tutorial were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board. Introduction The objective of this post is to explain how to insert content in the front and back of …