Smarthome Project
Smarthome Project
Smarthome Project
1 Background of Study
Home automation system is getting popular and widely used in some home.
The home automation using internet of things (IoT), is a process whereby
hardware devices are being controlled using internet. Devices such as TV,
air conditioner, refrigerator, fan, light etc. can be monitor and control using
internet. It has tons of advantages to users even more to the handicapped
and/or elderly users in which it will make it easier for them to control their
home appliances. That is, having machines to accomplish tasks hitherto
performed wholly or partly by humans. Wireless system had been
introduced in order to dispose of wired communication in home appliances.
Internet based, using Arduino Uno technology will be applied.
[1]
Nowadays, people spent more time on their smartphones doing one thing
or the other. Five thousand individuals from USA, UK, South Korea, India,
China, South Africa, Nigeria, Indonesia and Brazil were observed in a
survey which was done by Time magazine in 2014 [12]
. The results proved
that most of them are inseparable from their smartphones; eighty four
percent of the total number claimed that they cannot do without their
smartphones. Another publication by Journal of Networks [14]
recently shows
that seventy five percent of the market share is Android and a total of one
hundred and six million android smartphone were shipped in the second
half of 2015. Android smartphone became the top operating system in the
market in the present time worldwide and it became the most popular
operating system known to man. Therefore, android smartphones can be of
great help to automation systems which can easily be connected to an
internet facility. It can also be used to monitor and control our home
1
appliances anywhere there is internet facility. With the advancement of
wireless technologies such as Wi-Fi, cloud networks in the recent past,
wireless systems are used every day and everywhere. [2]
In the present day, home automation is becoming essential for the purpose
of improving our life condition. Convenience and ease of using home
appliances is what home automation is offering. Home automation offers a
futuristic way of life in which an individual gets to control his entire house
using a smart phone with internet facility, from turning on a TV to
locking/unlocking doors; it also offers an efficient use of energy. But to get
or acquire such system installed will cost a lot of money and that is the
major reason of why home automation has not received much demand and
attention, adding to that is the complexity of installing it and configuring it.
Thus it is essential to make it cost effective and easy to configure, if this is
granted to people then they will be willing to acquire it in their homes,
offices and schools. In other words, a system modification for the home
automation is required in order to lower the price of applying it to houses.
Also home automation offers ease of mind and body to handicapped and/or
elders in their houses by just one click to do what they want as stated
above. However, this project after completion will be affordable, reliable
and the new system modification will be efficient.
2
1.3 Aim
1.4 Objectives
In order to fulfill the stated objectives several steps must be taken. These
steps involve both software programming and hardware implementation.
These steps are as follows:
iv. To program the Arduino-Uno board in a way that will let it interact
with the android smart phones or any internet enable devices.
3
1.6 Significance of the Project
i. This system is designed to assist and provide support for aged people,
disabled or physically challenged people at home. ii. Allow you to control
your home when out of town especially when you forgot to switch off your
devices while leaving home or office.
iii. When the need arises to operate devices at places where we have to
control the ON and OFF switching of the devices but no wired
connection to the place is available.
CHAPTER TWO
LITERATURE REVIEW
4
2.1 Theoretical background
5
Fig 2.1 Home Automation System showing various home appliances
and how they are connected to an internet enabled computer. [3]
6
2.2 Review of Related Literatures
In this section I reviewed four previous works in relation to this project. The
automation designs, results and recommendations of these projects are
what I will be reviewing.
I.
N. Sriskanthan and Tan Karand, an undergraduate student at
Jordan University of science and technology, in their work have
presented an application of Bluetooth Technology for Home
Automation. The Bluetooth technology which emerged in late
1990's is used for implementing the wireless home automation
system. Various appliances such as air conditioners, home
theatres, cellular phones etc., are interconnected, thus creating
a Personal Area Network in Home Environment. The
communication between several client modules and the host
server takes place through the Bluetooth module. A Home
Automation Protocol has been developed to enhance
communication between the host server and the client
modules. The system also allows integration or removal of
devices to the network which makes the system scalable. The
wireless system aims at reducing the cost of Home
Automation. But the system does not use the trending mobile
technology. The project was carried out in 2013. [4]
II.
Muhammad Izhar Ramli, Mohd Helmy Abd Wahab, Nabihah,
student of University of Cairo, Egypt. In June 2013, developed
a prototype electrical device control system using Web. They
have developed a web based controller, for controlling
7
electrical devices. Whenever the condition of server is down
they also set
their server with auto restart. The system does not use mobile
technology. Being a web based system; this application is less
effective since the use of mobile phones and Smart phones are
increasing rapidly. [5]
III.
Adeyinmika Olawale, Dickson Andrew and Ajagun Jelili, an
undergraduate student of Federal University of Technology
Akure, FUTA. In 2014, presented a GSM based
communication and control for home appliances. Different AT
commands are sent to the Home Mobile for controlling different
appliances. The drawback of this system is that a Graphical
User Interface (GUI) is not provided to the user.
IV.
Different AT commands have to be remembered by the users
to control the connected devices. Also, the system supports
Java enabled mobile phones. The system thus becomes less
functional as now-a-days the use of Java enables phones are
reducing and the use of Android phones are increasing
tremendously. [6]
V.
In 2015, Deepali Javale, Shreerang Nandanwar, Mohd. Mohsin
and M. Shingate, from R. H. Sapat College of Engineering,
Management Studies & Research, Nashik, India, have used
Android ADK for implementing a home automation and security
system. It presents a system in which the devices are
connected to a Bluetooth sub-controller physically. It does not
require internet connectivity. The Smart phone is used to
8
access and control the devices using built-in Bluetooth
connectivity. Communication is established between the
android mobile device and the ADK, by connecting the
appliances to the ADK. However, the system restricts mobility
and can only be controlled within the specified boundary due to
limited range of operation (maximum up to 100 m). Thus the
system does not support remote monitoring and controlling of
appliances. [7]
VI.
Benjamin AK and Nwasonum Evelyn, in 2016 presents the
design and implementation of a low cost, compact and secure
Android smart phone based home automation system. A single
chip microcontroller real time operating system is integrated to
the system, to improve the responsiveness of the system and
make it more dynamic. The system uses Bluetooth technology.
The Bluetooth module that is used is based on the Bluetooth
V2.0 protocol and has a range of 10m operating at frequency of
2.4GHz with a maximum data exchange rate of 2.1Mbps.
Similar to most of the existing systems, this system also does
not support remote monitoring and controlling of devices. [8]
There are many systems for remote management and control of home
appliances, five (5) of them are reviewed in this report which are the
following
10
can be accessed from internal network or from internet if the server
has real IP on the internet using any internet navigator supports
asp.net technology. Server application software is culpable of
maintain the whole home automation system, setup, configuration.
Server use database to keep log of home automation system
components, we choose to use XML files to save system log.
11
The important goal of Home Automation System is to build a home
automation system using a RF controlled remote. Now technology is
accelerating so homes are also getting smarter. Modern homes are
deliberately relocating from current l switches to centralized control
system, containing RF controlled switches. Today traditional wall
switches situated in various parts of the home makes it laborious t for
the end user to go near them to control and operate. Even further it
turns into more problematic for the old persons or physically
handicapped people to do so. Home Automation using remote
implements an easier solution with RF technology. In order to
accomplish this, a RF remote is combined to the microcontroller on
transmitter side that sends ON/OFF signals to the receiver where
devices are connected. By operating the stated remote switch on the
transmitter, the loads can be turned ON/OFF globally using wireless
technology.
12
units: the first part is cloud server, handle and controls the data and
information of client and users and the status of devices. The
hardware interface module is the second part which implemented the
relevant connection to the actuators and sensing devices which give
the physical service. Last part is Home Server, which construct the
hardware device and gives the user interface. This paper focus to
build the web services using cloud which is need for security and
storage and availability of the data. The current system is cost
efficient, reliable and comfortable which also gives a secured home
automation system for entire family. The system is made up of
various client modules for various platforms.
14
device as the frontend, which serves as an interface to the user to
communicate with the microcontroller.
15
Fig 2.3, showing the interconnection between a server and the
microcontroller to 12volts relays which are connected to electrical
appliances. [8]
16
2.5 Areas of Application
The proposed home automation system has the capabilities to control the
following components in users home and monitor the following alarms:
The proposed home automation system can control the following appliance:
i. Lights on/off/dim
ii. Fan on/off
iii. On/off switching of different appliances
This type of project can be used in places like industries, schools, prisons,
homes, hospitals etc.
2.6 CONCLUSION
The literature survey of different home automation system shows that there
are various kinds of technologies used to implement this type of system. All
the proposed systems have been presented and compared in this chapter
which reveals some merits and demerits of the systems. This review
explained different home automation system e.g. Web based,
Bluetoothbased, mobile-based, SMS based, ZigBee-based, Arduino
microcontroller based, Android app based, IOT based and cloud-based.
Android app based and IoT based are preferable due to its performance,
simplicity, low cost and reliability in home automation system is making its
17
position in global market, that day is not so far when every home will be
smart home.
CHAPTER THREE
18
DESIGN METHODOLOGY
There are various type of arduino which are arduino nano, uno, and arduino
mega. For this project, arduino uno is used due to the above mentioned
19
specifications. Arduino uno memory capacity efficiency makes it necessary
for selection for this project.
The internet of things design system include the various technology used in
this prototype. The system consists of a computer server with an internet
connection connecting the server to the external network, an Arduino
microcontroller with a hardwired application connected to the devices. The
prototype system supports two-level devices that only need to be switched
on or off.
20
12V DC
SUPPLY 12V DC
RELAY
220V AC SWITCH
POWER
SUPPLY
5V DC
SUPPLY
ARDUINO
LIGHTS
MICRO
CONTROLLER
The power supply is the basic and fundamental part of a system. Its design
is determined by the type of supply requirement of the circuit, AC or DC,
the power requirement or expected consumption of the circuit and the
expected tolerance of the circuit to fluctuations and variations. For an
electronic circuit requiring DC volts of about 6–12 volts and power
consumption of 9 watts max, one of the following could serve as power
supply;
The power supply for the proposed project are 5v and 12v DC which are
tapped from a 15v, 300mA, step-down transformer of 220-240v from the
main power supply unit.
22
Fig 3.2 Showing Circuit Diagram of Power Supply Unit used in this
project.
23
3.3.2 Circuit Design
24
3.4 Component Selection
3.4.1 Transistor
25
Arduino Uno is that it does not use the FTDI USB-to-serial driver chip but, it
has the Atmega16U2 (Atmega8U2 up to version R2) programmed as a
USB-toserial converter. The Fig 8 below shows every part of an Arduino
Uno [10];
3.4.3 Relay
26
voltage in a circuit. In designing the automation system, a 12volts relay is
used to power various home appliances.
27
3.4.4 Transformer
Moreover, for an ideal transformer the input power is always equal to the
output power but because of losses incurred such as core losses, and eddy
current losses, the input power is higher than the output power.
Or Pp = Losses + Ps
28
Thus a step down transformer steps the voltage down from 240V to 24V.
Figure 3.9, below shows the transformer and its output;
Fig 3.9 shows circuit symbol of transformer and the output wave shape.
3.4.5 Rectifier
29
3.4.6 Regulator
Arduino uno serves as the link that connected both the hardware and
software.
30
CHAPTER FOUR
4.1 Construction
This chapter contains the construction work in detail, the precautions taken
before soldering, it also contain the result analysis. The basic materials
needed for this project were bread board, Vero board, and wooden box to
house the electronic circuits and also the entire layout in order to secure
the components.
Figure 4.1 below shows the layout of the components use for construction.
31
Fig 4.1 The Layout Components on Vero Board.
4.3 Packaging
This project prototype was package in a painted wooden box with a sliding
cover for easy open and close.
32
Fig 4.2 Pictorial Diagram of the completed project on off state
Fig 4.2 represents the prototype model of the developed system when the
appliances are in Off State. The bulbs here in this project represent various
lighting points in a particular area. The bulbs can be switching ON when the
user log in to web page via internet.
33
CHAPTER FIVE
5.1 Testing
After the program is written, it was tested, this involves executing the
program with selected inputs called test cases, and the result of the test is
used to decide whether or not the program is functioning as desired.
The idea of this project is to control electrical light from anywhere since
there are internet facilities like Wi-Fi, modem connected PC or internet
enabled mobile phones. This is done by log in to the website created for
this purpose, then click on the particular light you want to ON or OFF. After
testing, the project work perfectly and I recommend it to the school
authority to adopt this type of system in controlling security light which will
solve the problem of leaving the security light on during the day, vice versa.
Therefore, it will reduce energy consumption and cost of maintenance.
34
After rectification, the voltage is filtered to remove all the ripples in it before
connecting it to the load. This filtering action is achieved using one,
16v1000uf electrolytic capacitor, while a 5volts regulator (7805) and 12volts
(7812) are used to regulate the voltage down to 5volts and 12volts
respectively for the microcontroller and other subunits.
Fig 5.1 above shows the test result of 5volts power regulated using a
multimeter.
Parameters Values
35
Transformer 24volts
Current rating 300mA
Operating voltage (OV) Full wave 5volts
Measured voltage value 5.09volts
Rectification type Full wave
Regulator type LM7805
Regulator tolerance +3% or -3%
Filtration 97%
Table 5.1 shows the 5volts power supply parameters after testing.
Fig 5.2 shows the test result of 12volts regulated power supply using
multimeter.
36
Parameters Values
Transformer 24volts
Current rating 300mA
Operating voltage (OV) 12volts
Measured voltage value 12.15volts
Rectification type Full wave
Regulator type LM7812
Regulator tolerance +3% or -3%
Filtration 95%
Table 5.2 shows 12volts power supply parameter after testing.
37
CHAPTER SIX
My major achievement is that I have now got good knowledge about how
micro-controller can be used to design a beautiful project of this nature.
There are both major and minor difficulties encountered during the design
of this project, which are;
MAJOR:
MINOR:
6.3 Recommendations
39
6.4 Conclusions
40
REFERENCES
[5] Muhammad Izhar Ramli, Mohd Helmy Abd Wahab, Nabihah, student
of University of Cairo, Egypt, 2013.
41
[9] Bill N. Schilit, Norman Adams, and Roy Want,“Context-Aware
Computing Applications”.
[11] Chan, M., Campo, E., Esteve, D., Fourniols, J.Y., “Smart
homescurrent features and future perspectives,” Maturitas, vol. 64,
issue 2, pp. 90-97, 2017.
[13] Etim Bassey Asuquo, graduated student of EEED Air force Institute
of Technology, Kaduna, 2016.
42
APPENDIX A: Source code int
setup() { Serial.begin(9600);
pinMode(hnd1Bulb, OUTPUT);
pinMode(hnd2Bulb, OUTPUT);
pinMode(nd1Bulb, OUTPUT);
pinMode(nd2Bulb, OUTPUT);
pinMode(securityBulb, OUTPUT);
pinMode(mainBulb, OUTPUT);
void loop() { if
(Serial.available() > 0)
{ incomingByte =
Serial.read(); if
(incomingByte == '1')
43
{ digitalWrite(hnd1Bulb,
HIGH);
if (incomingByte == '0')
{ digitalWrite(hnd1Bulb, LOW);
[3], 9600);
void draw() {
port.write("hnd1ON");
if (onoroff[0].equals("1") == true) {
port.write("hnd2OFF");
port.write("nd1ON");
if (onoroff[0].equals("1") == true) {
port.write("nd1OFF");
45
}
port.write("secBulbON");
port.write("secBulbOFF");
}
if (onoroff[0].equals("1") == true) { println(" - TELLING
port.write("mainON");
port.write("mainOFF");
delay(7000);
46
APPENDIX C: BEME
S/N COMPONENTS QTY UNIT AMOUNT (N)
PRICE (N)
1. Diode (1N4001) 10 10 100
2. Resistor – 1k 8 10 80
3. Transistor – 2N2222 8 50 400
4. Capacitor – 1000uf 2 20 40
5. Relay – 12v 8 150 1200
6. LED 1 50 50
7. LM7805 1 150 150
8. LM7812 1 150 150
9. 24v, 300mA transformer 1 800 800
10. Bulb 8 150 1200
11. Arduino uno 1 5000 5000
12. Vero board 1 500 500
13. Programming Microcontroller 15,000
14. Casing 1 4000 4000
15. Nuts and screws 10 10 100
16. Logistics (transportation) 1500
Grand total 30,270
47