0% found this document useful (0 votes)
8 views7 pages

Iot Assignment

The document outlines an assignment for a B. Tech course on the Internet of Things, focusing on designing a Theft Alert System using Blynk IoT. Students are required to collect data from sensors, upload it to the cloud, and perform data analysis, with a maximum of 25 marks awarded for the project. The assignment includes detailed instructions, components needed, and justifications for the system's design, emphasizing real-time alerts, cost-effectiveness, and user-friendliness.

Uploaded by

Ankitha R
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)
8 views7 pages

Iot Assignment

The document outlines an assignment for a B. Tech course on the Internet of Things, focusing on designing a Theft Alert System using Blynk IoT. Students are required to collect data from sensors, upload it to the cloud, and perform data analysis, with a maximum of 25 marks awarded for the project. The assignment includes detailed instructions, components needed, and justifications for the system's design, emphasizing real-time alerts, cost-effectiveness, and user-friendliness.

Uploaded by

Ankitha R
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/ 7

Faculty of Engineering & Technology

Ramaiah University of Applied Sciences

Department Computer Science and Programme B. Tech.


Engineering

Semester/Batch 7th/2021

Course Code 19CSE455A Course Title Internet of Things

Course Leader Dr. P.PadmaPriyaDharishini

Assignment – 1

Name of Student Register No

sections Max First Second

Marks Examine Examiner


Marking Scheme
r
Marks
Marks

Collecting data from sensors 8

uploading the collected data to the cloud 9

A performing data analysis 8

B.1 Max 25
Marks

Total Assignment 25
Marks

Course Marks Tabulation

Component- CET B First Second


Remarks Remarks
Assignment Examiner Examiner

Marks (out of 25 )

Signature of First Examiner Signature of Second Examiner

Please note:
1. Documental evidence for all the components/parts of the assessment such as the reports, photographs,
laboratory exam / tool tests are required to be attached to the assignment report in a proper order.

2. The First Examiner is required to mark the comments in RED ink and the Second Examiner’s comments
should be in GREEN ink.

3. The marks for all the questions of the assignment have to be written only in the Component – CET B:
Assignment table.

4.If the variation between the marks awarded by the first examiner and the second examiner lies within +/- 3
marks, then the marks allotted by the first examiner is considered to be final. If the variation is more than +/- 3
marks then both the examiners should resolve the issue in consultation with the Chairman BoE.

Assignment– 1

Instructions to students:

1. The assignment consists of 1 question.

2. Maximum marks is 25.

3. The assignment has to be neatly word processed as per the prescribed format.

4. The maximum number of pages should be restricted to 8.

5. Restrict your report to a maximum of 6 pages.

6. The printed assignment must be submitted to the subject leader.

7. Submission Date: 23rd Dec 2024

8. Submission after the due date is not permitted.

9. IMPORTANT: It is essential that all the sources used in preparation of the assignment must be
suitably referenced in the text.

10. Marks will be awarded only to the sections and subsections clearly indicated as per the problem
statement/exercise/question

PART B 25 Marks

For this assignment, students are tasked with designing and developing an Internet of Things (IoT) project. The
project should involve collecting data from sensors, uploading the collected data to the cloud, and performing data
analysis or the data should be stored in the cloud according to the user's input, and based on the newly uploaded
data in the cloud, appropriate control actions must be triggered.

You are free to use any appropriate sensors and actuators for this problem, but you must justify your choice.

You must submit the following:

• Code, documentation, and explanations.

• A report (IEEE format) summarizing your approach, results, and conclusions.


Theft Alert Notification Using Blynk IOT
Design a Theft Alert System that uses Blynk IoT to notify users via email when unauthorized activity is detected. The
system should be cost-effective, real-time, and user-friendly, enabling users to monitor and secure their premises
remotely.

1. Components Needed:
 ESP8266/NodeMCU or Arduino with Wi-Fi module.
 PIR motion sensor (Detects unauthorized access)
 Blynk IoT App. (Manages IoT communication and sends email alerts.)
 Email ID to receive notifications.
 Power supply and necessary wires.
2. Connect Hardware
Connect the PIR sensor:
 VCC to 3.3V (ESP8266)
 GND to GND.
 Data to a digital pin (e.g., D4 for ESP8266).

PIR Sensor NodeMCU/ESP8266

Connection

3. How It Works:
 The sensor detects motion or intrusion.
 The microcontroller sends the alert to the Blynk server.
 Blynk triggers an automated email notification to the user's registered email.

4. Code
5. Explaination

BLYNK_TEMPLATE_ID: The unique identifier for the project template created on the Blynk platform.
BLYNK_TEMPLATE_NAME: The name of the project in Blynk (e.g., "Theft Alert Notification Using ESP8266").
BLYNK_AUTH_TOKEN: A unique token used to authenticate the ESP8266 with the Blynk cloud.

BLYNK_PRINT Serial: Enables debug logging to the serial monitor.

ESP8266WiFi.h: Library for connecting the ESP8266 to a Wi-Fi network.

BlynkSimpleEsp8266.h: Blynk library for handling cloud communication with the ESP8266.

PIR_SENSOR: Assigns GPIO4 as the input pin for the PIR sensor.

BlynkTimer: A software timer provided by the Blynk library to run functions at regular intervals.

digitalRead(PIR_SENSOR): Reads the state of the PIR sensor (1 for motion detected, 0 for no motion).

If motion is detected (isTheftAlert == 1): A log event is triggered in the Blynk app, which can notify the user
of the theft alert.

pinMode(PIR_SENSOR, INPUT): Configures the PIR sensor pin as an input to read sensor data.

Serial.begin(115200): Initializes the serial communication at a baud rate of 115200 for debugging.

Blynk.begin(auth, ssid, pass): Establishes a connection to the Blynk cloud using the authentication token and
Wi-Fi credentials.

timer.setInterval(5000L, notifyOnTheft): Schedules the notifyOnTheft function to run every 5 seconds.

Blynk.run(): Ensures the ESP8266 stays connected to the Blynk server and processes incoming/outgoing
data.

timer.run(): Checks and executes any scheduled tasks, such as calling notifyOnTheft.

Blynk IoT App


6. Output
 Serial monitor:

 E-mail notification:

7. Justification for the Choice of Theft Alert System Using Blynk IoT
 Real-time Alerts
Why it's critical: Timely information about theft attempts allows users to act quickly, reducing the chances of
significant loss.
How it's achieved: Sensors immediately detect motion or unauthorized entry. The microcontroller
communicates this data to the Blynk cloud, which triggers an email notification to the user within seconds.
 Cost-effectiveness
Affordability: Components like ESP8266 (NodeMCU), widely available at low prices, and simple sensors like
PIR (Passive Infrared) motion detectors are inexpensive.
Example: A complete setup can be achieved for under $20, making it a viable option even for budget-
constrained users.
 Ease of Implementation
Simplified IoT Communication: The Blynk platform eliminates the need for complex backend setups.
Drag-and-Drop Features: Blynk's app allows users to create virtual buttons and notifications with minimal
coding. This reduces development time and effort.
 Remote Monitoring
Anywhere, Anytime Access: The system enables users to monitor their property from any location using the
Blynk app on their smartphones.
Email Notifications: Even if the app is not open, email alerts ensure users remain informed about suspicious
activity.
 Scalability
Expandable System: The system can accommodate additional sensors, such as window-break sensors or
sound detectors, with minor adjustments.
Integration with Other Alerts: It can also send push notifications or integrate with smart home systems for
comprehensive security.
 User-Friendly Interface
Why it matters: Users who lack technical knowledge need an intuitive system.
Blynk’s Interface: Offers a straightforward and customizable dashboard where users can view sensor data and
receive notifications without technical hassles.
 Proven Technology
Reliability: Blynk is a well-established platform used in thousands of IoT projects, ensuring a dependable and
stable connection.
Widely Tested: Its infrastructure is robust and capable of handling real-time communication without delays or
failures.
 Customizability
Users can modify the system to suit specific needs, such as:
Adjusting motion sensitivity.
Setting schedules to activate the system only at night or when the house is vacant.
Adding multiple user email alerts.

8. Conclusion

The Theft Alert System Using Blynk IoT provides an effective balance of affordability, ease of use, real-time
functionality, and scalability. It is a practical solution for individuals seeking to secure their premises without
investing in expensive or complex security systems.

You might also like