Project-4 ESP32
Project-4 ESP32
AP 5
Subject Code
ACTIVITY WORKSHEET
PROJECT 4
Worksheet Number
Presented to:
JESUS R. ESLAWAN JR.
______________________________
Date
ESP32 PIR Motion Sensor
OVERVIEW:
This project shows how to detect motion with the ESP32 using a PIR motion
sensor. A PIR (Passive Infrared) motion sensor is an electronic sensor that detects
infrared radiations that usually come from moving objects in its field of view.
It sends a high signal to the pin when it detects motion and a low signal when there is
no motion. This signal is processed by the Arduino code, which can trigger actions such
as turning on lights and activating alarms.
The buzzer will sound an alarm when motion is detected, and stop the
alarm when no motion is detected for a preset time.
COMPONENT STRUCTURE:
(INSERT PICTURE HERE)
The components used in the PIR Motion Sensor are listed below:
1. ESP32 DEVKIT V1 Board
2. PIR motion sensor (HC-SR501)
3. Active Buzzer
4. Jumper wires
5. Breadboard
6. 5mm Led
1. Connect the PIR Motion Sensor to the breadboard by inserting jumper wires in the
corresponding pins.
2. Connect the LED to the breadboard (if desired) and connect them to the Arduino Uno
board using jumper wires.
3. Open the Arduino IDE and write the code for the PIR Motion Sensor project. This would
include configuring the digital input pins, declaring variables and functions, and defining
the logic of the project.
4. Upload the code to the Arduino Uno board and verify that all components are working
correctly.
5. Test the project by moving in front of the PIR Motion Sensor and observe if the LED
turns on.
SKETCH:
(INSERT PICTURE HERE)
GROUP PICTURIALS:
(INSERT PICTURE HERE)
REFERENCES:
1.
2.