



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
The process of designing and developing an iot application, including learning outcomes, assignment brief, and guidance. The application includes smart home features such as doors, a fire alarm system, and a smart clothesline. The document also discusses user feedback and evaluations of the system's components and functionality.
Typology: Assignments
1 / 27
This page cannot be seen from the preview
Don't miss anything!
Student Name/ID Number: Unit Number and Title: Unit 43 – Internet of Things Academic Year: 2022 Unit Assessor: Ho Hai Van Assignment Title: Assignment 2 – Internet of Things Issue Date: Submission Date: Internal Verifier Name: Date: Submission Format: Format: This assignment is an Individual assignment and specifically 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 the Tutors. The form of submission will be a soft copy posted on http://cms.greenwich.edu.vn/ Note: The Assignment must be your own work, and not copied by or from another student or from books 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 software applications LO2 Outline a plan for an appropriate IoT application using common architecture, frameworks, tools, hardware and APIs LO3 Develop an IoT application using any combination of hardware, software, data, platforms and services.
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 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 application for a potential client. You are required to identify a target user and conduct tests with this user and include this feedback into multiple iterative versions of your product. Part 1 (Assignment 1) : For the first part, you must: Plan an IoT application for a specific 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 supporting evidence and material, such as user personas and customer journey maps. Create multiple iterations of your application and modify each iteration with enhancements gathered from user feedback and experimentation. 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 application using any combination of hardware, software, data, platforms and services (video or images of your IoT system with code snippet) 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
I'll put the IoT application I proposed in the last assignment into practice in this report. I will first create it using the code and hardware design, and I'll also list some issues I ran across when creating this program. After that, I'll use test cases to put my application through its paces in real-world settings. The correctness of the application and its ability to satisfy the specifications of an automatic door system will subsequently be assessed using these test scenarios. Lastly, I will gather authentic user input and assess it, using the results to recommend ways to improve the application for further iterations.
In this section I will implement the design from the previous report. By detailing the progress made in the steps that I and the team have realized and the appropriate solution for the project, it will explain the thought process that is going on in the development of the said project above. I will also briefly explain
Step 1 - Preparing the frame Below is the process of assembling my IOT solution, step by step, including an explanation of what it is, why I did it, and how I did it. Each step will also be accompanied by an image to better visualize the process In this step, I need a framework to contain my IOT project for further implementation. We chose hard manufacturing because this is a fairly hard material that is waterproof, sturdy, and can withstand the force of objects pushed into it without damage. The reason I chose this option is because hardcovers are easy to buy and easy to find. Furthermore, it also comes with some covers that can be used to reinforce the frame if desired to match the door as the height matches the house frame.
Figure 3 Inside the door
Step 3 – Setting up the Fire alarm system Figure 5 Fire alarm system IoT smart home fire alarm system includes the following main components: Fire alarm center: Is the main controller of the system, responsible for receiving signals from fire detectors and issuing warnings when a fire occurs. Fire detector: A fire detection device, including smoke detector, heat detector, gas detector and spark detector. Alarm device: A device that emits sound or light warning when a fire occurs. Auxiliary devices: Including emergency buttons, status lights, sirens, ... Step 4 - Setting up smart clothes Figure 6 Smart clothesline
Step6. Adding the Vietduino Board The Vietduino board Figure 8, the system's core microcontroller, is added as the last stage in the hardware configuration. The breadboard, as well as every sensor, actuator, and input/output device, are linked to the board. It will be configured to operate the system's many parts, including locking doors, sounding the fire alarm, and operating the smart clothesline in response to sensor readings. Figure 8 : Vietduino Board.
To ensure that the program runs well on the hardware, the Arduino IDE offers an intuitive interface for building and debugging the code. The IoT smart home system's software is assembled and uploaded to the Vietduino board by following the instructions below. Step1: Arduino IDE Setup Ensure that the latest version of the Arduino IDE is installed on your development computer. Check for updates by navigating to Help > Check for Arduino IDE Updates (refer to Figure I 3). The Arduino IDE serves as the environment for programming, compiling, and uploading code to the Vietduino board. It supports various Arduino boards and provides essential libraries for interfacing with sensors and actuators. Figure 9 Arduino IDE Setup
Step 2: Code development Open the Arduino IDE, create a new sketch, and commence coding for the smart home system. Write the source code, incorporating logic for keypad input, LCD display output, servo motor control, flame sensor monitoring, and other functionalities. Include necessary libraries with #include statements at the top of the sketch Figure 10 Code development Step3: Code Compilation Once the code is written, click the verify button (checkmark icon) in the Arduino IDE. The IDE will compile the code, translating the sketch into machine language for the Vietduino board. Any errors or warnings will be highlighted in the console at the bottom of the window. Resolve issues before proceeding. Figure 11 Code Compilation Figure 12 Wong Compilation
Figure 15 Upload the code
The digital door, designed to offer secure access and convenience, encountered various challenges:
In this section, I'll go into further detail about how I implemented my code, run my software through a number of tests, and review user feedback.
2.1 Library Figure 16 Necessary libraries #include <Servo.h> : This line includes the Servo library, which allows an Arduino to control servo motors. Servo motors are commonly used in robotics for precise control of motion. #include <LiquidCrystal_I2C.h> : This line includes the LiquidCrystal_I2C library, which is used to control I2C LCD displays. These displays typically allow for displaying text and numbers in various formats and are used in many electronic projects for outputting information. #include <Keypad_I2C.h> : This line includes a library for interfacing with an I2C keypad. Keypads are input devices that allow users to input into a program.
2.3 Code implement functions of fire alarm system Figure 18 function for fire alarm system The fireAlarm() function is the main function of the program. This function is called repeatedly to check the status of the fire sensor. In this function, the value from the fire sensor is read using the analogRead() function. If the fire sensor value is less than 400, it means there is a fire. In this case, the fire state is set to true. If the stop button is pressed, the fire state is set to false. If there is a fire, the function checks whether the current time is greater than or equal to the most recent fire detection time plus the time between two fire detections. If already greater than or equal, then the following actions are taken: Update the most recent fire detection time Reverse the status of the warning light Turn the buzzer on or off based on the status of the warning light
If there is no fire, the warning lights and buzzer are turned off. 2.4 Code implement function of the “smart clothesline” Figure 19 Function smart clothesline Rain Sensor Reading: Reads the analog value from a rain sensor connected to the specified pin (RAIN_SENSOR_PIN). Serial Monitoring: Prints the current rain sensor value to the serial monitor every second to provide real-time feedback. Rain Detection: Monitors the rain sensor value and updates a time variable (previousRainTime) if the value surpasses a specified threshold (e.g., 400). This helps prevent short spikes in sensor readings from triggering a rain event. Rain Event Handling: If it's not currently raining (!isRain) and enough time has passed since the last rain event (determined by rainDelay), sets isRain to true, indicating that it's currently raining. Also, updates previousServoTime to control the delay before the next servo movement.
08 Power Failure Handling Disconnect power to the system Power off System retains last state or resets safely System behaves as expected Pass
The test cases have collectively demonstrated that the smart home system is performing well across various scenarios. Each component—keypad, LCD, flame sensor, emergency stop, and smart clothesline— operated as expected, which is indicative of a stable and reliable system. The successful handling of power failure suggests that the system's state management and recovery protocols are effectively implemented.
In this section, I describe how I launched the project, tested my product, and polled people. There are two parts to user reviews of my product: pros and cons.
After receiving user feedback, if there are any shortcomings, we will offer solutions to improve them. I polled 20 people about my product and here are the results. Based on the results obtained, I found that in adulthood from 20-40, they prioritize smart homes more than traditional homes. Figure 20 Age survey
The pie chart illustrates the level of interest among respondents in smart home technology. The majority, 80%, express a strong interest and a desire to apply it immediately. A smaller segment, 20%, indicates a lack of interest at the moment, rather than outright opposition. The absence of demographic information hinders a more nuanced understanding of these responses. Overall, the chart suggests a promising future for the smart home industry, with a notable enthusiasm among a significant majority of respondents. How many person people like smart door? Figure 21 Number of people like smart door This pie chart displays the results of a survey about Smart door popularity. A total of 20 surveyors consulted Result: