A Building Automation System Demonstration: November 2015
A Building Automation System Demonstration: November 2015
net/publication/296828059
CITATIONS READS
3 2,677
5 authors, including:
All content following this page was uploaded by Halim Bahadır Tuğrel on 05 March 2016.
Selahattin Gökceli, Halim Bahadır Tuğrel, Sinem Pişirgen, Güneş Karabulut Kurt, Berna Örs
56
tions for electrical devices. System is implemented with PIC
microcontroller, PIC16F877A. Application is managed with se-
rial Bluetooth connection between microcontroller and applica-
tion. In [10], a low cost, flexible and secure automation system
is demonstrated. System is implemented Arduino BT(ATMega
238) board and an Android application is generated. Connec-
tion between board and application is provided by wireless se-
rial communication over Bluetooth. Moreover, a Linux based
web server is used for usage from outside the house. System
is able to control TVs, fan and tube lights via Android phone.
Target device can be turned on or off and correspondent sta-
tus is shown. Furthermore, with timer functionality, device can
be switched on for specific time. In study [3], a low cost and
flexible smart home system has been developed. Home sys-
tem functionalities are controlled via an Android app with Ar-
duiono Ethernet based micro-server communication. Functions
like light switches, power plugs, temperature sensors, humidity
sensors, current sensors, intrusion detection sensors, smoke/gas
sensors and sirens are offered and managed by Arduino micro-
controller. A building automation system is shown in [11]. Ar-
duino microcontroller is used as main controller and Android is
used for application. System provides both wireless Zigbee and
wired X10 technologies. System also offers a scheduling algo-
rithm for more functionality. Switches that are sending environ-
mental information and actuators that perform specific tasks are
managed by this system. In [12], a low cost and wireless remote
control supported building automation system is shown which is
designed for disabled and elderly people. System provides the
physical switches with modified low voltage activating method.
PIC Microcontroller, PIC18F2550 is used as main controller
and an Android app is developed as user interface. Commu-
nication between hardware and app is provided via Bluetooth
connection. Sensors that are used for measurement of room
temperature and humidity level, are managed with this system. Figure 1. Block diagram of the designed and developed appli-
A building automation system that supports two user friendly cation.
interfaces such as an Android application and a web application
is shown in [13]. The system includes three components as local
hardware, web server and mobile smart device. Google Cloud
Messaging is used for connection of system with the local hard- 3. Implementation
ware and the mobile smart devices. An Android application is
also developed as user interface tool. Prototype implementation In this section, details of the proposed Arduino and Android
supports control of smoke sensor, automatic switch and an air- based building automation system via Bluetooth connection ap-
conditioner. In [14], for cost efficiency and preventing electrical plication’s implementation are explained. Project’s progress
hazards at home, a real time power monitoring system based on and followed steps are showed in Figure 1.As it can be seen
an Android application and wireless sensor network that is mon- from figure, project consists of three subprojects called as An-
itoring electricity usage characteristics continuously. Accord- droid, Arduino and Model respectively. In Android part, we
ing to algorithm, to measure electrical usage, sensors measure constitute Bluetooth connection firstly, then smart home func-
voltage, current and temperature, if measurements are higher tions such as lighting, entry permission and sensor implementa-
than threshold levels, sensors share this information to a mas- tions are implemented. In result an Android app is created. In
ter node. A graphical user interface is provided to the monitor Arduino part, part is determined by analysis of literature usage
and log sensor events. An Arduino based home and building and available products in market. After selection of Arduino,
automation system that targets practical electronics teaching is HC-06 module’s connection is provided, circuit and compo-
demonstrated in [15]. The system is developed as an outcome nents are connected and by completion of Arduino program-
of a comprehensive project. System’s functionalities are access ming, Hardware Implementation is done. In Model part, smart
control, climate control, lighting control, energy management, home demonstration model is designed and created. In result,
technical alarms and integration with mobile technologies. In all of the subprojects are combined as targeted project. Appli-
project, four subprojects are implemented such as energy effi- cation’s content and options for users are explained in block
ciency, comfort, security and communication subprojects that diagram in Figure 2. After application is opened, firstly Blue-
include lighting and energy management, control of air con- tooth connection is asked, if answer is no, then HC-06 module
ditioning systems, design of alarm management system, RFID takes responsibility and if connection is provided main screen
access control system and assistance and surveillance control is opened as in the case of result of answer as yes. Then three
system, finally embedded web, i0S and Android app design. options are provided to user. If Lighting is chosen, user can
open LEDs by choosing Led on or can close by choosing Led
off. If Sensor Information is chosen, then sensor information are
57
shown in screen and information can be monitored by user. As
last option, if Entry Permit is chosen, user can monitor whether
doorbell is ringing or not and can decide to opening door by
choosing Open Door or closing door by choosing Close Door.
4. Results
We designed Android and Arduino based building automa-
tion system application by using Arduino Uno and MIT App In-
ventor 2. Firstly, we prepared our Android program in MIT App
Inventor 2 which includes commands to control Arduino and
connected pieces. Secondly, we prepared an Arduino code to
control Bluetooth connection with phone that runs application
Figure 3. An example of the MIT App Inventor 2’s view. and elements connected to Arduino. In the end, we brought all
together in a demonstration model. Android application of the
system’s screen views can be seen from Fig. 6a and 6b whose
3.2. Arduino details were explained in Implementation Section. Arduino cir-
cuit is prepared with necessary sensor, lighting and Bluetooth
Bluetooth connection between phone that runs application module connections. Circuit model can be seen from Fig. 7.
and Arduino that controls smart home functions are provided Building automation system’s unique demonstration model
by HC-06 Bluetooth Module. HC-06 is used for wireless serial is shown in Fig. 5. Model was built with foamboard and a sam-
connections. It can be used with Arduino easily. It operates at ple home environment is modeled. Lighting system of sample
2.4 GHz and supports Bluetooth 2.0, moreover; its connection home is modeled with LEDs. Door controlling is modeled with
range is up to 10 meters [7]. In our configuration, HC-06 is a sample door that is controlled by servo. Also some sensors are
controlled by Arduino as slave. placed in model. With building automation system application,
we can control LEDs by ”Lighting” screen, servo controlled
3.3. Application door by ”Entry permit” screen and sensor information by ”The
Android based building automation system via Bluetooth sensor information of the home” screen. As explained in Imple-
application is prepared in MIT App Inventor 2 with Android mentation Section, building automation functions are realized
software development kit. Application contains 5 screens. In successfully in all automation options.
first screen, Bluetooth connection is set up and if it is actualized As shown in Table 1, system’s maximum load to network
without any problem, application allows user to pass to other has length of 2871 bits. These configurations are not changeable
screen. Second screen is the main screen of the application. It due to Bluetooth module’s settings; however, baud rate can be
includes options to choose one of the three smart home func- changed, in our system its default value is 9600 bps. Although
tions which are LED lighting, sensor and door controlling. maximum network load is quite high, our system does not work
58
Figure 2. Block diagram summarizing the process flow.
(a) (b)
5. Conclusion
tem is shown in real-time. This model improves system’s visu-
Building automation is a novel concept that offers a lot
ality and shows the details of the functions. With very low net-
of services to improve people’s daily comfort in home envi-
work usage, system is implemented successfully. In future, this
ronment. Building automation systems’ importance for com-
work can be extended with more building automation functions
mercial buildings is increasing day by day due to their very
and can be used in more general scenarios.
beneficial services like climate control, visual comfort, per-
sonal safety and building security. In line with the objectives
of the BaaS project, in this paper, an Android and Arduino 6. References
based building automation system via Bluetooth connection is [1] B. Tas, B. Ors Yalcin, and G. Karabulut Kurt, ”Evacuation
proposed. System includes Android application that contains Model for Building Automation Systems” in 23rd Signal
building automation commands and Arduino circuit which can Processing and Communications Applications Conference
implement some building automation functions with connected (SIU), May 2015.
LEDs, sensors and Bluetooth module. Android application and
Arduino components’ communication is provided wirelessly [2] Building as a Service,”http://www.baas-
with bluetooth module. As in BaaS project, overall manage- itea2.eu/cms/home-menu-item”, July 2015.
ment of these services are provided. Furthermore, an unique [3] Kumar, S. (2014). Ubiquitous smart home system using an-
demonstration model is developed and building automation sys- droid application. arXiv preprint arXiv:1402.2114.
59
trol and monitoring system using Android based smart
phone.” International Journal of Internet of Things 2.1
(2013): 5-11.
[9] Ramlee, R. A., D. H. Z. Tang, and M. M. Ismail. ”Smart
home system for Disabled People via Wireless Bluetooth.”
System Engineering and Technology (ICSET), 2012 Inter-
national Conference on. IEEE, 2012.
[10] Sonawane, Nupur K., et al. ”Bluetooth Based Device Au-
tomation System Using Cellphone.” International Journal
of Computer Applications & Information Technology 7.7
(2014): 136-141.
[11] Baraka, Kim, et al. ”Low cost arduino/android-based
energy-efficient home automation system with smart task
scheduling.” Computational Intelligence, Communication
Systems and Networks (CICSyN), 2013 Fifth International
Conference on. IEEE, 2013.
[12] Ramlee, R. A., et al. ”Smart home system using android
Figure 7. Arduino circuit’s screen view. application.” Information and Communication Technology
(ICoICT), 2013 International Conference of. IEEE, 2013.
[4] Javale, D., Mohsin, M., Nandanwar, S., & Shingate, M. [13] Gurek, Alper, et al. ”An android based home automa-
(2013). Home Automation and Security System Using An- tion system.” High Capacity Optical Networks and En-
droid ADK. International Journal of Electronics Communi- abling Technologies (HONET-CNS), 2013 10th Interna-
cation and Computer Technology (IJECCT), 3, 382-385. tional Conference on. IEEE, 2013.
[5] Home Automation Market - Global Industry Analy- [14] Sankaranarayanan, Sriram, and Au Thien Wan. ”ABASH-
sis, Size, Share, Growth, Trends and Forecast 2014 Android based smart home monitoring using wireless sen-
- 2020,”http :// www. transparencymarketresearch. com/ sors.” Clean Energy and Technology (CEAT), 2013 IEEE
home-automation-market. html”, May 2015 Conference on. IEEE, 2013.
[6] App Inventor,”ai2. appinventor. mit. edu”, May 2015 [15] Del Carmen Curras-Francos, Maria, et al. ”Cooperative
Development of an Arduino-Compatible Building Automa-
[7] HC Serial Bluetooth Products Datasheet, ”http:// tion System for the Practical Teaching of Electronics.” Tec-
www. rcscomponents.kiev.ua/ datasheets /hc hc-05- nologias del Aprendizaje, IEEE Revista Iberoamericana de
user-instructions-bluetooth. pdf”, May 2015 9.3 (2014): 91-97.
[8] Piyare, Rajeev. ”Internet of things: Ubiquitous home con-
60