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.

Continue reading “ESP32 Arduino: Getting DHT22 sensor measurements with interrupts”

Advertisements

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.
Continue reading “ESP32 Arduino: PIR motion sensor and interrupts”

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 integrated in a ESP32 FireBeetle board.

Continue reading “ESP32 Arduino: Getting available messages and free spaces of FreeRTOS queue”