Project Proposal Iot Final
Project Proposal Iot Final
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
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:
3. Components Used:
a. NodeMCU (ESP8266):
3
b. PIR Sensor (HC-SR501):
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.
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
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
}
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.
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..."
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.
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:
Components Used:
Arduino UNO
8
LED
Resistor (220 ohm)
USB Cable
Smartphone with Blynk IoT App
Internet connection
Implementation Steps:
Result:
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.
10