0% found this document useful (0 votes)
3 views10 pages

Project Proposal Iot Final

The proposal outlines the development of a Smart Motion Detection System using a PIR sensor and NodeMCU microcontroller, aimed at enhancing security and automation. The project includes components like a PIR sensor, NodeMCU, and jumper wires, and demonstrates the system's ability to detect motion and trigger responses such as LED activation or mobile notifications. It emphasizes the system's cost-effectiveness, Wi-Fi capability, and potential for future expansion in home security and automation applications.

Uploaded by

minahilc57
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views10 pages

Project Proposal Iot Final

The proposal outlines the development of a Smart Motion Detection System using a PIR sensor and NodeMCU microcontroller, aimed at enhancing security and automation. The project includes components like a PIR sensor, NodeMCU, and jumper wires, and demonstrates the system's ability to detect motion and trigger responses such as LED activation or mobile notifications. It emphasizes the system's cost-effectiveness, Wi-Fi capability, and potential for future expansion in home security and automation applications.

Uploaded by

minahilc57
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

PROPOSAL FOR SMART MOTION SENSOR DETECTOR

Group Members:
Faiza Khalid 2021-bbit-01
Minahil Ch 2021-bbit-09
Malaika Waseem 2021-bbit-37

Submission Date:
5/13/2025

Submitted to:
Sir Sarfaraz Khan

University of Engineering and Technology, Lahore

1
Table of Contents

Project Proposal: Smart Motion Detection System using PIR Sensor and NodeMCU.............................3
1. Introduction:.................................................................................................................................3
2. Objective:.....................................................................................................................................3
3. Components Used:.......................................................................................................................3
4. Working Principle:.......................................................................................................................5
5. Circuit Connections:.....................................................................................................................5
6. How It Was Built:.........................................................................................................................6
7. Software Used:.............................................................................................................................6
8. Source Code for Motion Detection System Using PIR Sensor and Arduino...............................6
9. Controlling LED via Blynk IoT Application................................................................................8
10. Advantages of This Project:...................................................................................................10

2
Project Proposal: Smart Motion Detection System using PIR
Sensor and NodeMCU

1. Introduction:

In today's world, security and automation play a vital role in our daily lives. Motion detection
systems are widely used in homes, offices, and industries to enhance security and automate
lighting or alert systems. This project focuses on creating a Smart Motion Detection System
using a PIR sensor (Passive Infrared) and a NodeMCU ESP8266 microcontroller. The system
detects human movement and provides a response — either through an LED, buzzer, or mobile
notification.

Unlike traditional alarm systems, this project offers a simple, low-cost, and Wi-Fi-enabled
solution. The goal is to demonstrate how basic electronic components can be integrated with
modern microcontrollers to create smart, responsive systems.

2. Objective:

The objective of this project is to design and build a smart motion detection system that:

 Detects human motion using a PIR sensor.


 Uses NodeMCU to process the motion signal.
 Triggers an internal response (LED or notification).
 Can be expanded for home security or automation

3. Components Used:

a. NodeMCU (ESP8266):

A Wi-Fi-enabled microcontroller that reads sensor input and controls


output (like LED or notifications).
Image:

3
b. PIR Sensor (HC-SR501):

Detects motion by sensing infrared energy emitted by human bodies.


Image:

c. Jumper Wires (Female-to-Female):

Used to connect the PIR sensor to NodeMCU directly without using a


breadboard.
Image:

d. Micro USB Cable:

4
Used to power and program the NodeMCU from a computer or power
adapter.
Image:

4. Working Principle:

The PIR sensor continuously monitors its surroundings for changes in infrared radiation (heat).
When a person moves in front of the sensor, it detects a sudden change and outputs a HIGH
signal to the NodeMCU.

The NodeMCU receives this signal and processes it. In our setup:

 When motion is detected, the built-in LED on the NodeMCU turns ON.
 No external buzzer or LED is used — the internal LED serves as the alert.
 In future versions, this can be expanded to send mobile notifications using Blynk.

5. Circuit Connections:

PIR NodeMCU
Sensor Pin

5
Pin
VCC 3V
GND G
OUT D1

We used female-to-female jumper wires for a direct connection between the sensor and
NodeMCU. This avoids the need for a breadboard and keeps the project compact.

6. How It Was Built:

1. The PIR sensor was connected to the NodeMCU using female-to-female jumper
wires.
2. The NodeMCU was connected to a laptop using a USB cable for power and
programming.
3. Code was uploaded via Arduino IDE to check for motion and turn on the internal
LED.
4. The setup was tested by moving in front of the PIR sensor, and the LED responded
correctly.

7. Software Used:

 Arduino IDE:
Used to write and upload code to NodeMCU.
 (Optional) Blynk App:
A mobile app that can be used to receive notifications. Currently not used in this
version, but the system is capable of being expanded.

8. Source Code for Motion Detection System Using PIR Sensor and Arduino

const int PIR = 8; // PIR sensor is connected to digital


pin 8
const int ledPin = 13; // LED is connected to digital pin 13
(built-in LED)

6
int PIRstate = 0; // variable to store the state of PIR
sensor

void setup() {
Serial.begin(9600); // Start the Serial Monitor
pinMode(ledPin, OUTPUT); // Set LED pin as OUTPUT
pinMode(PIR, INPUT); // Set PIR pin as INPUT
}

void loop() {
PIRstate = digitalRead(PIR); // Read data from PIR sensor

if (PIRstate == HIGH) {
Serial.println("Motion detected...");
digitalWrite(ledPin, HIGH); // Turn LED ON
} else {
Serial.println("No motion detected...");
digitalWrite(ledPin, LOW); // Turn LED OFF
}

delay(500); // Short delay to avoid flooding the serial monitor


}

The above code initializes a PIR sensor and an LED. When the PIR sensor detects
motion, the Arduino sends a signal to turn on the LED and prints a message to the Serial
Monitor. If no motion is detected, the LED is turned off.

Image 1: Motion Not Detected

Figure 1: No motion detected by the PIR sensor.

7
In this state, the PIR sensor does not sense any movement, so the LED remains
off. The Serial Monitor displays the message: "No motion detected..."

Image 2: Motion Detected

Figure 2: Motion detected by the PIR sensor.

When motion is detected, the PIR sensor sends a HIGH signal to the Arduino. The
LED turns on, and the Serial Monitor displays: "Motion detected..."

These results confirm the successful working of the motion detection system
using Arduino UNO and a PIR sensor.

9. Controlling LED via Blynk IoT Application

In this project, the Blynk IoT platform was used to remotely control an LED
connected to an Arduino UNO. The integration allows users to switch the LED on or off
using a smartphone, providing a simple yet effective demonstration of IoT-based device
control.

Purpose:

To demonstrate remote device control using a mobile application and Arduino,


which can be applied in smart homes and automation systems.

Components Used:

 Arduino UNO

8
 LED
 Resistor (220 ohm)
 USB Cable
 Smartphone with Blynk IoT App
 Internet connection

Implementation Steps:

1. The Blynk IoT app was installed on the smartphone.


2. A new project was created with:
o Device: Arduino UNO
o Connection type: USB
3. A Button widget was added in the app interface.
4. The Auth Token was received via email and pasted into the Arduino code.
5. The button was assigned to Digital Pin D13 (which controls the built-in
LED).
6. The Arduino was connected to the PC via USB, and the Blynk USB script
was run to establish a connection.
7. The project was tested — pressing the button in the Blynk app successfully
turned the LED on and off.

Result:

The LED responded to the Blynk app commands in real-time, confirming


successful communication between the mobile device and the Arduino board. This
demonstrates the potential of IoT applications in smart device control.

Figure 1:

The LED is turned ON using the Blynk mobile application via remote control.
The virtual button in the app sends a signal to the Arduino, which powers the LED
connected to digital pin 13.

9
Figure 2:

The LED is turned OFF through the Blynk app, demonstrating successful remote
control and disconnection of current to the output pin from the mobile interface.

10.

Advantages of This Project:

 Compact and budget-friendly.


 Wi-Fi-enabled, ready for IoT integration.
 Useful in-home security, smart lighting, and automation.
 Easily expandable for alerts, home control, or mobile notifications.

10

You might also like