Professional Documents
Culture Documents
Name
Student ID
Module Name
Module Lecturer
Intake Code
Hand Out Date
Hand In Date
( CT047-3-2-SPCC )
Mr. Seyed Amir Hossein Mousavi
UC2F1505IT(MBT)
30th June 2015
21st August 2015
Table of Contents
Acknowledgement:................................................................................................ 2
Introduction:.......................................................................................................... 3
National Instruments LabView............................................................................ 3
Project Requirement.............................................................................................. 4
Reason that use LabView.................................................................................... 4
How does LabView work..................................................................................... 4
Hardware can used in LabView...........................................................................5
System design....................................................................................................... 7
Flowchart............................................................................................................ 7
Client:.............................................................................................................. 7
Server:............................................................................................................. 8
Protocol Design:.................................................................................................. 9
Client:.............................................................................................................. 9
Server:........................................................................................................... 11
Control Interface and Indicator Interface..........................................................13
Limitation............................................................................................................. 20
Future enhancement............................................................................................ 21
Conclusion........................................................................................................... 22
References:.......................................................................................................... 23
Appendices:......................................................................................................... 24
Gantt Chart.......................................................................................................... 25
Acknowledgement:
I would like to thanks my teacher Mr. Seyed Amir Hossein Mousavi, for gave me a
very clear instruction to accomplish the assignment, but also give me an advices to done my
assignment. Beside that, he also give me a direction when I cant solve the problem.
I also would like to thank all my friends who were helped me when I facing problems
during doing assignment. Furthermore, I would also like to thanks my parents to encourage
me when I doing this assignment.
Introduction:
This assignment is mainly to build a Smart Home Control System for a new housing
developer. The Smart Home Control System can monitor or control the light bulb, television,
curtain and more. This is let the user easy to monitor and control of the house.
This control system allow user to enter username and password to verify the identity of the
user, so that they can access the control.
There have some few benefits of using LabView. One of the benefits using LabView is a
graphical programming code. It help user to see the code and check for the errors easily.
LabView compile the code into one single block and let user easily to drag-n-drop.
Beside that, LabView also can connect external tools to LabView, so that researcher can
easily expand both analysis and visualization function by creating their own function in the G
language because it is a tight software-hardware integration and support variety of data and
embedded control devices.
Project Requirement
Reason that use LabView
Because LabView easy to code and it can be simulator to view the application
Is a Multiplatform program
Using LabView can be no worried when you use or edit in other operating systems
platform.
Easy to design
Light sensor are recommend for the smart home system. The light sensors will be detect the
light and control the brightness of the light automatically based on the darkness or brightness
level of the area.
Ultrasonic sensors are also recommended for the systems. The sensors will use for open the
door when the user get close or in the range of the sensor and then the door will open.
Futhurmore, it can use in alarm systems. To detect the people when it nearby and alert.
System design
Flowchart
Client:
Server:
Protocol Design:
Client:
10
11
Server:
In Server side, we using TCP Listen to receive the command from the Client side. Port
number is must be the same as the Client side, if not it cant be connected. The -1 is default
value of timeout of the connect that wait forever.
13
Figure 8 Login UI
After User login, the LED will light up when it correct and it will appear panel.
14
There read from the text file function used to read the characters from a text file.
15
Panel of Door control and the Light control. User can switch the tab for more control.
16
17
18
19
20
21
Limitation
In by using LabView, I found my limitation that cannot done the part of alarm clock and
the alarm systems. Other than that, the curtain slider got the limitation that when I turn on the
curtain it must wait the timer goes off then can be execute next command.
Another limitation is multiple username and password. User only can done by create
single user and login by single user. Beside that, when create the username and password, it
will override the old single and it will be replace, so that the old id cannot be login.
22
Future enhancement
Smart home control system can add the CCTV in the security system. The CCTV is
mainly work as secure the home, when people broke in the house, the alarm system will alert
the house. Another than that, motion sensor or sound sensor can be installed in the house. It
can detect the motion of user when the user in the house and make certain of action and
execute.
23
Conclusion
Smart Home Control Systems is useful and let people easy to use and let people do
not need to manually open those facilities. The system is complete with basic functionalities
for most users. This devices may cost highly because it most high end and some of the how
the Smart Home Control Systems still need to improve .
24
References:
. 2015. . [ONLINE] Available at: http://www.robotshop.com/media/files/images/parallaxping-ultrasonic-sensor-large.jpg. [Accessed 20 August 2015].
YouTube. 2015. YouTube. [ONLINE] Available at: http://www.youtube.com/. [Accessed 21
August 2015].
Advantages of Using LabVIEW in Academic Research - National Instruments. 2015.
Advantages of Using LabVIEW in Academic Research - National Instruments. [ONLINE]
Available at: http://www.ni.com/white-paper/8534/en/. [Accessed 20 August 2015].
25
Appendices:
Create username and password.
26
Gantt Chart
27