BACHELOR OF SCIENCE IN INFORMATION TECHNOLOGY
AP 5
Subject Code
TECHNOLOGY AND THE APPLICATION OF THE INTERNET OF THINGS
Subject Description
ACTIVITY WORKSHEET
PROJECT 4
Worksheet Number
ESP32 PIR Motion Sensor
Project Title
Presented by: GROUP 5
Escalicas, Angela V.
Gastador, John Lester D.
Orgil Rea Rose E.
Soria, Josiebel R.
Ybanez, Kim E.
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)
COMPONENTS OF THE PROJECT:
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
STRUCTURE OF THE PROJECT (using tinkercad.com):
The structure clearly shows the pinout of the ESP32 board.
It is shown below:
(INSERT PICTURE HERE)
SIMULATION WIRING DIAGRAM (using tinkercad.com):
(INSERT PICTURE HERE)
BUILDING THE PROJECT://(insert pictures here!)
The step-by-step process of the project is shown below:
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.