






























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
Assignment 2 1690 pass (who want to pass)
Typology: Assignments
Uploaded on 01/10/2024
16 documents
1 / 38
This page cannot be seen from the preview
Don't miss anything!































Qualification TEC Level 5 HND Diploma in Computing Unit number and title Unit 43: Internet of Things Submission date^22 -^12 -^2023 Date Received 1st submission^22 -^12 -^2023 Re-submission Date^6 -^1 -^2024 Date Received 2nd submission^6 -^1 -^2024 Student Name Nguyễn Văn Quang Student ID Gch Class Gch1107^ Assessor name Nguyễn^ Thế^ Lâm^ Tùng Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student’s signature Quang Grading grid P5 P6 P7 M5 M6 D3 D
Summative Feedback: Resubmission Feedback: Grade: Assessor Signature: Date: Internal Verifier’s Comments: Signature & Date: 2.2 2.
The evolution of human shelter has been driven by the need for community and protection throughout history. From the modest buildings of the prehistoric age, we progressed to the medieval era, where the affluent resided in ornate castles and basic furniture emerged in simple huts. With the introduction of strong civil and electrical engineering principles for better, more pleasant dwellings, the Industrial Revolution represented a major advancement. This progression continued throughout the premodern era, when advancements in technology made it possible to build homes that were more opulent than those of the past. These days, the emphasis goes beyond aesthetics. The emergence of smart houses heralds a new age in housing, since these dwellings are equipped with the ability to communicate with many devices and carry out tasks on their own. Modern smart homes employ AI to gather information and intuitively comprehend consumer preferences.
Developing an IoT application for a smart home using Arduino and various sensors requires careful planning and execution. Here's a comprehensive approach to develop your IoT application, focusing on both hardware and software components. I. Hardware
Figure 2:ultrasonic sensor Parameters
Figure 3:Water sensor Parameters
A 4 x 4 matrix keyboard layout consists of 16 keys organized in a grid arrangement across rows and columns. The intersection of each key within the matrix's rows and columns indicates where it should be placed. Smaller keyboards, numeric keypads, and other input devices where a compact layout is necessary frequently employ these matrices. 7 .Sound sensor One kind of module used to detect sound is the sound sensor. This module is typically used to measure sound intensity. This module's primary uses are in monitoring, security, and switching. This sensor's accuracy can be adjusted for user convenience. This sensor uses an amplifier, peak detector, buffer, and microphone as input. This sensor processes an o/p voltage signal to a microcontroller and detects sound. It then completes the necessary processing after that. This sensor can measure noise levels in DBs, or decibels, at frequencies of around 3 kHz and 6 kHz, which is roughly where the human ear is sensitive. Decibel Meter is an Android application that can be used on smartphones to measure the volume of sound. Figure 7:Sound sensor Sound Sensor Pin Configuration This sensor includes three pins which include the following. Pin1 (VCC): 3 .3V DC to 5V DC Pin2 (GND): This is aground pin Pin3 (DO): This is an output pin Features The features of the sound sensor include the following These sensors are very simple to use
It gives analog o/p signal Simply incorporates using logic modules on the input area. Specifications The specifications of the sound sensor include the following The range of operating voltage is 3.⅗ V The operating current is 4~5 mA The voltage gain 26 dB ((V=6V, f=1kHz) The sensitivity of the microphone (1kHz) is 52 to 48 dB The impedance of the microphone is 2.2k Ohm The frequency of m microphone is16 to 20 kHz The signal to noise ratio is 54 dB Applications The applications of the sound sensor include the following. This sensor can be used to build various electronic projects with the help of an Arduino board. For instance, this project uses a grove sensor, which fundamentally gives your Arduino’s ears. In this project, a microphone can be attached to an analog pin of the board. This can be used to notice the noise level within the nearby surroundings. The grove sensors support platforms like Arduino, Raspberry Pi, BeagleBone Wio, and LinkIt ONE. This sensor plays an essential role while activating the light in your office or house by detecting a precise whistle or clap sound.
I. Run the Projects
Figure 9:Group 4 To initiate the project, the Arduino requires a suitable power supply. By connecting the Arduino to a laptop or PC via its connection cable, the project becomes operational. Here's a breakdown of the key functionalities: Password-Operated Door Opening: The first functionality involves a servo-activated door that opens upon entering the correct password. Sound Sensor Module for Bathroom Lighting: The module is designed to detect sound when someone enters the bathroom. Upon detection, it automatically switches on the lights for approximately 10 minutes. Water Level Sensing and Pump Control: A water sensor is utilized to monitor the water level. The system activates the pump to increase water levels when they are low or medium and turns the pump off when the water level reaches a high point. Ultrasonic Sensor for Staircase Lighting: The HC-SR04 Ultrasonic Sensor is set up to detect motion on the stairs. When it senses someone ascending or descending, it activates the lights for about a minute to facilitate safe movement.
This project is more than just an academic exercise; it's a testament to the power of collaboration. It underscores how a group of individuals, united by a shared vision and driven by a passion for innovation, can come together to create something truly remarkable. The end product of our efforts will be a smart home model that is not just a showcase of technological prowess but also a symbol of teamwork and the spirit of collective achievement. Figure 11:Sound Sensor In our team project, I am responsible for developing the sound sensor, a crucial component in our smart home model. However, I am currently facing a challenge: my sensor is not yet able to effectively detect sound, particularly in the bathroom environment. The aim of this sensor is to automatically turn on the lights when someone enters the bathroom, utilizing the sound of the door opening. As of now, although the sound sensor has been installed, it has not been responding to the sound of the door opening as anticipated. My focus is on adjusting and enhancing the sensor's sound detection capabilities. This process involves analyzing and experimenting with various sound frequencies, as well as fine-tuning the algorithm so that it can distinguish between the sound of the door opening and other noises in the bathroom.
For me, this is not just a technical challenge but also an opportunity to deepen my understanding of how sensors work and how they interact with their surroundings. The ultimate goal is to create an accurate and reliable sound sensor that contributes to a comprehensive smart home system, improving the user experience and convenience. Figure 12:Sound sensor after have sound Following the activation of the sound sensor, it is evident that the red light illuminates successfully, remaining on for a duration of 10 minutes. This achievement marks a significant milestone in our project, enhancing the convenience for users in the bathroom. With this functionality, the restroom experience becomes more comfortable and user-friendly, showcasing the practical benefits of our technological innovation. II. Test case Note Name Expected Reality Evaluate 1 Test water sensor When the measured Low level will be Success shows Low level water level is less than displayed when the the initial initial level, Low will be displayed water level is set to the lowest level 2 Test water sensor When the measured Medium will be Success shows Medium level water level is greater displayed if the water