This will follow the pathway outlined in your plan.log book, Part 2 Assignment 2: For the second part, you must produce a report to prove that: Show evidence about Developed IoT applica
Trang 1Quali ca on TEC Level 5 HND Diploma in Compu ng
Unit number and tle Unit 43: Internet of Things
Student declara on
I cer fy that the assignment submission is en rely my own work and I fully understand the consequences of plagiarism I understand that making a false declara on is a form of malprac ce
Student’s signature Grading grid
Trang 3❒ Summa ve Feedback: ❒❒ Resubmission Feedback:
nternal Veri er’s Comments:
Trang 5Assignment Brief 2 (RQF) Higher National Certificate/Diploma in Business Student Name/ID Number:
Unit Number and Title: Unit 43 Internet of Things –
Assignment Title: Assignment 2 Internet of Things –
Format: This assignment is an Individual assignment and speci cally including 1 document:
You must use font Calibri size 12, set number of the pages and use multiple line spacing at 1.3 Margins must be: left: 1.25 cm; right: 1 cm; top: 1 cm and bottom: 1 cm The reference follows Harvard referencing system The recommended word limit is 2.000-2.500 words You will not be penalized for exceeding the total word limit The cover page of the report has to
be the Assignment front sheet 2
Submission Students are compulsory to submit the assignment in due date and in a way requested by
Trang 6books etc If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you must reference your sources, using the Harvard style Make sure that you know how to reference properly, and that understand the guidelines on plagiarism If you do not, you definitely get fail
Unit Learning Outcomes:
LO1 Analyse what aspects of IoT are necessary and appropriate when designing so ware applica ons LO2 Outline a plan for an appropriate IoT applica on using common architecture, frameworks, tools,
hardware and APIs
LO3 Develop an IoT applica on using any combination of hardware, so ware, data, pla orms and services
Trang 7LO4 Evaluate your IoT application and detail the problem your IoT application solves, the poten al impact
on people, business, society and the end user and the problems it might encounter when integra ng into
the wider IoT ecosystem
Assignment Brief and Guidance:
You currently work as a product developer for a new startup where you design IoT products for the consumer, corporate, government and defence clients As part of your role your manager has tasked you
to plan and develop a new IoT product, service or applica on for a poten al client You are required to iden fy a target user and conduct tests with this user and include this feedback into mul ple itera ve versions of your product
Part 1 (Assignment 1):: For the rst part, you must:
Plan an IoT applica on for a speci c target end user and the tests you intend to conduct with this user This plan will be in the form of a document and will include suppor ng evidence and material, such as user personas and customer journey maps
Create mul ple itera ons of your applica on and modify each itera on with enhancements gathered from user feedback and experimenta on This will follow the pathway outlined in your plan.(log book,)
Part 2 (Assignment 2): For the second part, you must produce a report to prove that:
Show evidence about Developed IoT applica on using any combina on of hardware, so ware, data, pla orms and services (video or images of your IoT system with code snippet)
Evaluate your IoT applica on and detail the problem your IoT applica on solves, the poten al impact on people, business, society and the end user and the problems it might encounter when integra ng into the wider IoT ecosystem
Trang 9Learning Outcomes and Assessment Criteria
LO3 Develop an IoT application using any combination of hardware, software, data, platforms and
services
P5 Employ an appropriate set
of tools to develop your plan
into an IoT application
P6 Run end user experiments
and examines feedback
M5 Reconcile and evaluate end user feedback and determine advantages and disadvantages of your chosen IoT techniques
D3 Critical evaluate security risks that your application might encounter
LO4 Evaluate your IoT application and detail the problem your IoT application solves, the potential
impact on people, business, society and the end user and the problems it might encounter when
integrating into the wider IoT ecosystem
P7 Evaluate end user
feedback from your IoT
application
M6 Undertake a critical review and compare your final application with the original plan
D4 Critique the overall success
of your application Did it solve your problem? What is the potential impact on people, business, society and the end user? What problems might it encounter when integrating into the wider IoT ecosystem?
Trang 10Table of Contents
ASSIGNMENT BRIEF 2 (RQF) 3
H N C /D B 3
Trang 11I INTRODUCTION: 6
II EMPLOY AN APPROPRIATE SET OF TOOLS TO DEVELOP YOUR PLAN INTO AN IOT APPLICATION (P5) 6 1 INTRODUCTION: 6
2 IMPLEMENTATION FROM DESIGN 7
3 PROGRAM COMPILER ON ARDUINO 10
4 ERROR AND ROBLEM WHEN DEPLOYINP G / IMPLEMENT PROJECT: 11
III RUN END USER EXPERIMENTS AND EXAMINES FEEDBACK (P6) 12
1 INTRODUCTION 12
2 CODE IMPLEMENTS FUNCTIONS IN DETAIL 12
3 TEST CASE 14
4 TEST CASE SUMMARY 14
IV EVALUATE END USER FEEDBACK FROM YOUR IOT APPLICATION (P7) 14
1 INTRODUCTION ERROR OOKMARK NOT DEFINED! B 2 USER FEEBACK ERROR OOKMARK NOT DEFINED! B 3 SELF EVALUATION- ERROR !BOOKMARK NOT DEFINED 4 OPTIONS TO UPGRADE THE PRODUCT IN THE NEXT VERSIONS ERROR !BOOKMARK NOT DEFINED REFERENCE 15
Trang 12Assignment 2 Answer
Introduc on:
In this Internet of Things (IoT) project, we build a model of a smart home equipped with diverse sensors, all programmed using
so ware and Arduino for comprehension and opera on The primary aim of the smart home is to enhance convenience and safety, ensuring the avoidance of any poten al hazards
Employ an appropriate set of tools to develop your plan into an IoT applica on (P5)
1 Introduc on:
We u lize both the Arduino Starter Kit and the Arduino So ware sourced from these pla orms to assist in the construc on of the smart home project as we build this model
Trang 132 Implementa on from design
The smart home system uses the following components:
Trang 14This descrip on outlines the process of connec ng the DHT11 temperature and humidity sensor to the Arduino Uno The detailed instructions involve connec ng the Vcc and GND pins of the DHT11 to the 5V and GND pins of the Arduino Uno, respec vely Addi onally, the signal pin of the DHT11 is connected to pin 3 of the Arduino Uno This sequence of connec ons serves to provide power to the sensor and establish communication between the Arduino Uno and the DHT11, enabling the Arduino to read temperature and humidity data from the sensor
Trang 15Step 3:
This step outlines the procedure for connec ng the MQ2 gas sensor to the Arduino Uno It involves connec ng the power (VCC) and ground (GND) pins of the MQ2 sensor to the 5V and GND pins of the Arduino Uno, respec vely Addi onally, the signal pin of the MQ2 is linked to analog pin A0 on the Arduino Uno This con guration ensures that the sensor receives power and enables the Arduino to read the analog signal from the MQ2, facilita ng the detection of various gas concentra ons
Trang 16This step demonstrates the process of connec ng the HC-SR04 ultrasonic distance sensor to the Arduino Uno To supply power, the VCC and GND pins of the HC-SR04 are linked to the 5V and GND pins of the Arduino Uno, respec vely Furthermore, the Trig pin of the HC-SR04 is connected to pin 6, and the Echo pin is connected to pin 7 on the Arduino Uno This con gura on enables the Arduino to both control and gather data from the sensor, facilita ng the measurement of distance using ultrasonic waves
Trang 17Step 5:
The illustra on illustrates the connec on process for a buzzer speaker to an Arduino Uno Power is supplied by linking the VCC and GND pins of the buzzer speaker to the 5V and GND pins of the Arduino Uno, respec vely Furthermore, the I/O pin of the buzzer speaker is connected to pin 4 on the Arduino Uno, enabling the Arduino to manage the buzzer speaker and produce audible signals to indicate speci c events or conditions within the smart home environment
Arduino Uno
The Arduino Uno R3 SMD is a varia on of the Arduino Uno R3 development board, dis nguished by the inclusion of a Surface Mount Device (SMD) in place of a tradi onal component
The main func ons of the Arduino Uno R3 SMD include:
• Development of Electronic Projects:
The Arduino Uno R3 SMD serves as a versa le pla orm for crea ng and tes ng electronic devices It allows the connec on of various components such as sensors, LEDs, control circuits, and motors to facilitate a range of ac vi es
Trang 18informa on processing
• Interac on and Connec vity:
The Arduino Uno R3 SMD is equipped with mul ple pins that enable connec ons to external components like sensors, motors, and displays These pins provide a means to interact with the surrounding environment
HC SR04:
The HC-SR04 ultrasonic sensor is widely recognized for its applica on in determining the distance between a sensor and an object using the time- - ight concept of
The HC-SR04 ultrasonic eye's primary job is to:
Measurement of Distance : The HC-SR04 Ultrasonic Sensor emits ultrasonic waves, measures the me taken for the signal to
return a er interac ng with an object, and calculates the distance between the sensor and the object based on the speed of sound
Trang 19in the air This enables non-contact distance measurement The HC-SR04 operates without physical contact with the object, making
it suitable for applica ons where a non-intrusive distance measurement is required
Accurate and fast : The HC-SR04 ultrasonic sensor is typically u lized for distance measurement with notable precision and
impressive speed Its rapid response mes enable e icient execu on of ac ons or controls based on distance measurements MQ2 Func on:
The MQ2 is a gas sensor designed to detect a range of gases, including methane, propane, butane, and smoke It is widely employed for tasks such as gas leakage detec on and air quality monitoring The sensor o ers analog output that is propor onal to the concentra on of the detected gas
Buzzer Func on:
The buzzer serves as an auditory signaling device, genera ng sound or tones in response to an applied electrical signal It nds applica on in diverse projects where it is employed for purposes such as alarms, noti ca ons, or signaling speci c events
How does the system operate?
A er connec ng the wires for the devices and supplying power:
When the HC SR04 sensor registers a distance signal within the 50cm range, it triggers the SG90 servo motor to automa cally rotate 90 degrees, thereby opening the system's door
Trang 20The system monitors MQ2 sensor values, and if the gas reading surpasses 100, the buzzer ac vates to no fy the user of a poten al gas leak inside the house
LCD I2C func on:
LCD I2C is a display screen
It displays temperature and humidity
3 Program Compiler on Arduino
Step 1: Open App Arduino
Trang 21Step 2: Input code in app Arduino
Clicking on the checkmark above the applica on will display an output like this, signifying that the code is valid and ready for use
Trang 224 Error and Problem when deploying / implement project:
The repeti ve crashes during program uploads in the Arduino IDE may stem from a con ict with a concurrent Logitech program process
Trang 23To ensure compa bility with Arduino, it is necessary to acquire knowledge of and install the Arduino IDE since it is unable
to automa cally iden fy the suitable Board and Port
A substan al amount of me was invested in resolving a coding issue; This challenge arose due to the considerable heat generated by the microprocessor on the Arduino board
Run end user experiments and examines feedback (P6)
1 Introduc on
In this segment, we will provide an explana on of the opera onal principles embedded in the code
2 Code implements func ons in detail
The code sec on will include the declara on of Arduino pins linked to the temperature and humidity sensor, gas sensor, buzzer, and servo motor within the smart home system
Trang 24input, designs the Trig and Echo pins of the HC-SR04 as outputs, and sets up an output pin for the relay
Trang 25In this code snippet, the program retrieves temperature and humidity data from the DHT11 sensor and validates the data reading process for any errors In the event of an error, a corresponding message is displayed on the screen Contrary, if no errors are encountered, the acquired values are printed on the serial monitor Following the data retrieval, the code compares the temperature values with a prede ned threshold of 30 degrees If the temperature reading surpasses 30 degrees, the program
ac vates the fan to mi gate the room temperature
Trang 27This code snippet reads input from the HC-SR04 distance sensor, computes the detected distance, and takes ac on accordingly If the measured distance falls below 50cm, it triggers the signal pin of the servo, prompting the servo to rotate 90 degrees and open the door Contrary, if the measured distance exceeds 50cm, the servo rotates back to 0 degrees, maintaining a sta onary posi on and indicating that the door is closed
3 Test case
1 Sensor distance Someone comes to the
4 Test case summary
The door is programmed to open when the measured distance is less than 50cm In such cases, it automa cally swings 90 degrees but reverts to its original posi on at 0 degrees if the distance exceeds 50cm The buzzer is triggered once the gas level reaches the predetermined warning threshold Connec ng the system to a computer allows for real- me monitoring of sensor data
Evaluate end user feedback from your IoT applica on (P7)
Introduc on:
The smart home ini a ve represents an advanced IoT system designed to deliver a contemporary and secure living experience By incorpora ng intelligent sensors, the project strives to enhance comfort and promote energy e ciency within individuals' living spaces
User Feedback:
Users express enthusiasm and creativity in u lizing smart home management applica ons The utiliza on of
Trang 28detect harmful gases and ensure user well-being
The convenience a orded by distance sensors, automa cally triggering door opening in the presence of an individual, is highly valued for bringing a modern and hassle-free living experience to households
Self-Evalua on:
The incorpora on of func onal informa on into homes is self-evaluated as successful However, users recognize
an opportunity to enhance system performance and stability, aiming for a more comprehensive project
Op ons for Product Upgrade in Future Versions:
Dominant System Integra on:
Strengthen interoperability among devices to elevate the overall user experience
Enhanced Security:
Integrate robust security features to protect personal informa on and assets
New Smart Features: