Practical Example. ESP32 with PIR Motion Sensor using Interrupts and Timers

Objectives

The goal in the context of the project is to gain knowledge and skills about the how to detect motion with the ESP32 using a PIR motion sensor. In this example, when motion is detected (an interrupt is triggered), the ESP32 starts a timer and turns an LED on for a predefined number of seconds. When the timer finishes counting down, the LED is automatically turned off.

How to do it?

The instructor introduces the students to the material using a multimedia projector or an interactive whiteboard. For this purpose, it uses pre-prepared local and online resources.

For future reading, visit https://randomnerdtutorials.com/esp32-pir-motion-sensor-interrupts-timers/

Last modified: Monday, 12 July 2021, 5:25 PM