sample project nhập môn
sample project nhập môn
PROJECT REPORT
1
LIST OF FIGURES
2
ABSTRACT
The modern lifestyle makes people usually forget about little things and an advanced home
model is one example for the solutions to the problem. A smart control in the switch means
that you can turn on or off electrical devices more easily, especially for absent-minded people.
We believe our product is very essential because it will reduce the situation when electric
devices are left turning on all night or for a long time, not to mention fire and other dangerous
cases. We have spent days and nights trying to integrate what are mostly left turning on so
that our model can serve many purposes. After the project, we have gained many experiences
and lessons like how to make teamwork effective, how to deal with problems occurring
during the process,…We have also learned how to use the Arduino board to turn on and off
electric appliances. In conclusion, we are confident that our product is applicable and
necessary in real lives and that we have learned many different things including both soft
skills and hard skills.
3
CHAPTER 1: INTRODUCTION
1. Background/Introduction
This report provides relevant information of the Smart Home model.
Nowadays, the need to have better control of housing appliances, advanced
security, or helping the absent-minded from dwellers have been increasing day
by day, so our Smart Home model came to meet those demands.
Our wills are applying technology for practical purpose, joining the housing
system’s industry and helping citizens to equip for their homes a reliable
application of technology.
This report indicates an overall walkthrough of our project for readers to get
their best understandings of Smart Home model.
2. Problem statement
Smart home system includes 5 bulbs in the kitchen and 1 bulb with a fan in the
bedroom, which is set up with a cell phone through bluetooth. This means you
can switch your devices more flexibly by your phone at any time. Designing a
smart home can help you control all the electrical devices at the same time
which also can reduce power.
3. Criteria to success
Price: 30-35 US dollars.
Durability: The smart home can be used evermore whenever connected with
cell phone by bluetooth.
Reliability: The electric devices will be switched immediately when you power
your devices via smartphone.
4
Function: A smart control in the switch is not only used for turning on or off
appliance, but also can be changed to “blinking” effect.
Technical feasibility: The smart home must be easily produced with current
technology.
Cost:
o Arduino, Bluetooth assisted: 25 dollars.
o Led, Fan, Carton: 10 dollars.
Legal issues:
Intellectual property.
Environmental concerns:
Eco-friendly materials, recyclable.
Core questions need to be asked and answered before we write our problem
statement:
1. What are the main features?
2. Usage frequency
3. Technical feasibility
4. Durability
Evaluating method:
Gathering comments from customers.
5
CHAPTER 2: PRODUCT/SYSTEM
DESIGN
1. Image
Turn on/off the switch located right next to the bed (#1)
SUBSTITUTE
For the users’ convenience, we can replace the switch with our bluetooth
device connected to an app on mobile to adjust one bulb (#2)
COMBINE
To maximize the uses of the smart home, the device mentioned above will be
upgraded to control more bulbs and household appliance (#3)
2. Evaluate
(#1) Turn on/off the switch located right next to the bed
(#2) For the users’ convenience, we can replace the switch with our bluetooth device
connected to an app on mobile to adjust one bulb
(#3) To maximize the uses of the smart home, the device mentioned above will be upgraded
6
Points
CRITERIA #1 #2 #3
available
Cost 15 12 13 14
Production difficulty 10 7 8 9
Size, weight 5 4 4 3
Appearance 12 9 11 12
Convenient to use 10 6 7 9
Safety 8 6 6 7
Legal issues 5 5 4 4
Durability 15 12 12 14
Recyclability 8 6 6 7
Customer appeal 12 9 10 11
Total 100 76 81 90
7
CHAPTER 3: TESTING
8
CHAPTER 4: MAKING
PROGRESS
1. Coding
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11);
#define Lamp1 2
#define Lamp2 3
#define Lamp3 4
#define Lamp4 5
#define Lamp5 6
#define Lamp6 7
#define Lamp7 8
#define Fan8 9
char val;
String statusLamp1, statusLamp2, statusLamp3, statusLamp4, statusLamp5,
statusLamp6, statusLamp7, statusFan8;
void setup() {
// put your setup code here, to run once:
pinMode(Lamp1, OUTPUT);
pinMode(Lamp2, OUTPUT);
pinMode(Lamp3, OUTPUT);
pinMode(Lamp4, OUTPUT);
pinMode(Lamp5, OUTPUT);
pinMode(Lamp6, OUTPUT);
pinMode(Lamp7, OUTPUT);
pinMode(Fan8, OUTPUT);
mySerial.begin(9600);
Serial.begin(9600);
9
}
void loop() {
// put your main code here, to run repeatedly:
if (mySerial.available() > 0) {
val = mySerial.read();
Serial.println(val);
}
if (val == '1') {
digitalWrite(Lamp1, HIGH); statusLamp1 = "1";
}
else if (val == '2') {
digitalWrite(Lamp2, HIGH); statusLamp2 = "2";
}
else if (val == '3') {
digitalWrite(Lamp3, HIGH); statusLamp3 = "3";
}
else if (val == '4') {
digitalWrite(Lamp4, HIGH); statusLamp4 = "4";
}
else if (val == '5') {
digitalWrite(Lamp5, HIGH); statusLamp5 = "5";
}
else if (val == '6') {
digitalWrite(Lamp6, HIGH); statusLamp6 = "6";
}
else if (val == '7') {
digitalWrite(Lamp7, HIGH); statusLamp7 = "7";
}
else if (val == '8') {
digitalWrite(Fan8, HIGH); statusFan8 = "8";
}
else if (val == '9') {
digitalWrite(Lamp1, HIGH); statusLamp1 = "1";
10
digitalWrite(Lamp2, HIGH); statusLamp2 = "2";
digitalWrite(Lamp3, HIGH); statusLamp3 = "3";
digitalWrite(Lamp4, HIGH); statusLamp4 = "4";
digitalWrite(Lamp5, HIGH); statusLamp5 = "5";
digitalWrite(Lamp6, HIGH); statusLamp6 = "6";
digitalWrite(Lamp7, HIGH); statusLamp7 = "7";
digitalWrite(Fan8, HIGH); statusFan8 = "8";
}
else if (val == 'M') {
digitalWrite(Lamp1, HIGH); statusLamp1 = "1";
digitalWrite(Lamp2, HIGH); statusLamp2 = "2";
digitalWrite(Lamp3, HIGH); statusLamp3 = "3";
digitalWrite(Lamp4, HIGH); statusLamp4 = "4";
digitalWrite(Lamp5, HIGH); statusLamp5 = "5";
}
else if (val == 'A') {
digitalWrite(Lamp1, LOW); statusLamp1 = "A";
}
else if (val == 'B') {
digitalWrite(Lamp2, LOW); statusLamp2 = "B";
}
else if (val == 'C') {
digitalWrite(Lamp3, LOW); statusLamp3 = "C";
}
else if (val == 'D') {
digitalWrite(Lamp4, LOW); statusLamp4 = "D";
}
else if (val == 'E') {
digitalWrite(Lamp5, LOW); statusLamp5 = "E";
}
else if (val == 'F') {
digitalWrite(Lamp6, LOW); statusLamp6 = "F";
}
11
else if (val == 'G') {
digitalWrite(Lamp7, LOW); statusLamp7 = "G";
}
else if (val == 'H') {
digitalWrite(Fan8, LOW); statusFan8 = "H";
}
else if (val == 'I') {
digitalWrite(Lamp1, LOW); statusLamp1 = "A";
digitalWrite(Lamp2, LOW); statusLamp2 = "B";
digitalWrite(Lamp3, LOW); statusLamp3 = "C";
digitalWrite(Lamp4, LOW); statusLamp4 = "D";
digitalWrite(Lamp5, LOW); statusLamp5 = "E";
digitalWrite(Lamp6, LOW); statusLamp6 = "F";
digitalWrite(Lamp7, LOW); statusLamp7 = "G";
digitalWrite(Fan8, LOW); statusFan8 = "H";
}
else if (val == 'J') {
digitalWrite(Lamp1, LOW); statusLamp1 = "A";
digitalWrite(Lamp2, LOW); statusLamp2 = "B";
digitalWrite(Lamp3, LOW); statusLamp3 = "C";
digitalWrite(Lamp4, LOW); statusLamp4 = "D";
digitalWrite(Lamp5, LOW); statusLamp5 = "E";
}
else if (val == 'K') {
digitalWrite(Lamp1, HIGH); statusLamp1 = "1";
delay(500);
digitalWrite(Lamp1, LOW); statusLamp1 = "A";
delay(500);
digitalWrite(Lamp2, HIGH); statusLamp2 = "2";
delay(500);
digitalWrite(Lamp2, LOW); statusLamp2 = "B";
delay(500);
digitalWrite(Lamp3, HIGH); statusLamp3 = "3";
12
delay(500);
digitalWrite(Lamp3, LOW); statusLamp3 = "C";
delay(500);
digitalWrite(Lamp4, HIGH); statusLamp4 = "4";
delay(500);
digitalWrite(Lamp4, LOW); statusLamp4 = "D";
delay(500);
digitalWrite(Lamp5, HIGH); statusLamp5 = "5";
delay(500);
digitalWrite(Lamp5, LOW); statusLamp5 = "E";
delay(500);
digitalWrite(Lamp6, HIGH); statusLamp6 = "6";
delay(500);
digitalWrite(Lamp6, LOW); statusLamp6 = "F";
delay(500);
digitalWrite(Lamp7, HIGH); statusLamp7 = "7";
delay(500);
digitalWrite(Lamp7, LOW); statusLamp6 = "G";
delay(500);
}
else if (val == 'L') {
digitalWrite(Lamp1, HIGH); statusLamp1 = "1";
delay(500);
digitalWrite(Lamp1, LOW); statusLamp1 = "A";
delay(500);
digitalWrite(Lamp2, HIGH); statusLamp2 = "2";
delay(500);
digitalWrite(Lamp2, LOW); statusLamp2 = "B";
delay(500);
digitalWrite(Lamp3, HIGH); statusLamp3 = "3";
delay(500);
digitalWrite(Lamp3, LOW); statusLamp3 = "C";
delay(500);
13
digitalWrite(Lamp4, HIGH); statusLamp4 = "4";
delay(500);
digitalWrite(Lamp4, LOW); statusLamp4 = "D";
delay(500);
digitalWrite(Lamp5, HIGH); statusLamp4 = "5";
delay(500);
digitalWrite(Lamp5, LOW); statusLamp4 = "E";
delay(500);
}
} Figure C1.4.1 – Coding
14
Figure C1.4.2 –
Arduino Board
15
16
Figure C1.4.1 – App Control
2. Model – Making
17
18
CHAPTER 5: CONCLUSIONS
1. Conclusions
Using SMART HOME, you can easily check and control everything happening in
your house whenever you want. SMART HOME is a technological way to make your
life become more convenient and easier. It will help you reduce the amount of daily
life work. It will give you more time for relaxing but doesn’t make you become lazier.
Furthermore, it is the best method to save energy and ensure security and safety for
your whole house. To sum up, SMART HOME is a system to make your day perfect.
2. Recommendations
We expect to advance our product with a system setting a 7-day smart schedule.
We wish to have a chance sync this product with Google Assistant, Amazon’s Alexa
and Siri shortcuts.
3. Lessons learnt
We have learnt how to:
Make teamwork effective
Manage time productively
Design a poster for a project
Make timeline based on Gantt Chart
Make a report and evaluate the products
19
REFERENCES
1. “Control LED with bluetooth part 1” https://www.youtube.com/watch?
v=U6pCsZplQRw&feature=share
2. “Control LED with bluetooth part 2” https://www.youtube.com/watch?
v=oLGu2hjFjcg&feature=share
3. “Insert board and driver for Arduino’ https://www.youtube.com/watch?
v=B5zfwGjugGM&feature=share
4. “Control devices with bluetooth”
https://www.scribd.com/document/362364868/%C4%90I%E1%BB%80U-KHI
%E1%BB%82N-THI%E1%BA%BET-B%E1%BB%8A-B%E1%BA%B0NG-
BLUETOOTH-pdf
5. “Introduction to Arduino”
https://www.youtube.com/watch?v=W4y8gzxLa20
20
TABLE OF CONTENTS
LIST OF TABLE.................................................................................................0
LIST OF FIGURES.............................................................................................2
ABSTRACT..........................................................................................................3
Chapter 1: Introduction.......................................................................................4
1. Background/Introduction.........................................................................................................4
2. Problem statement.....................................................................................................................4
3. Criteria to success......................................................................................................................4
4. Gather pertinent information...................................................................................................5
Chapter 3: Testing..............................................................................................15
Chapter 4: Conclusions.....................................................................................16
1. Conclusions..............................................................................................................................16
2. Recommendations...................................................................................................................16
3. Lessons learnt..........................................................................................................................16
REFERENCES..................................................................................................17
21