Design
Design
Prepared by:
Canales, Rose Anne N.
Cruz, Justine Rocel A.
Pascua, Ronnabelle P.
Halili, Christine D.
Galang, Shaldy T.
Gutib, Erving B.
CHAPTER 1
THE PROBLEM AND ITS BACKGROUND
A. INTRODUCTION
Devices are sometimes left plugged into power sockets whereas others
are supposed to be plugged into and out of power sockets at different
intervals depending on the time of the day. All these require an individual to
manually attend to each of the devices independently from time to time. To
solve these types of problems this article explains you how to design a simple
circuit, which will on/off the devices remotely using mobile phone.
Have you ever imagined yourself turning ON/OFF your appliances while
you are just sitting on your couch or while you are resting on your bed? Do
you ever think of switching your appliances with just a touch of your finger?
Does it come into your mind of using your Smartphone as your remote
control? If that is the case, then, you are imagining of home automation or
simply Smart home. Generally, home automation is the control of any or all
electrical devices in our home. It is also refers to the use of computer
and information technology to control home appliances and features (such as
windows or lighting). It may include centralized control of lighting, HVAC
(heating, ventilation and air conditioning), appliances, and other systems, to
provide improved convenience, comfort, energy efficiency and safety. The
popularity of home automation has been increasing greatly in recent years
due to much higher affordability and simplicity through Smartphone and tablet
connectivity.
This proposal focuses mainly on automatic switching ON/OFF of
appliances. The project is developed using a Dual Tone Multi-Frequency
(DTMF) communication. If you press the button in your mobile phone then a
tone is generated with 2 frequencies. These 2 frequencies of the tone are row
and column frequencies of that particular button. These generated tones are
ii.
iii.
homes for people with accessibility needs. Another setting we can see 'smart
home' technology being valuable in is hospitals: patients could control their
beds and the temperature in their room all through their Smartphone, a device
they are already comfortable with as opposed to an unfamiliar remote control.
Systems can range from simple remote control of lighting through to complex
computer/micro-controller based networks with varying degrees of intelligence
and automation. Home automation is adopted for reasons of ease, security
and energy efficiency
E. SCOPE AND LIMITATION
Scope
1. DTMF communication instead of using microcontroller.
2. It can control devices in a long distance.
3. It avoids wastage of power.
Limitations
1. Security is not provided, anyone can control the automation.
2. Limited number of loads that can be connected.
F. DEFINITION OF TERMS
Automatic
It means having controls that allow something to work or happen without
being directly controlled by a person
Automation
The technique of making an apparatus, a process, or a system operates
automatically.
Device
A Device is a specific electronic product that can be controlled through
the wireless network. The device can be a local wireless controller, which
controls a specific light or appliance (usually connected to it by mains wiring),
or a sensor that provides input to the network. Each Device is seen as a
network Node.
Home Automation
All aspects of adding switch to your home and appliances. It can be as
simple as adding remote switch to a few lights, or creating a more complex
system that includes automatic sensors and security systems.
LED
Stands for Light Emitting Diode. These modern light bulbs use very little
power - typically 10% of the traditional incandescent bulbs.
Network
Two or more devices connected together is called a Network. This
enables devices to be switched and to communicate with each other. For
home automation we typically refer to a Wireless Network as a Network.
Tech savvy
Tech savvy means knows more about modern technology, especially
computer.
Wireless Network
A Network on which the devices communicate wirelessly using radio
waves (RF). Wi-Fi, Lightwave RF, Z-Wave and ZigBee are all wireless
network technologies.
CHAPTER 2
REVIEW OF RELATED LITERATURE AND LIMITATIONS
This chapter will explain about the review of the works and studies from
other researchers that were related to the development of this project, which
is Home Automation: Automatic Switching ON/OFF using Android phone via
Bluetooth. The literature review is a continuous part that should be done until
this project is successfully developed.
A. LITERATURE
A smart home is a "home equipped with lighting, heating, and electronic
devices that can be controlled remotely by a Smartphone or computer". Home
automation used to be something of a science fiction concept, as we can see
from Microsofts amusing 90s vision of the smart home. But now that
technology has advanced, home automation is actually happening. We can
now control our TVs and set-top boxes from our phones or tablets, control our
lights using Bluetooth-enabled devices. Apps are at the center of helping to
control our homes, allowing us and our homes to be smarter and better
connected.
When people think about home automation, most of them may imagine
living in a smart home: One remote controller for every household appliance,
cooking the rice automatically, starting air conditioner automatically, heating
water for bath automatically and shading the window automatically when night
coming. To some extent home automation equals to smart home. They both
bring out smart living condition and make our life more convenient and fast.
People at that time understood that a smart home is not owing to how well it
is built, not how effectively it uses space, not due to how it is environmentally
friendly. It is only because of how interactive technologies that it contains.
Those are still useful rules for home automation technology today. Below are
some related studies about the home automation using different processes to
make a better smart home.
B. FOREIGN STUDIES
The content of this section is from the research paper work written by
Abdurrahman Bin Suratman. Bachelor of Electrical Engineering. (June 2014).
Android Smart Switch for Smart Home. Universiti Teknologi Malaysia.
of
Electrical
Engineering
(Microelectronics),
Universiti
Member,
IEEE
(2011).
In
this
research
paper
the
The
detection
of
motion
will
Smart
switch
using
Wi-Fi
and
Cellular
Connection
Philippines.
Retrieved
from
CHAPTER 3
RESEARCH AND METHODOLOGY
A. METHOD OF RESEARCH USED
This chapter shall discuss the research methods available for the study
and what is applicable to use.
The descriptive research method uses observation and surveys. In this
method, it is possible that the study would be cheap and quick. As widely
accepted, the descriptive method of research is a fact-finding study that
involves adequate and accurate interpretation of findings. Thus, this approach
was used for this study.
OF
DATA
20%
25%
55%
Comfort/convenienc
e
Security
Energy
Cool features
8%
19% 55%
18%
Automatic Control
of light
Turn on/off electric
fan
Turn off/on
Television
Disconnect charger
from socket
A. DESIGN
A centralized controller can be used to control appliances in your home.
The design uses ATMEGA328 microcontroller board as the controlling unit of
the system, Android phone as input device and the home appliances as
output device. The connection between the input and the control unit is
wireless using Bluetooth. Figure 4.1 shows the block diagram of the system.
Input
Bluetooth
Microcontroller
Relay
Output
Appliances On/Of
A.1. Algorithm
This section will explain the step-by-step process of how the system
was developed.
A.1.1 Parts and Components
In order to start the design of the project, you will be needing the
parts and components listed below.
B. TESTING
After setting up the components needed in this project, this is the result of
the testing that has been conducted. Table 1 shows the testing of power
switching using relay.
TRIAL Scenario
Expected
Actual
Remark
s
1
2
3
4
Relay 1 is Off,
Action: Turn ON
Relay 2 is On,
turn On
turned On
Nothing should Nothing
Action: Turn On
Relay 3 is On,
happen
happened
Relay 3 should Relay
turn Off
turned Off
Nothing should Nothing
It shows that during the first testing of the power switching ON/OFF using
relay. The actual result of four trials is the same with the expected result prior
to the executed action.
After testing the power switching using relay, the loads are then
connected. Table 2 shows the outcomes of the testing done.
TRIA
L
1
Remark
Scenario
Device 1 is Off,
Expected
Device
Actual
1 Nothing
Action:
Press
command
signal
the
for
should
turn Happened
On
.
device 1 to turn it ON.
2
Device 2 is On,
Device
2
Action:
Press
the
Device 2
should turn
command signal for
is still On
Start
Off
device 1 to turn it OFF.
3
Device 1 is Off,
Nothing
Action:
Press
the
Device 1
should
command signal for
turns On
happen.
device 1 to turn it OFF.
Turn ON Bluetooth.
4
Device
2 is On,Connectivity ON?
Is Bluetooth
Nothing
Action:
Press
the
Device 2
should
command signal for
turns Off
happen
device 2 to turn it ON.
Table 2: Testing of Power switching with loads connected.
Launch BlueTerm application
Legend:
--The actual result is not the same as the expected result.
In second testing
Is Device
connected to the relay.
C. CONCEPTUAL
Press BFRAMEWORK
or b to turn OFF Device 2.
Press C or c to turn OFF Device 3.
End
1.
2.
3.
4.
No
Yes
No
Yes
No
Yes
CHAPTER 5
SUMMARY, CONCLUSION AND RECOMMENDATION
A. SUMMARY OF FINDINGS
any
and
the
wireless communication
between the cell phone and microcontroller was found to be limited to <50m
in a concreted building and maximum of 100m range was reported to be
applicable in an open range.
The home automation system has been experimentally proven to work
satisfactorily by connecting sample appliances to it and the appliances were
successfully controlled from a wireless mobile device. The Bluetooth client
C. RECOMMENDATION
user-friendly
APPENDIX
APPENDIX A: SURVEY FORM
Name:
Status:
Age:
Gender:
______________________________________________________________
_______
We are engineering students from Universidad De Manila who provides
in-depth analysis and quantitative forecasting of trends in global
connectivity and other emerging technologies.
______________________________________________________________
_______
1 Do you live in an
o apartment
o single-family house
o extended-family house
2 Do you have Android Phones in your home today?
o Yes
o No
3 Have you ever heard of "Smart Home" or Home automation
services?
o Yes
o No
If yes, have you ever considered adding it functionality to your
household?
o Yes
o It depends
o No
If No, Why arent you interested in automating your home?
o It is not necessary
o It is a waste of money
int incomingbyte;
#define RELAY1 13
#define RELAY2 12
#define RELAY3 11
#define RELAY4 10
void setup()
{
pinMode(RELAY1, OUTPUT);
pinMode(RELAY2, OUTPUT);
pinMode(RELAY3, OUTPUT);
pinMode(RELAY4, OUTPUT);
Serial.begin(9600);
Serial.println("Press 1 to toggle relay 1 ON.");
Serial.println("Press 2 to toggle relay 2 ON.");
Serial.println("Press 3 to toggle relay 3 ON.");
Serial.println("Press 4 to toggle relay 4 ON.");
Serial.println("Press A to toggle relay 1 OFF.");
Serial.println("Press B to toggle relay 2 OFF.");
Serial.println("Press C to toggle relay 3 OFF.");
Serial.println("Press D to toggle relay 4 OFF.");
}
void loop()
{ static int relayVal = 0;
int cmd;
while (Serial.available() > 0)
{
cmd = Serial.read();
switch (cmd)
{
case '1': { digitalWrite(RELAY1, HIGH);
Serial.println("RELAY 1 ON");
break;
}
case '2': { digitalWrite(RELAY2, HIGH);
Serial.println("RELAY 2 ON");
break;
}
case '3':
{
digitalWrite(RELAY3, HIGH);
Serial.println("RELAY 3 ON");
break;
}
case '4':
{
digitalWrite(RELAY4, HIGH);
Serial.println("RELAY 4 ON");
break;
}
case 'a': { digitalWrite(RELAY1, LOW);
Serial.println("RELAY 1 OFF");
break;
}
case 'b':
{
digitalWrite(RELAY2, LOW);
Serial.println("RELAY 2 OFF");
break;
}
case 'c':
{
digitalWrite(RELAY3, LOW);
Serial.println("RELAY 3 OFF");
break;
}
case 'd':
{
digitalWrite(RELAY4, LOW);
Serial.println("RELAY 4 OFF");
break;
}
case 'A':
{
digitalWrite(RELAY1, LOW);
Serial.println("RELAY 1 OFF");
break;
}
case 'B':
{
digitalWrite(RELAY2, LOW);
Serial.println("RELAY 2 OFF");
break;
}
case 'C':
{
digitalWrite(RELAY3, LOW);
Serial.println("RELAY 3 OFF");
break;
}
case 'D': { digitalWrite(RELAY4, LOW);
Serial.println("RELAY 4 OFF");
break;
}
default:
{
Serial.println("There are only 8 switches for automation (1,2,3,4,A,B,C,D)");
}
}
}
}
REFERENCES
Teknologi
Malaysia.
Retrieved
from
http://portal.fke.utm.m/abdurrahmanbinsuratman/2014
Lifehacker. (2015). A Guide to the Smart Home in 2015: What are the Trends
and What Do You Need to Know? Retrieved from
http://www.lifehacker.co.uk/2015/01/20/guide-smart-home-2015-trendsneed-know
http://freshome.com/2013/01/17/top-10-benefits-of-automating-your-home/
http://www.academia.edu/9445731/Home_Automation_Review_of_Literat
ure
http://www.slideshare.net/adammckay/importance-of-the-homeautomation-system
https://en.wikipedia.org/wiki/Home_automation#Overview_and_benefits
http://mysteriousmaniacs.weebly.com/uploads/1/2/5/6/12565748/home_au
tomation.pdf
http://www.researchgate.net/publication/231182479_BLUETOOTH_BASE
D_HOME_AUTOMATION_SYSTEM_USING_CELL_PHONE
http://pegasus.javeriana.edu.co/~CIS0810SD03/HA%20Bluetooth.pdf