Smarthomeautomationsystem 1
Smarthomeautomationsystem 1
SEMINAR REPORT
ON
COMPILED BY
PE/HND/F22/0490
SUBMITTED TO:
This is to certify that this technical report was written and compiled by Tijani Ayomide Ahmod
School Science and Technology in partial fulfilment of the requirement for the award of Higher
National Diploma (HND) in physics Electronic of the Federal Polytechnic Offa, Kwara State.
______________________ ___________________
SUPERVISOR
______________________ ___________________
HEAD OF DEPARTMENT
DEDICATION
The smart home automated control system is an integrated system to facilitate elderly and
disabled people with an easy-to-use home automation system that can be fully operated based on
android application. The system is portable and constructed in a way that is easy to install,
configure, run, and maintain. A typical wireless smart home automation system allows one to
control house hold appliances centralize control unit which is wireless. This project works
demonstrates a system that can be integrated as a single portable unit and allows one to
wirelessly control lights, fans, air conditioners, T.V, security cameras, electronic doors, computer
systems, an audio/visual equipment’s etc. and turn on or off any appliances. The overall system
is controlled from an android application which is connected with Bluetooth Module HC05.
CHAPTER ONE
INTRODUCTION
1.1 Introduction
Smart home automated control system is a wireless emerging technology with great scope for
future safe and smart home applications. A lot of new applications are now built on top of this
technology with many innovative ideas. Smart home automation systems have revolutionized the
way we interact with our living spaces. These systems utilize a combination of hardware and
software to enable control and monitoring of various home devices and utilities. From lighting
and heating to security and entertainment, smart home automation systems offer a range of
benefits, including increased convenience, energy efficiency, and security.
The concept of smart homes dates back to the early 20th century but has gained significant
traction in recent years, thanks to advancements in technology and the proliferation of internet-
connected devices. The integration of Internet of Things (IoT) technology allows for seamless
communication between devices, enabling users to remotely manage and automate various
functions within their homes.
Smart home automation systems typically consist of interconnected devices, sensors, and a
central control hub that facilitates communication and coordination. These systems can be
controlled through dedicated mobile apps, voice commands, or programmed schedules,
providing users with flexibility and convenience in managing their home environment.
Furthermore, the utilization of intelligent algorithms and machine learning in these systems
enables them to adapt to user preferences and optimize energy usage, leading to potential cost
savings and environmental benefits.
As the demand for smart home automation continues to grow, it is important to consider factors
such as interoperability, security, and privacy to ensure that these systems deliver on their
promise of enhancing the quality of life for homeowners. With ongoing technological
advancements and the increasing integration of smart devices into everyday life, the possibilities
for smart home automation are continually expanding, ushering in an era of connected, efficient,
and personalized living spaces.
1.2 Android
A Smart phone is a mobile phone based on a mobile operating system with more advanced
computing capability and connectivity than a feature phone. Android is a software stack for
mobile devices that includes an operating system, middle-ware and key applications. Android, by
simple definition, is an operating system for many mobile phones. Android is a customizable
platform that can look and feel very phones different on every different handset. Android gives
us tools for creating apps that looks great and take more advantage of the hardware capabilities
available on each device. Android is mainly based on Linux operating system which uses java-
like languages for running applications. The main purpose of using android is to send the control
signals from smart phone through Bluetooth.
1.4.1 Overview
HC-05 module is Bluetooth SPP (Serial Port Protocol) module, designed for transparent wireless
serial connection setup. Serial port Bluetooth module is fully qualified Bluetooth V2.0+EDR
(Enhanced Data Rate) 3Mbps Modulation with complete 2.4GHz radio transceiver and baseband.
It uses CSR Bluecore 04-External single chip Bluetooth system with CMOS technology and with
AFH(Adaptive Frequency Hopping Feature). It has the footprint as small as 12.7mmx27mm.
Hope it will simplify your overall design/development cycle.
HC-05 is a more capable module that can be set to be either Master or Slave
Bluetooth is a wireless technology standard for exchanging data over short distances
from fixed and mobile devices, and building personal area networks Range is
approximately 100 Meters.
These small (3 cm long) modules run on 3.3V power with 3.3V signal levels.
The module has two modes of operation, Command Mode where we can send AT
commands to it and Data Mode where it transmits and receives data to another Bluetooth
module.
1.4.2. Feature
KEY: If brought HIGH before power is applied, forces AT Command Setup Mode. LED blinks
slowly (2 seconds)
VCC: +5 Power
GND: System / Arduino Ground
TXD: Transmit Serial Data from HC-05 to Arduino Serial Receive. NOTE: 3.3V HIGH level:
OK for Arduino
RXD: Receive Serial Data from Arduino Serial Transmit
STATE: Tells if connected or not
Relays are switches that open and close circuits electromechanically or electronically. They
control one electrical circuit by opening and closing contacts in another circuit. When a relay
contact is normally open (NO), there is an open contact when the relay is not energized.
1.6 Introduction to Arduino
Arduino is a tool for making computers that can sense and control more of the physical world
than your desktop computer. It's an open-source physical computing platform based on a simple
microcontroller board, and a development environment for writing software for the board.
Arduino can be used to develop interactive objects, taking inputs from a variety of switches or
sensors, and controlling a variety of lights, motors, and other physical outputs. Arduino projects
can be stand-alone, or they can communicate with software running on your computer. The
boards can be assembled by hand or purchased preassembled the open-source IDE can be
downloaded for free.
The high-performance Atmel 8-bit AVR RISC-based microcontroller combines 32KB ISP flash
memory with read-while-write capabilities, 1KB EEPROM, 2KB SRAM, 23 general purpose I/O
lines, 32 general purpose working registers, three flexible timer/counters with compare modes,
internal and external interrupts, serial programmable USART, a byte-oriented 2-wire serial
interface, SPI serial port, 6-channel 10-bit A/D converter (8-channels in TQFP and QFN/MLF
packages), programmable watchdog timer with internal oscillator, and five software selectable
power saving modes. The device operates between 1.8-5.5 volts.
By executing powerful instructions in a single clock cycle, the device achieves throughputs
approaching 1 MIPS per MHz, balancing power consumption and processing speed.
There are many disabled, physically challenged and old people who are ineffective in performing
their day to day work, with the development of this technology it would be a boon for such
people. The developed system will certainly reduce the dependency of physically challenged
people on other person.
Distance between the android app and the Bluetooth module should be within 100m
At a time, we can connect to only 1 user (single user)
Our objective is to develop a system that is able to operate various loads like light, motor, fan
etc. just by the android application instead of using a switch board for each operation.
In this system a new technology with Field Programmable Gate Array (FPGA) controller,
Bluetooth and Android phones. It is wireless technology. VHDL (VHSIC Hardware Description
Language) language is used for a Xilinx Spartan-3E. V means VHSIC (Very High Speed
Integrated Circuit). FPGA Controller is based on Basys2 development board. FPGA has a many
input and output pins so it can connect number of home equipment’s. FPGA is used for
controlling home equipment’s. Bluetooth is used for monitoring equipment by wireless
technique. Android phone is used for speech recognition. DC motor, stepper motor, a LED is
connected to FPGA. A microcontroller has less number of input and output pins than FPGA
Controller. Main aim of this technology is to increase the speed using parallel communication.
[1]
2. GSM Based Home Automation System Using App-Inventor for Android Mobile Phone
In this system Home automation based on GSM (Global System for Mobile) system using App-
inventor for Android mobile. In App inventor, programmer has to design different blocks than
design the source code like in Lab VIEW software. Programming is not essential. The main aim
of this system is to have ease in programming using App inventor and security using GSM. App
inventor is a platform to design a new smart phone apps using android. User has to login first
online then start to design both part the screen objects (Designer) and the programming logics
(blocks). User can control home equipment using GSM by each corner of world. In hardware,
ULN2803 octal peripheral driver array, ATMEGA328 Arduino board with microcontroller,
GSM Modem, Relay and some other small components are used. Arduino board worked as a
transceiver. It has 23 I/O lines. In this project hardware and software part is done individually
[2].
It introduced a technology for, controlling fan speed and light intensity. It holds two parts,
hardware part called process unit and software part called monitoring unit. Process unit contain
Bluetooth module LM400, LCD, dimmer circuit, and microcontroller PIC16F877 (40 pin IC).
Monitoring unit contain only smartphone. For better efficiency dimmer circuit is designed using
SCR (Silicon Control Rectifier). Home appliances can control using android phone which has
Bluetooth application. Bluetooth module is used for communication. It is wireless technology.
Dimmer circuit is used for controlling the fan speed and intensity of light [3].
3.1 Overview
This project is aimed at controlling various house hold devices by using android application.
Bluetooth Module
Arduino Mega 328
4 Relay Switch board
Red LED, Fan, Buzzer, bulb
9 v Battery
Male to Female Connecting Wires
In this section we are going to going a brief description of the software package used in the
development of our project.
Following are the steps to be followed to install Arduino in windows operating system
Several versions of Arduino are available, it can be downloaded and installed according to the
requirement.
Download Arduino software from
After downloading install the Arduino software
To dump the code to Arduino Board we have to update the driver
System Design
In this chapter we are going to discuss the overall design of our system. The brief description of
the architecture of the system is discussed and also the detailed design issues of the components
of the system are also discussed.
4.1 System Architecture
Following figure 4.1 is the block diagram of Smart Home Automated Control System
TRANSMITTER RECEIVER
(Android
Phone) (BT module)
ARDUINO
4 RELAY
BULB
ATMEGA
SWITCH
328 LED
BOARD BUZZER
4.1.1 End-User
Normally any person can operate the android application. All he has to is to enter the USER
NAME and PASSWORD and he will able to operate his home appliances.
4.1.2 Bluetooth Module
This module is an easy to use Bluetooth SPP (Serial Port Protocol) module, designed for
transparent wireless serial connections.
Features
Auto-connects to the last device on power as default.
Permits pairing device to connect as default.
Auto-pairing PINCODE:”1234” as default
Auto-reconnect in 30 min when disconnected as a result of beyond the range of
connection.
4.1.3 Arduino
Key parameters
PARAMETERS VALUE
Microcontroller ATmega328
Operating Voltage 5V
Digital I/O Pins 14
SRAM 2KB
EEPROM 1 KB
USB Interface No
USB Speed No
Today the ATmega328 is commonly used in many projects and autonomous systems where a
simple, low-powered, low-cost micro-controller is needed. Perhaps the most common
implementation of this chip is on the popular Arduino development platform, namely the
Arduino Uno.
The diagram 4.3 shows an inner section diagram of a relay. An iron core is surrounded by a
control coil. As shown, the power source is given to the electromagnet through a control switch
and through contacts to the load. When current starts flowing through the control coil, the
electromagnet starts energizing and thus intensifies the magnetic field. Thus the upper contact
arm starts to be attracted to the lower fixed arm and thus closes the contacts causing a short
circuit for the power to the load. On the other hand, if the relay was already de-energized when
the contacts were closed, then the contact move oppositely and make an open circuit.
As soon as the coil current is off, the movable armature will be returned by a force back to its
initial position. This force will be almost equal to half the strength of the magnetic force. This
force is mainly provided by two factors. They are due to the Spring and the Gravity.
Relays are mainly made for two basic operations. One is low voltage application and the other is
high voltage. For low voltage applications, more preference will be given to reduce the noise of
the whole circuit. For high voltage applications, they are mainly designed to reduce a
phenomenon called arcing.
The basics for all the relays are the same. Take a look at a 4- pin relay shown below. A small
control coil is connected onto the control circuit. A switch is connected to the load. This switch
is controlled by the coil in the control circuit. Now let us take the different.
As shown in the circuit, the current flowing through the coils represented by pins 1 and 3 causes
a magnetic field to be aroused. This magnetic field causes the closing of the pins 2 and 4. Thus
the switch plays an important role in the relay working. As it is a part of the load circuit, it is
used to control an electrical circuit that is connected to it. Thus, when the relay in energized the
current flow will be through the pins 2 and 4.
Fig 4.5 Energized Relay (ON)
As soon as the current flow stops through pins 1 and 3, the switch opens and thus the open circuit
prevents the current flow through pins 2 and 4. Thus the relay becomes de-energized and thus in
off position.
In simple, when a voltage is applied to pin 1, the electromagnet activates, causing a magnetic
field to be developed, which goes on to close the pins 2 and 4 causing a closed circuit. When
there is no voltage on pin 1, there will be no electromagnetic force and thus no magnetic field.
Thus the switches remain open.
Relays have the exact working of a switch. So, the same concept is also applied. A relay is said
to switch one or more poles. Each pole has contacts that can be thrown in mainly three ways.
They are
Normally Open Contact (NO) – NO contact is also called a make contact. It closes the
circuit when the relay is activated. It disconnects the circuit when the relay is inactive.
Normally Closed Contact (NC) – NC contact is also known as break contact. This is
opposite to the NO contact. When the relay is activated, the circuit disconnects. When the
relay is deactivated, the circuit connects.
CONCLUSION
Smart Home Automated Control System is Wireless Automation. Based on Arduino is a very
useful project for the elderly and physically disabled persons, who are not able to do various
activities efficiently when they are at home and need one’s assistant to perform those tasks. With
the android application we can eliminate the complication of wiring in case of wired automation
and also it prevents to get up and down again and again to on/off appliances. With the use of
flexible and compatible android application along with future technologies so it can be easily
customized for individual requirements. On the other hand, with this app, it provides secure
access to home. So when we are living in a fast world where everything is changing with in no
time such security is essential.
REFERENCE
Barkhuus, L., & Dey, A.K. (2003) Is context-aware computing taking control away from the
user? Three levels of interactivity examined, Proceedings of Ubicomp 2003, 159-166.
Beech, S., Geelhoed, E., Murphy, R., Parker, J., Sellen, A. & Shaw, K. (2004) Lifestyles of
working parents: Implications and opportunities for new technologies, HP Tech report
HPL-2003-88 (R.1).
Blackwell, A.F., Burnett, M.F. & Peyton Jones, S. (2004) Champagne prototyping: A Research
technique for early evaluation of complex end-user programming systems, in
Proceedgings of VLHCC 2004, 47-54.
Cook, D.J., Youngblood, M., Heierman, E., Gopalratnam, K., Rao, S., Litvin, A., & Khawaja, F.
(2003) MavHome: An agent-based smart home, in Proceedings of PerCom 2003, 521-
524.
Crabtree, A., Rodden, T., Hemmings, T. & Benford, S. (2003): Finding a place for ubicomp in
the home, in Proceedings of Ubicomp 2003, 208-226.
Darrah, C.N. & English-Lueck, J.A. (2000) Living in the eye of the storm: controlling the
maelstrom in Silicon Valley, in Proceedings of the 2000 Work and Family: Expanding
the Horizons Conference.
Darrah, C. N., English-Lueck, J. & Freeman, J. (2001) Families at work: An ethnography of dual
career families, Report for the Sloane Foundation (Grant Number 98-6-21).
Darrah, C.N. (2003) Family models, model families, in Proceedings of the 2003 American
Anthropological Association Annual Conference.
Davidoff, S., Lee, M.K., Zimmerman, J. & Dey, A.K. (2006) Socially-aware requirements for a
smart home, in Proceedings of the International Symposium on Intelligent
Environments, 41-44.
Dey, A., Abowd, G., & Salber, D. (2001) A conceptual framework and a toolkit for supporting
the rapid prototyping of context-aware applications, Human-Computer Interaction,
16(2-4).
Dey, A.K., Hamid, R., Beckmann, C., Li, I., & Hsu, D. (2004): a CAPpella: programming by
demonstration of context-aware applications, in Proceedings of CHI 2004, 33-40.
Dey, A.K., Sohn, T., Streng, S., & Kodama, J. (2006) iCAP: Interactive Prototyping of Context-
Aware Applications, in Proceedings of Pervasive 2006, 254-271.
Dey, A.K., Newberger, A.N., & Chau, E. (2006) Support for context monitoring and control, in
submission.
Dourish, P. (2004) What we talk about when we talk about context, Personal and Ubiquitous
Computing, 8(1):19-30.
Fleuriot, C. (2001). An Investigation into the management of time in complex lifestyles, Ph.D
thesis, University of the West of England.
Frissen, V.A.J. (2000) ICTs in the rush hour of life, The Information Society, 16: 65-75
Gajos, K., Fox, H., & Shrobe, H. (2002) End user empowerment in human centered pervasive
computing, in Proceedings of Pervasive 2002, 1-7.
Grinter, R.E. & Edwards, W.K. (2001) At Home with ubiquitous computing: Seven challenges,
In Proceedings of Ubicomp 2001, 256-272.
Harper, R. (2003) Inside the smart home: Ideas, possibilities and methods. in Richard Harper
(Ed.) Inside the smart home. New York: Springer, 1-14.
Humble, J., Crabtree, A., Hemmings, T., Åkesson, K., Koleva, B., Rodden, T., &Hansson, P.
(2003) “Playing with the bits”: User-configuration of ubiquitous domestic
environments, in Proceedings of Ubicomp 2003, 256–263.
Jahnke, J.H., d’Entremont, M., & Stier, J. (2002) Facilitating the programming of the smart
home, IEEE Wireless Communications, 9(6): 70-76.
McCalley, L. T., Midden, C. J. H. & Haagdorens, K. (2005) Computing systems for household
energy conservation: Consumer response and social ecological considerations, in
Proceedings of CHI 2005 Workshop on Social Implications of Ubiquitous Computing.
Newman, M., Sedivy, J. Z., Neuwirth, C. M., Edwards, W. K., Hong, J. I., Izadi, S., Marcelo, K.,
& Smith, T. F. (2002) Designing for serendipity: Supporting end-user configuration of
ubiquitous computing environments, in Proceedings of DIS 2002, 147-156.
Rode, J.A., Toye, E.F. & Blackwell, A.F. (2005) The domestic economy: A broader unit of
analysis for end user programming, in Proceedings of CHI 2005, 1757-1760.
Taylor, A.S. & Swan, L. (2005) Artful systems in the home, in Proceedings of CHI 2005, 641-
650.
Tolmie, P., Pycock, J., Diggins, T., MacLean, A. & Karsenty, A. (2002) Unremarkable
computing, in Proceedings of CHI 2002, 399-406.
Truong, K. N., Huang, E. M., & Abowd, G. D. (2004) CAMP: A magnetic poetry interface for
end-user programming of capture applications for the home, in Proceedings of
Ubicomp 2004, 143-160.
Venkatesh, A., Chuan-Fong E.S. & Stolzoff, N.C. (2000) A Longitudinal analysis of computing
in the home based on census data 1984-1997, in Proceedings of HOIT 2000, 205-215.